Skip to contentSkip to conversation

arm64: dts: salvator-common: add 12V regulator to backlight

PATCH Applied Ulrich Hecht 4 participants 4 messages Sep 18, 2017 – Sep 21, 2017

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

PATCH 1/1 arm64: dts: salvator-common: add 12V regulator to backlight

This fixes the warning "pwm-backlight backlight: backlight supply power not found, using dummy regulator".

Fixes b33be33670217533 ("arm64: dts: salvator-x: Add panel backlight support")
---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +10 -0
index e3d8310..fa2a1f7 100644
@@ -63,6 +63,7 @@
 		brightness-levels = <256 128 64 16 8 4 0>;
 		default-brightness-level = <6>;
 
+		power-supply = <&reg_12v>;
 		enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
 	};
 
@@ -107,6 +108,15 @@
 		regulator-always-on;
 	};
 
+	reg_12v: regulator2 {
+		compatible = "regulator-fixed";
+		regulator-name = "fixed-12V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	rsnd_ak4613: sound {
 		compatible = "simple-audio-card";
 
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw

Hi Ulrich,

Thank you for the patch.

Quoted 25 lines · On Monday, 18 September 2017 18:56:14 EEST Ulrich Hecht wrote:

This fixes the warning "pwm-backlight backlight: backlight supply power not found, using dummy regulator".

Fixes b33be33670217533 ("arm64: dts: salvator-x: Add panel backlight

support")

---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/renesas/salvator-common.dtsi index e3d8310..fa2a1f7 100644

arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -0
@@ -63,6 +63,7 @@
 		brightness-levels = <256 128 64 16 8 4 0>;
 		default-brightness-level = <6>;
 
+		power-supply = <&reg_12v>;
 		enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
 	};
 

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 111

Quoted 4 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -0
@@ -107,6 +108,15 @@
 		regulator-always-on;
 	};
 
+	reg_12v: regulator2 {

Nitpicking, should be call this reg_12p0v to match the naming scheme of the other fixed regulators ?

Apart from that, and regardless of whether you want to change the name or not,

Quoted 10 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +8 -0
+		compatible = "regulator-fixed";
+		regulator-name = "fixed-12V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	rsnd_ak4613: sound {
 		compatible = "simple-audio-card";
Signature · 3 lines
Regards,

Laurent Pinchart
Reviewed-by on v1 1/1
#2 lore raw
In reply to Ulrich Hecht
Quoted 6 lines · Ulrich Hecht

This fixes the warning "pwm-backlight backlight: backlight supply power not found, using dummy regulator".

Fixes b33be33670217533 ("arm64: dts: salvator-x: Add panel backlight support")

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds