mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Erick Setubal Bacurau <erick.setubal@gmx.de>
To: lee@kernel.org, pavel@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, skhan@linuxfoundation.org,
	linux-kernel-mentees@lists.linuxfoundation.org,
	david.hunter.linux@gmail.com
Cc: Erick Setubal Bacurau <erick.setubal@gmx.de>
Subject: [PATCH] dt-bindings: leds: Add TI LM36274 backlight driver schema
Date: Mon, 20 Oct 2025 16:04:28 +0200	[thread overview]
Message-ID: <20251020140428.246460-1-erick.setubal@gmx.de> (raw)

Add the DeviceTree binding schema for the Texas Instruments LM36274.

Signed-off-by: Erick Setubal Bacurau <erick.setubal@gmx.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@gmx.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


             reply	other threads:[~2025-10-20 14:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 14:04 Erick Setubal Bacurau [this message]
2025-10-20 15:09 ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251020140428.246460-1-erick.setubal@gmx.de \
    --to=erick.setubal@gmx.de \
    --cc=conor+dt@kernel.org \
    --cc=david.hunter.linux@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel-mentees@lists.linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=pavel@kernel.org \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®