Skip to contentSkip to conversation

ARM: dts: am335x-evmsk: Add phandle for the backlight for the panel

PATCH New Peter Ujfalusi 2 participants 2 messages May 8, 2018 – May 15, 2018 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: am335x-evmsk: Add phandle for the backlight for the panel

With the backlight phandle the driver can manage the backlight on/off in sync with the panel enable/disable.

---
 arch/arm/boot/dts/am335x-evmsk.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am335x-evmsk.dts +2 -1
index d0d6bacfafc2..0c096a795e37 100644
@@ -137,7 +137,7 @@
 		};
 	};
 
-	backlight {
+	lcd_bl: backlight {
 		compatible = "pwm-backlight";
 		pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
 		brightness-levels = <0 58 61 66 75 90 125 170 255>;
@@ -172,6 +172,7 @@
 		pinctrl-names = "default", "sleep";
 		pinctrl-0 = <&lcd_pins_default>;
 		pinctrl-1 = <&lcd_pins_sleep>;
+		backlight = <&lcd_bl>;
 		status = "okay";
 		panel-info {
 			ac-bias		= <255>;
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#1 lore raw

PATCH 1/1 ARM: dts: am335x-evmsk: Add phandle for the backlight for the panel

Quoted 2 lines · Peter Ujfalusi

With the backlight phandle the driver can manage the backlight on/off in sync with the panel enable/disable.

Applying into omap-for-v4.18/dt thanks.

Tony