xref: /freebsd/sys/contrib/device-tree/Bindings/leds/tca6507.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotLEDs connected to tca6507
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible : should be : "ti,tca6507".
5*c66ec88fSEmmanuel Vadot- #address-cells: must be 1
6*c66ec88fSEmmanuel Vadot- #size-cells: must be 0
7*c66ec88fSEmmanuel Vadot- reg: typically 0x45.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotOptional properties:
10*c66ec88fSEmmanuel Vadot- gpio-controller: allows lines to be used as output-only GPIOs.
11*c66ec88fSEmmanuel Vadot- #gpio-cells: if present, must not be 0.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotEach led is represented as a sub-node of the ti,tca6507 device.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotLED sub-node properties:
16*c66ec88fSEmmanuel Vadot- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
17*c66ec88fSEmmanuel Vadot- reg : number of LED line (could be from 0 to 6)
18*c66ec88fSEmmanuel Vadot- linux,default-trigger : (optional)
19*c66ec88fSEmmanuel Vadot   see Documentation/devicetree/bindings/leds/common.txt
20*c66ec88fSEmmanuel Vadot- compatible: either "led" (the default) or "gpio".
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotExamples:
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadottca6507@45 {
25*c66ec88fSEmmanuel Vadot	compatible = "ti,tca6507";
26*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
27*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
28*c66ec88fSEmmanuel Vadot	reg = <0x45>;
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot	gpio-controller;
31*c66ec88fSEmmanuel Vadot	#gpio-cells = <2>;
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot	led0: red-aux@0 {
34*c66ec88fSEmmanuel Vadot		label = "red:aux";
35*c66ec88fSEmmanuel Vadot		reg = <0x0>;
36*c66ec88fSEmmanuel Vadot	};
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot	led1: green-aux@1 {
39*c66ec88fSEmmanuel Vadot		label = "green:aux";
40*c66ec88fSEmmanuel Vadot		reg = <0x5>;
41*c66ec88fSEmmanuel Vadot		linux,default-trigger = "default-on";
42*c66ec88fSEmmanuel Vadot	};
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	wifi-reset@6 {
45*c66ec88fSEmmanuel Vadot		reg = <0x6>;
46*c66ec88fSEmmanuel Vadot		compatible = "gpio";
47*c66ec88fSEmmanuel Vadot	};
48*c66ec88fSEmmanuel Vadot};
49*c66ec88fSEmmanuel Vadot
50