dt-bindings: leds: Add TI LM36274 backlight driver schema
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- .../bindings/leds/leds-lm36274.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm36274.yaml
Documentation/devicetree/bindings/leds/leds-lm36274.yaml new file +81 -0
@@ -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 <[email protected]>] +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"; + }; + }; + }; + +
Signature · 1 line
2.43.0
Quoted 5 lines · Erick Setubal Bacurau
Add the DeviceTree binding schema for the Texas Instruments LM36274.
Signed-off-by Erick Setubal Bacurau <[email protected]>--- .../bindings/leds/leds-lm36274.yaml | 81 +++++++++++++++++++
Why do you add this without any users?
Quoted 9 lines
1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm36274.yamlDocumentation/devicetree/bindings/leds/leds-lm36274.yaml new file +0
-0
Documentation/devicetree/bindings/leds/leds-lm36274.yaml line 6
Quoted 6 lines
Documentation/devicetree/bindings/leds/leds-lm36274.yaml new file +6
-0@@ -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 <[email protected]>]
Don't code with AI. This looks like nothing in existing code, 100% different, so I do not see how you could come with this.
Any AI slop is waste of our time. Please start from scratch from latest approved bindings (including correct file naming) and provide users.
NAK.
Best regards,
Krzysztof