From: Jean-Jacques Hiblot <jjhiblot@ti.com>
To: jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org,
mark.rutland@arm.com, lee.jones@linaro.org,
daniel.thompson@linaro.org, jingoohan1@gmail.com
Cc: dmurphy@ti.com, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
tomi.valkeinen@ti.com, Jean-Jacques Hiblot <jjhiblot@ti.com>,
devicetree@vger.kernel.org
Subject: [PATCH 4/4] devicetree: Add led-backlight binding
Date: Mon, 1 Jul 2019 17:14:23 +0200 [thread overview]
Message-ID: <20190701151423.30768-5-jjhiblot@ti.com> (raw)
In-Reply-To: <20190701151423.30768-1-jjhiblot@ti.com>
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
Add DT binding for led-backlight.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: devicetree@vger.kernel.org
---
.../video/backlight/led-backlight.txt | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/video/backlight/led-backlight.txt
diff --git a/Documentation/devicetree/bindings/video/backlight/led-backlight.txt b/Documentation/devicetree/bindings/video/backlight/led-backlight.txt
new file mode 100644
index 000000000000..216cd52d624a
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/backlight/led-backlight.txt
@@ -0,0 +1,39 @@
+led-backlight bindings
+
+The node of the backlight driver IS the node of the LED.
+
+Required properties:
+ - compatible: "led-backlight"
+ - brightness-levels: Array of distinct LED brightness levels. These
+ are in the range from 0 to 255, passed to the LED class driver.
+ - default-brightness-level: the default brightness level (index into the
+ array defined by the "brightness-levels" property)
+
+Optional properties:
+ - power-supply: regulator for supply voltage
+ - enable-gpios: contains a single GPIO specifier for the GPIO which enables
+ and disables the backlight (see GPIO binding[0])
+
+[0]: Documentation/devicetree/bindings/gpio/gpio.txt
+
+Example:
+
+led_ctrl {
+ red_led@1 {
+ label = "red";
+ reg = <1>;
+ }
+
+ backlight_led@2 {
+ function = LED_FUNCTION_BACKLIGHT;
+ reg = <2>;
+
+ compatible = "led-backlight";
+
+ brightness-levels = <0 4 8 16 32 64 128 255>;
+ default-brightness-level = <6>;
+
+ power-supply = <&vdd_bl_reg>;
+ enable-gpios = <&gpio 58 0>;
+ };
+};
--
2.17.1
next prev parent reply other threads:[~2019-07-01 15:14 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-01 15:14 [PATCH 0/4] Add a generic driver for LED-based backlight Jean-Jacques Hiblot
2019-07-01 15:14 ` [PATCH 1/4] leds: of: create a child device if the LED node contains a "compatible" string Jean-Jacques Hiblot
2019-07-01 15:14 ` [PATCH 2/4] devicetree: Update led binding Jean-Jacques Hiblot
2019-07-01 15:20 ` Dan Murphy
2019-07-01 15:14 ` [PATCH 3/4] backlight: add led-backlight driver Jean-Jacques Hiblot
2019-07-02 9:54 ` Daniel Thompson
2019-07-02 10:59 ` Jean-Jacques Hiblot
2019-07-02 13:04 ` Daniel Thompson
2019-07-02 15:17 ` Jean-Jacques Hiblot
2019-07-03 9:44 ` Daniel Thompson
2019-07-03 10:02 ` Jean-Jacques Hiblot
2019-07-05 10:08 ` Pavel Machek
2019-07-05 10:08 ` Pavel Machek
2019-07-05 10:33 ` Jean-Jacques Hiblot
2019-07-05 10:33 ` Jean-Jacques Hiblot
2019-07-01 15:14 ` Jean-Jacques Hiblot [this message]
2019-07-02 9:58 ` [PATCH 4/4] devicetree: Add led-backlight binding Daniel Thompson
2019-07-02 11:11 ` Jean-Jacques Hiblot
2019-07-05 10:11 ` Pavel Machek
2019-07-05 10:11 ` Pavel Machek
2019-07-05 10:14 ` [PATCH 0/4] Add a generic driver for LED-based backlight Pavel Machek
2019-07-05 10:14 ` Pavel Machek
2019-07-05 10:29 ` Daniel Thompson
2019-07-05 10:29 ` Daniel Thompson
2019-07-05 11:34 ` Jean-Jacques Hiblot
2019-07-05 11:34 ` Jean-Jacques Hiblot
2019-07-05 23:23 ` Sebastian Reichel
2019-07-05 23:23 ` Sebastian Reichel
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=20190701151423.30768-5-jjhiblot@ti.com \
--to=jjhiblot@ti.com \
--cc=daniel.thompson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmurphy@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jacek.anaszewski@gmail.com \
--cc=jingoohan1@gmail.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pavel@ucw.cz \
--cc=robh+dt@kernel.org \
--cc=tomi.valkeinen@ti.com \
/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;
as well as URLs for NNTP newsgroup(s).