Back to home page

OSCL-LXR

 
 

    


0001 *NXP - pca9532 PWM LED Driver
0002 
0003 The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
0004 The PWM support 256 steps.
0005 
0006 Required properties:
0007         - compatible:
0008                 "nxp,pca9530"
0009                 "nxp,pca9531"
0010                 "nxp,pca9532"
0011                 "nxp,pca9533"
0012         - reg -  I2C slave address
0013 
0014 Each led is represented as a sub-node of the nxp,pca9530.
0015 
0016 Optional sub-node properties:
0017         - label: see Documentation/devicetree/bindings/leds/common.txt
0018         - type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
0019         - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
0020         - default-state: see Documentation/devicetree/bindings/leds/common.txt
0021           This property is only valid for sub-nodes of type <PCA9532_TYPE_LED>.
0022 
0023 Example:
0024   #include <dt-bindings/leds/leds-pca9532.h>
0025 
0026   leds: pca9530@60 {
0027     compatible = "nxp,pca9530";
0028     reg = <0x60>;
0029 
0030     red-power {
0031       label = "pca:red:power";
0032       type = <PCA9532_TYPE_LED>;
0033     };
0034     green-power {
0035       label = "pca:green:power";
0036       type = <PCA9532_TYPE_LED>;
0037     };
0038     kernel-booting {
0039       type = <PCA9532_TYPE_LED>;
0040       default-state = "on";
0041     };
0042     sys-stat {
0043       type = <PCA9532_TYPE_LED>;
0044       default-state = "keep"; // don't touch, was set by U-Boot
0045     };
0046   };
0047 
0048 For more product information please see the link below:
0049 http://nxp.com/documents/data_sheet/PCA9532.pdf