xref: /freebsd-src/sys/contrib/device-tree/Bindings/gpio/netxbig-gpio-ext.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBinding for the GPIO extension bus found on some LaCie/Seagate boards
2*c66ec88fSEmmanuel Vadot(Example: 2Big/5Big Network v2, 2Big NAS).
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotRequired properties:
5*c66ec88fSEmmanuel Vadot- compatible: "lacie,netxbig-gpio-ext".
6*c66ec88fSEmmanuel Vadot- addr-gpios: GPIOs representing the address register (LSB -> MSB).
7*c66ec88fSEmmanuel Vadot- data-gpios: GPIOs representing the data register (LSB -> MSB).
8*c66ec88fSEmmanuel Vadot- enable-gpio: latches the new configuration (address, data) on raising edge.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotExample:
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadotnetxbig_gpio_ext: netxbig-gpio-ext {
13*c66ec88fSEmmanuel Vadot	compatible = "lacie,netxbig-gpio-ext";
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot	addr-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH
16*c66ec88fSEmmanuel Vadot		      &gpio1 16 GPIO_ACTIVE_HIGH
17*c66ec88fSEmmanuel Vadot		      &gpio1 17 GPIO_ACTIVE_HIGH>;
18*c66ec88fSEmmanuel Vadot	data-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH
19*c66ec88fSEmmanuel Vadot		      &gpio1 13 GPIO_ACTIVE_HIGH
20*c66ec88fSEmmanuel Vadot		      &gpio1 14 GPIO_ACTIVE_HIGH>;
21*c66ec88fSEmmanuel Vadot	enable-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
22*c66ec88fSEmmanuel Vadot};
23