^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) LEDs connected to pca9632, pca9633 or pca9634
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) to open-drain, newer chips to totem pole)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - nxp,hw-blink : use hardware blinking instead of software blinking
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - nxp,period-scale : In some configurations, the chip blinks faster than expected.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) This parameter provides a scaling ratio (fixed point, decimal divided
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - nxp,inverted-out: invert the polarity of the generated PWM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Each led is represented as a sub-node of the nxp,pca963x device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) LED sub-node properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 0 to 7 in pca9634, or 0 to 15 in pca9635)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - linux,default-trigger : (optional)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) pca9632: pca9632 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) compatible = "nxp,pca9632";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) reg = <0x62>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) red@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) label = "red";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) linux,default-trigger = "none";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) green@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) label = "green";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) reg = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) linux,default-trigger = "none";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) blue@2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) label = "blue";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) reg = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) linux,default-trigger = "none";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) unused@3 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) label = "unused";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) reg = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) linux,default-trigger = "none";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) };