Skip to contentSkip to conversation

dt-bindings: backlight: Add Kinetic KTD259 bindings

PATCH Applied Linus Walleij 3 participants 6 messages Mar 21, 2021 – Mar 22, 2021

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: backlight: Add Kinetic KTD259 bindings

The KTD259 is just a newer version of the KTD253 and works all the same.

---
 .../bindings/leds/backlight/kinetic,ktd253.yaml          | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml +6 -3
index 7a6ec1f8c0f3..73fa59e62181 100644
@@ -4,13 +4,13 @@
 $id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Kinetic Technologies KTD253 one-wire backlight
+title: Kinetic Technologies KTD253 and KTD259 one-wire backlight
 
 maintainers:
   - Linus Walleij <[email protected]>
 
 description: |
-  The Kinetic Technologies KTD253 is a white LED backlight that is
+  The Kinetic Technologies KTD253 and KTD259 are white LED backlights
   controlled by a single GPIO line. If you just turn on the backlight
   it goes to maximum backlight then you can set the level of backlight
   using pulses on the enable wire. This is sometimes referred to as
@@ -21,7 +21,10 @@ allOf:
 
 properties:
   compatible:
-    const: kinetic,ktd253
+    items:
+      - enum:
+          - kinetic,ktd253
+          - kinetic,ktd259
 
   enable-gpios:
     description: GPIO to use to enable/disable and dim the backlight.
Signature · 6 lines
2.29.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 backlight: ktd253: Support KTD259

The KTD259 works just like KTD253 so add this compatible to the driver.

---
 drivers/video/backlight/ktd253-backlight.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/ktd253-backlight.c +1 -0
index d7b287cffd5c..a7df5bcca9da 100644
@@ -173,6 +173,7 @@ static int ktd253_backlight_probe(struct platform_device *pdev)
 
 static const struct of_device_id ktd253_backlight_of_match[] = {
 	{ .compatible = "kinetic,ktd253" },
+	{ .compatible = "kinetic,ktd259" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ktd253_backlight_of_match);
Signature · 6 lines
2.29.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] backlight: ktd253: Support KTD259

Quoted 4 lines · Linus Walleij

The KTD259 works just like KTD253 so add this compatible to the driver.

Oh no... there's more of them ;-) .

Daniel.

Quoted 19 lines
---
 drivers/video/backlight/ktd253-backlight.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/ktd253-backlight.c +1 -0
index d7b287cffd5c..a7df5bcca9da 100644
@@ -173,6 +173,7 @@ static int ktd253_backlight_probe(struct platform_device *pdev)
 
 static const struct of_device_id ktd253_backlight_of_match[] = {
 	{ .compatible = "kinetic,ktd253" },
+	{ .compatible = "kinetic,ktd259" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ktd253_backlight_of_match);
Signature · 1 line
2.29.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#3 lore raw

Re: [PATCH 2/2] backlight: ktd253: Support KTD259

In reply to Linus Walleij
Quoted 7 lines · Linus Walleij

The KTD259 works just like KTD253 so add this compatible to the driver.

---
 drivers/video/backlight/ktd253-backlight.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 8 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
In reply to Linus Walleij
Quoted 4 lines · Linus Walleij

The KTD259 is just a newer version of the KTD253 and works all the same.

(For Lee) Acked-by: Daniel Thompson <[email protected]>

Daniel.

Quoted 39 lines
---
 .../bindings/leds/backlight/kinetic,ktd253.yaml          | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml +6 -3
index 7a6ec1f8c0f3..73fa59e62181 100644
@@ -4,13 +4,13 @@
 $id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Kinetic Technologies KTD253 one-wire backlight
+title: Kinetic Technologies KTD253 and KTD259 one-wire backlight
 
 maintainers:
   - Linus Walleij <[email protected]>
 
 description: |
-  The Kinetic Technologies KTD253 is a white LED backlight that is
+  The Kinetic Technologies KTD253 and KTD259 are white LED backlights
   controlled by a single GPIO line. If you just turn on the backlight
   it goes to maximum backlight then you can set the level of backlight
   using pulses on the enable wire. This is sometimes referred to as
@@ -21,7 +21,10 @@ allOf:
 
 properties:
   compatible:
-    const: kinetic,ktd253
+    items:
+      - enum:
+          - kinetic,ktd253
+          - kinetic,ktd259
 
   enable-gpios:
     description: GPIO to use to enable/disable and dim the backlight.
Signature · 1 line
2.29.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#5 lore raw
In reply to Linus Walleij
Quoted 7 lines · Linus Walleij

The KTD259 is just a newer version of the KTD253 and works all the same.

---
 .../bindings/leds/backlight/kinetic,ktd253.yaml          | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Applied, thanks.

Signature · 8 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel