Back to home page

OSCL-LXR

 
 

    


0001 LEDs connected to pca9632, pca9633 or pca9634
0002 
0003 Required properties:
0004 - compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
0005 
0006 Optional properties:
0007 - nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults
0008   to open-drain, newer chips to totem pole)
0009 - nxp,hw-blink : use hardware blinking instead of software blinking
0010 - nxp,period-scale : In some configurations, the chip blinks faster than expected.
0011                      This parameter provides a scaling ratio (fixed point, decimal divided
0012                      by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.
0013 - nxp,inverted-out: invert the polarity of the generated PWM
0014 
0015 Each led is represented as a sub-node of the nxp,pca963x device.
0016 
0017 LED sub-node properties:
0018 - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
0019 - reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633,
0020                 0 to 7 in pca9634, or 0 to 15 in pca9635)
0021 - linux,default-trigger : (optional)
0022    see Documentation/devicetree/bindings/leds/common.txt
0023 
0024 Examples:
0025 
0026 pca9632: pca9632 {
0027         compatible = "nxp,pca9632";
0028         #address-cells = <1>;
0029         #size-cells = <0>;
0030         reg = <0x62>;
0031 
0032         red@0 {
0033                 label = "red";
0034                 reg = <0>;
0035                 linux,default-trigger = "none";
0036         };
0037         green@1 {
0038                 label = "green";
0039                 reg = <1>;
0040                 linux,default-trigger = "none";
0041         };
0042         blue@2 {
0043                 label = "blue";
0044                 reg = <2>;
0045                 linux,default-trigger = "none";
0046         };
0047         unused@3 {
0048                 label = "unused";
0049                 reg = <3>;
0050                 linux,default-trigger = "none";
0051         };
0052 };