172 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/leds/kinetic,ktd202x.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Kinetic KTD2026/7 RGB/White LED Driver8 9maintainers:10 - André Apitzsch <git@apitzsch.eu>11 12description: |13 The KTD2026/7 is a RGB/White LED driver with I2C interface.14 15 The data sheet can be found at:16 https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf17 18properties:19 compatible:20 enum:21 - kinetic,ktd202622 - kinetic,ktd202723 24 reg:25 maxItems: 126 27 vin-supply:28 description: Regulator providing power to the "VIN" pin.29 30 vio-supply:31 description: Regulator providing power for pull-up of the I/O lines.32 Note that this regulator does not directly connect to KTD2026, but is33 needed for the correct operation of the status ("ST") and I2C lines.34 35 "#address-cells":36 const: 137 38 "#size-cells":39 const: 040 41 multi-led:42 type: object43 $ref: leds-class-multicolor.yaml#44 unevaluatedProperties: false45 46 properties:47 "#address-cells":48 const: 149 50 "#size-cells":51 const: 052 53 patternProperties:54 "^led@[0-3]$":55 type: object56 $ref: common.yaml#57 unevaluatedProperties: false58 59 properties:60 reg:61 description: Index of the LED.62 minimum: 063 maximum: 364 65 required:66 - reg67 - color68 69 required:70 - "#address-cells"71 - "#size-cells"72 73patternProperties:74 "^led@[0-3]$":75 type: object76 $ref: common.yaml#77 unevaluatedProperties: false78 79 properties:80 reg:81 description: Index of the LED.82 minimum: 083 maximum: 384 85 required:86 - reg87 88required:89 - compatible90 - reg91 - "#address-cells"92 - "#size-cells"93 94additionalProperties: false95 96examples:97 - |98 #include <dt-bindings/leds/common.h>99 100 i2c {101 #address-cells = <1>;102 #size-cells = <0>;103 104 led-controller@30 {105 compatible = "kinetic,ktd2026";106 reg = <0x30>;107 #address-cells = <1>;108 #size-cells = <0>;109 110 vin-supply = <&pm8916_l17>;111 vio-supply = <&pm8916_l6>;112 113 led@0 {114 reg = <0>;115 function = LED_FUNCTION_STATUS;116 color = <LED_COLOR_ID_RED>;117 };118 119 led@1 {120 reg = <1>;121 function = LED_FUNCTION_STATUS;122 color = <LED_COLOR_ID_GREEN>;123 };124 125 led@2 {126 reg = <2>;127 function = LED_FUNCTION_STATUS;128 color = <LED_COLOR_ID_BLUE>;129 };130 };131 };132 - |133 #include <dt-bindings/leds/common.h>134 135 i2c {136 #address-cells = <1>;137 #size-cells = <0>;138 139 led-controller@30 {140 compatible = "kinetic,ktd2026";141 reg = <0x30>;142 #address-cells = <1>;143 #size-cells = <0>;144 145 vin-supply = <&pm8916_l17>;146 vio-supply = <&pm8916_l6>;147 148 multi-led {149 color = <LED_COLOR_ID_RGB>;150 function = LED_FUNCTION_STATUS;151 152 #address-cells = <1>;153 #size-cells = <0>;154 155 led@0 {156 reg = <0>;157 color = <LED_COLOR_ID_RED>;158 };159 160 led@1 {161 reg = <1>;162 color = <LED_COLOR_ID_GREEN>;163 };164 165 led@2 {166 reg = <2>;167 color = <LED_COLOR_ID_BLUE>;168 };169 };170 };171 };172