* [PATCH v3 2/2] dt: bindings: tps65217: add compatible property for backlight subnode
@ 2014-10-08 21:20 Johannes Pointner
2014-10-30 6:43 ` Johannes Pointner
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Pointner @ 2014-10-08 21:20 UTC (permalink / raw)
To: Lee Jones, Samuel Ortiz
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Add documentation for compatible property of backlight subnode.
Signed-off-by: Johannes Pointner <johannes.pointner-5O2GiQo/Ci2aMPzRcYMCawC/G2K4zDHf@public.gmane.org>
---
Changes since v2:
1. Removed the pmic part of the patch.
2. Added newline before subnode in the example.
---
.../devicetree/bindings/video/backlight/tps65217-backlight.txt | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
index 5fb9279..63ef699 100644
--- a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
+++ b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
@@ -6,19 +6,23 @@ used to drive LEDs for use as backlights.
Required properties:
- compatible: "ti,tps65217"
- reg: I2C slave address
-- backlight: node for specifying WLED1 and WLED2 lines in TPS65217
+- backlight: subnode for specifying WLED1 and WLED2 lines in TPS65217
+
+Required subnode properties:
+- compatible: "ti,tps65217-bl"
- isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level)
- fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000
- default-brightness: valid values: 0-100
-Each regulator is defined using the standard binding for regulators.
Example:
tps: tps@24 {
reg = <0x24>;
compatible = "ti,tps65217";
- backlight {
+
+ tps_bl: backlight {
+ compatible = "ti,tps65217-bl";
isel = <1>; /* 1 - ISET1, 2 ISET2 */
fdim = <100>; /* TPS65217_BL_FDIM_100HZ */
default-brightness = <50>;
--
2.1.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 2/2] dt: bindings: tps65217: add compatible property for backlight subnode
2014-10-08 21:20 [PATCH v3 2/2] dt: bindings: tps65217: add compatible property for backlight subnode Johannes Pointner
@ 2014-10-30 6:43 ` Johannes Pointner
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Pointner @ 2014-10-30 6:43 UTC (permalink / raw)
To: Lee Jones, Samuel Ortiz
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
devicetree, linux-kernel
ping
2014-10-08 23:20 GMT+02:00 Johannes Pointner <johannes.pointner@gmail.com>:
> Add documentation for compatible property of backlight subnode.
>
> Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com>
> ---
> Changes since v2:
> 1. Removed the pmic part of the patch.
> 2. Added newline before subnode in the example.
> ---
> .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
> index 5fb9279..63ef699 100644
> --- a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
> +++ b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt
> @@ -6,19 +6,23 @@ used to drive LEDs for use as backlights.
> Required properties:
> - compatible: "ti,tps65217"
> - reg: I2C slave address
> -- backlight: node for specifying WLED1 and WLED2 lines in TPS65217
> +- backlight: subnode for specifying WLED1 and WLED2 lines in TPS65217
> +
> +Required subnode properties:
> +- compatible: "ti,tps65217-bl"
> - isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level)
> - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000
> - default-brightness: valid values: 0-100
>
> -Each regulator is defined using the standard binding for regulators.
>
> Example:
>
> tps: tps@24 {
> reg = <0x24>;
> compatible = "ti,tps65217";
> - backlight {
> +
> + tps_bl: backlight {
> + compatible = "ti,tps65217-bl";
> isel = <1>; /* 1 - ISET1, 2 ISET2 */
> fdim = <100>; /* TPS65217_BL_FDIM_100HZ */
> default-brightness = <50>;
> --
> 2.1.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-30 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 21:20 [PATCH v3 2/2] dt: bindings: tps65217: add compatible property for backlight subnode Johannes Pointner
2014-10-30 6:43 ` Johannes Pointner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).