Skip to contentSkip to conversation

ARM: dts: tps65217: add power regulator & backlight drivers support

PATCH Superseded Xulin Sun 2 participants 4 messages Jan 17, 2024 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Xulin Sun

author
#0 lore raw

PATCH 1/1 ARM: dts: tps65217: add power regulator & backlight drivers support

Support TPS65217 voltage regulator driver and TPS65217 Backlight driver. And enable them by default. This will avoid below booting failed information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

---
 arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/tps65217.dtsi +10 -0
index 0d463de5650f..f412e7476660 100644
@@ -13,6 +13,16 @@ &tps {
 	interrupt-controller;
 	#interrupt-cells = <1>;
 
+	pmic {
+		compatible = "ti,tps65217-pmic";
+		status = "okay";
+	};
+
+	bl {
+		compatible = "ti,tps65217-bl";
+		status = "okay";
+	};
+
 	charger {
 		compatible = "ti,tps65217-charger";
 		interrupts = <0>, <1>;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · Xulin Sun

Support TPS65217 voltage regulator driver and TPS65217 Backlight driver. And enable them by default. This will avoid below booting failed information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

---
 arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/tps65217.dtsi +0 -0
index 0d463de5650f..f412e7476660 100644

arch/arm/boot/dts/tps65217.dtsi &tps { · line 18

Quoted 6 lines
arch/arm/boot/dts/tps65217.dtsi +3 -0
@@ -13,6 +13,16 @@ &tps {
 	interrupt-controller;
 	#interrupt-cells = <1>;
 
+	pmic {
+		compatible = "ti,tps65217-pmic";
+		status = "okay";

Why do you need status here?

Best regards,
Krzysztof

author
#2 lore raw
Quoted 20 lines · Krzysztof Kozlowski
Quoted 19 lines · Xulin Sun

Support TPS65217 voltage regulator driver and TPS65217 Backlight driver. And enable them by default. This will avoid below booting failed information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

---
  arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
arch/arm/boot/dts/tps65217.dtsi +0 -0
index 0d463de5650f..f412e7476660 100644
@@ -13,6 +13,16 @@ &tps {
  	interrupt-controller;
  	#interrupt-cells = <1>;
 
Quoted 4 lines

arch/arm/boot/dts/tps65217.dtsi &tps { · line 18

Quoted 3 lines
arch/arm/boot/dts/tps65217.dtsi +3 -0
+	pmic {
+		compatible = "ti,tps65217-pmic";
+		status = "okay";

Why do you need status here?

It corresponds to the drvier: drivers/regulator/tps65217-regulator.c, and regulator is one of the main function of TPS65217.

I think it should be enabled by default, so set status to "okay" here.

Thanks

Xulin

Quoted 4 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 21 lines · Xulin Sun
Quoted 20 lines · Krzysztof Kozlowski
Quoted 19 lines · Xulin Sun

Support TPS65217 voltage regulator driver and TPS65217 Backlight driver. And enable them by default. This will avoid below booting failed information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

---
  arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
arch/arm/boot/dts/tps65217.dtsi +0 -0
index 0d463de5650f..f412e7476660 100644
@@ -13,6 +13,16 @@ &tps {
  	interrupt-controller;
  	#interrupt-cells = <1>;
 
Quoted 8 lines
Quoted 4 lines

arch/arm/boot/dts/tps65217.dtsi &tps { · line 18

Quoted 3 lines
arch/arm/boot/dts/tps65217.dtsi +3 -0
+	pmic {
+		compatible = "ti,tps65217-pmic";
+		status = "okay";

Why do you need status here?

It corresponds to the drvier: drivers/regulator/tps65217-regulator.c, and regulator is one of the main function of TPS65217.

status does not correspond to the driver.

Quoted 2 lines

I think it should be enabled by default, so set status to "okay" here.

It is the default. Is it disabled anywhere?

Best regards,
Krzysztof