Phil Reid | fa4191a | 2016-06-14 15:36:17 +0800 | [diff] [blame] | 1 | *NXP - pca9532 PWM LED Driver |
| 2 | |
| 3 | The PCA9532 family is SMBus I/O expander optimized for dimming LEDs. |
| 4 | The PWM support 256 steps. |
| 5 | |
| 6 | Required properties: |
| 7 | - compatible: |
| 8 | "nxp,pca9530" |
| 9 | "nxp,pca9531" |
| 10 | "nxp,pca9532" |
| 11 | "nxp,pca9533" |
| 12 | - reg - I2C slave address |
| 13 | |
| 14 | Each led is represented as a sub-node of the nxp,pca9530. |
| 15 | |
| 16 | Optional 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 | |
| 21 | Example: |
| 22 | #include <dt-bindings/leds/leds-pca9532.h> |
| 23 | |
| 24 | leds: pca9530@60 { |
| 25 | compatible = "nxp,pca9530"; |
| 26 | reg = <0x60>; |
| 27 | |
| 28 | red-power { |
| 29 | label = "pca:red:power"; |
| 30 | type = <PCA9532_TYPE_LED>; |
| 31 | }; |
| 32 | green-power { |
| 33 | label = "pca:green:power"; |
| 34 | type = <PCA9532_TYPE_LED>; |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | For more product information please see the link below: |
| 39 | http://nxp.com/documents/data_sheet/PCA9532.pdf |