162306a36Sopenharmony_ciGeneric Parallel-in/Serial-out Shift Register GPIO Driver 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis binding describes generic parallel-in/serial-out shift register 462306a36Sopenharmony_cidevices that can be used for GPI (General Purpose Input). This includes 562306a36Sopenharmony_ciSN74165 serial-out shift registers and the SN65HVS88x series of 662306a36Sopenharmony_ciindustrial serializers. 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciRequired properties: 962306a36Sopenharmony_ci - compatible : Should be "pisosr-gpio". 1062306a36Sopenharmony_ci - gpio-controller : Marks the device node as a GPIO controller. 1162306a36Sopenharmony_ci - #gpio-cells : Should be two. For consumer use see gpio.txt. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciOptional properties: 1462306a36Sopenharmony_ci - ngpios : Number of used GPIO lines (0..n-1), default is 8. 1562306a36Sopenharmony_ci - load-gpios : GPIO pin specifier attached to load enable, this 1662306a36Sopenharmony_ci pin is pulsed before reading from the device to 1762306a36Sopenharmony_ci load input pin values into the device. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciFor other required and optional properties of SPI slave 2062306a36Sopenharmony_cinodes please refer to ../spi/spi-bus.txt. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciExample: 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci gpio@0 { 2562306a36Sopenharmony_ci compatible = "ti,sn65hvs882", "pisosr-gpio"; 2662306a36Sopenharmony_ci gpio-controller; 2762306a36Sopenharmony_ci #gpio-cells = <2>; 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci reg = <0>; 3262306a36Sopenharmony_ci spi-max-frequency = <1000000>; 3362306a36Sopenharmony_ci spi-cpol; 3462306a36Sopenharmony_ci }; 35