devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support
@ 2024-01-17  4:33 Xulin Sun
  2024-01-17  7:24 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Xulin Sun @ 2024-01-17  4:33 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt
  Cc: devicetree, linux-kernel, 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]

Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
---
 arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
index 0d463de5650f..f412e7476660 100644
--- a/arch/arm/boot/dts/tps65217.dtsi
+++ b/arch/arm/boot/dts/tps65217.dtsi
@@ -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>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support
  2024-01-17  4:33 [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support Xulin Sun
@ 2024-01-17  7:24 ` Krzysztof Kozlowski
  2024-01-17  7:56   ` Xulin Sun
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-17  7:24 UTC (permalink / raw)
  To: Xulin Sun, robh+dt, krzysztof.kozlowski+dt, conor+dt
  Cc: devicetree, linux-kernel

On 17/01/2024 05:33, Xulin Sun wrote:
> 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]
> 
> Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
> ---
>  arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
> index 0d463de5650f..f412e7476660 100644
> --- a/arch/arm/boot/dts/tps65217.dtsi
> +++ b/arch/arm/boot/dts/tps65217.dtsi
> @@ -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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support
  2024-01-17  7:24 ` Krzysztof Kozlowski
@ 2024-01-17  7:56   ` Xulin Sun
  2024-01-17  8:01     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Xulin Sun @ 2024-01-17  7:56 UTC (permalink / raw)
  To: Krzysztof Kozlowski, robh+dt, krzysztof.kozlowski+dt, conor+dt
  Cc: devicetree, linux-kernel

On 1/17/24 15:24, Krzysztof Kozlowski wrote:
> On 17/01/2024 05:33, Xulin Sun wrote:
>> 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]
>>
>> Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
>> ---
>>   arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
>>   1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
>> index 0d463de5650f..f412e7476660 100644
>> --- a/arch/arm/boot/dts/tps65217.dtsi
>> +++ b/arch/arm/boot/dts/tps65217.dtsi
>> @@ -13,6 +13,16 @@ &tps {
>>   	interrupt-controller;
>>   	#interrupt-cells = <1>;
>>   
>> +	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

>
> Best regards,
> Krzysztof
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support
  2024-01-17  7:56   ` Xulin Sun
@ 2024-01-17  8:01     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-17  8:01 UTC (permalink / raw)
  To: Xulin Sun, robh+dt, krzysztof.kozlowski+dt, conor+dt
  Cc: devicetree, linux-kernel

On 17/01/2024 08:56, Xulin Sun wrote:
> On 1/17/24 15:24, Krzysztof Kozlowski wrote:
>> On 17/01/2024 05:33, Xulin Sun wrote:
>>> 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]
>>>
>>> Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
>>> ---
>>>   arch/arm/boot/dts/tps65217.dtsi | 10 ++++++++++
>>>   1 file changed, 10 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
>>> index 0d463de5650f..f412e7476660 100644
>>> --- a/arch/arm/boot/dts/tps65217.dtsi
>>> +++ b/arch/arm/boot/dts/tps65217.dtsi
>>> @@ -13,6 +13,16 @@ &tps {
>>>   	interrupt-controller;
>>>   	#interrupt-cells = <1>;
>>>   
>>> +	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.

> 
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-17  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17  4:33 [PATCH] ARM: dts: tps65217: add power regulator & backlight drivers support Xulin Sun
2024-01-17  7:24 ` Krzysztof Kozlowski
2024-01-17  7:56   ` Xulin Sun
2024-01-17  8:01     ` Krzysztof Kozlowski

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).