xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-lp3943.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotTI/National Semiconductor LP3943 GPIO controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot  - compatible: "ti,lp3943-gpio"
5*c66ec88fSEmmanuel Vadot  - gpio-controller: Marks the device node as a GPIO controller.
6*c66ec88fSEmmanuel Vadot  - #gpio-cells: Should be 2. See gpio.txt in this directory for a
7*c66ec88fSEmmanuel Vadot                 description of the cells format.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotExample:
10*c66ec88fSEmmanuel VadotSimple LED controls with LP3943 GPIO controller
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot&i2c4 {
13*c66ec88fSEmmanuel Vadot	lp3943@60 {
14*c66ec88fSEmmanuel Vadot		compatible = "ti,lp3943";
15*c66ec88fSEmmanuel Vadot		reg = <0x60>;
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot		gpioex: gpio {
18*c66ec88fSEmmanuel Vadot			compatible = "ti,lp3943-gpio";
19*c66ec88fSEmmanuel Vadot			gpio-controller;
20*c66ec88fSEmmanuel Vadot			#gpio-cells = <2>;
21*c66ec88fSEmmanuel Vadot		};
22*c66ec88fSEmmanuel Vadot	};
23*c66ec88fSEmmanuel Vadot};
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadotleds {
26*c66ec88fSEmmanuel Vadot	compatible = "gpio-leds";
27*c66ec88fSEmmanuel Vadot	indicator1 {
28*c66ec88fSEmmanuel Vadot		label = "indi1";
29*c66ec88fSEmmanuel Vadot		gpios = <&gpioex 9 GPIO_ACTIVE_LOW>;
30*c66ec88fSEmmanuel Vadot	};
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot	indicator2 {
33*c66ec88fSEmmanuel Vadot		label = "indi2";
34*c66ec88fSEmmanuel Vadot		gpios = <&gpioex 10 GPIO_ACTIVE_LOW>;
35*c66ec88fSEmmanuel Vadot		default-state = "off";
36*c66ec88fSEmmanuel Vadot	};
37*c66ec88fSEmmanuel Vadot};
38