18c2ecf20Sopenharmony_ci*NXP - pca9532 PWM LED Driver
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
48c2ecf20Sopenharmony_ciThe PWM support 256 steps.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci	- compatible:
88c2ecf20Sopenharmony_ci		"nxp,pca9530"
98c2ecf20Sopenharmony_ci		"nxp,pca9531"
108c2ecf20Sopenharmony_ci		"nxp,pca9532"
118c2ecf20Sopenharmony_ci		"nxp,pca9533"
128c2ecf20Sopenharmony_ci	- reg -  I2C slave address
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciEach led is represented as a sub-node of the nxp,pca9530.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciOptional sub-node properties:
178c2ecf20Sopenharmony_ci	- label: see Documentation/devicetree/bindings/leds/common.txt
188c2ecf20Sopenharmony_ci	- type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
198c2ecf20Sopenharmony_ci	- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
208c2ecf20Sopenharmony_ci	- default-state: see Documentation/devicetree/bindings/leds/common.txt
218c2ecf20Sopenharmony_ci	  This property is only valid for sub-nodes of type <PCA9532_TYPE_LED>.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciExample:
248c2ecf20Sopenharmony_ci  #include <dt-bindings/leds/leds-pca9532.h>
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci  leds: pca9530@60 {
278c2ecf20Sopenharmony_ci    compatible = "nxp,pca9530";
288c2ecf20Sopenharmony_ci    reg = <0x60>;
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci    red-power {
318c2ecf20Sopenharmony_ci      label = "pca:red:power";
328c2ecf20Sopenharmony_ci      type = <PCA9532_TYPE_LED>;
338c2ecf20Sopenharmony_ci    };
348c2ecf20Sopenharmony_ci    green-power {
358c2ecf20Sopenharmony_ci      label = "pca:green:power";
368c2ecf20Sopenharmony_ci      type = <PCA9532_TYPE_LED>;
378c2ecf20Sopenharmony_ci    };
388c2ecf20Sopenharmony_ci    kernel-booting {
398c2ecf20Sopenharmony_ci      type = <PCA9532_TYPE_LED>;
408c2ecf20Sopenharmony_ci      default-state = "on";
418c2ecf20Sopenharmony_ci    };
428c2ecf20Sopenharmony_ci    sys-stat {
438c2ecf20Sopenharmony_ci      type = <PCA9532_TYPE_LED>;
448c2ecf20Sopenharmony_ci      default-state = "keep"; // don't touch, was set by U-Boot
458c2ecf20Sopenharmony_ci    };
468c2ecf20Sopenharmony_ci  };
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciFor more product information please see the link below:
498c2ecf20Sopenharmony_cihttp://nxp.com/documents/data_sheet/PCA9532.pdf
50