xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/gpio-pisosr.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunGeneric Parallel-in/Serial-out Shift Register GPIO Driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis binding describes generic parallel-in/serial-out shift register
4*4882a593Smuzhiyundevices that can be used for GPI (General Purpose Input). This includes
5*4882a593SmuzhiyunSN74165 serial-out shift registers and the SN65HVS88x series of
6*4882a593Smuzhiyunindustrial serializers.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun - compatible		: Should be "pisosr-gpio".
10*4882a593Smuzhiyun - gpio-controller	: Marks the device node as a GPIO controller.
11*4882a593Smuzhiyun - #gpio-cells		: Should be two. For consumer use see gpio.txt.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun - ngpios		: Number of used GPIO lines (0..n-1), default is 8.
15*4882a593Smuzhiyun - load-gpios		: GPIO pin specifier attached to load enable, this
16*4882a593Smuzhiyun			  pin is pulsed before reading from the device to
17*4882a593Smuzhiyun			  load input pin values into the the device.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunFor other required and optional properties of SPI slave
20*4882a593Smuzhiyunnodes please refer to ../spi/spi-bus.txt.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunExample:
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	gpio@0 {
25*4882a593Smuzhiyun		compatible = "ti,sn65hvs882", "pisosr-gpio";
26*4882a593Smuzhiyun		gpio-controller;
27*4882a593Smuzhiyun		#gpio-cells = <2>;
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		reg = <0>;
32*4882a593Smuzhiyun		spi-max-frequency = <1000000>;
33*4882a593Smuzhiyun		spi-cpol;
34*4882a593Smuzhiyun	};
35