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