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