[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251020140428.246460-1-erick.setubal@gmx.de>
Date: Mon, 20 Oct 2025 16:04:28 +0200
From: Erick Setubal Bacurau <erick.setubal@....de>
To: lee@...nel.org,
pavel@...nel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
linux-leds@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
skhan@...uxfoundation.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
david.hunter.linux@...il.com
Cc: Erick Setubal Bacurau <erick.setubal@....de>
Subject: [PATCH] dt-bindings: leds: Add TI LM36274 backlight driver schema
Add the DeviceTree binding schema for the Texas Instruments LM36274.
Signed-off-by: Erick Setubal Bacurau <erick.setubal@....de>
---
.../bindings/leds/leds-lm36274.yaml | 81 +++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/leds-lm36274.yaml
diff --git a/Documentation/devicetree/bindings/leds/leds-lm36274.yaml b/Documentation/devicetree/bindings/leds/leds-lm36274.yaml
new file mode 100644
index 000000000000..390ca660c0be
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-lm36274.yaml
@@ -0,0 +1,81 @@
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/leds-lm36274.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+title: Texas Instruments LM36274 4-Channel LCD Backlight Driver w/Integrated Bias
+maintainers: [Erick Setubal Bacurau <erick.setubal@....de>]
+description:
+ The LM36274 is an integrated four-channel WLED driver and LCD bias supply.
+ The backlight boost provides the power to bias four parallel LED strings with
+ up to 29V total output voltage. The 11-bit LED current is programmable via
+ the I2C bus and/or controlled via a logic level PWM input from 60 uA to 30 mA.
+ For more product information please see the link https://www.ti.com/lit/ds/symlink/lm36274.pdf
+
+properties:
+ compatible:
+ const: ti,lm36274-backlight
+ reg:
+ maxItems: 1
+ description: I2C address of the device.
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
+ label:
+ $ref: /schemas/leds/common.yaml#/properties/label
+
+ linux,default-trigger:
+ $ref: /schemas/leds/common.yaml#/properties/linux,default-trigger
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+patternProperties:
+ '^led@[0-3]$':
+ type: object
+ properties:
+ reg:
+ description: LED channel index (0..3)
+ minimum: 0
+ maximum: 3
+
+ led-sources:
+ description: Indicates which LED strings will be enabled (0..3).
+ allOf:
+ - $ref: /schemas/leds/common.yaml#/properties/led-sources
+ - type: array
+ items:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0
+ maximum: 3
+ maxItems: 4
+ uniqueItems: true
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ backlight@11 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x11>;
+ compatible = "ti,lm36274-backlight";
+
+ led@0 {
+ reg = <0>;
+ led-sources = <0 2>;
+ label = "white:backlight_cluster";
+ linux,default-trigger = "backlight";
+ };
+ };
+ };
+
+
--
2.43.0
Powered by blists - more mailing lists