1 Generic Parallel-in/Serial-out Shift Register 1 Generic Parallel-in/Serial-out Shift Register GPIO Driver 2 2 3 This binding describes generic parallel-in/ser 3 This binding describes generic parallel-in/serial-out shift register 4 devices that can be used for GPI (General Purp 4 devices that can be used for GPI (General Purpose Input). This includes 5 SN74165 serial-out shift registers and the SN6 5 SN74165 serial-out shift registers and the SN65HVS88x series of 6 industrial serializers. 6 industrial serializers. 7 7 8 Required properties: 8 Required properties: 9 - compatible : Should be "pisosr-gp 9 - compatible : Should be "pisosr-gpio". 10 - gpio-controller : Marks the device nod 10 - gpio-controller : Marks the device node as a GPIO controller. 11 - #gpio-cells : Should be two. For c 11 - #gpio-cells : Should be two. For consumer use see gpio.txt. 12 12 13 Optional properties: 13 Optional properties: 14 - ngpios : Number of used GPIO 14 - ngpios : Number of used GPIO lines (0..n-1), default is 8. 15 - load-gpios : GPIO pin specifier a 15 - load-gpios : GPIO pin specifier attached to load enable, this 16 pin is pulsed before 16 pin is pulsed before reading from the device to 17 load input pin value 17 load input pin values into the device. 18 18 19 For other required and optional properties of 19 For other required and optional properties of SPI slave 20 nodes please refer to ../spi/spi-bus.txt. 20 nodes please refer to ../spi/spi-bus.txt. 21 21 22 Example: 22 Example: 23 23 24 gpio@0 { 24 gpio@0 { 25 compatible = "ti,sn65hvs882", 25 compatible = "ti,sn65hvs882", "pisosr-gpio"; 26 gpio-controller; 26 gpio-controller; 27 #gpio-cells = <2>; 27 #gpio-cells = <2>; 28 28 29 load-gpios = <&gpio2 23 GPIO_A 29 load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; 30 30 31 reg = <0>; 31 reg = <0>; 32 spi-max-frequency = <1000000>; 32 spi-max-frequency = <1000000>; 33 spi-cpol; 33 spi-cpol; 34 }; 34 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.