xref: /freebsd/sys/contrib/device-tree/Bindings/leds/leds-pca9532.txt (revision dc318a4ffabcbfa23bb56a33403aad36e6de30af)
1*NXP - pca9532 PWM LED Driver
2
3The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
4The PWM support 256 steps.
5
6Required properties:
7	- compatible:
8		"nxp,pca9530"
9		"nxp,pca9531"
10		"nxp,pca9532"
11		"nxp,pca9533"
12	- reg -  I2C slave address
13
14Each led is represented as a sub-node of the nxp,pca9530.
15
16Optional sub-node properties:
17	- label: see Documentation/devicetree/bindings/leds/common.txt
18	- type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
19	- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
20	- default-state: see Documentation/devicetree/bindings/leds/common.txt
21	  This property is only valid for sub-nodes of type <PCA9532_TYPE_LED>.
22
23Example:
24  #include <dt-bindings/leds/leds-pca9532.h>
25
26  leds: pca9530@60 {
27    compatible = "nxp,pca9530";
28    reg = <0x60>;
29
30    red-power {
31      label = "pca:red:power";
32      type = <PCA9532_TYPE_LED>;
33    };
34    green-power {
35      label = "pca:green:power";
36      type = <PCA9532_TYPE_LED>;
37    };
38    kernel-booting {
39      type = <PCA9532_TYPE_LED>;
40      default-state = "on";
41    };
42    sys-stat {
43      type = <PCA9532_TYPE_LED>;
44      default-state = "keep"; // don't touch, was set by U-Boot
45    };
46  };
47
48For more product information please see the link below:
49http://nxp.com/documents/data_sheet/PCA9532.pdf
50