summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/leds
diff options
context:
space:
mode:
authorIsai Gaspar <isaiezequiel.gaspar@nxp.com>2022-06-02 13:29:13 -0700
committerBough Chen <haibo.chen@nxp.com>2022-08-10 04:42:56 +0200
commita251f3358ffedeaf4458c162d1c301e97e839908 (patch)
tree7a799ea57b19aa6421f8519c0a76018030282dff /Documentation/devicetree/bindings/leds
parentb9544e4358b8cb4d1635ac6a0949c759d4becc73 (diff)
LF-6247-2: dt-bindings: leds: PCA995X Add support for PCA995X chips
NXP's I2C controlled 16-channel LED driver Signed-off-by: Isai Gaspar <isaiezequiel.gaspar@nxp.com>
Diffstat (limited to 'Documentation/devicetree/bindings/leds')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-pca995x.txt91
1 files changed, 91 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-pca995x.txt b/Documentation/devicetree/bindings/leds/leds-pca995x.txt
new file mode 100644
index 000000000000..f4e31f4c4399
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-pca995x.txt
@@ -0,0 +1,91 @@
+* NXP - pca995x LED driver
+
+The PCA995x family of chips are I2C-bus controlled 16-channel
+constant current LED driver optimized for dimming and blinking
+57 mA Red/Green/Blue/Amber (RGBA) LEDs.
+Note that the top side markings of the pca995x chips are PCA9952
+and PCA9955.
+
+Required properties:
+- compatible : should be one of :
+ "nxp,pca9955btw"
+ "nxp,pca995xtw"
+- #address-cells: must be 1
+- #size-cells: must be 0
+- reg: I2C slave address. depends on the model and HW connections.
+
+Optional properties:
+- reset-gpios: use a GPIO to control the reset line of the chip.
+
+LED sub-node properties:
+- reg : number of LED line.
+ from 0 to 15 for the both pca9955btw & pca995xtw
+- label : (optional)
+ see Documentation/devicetree/bindings/leds/common.txt
+- linux,default-trigger : (optional)
+ see Documentation/devicetree/bindings/leds/common.txt
+
+Examples:
+
+/* TechNexion's voice HAT board */
+pca995tw: pca995xtw@60 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "nxp,pca995xtw";
+ reset-gpios = <&gpio5 7 GPIO_ACTIVE_HIGH>;
+ reg = <0x60>;
+
+ led0 {
+ label = "blue0";
+ linux,default-trigger = "none";
+ reg = <0>;
+ };
+
+ led1 {
+ label = "green0";
+ linux,default-trigger = "none";
+ reg = <1>;
+ };
+
+ led2 {
+ label = "red0";
+ linux,default-trigger = "none";
+ reg = <2>;
+ };
+};
+
+/* NXP's 8MIC board */
+pca995btw: pca995btw@7 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "nxp,pca995btw";
+ reg = <0x07>;
+
+ led0 {
+ label = "green0";
+ linux,default-trigger = "none";
+ reg = <0>;
+ };
+
+ led1 {
+ label = "blue0";
+ linux,default-trigger = "none";
+ reg = <1>;
+ };
+
+ led2 {
+ label = "red0";
+ linux,default-trigger = "none";
+ reg = <2>;
+ };
+
+ led3 {
+ label = "green1";
+ linux,default-trigger = "none";
+ reg = <3>;
+ };
+};
+
+For more information please check the information bellow:
+https://www.nxp.com/docs/en/data-sheet/PCA9952_PCA9955.pdf
+https://www.nxp.com/docs/en/data-sheet/PCA9955B.pdf \ No newline at end of file