diff mbox series

[PATCHv2,1/3] ARM: dts: meson8b: odroidc1: Fix the pwm regulator supply properties

Message ID 20210705112358.3554-2-linux.amoon@gmail.com
State Accepted
Commit 876228e9f935f19c7afc7ba394d17e2ec9143b65
Headers show
Series Fix the pwm regulator supply properties | expand

Commit Message

Anand Moon July 5, 2021, 11:23 a.m. UTC
After enabling CONFIG_REGULATOR_DEBUG=y we observer below debug logs.
Changes help link VCCK and VDDEE pwm regulator to 5V regulator supply
instead of dummy regulator.

[    7.117140] pwm-regulator regulator-vcck: Looking up pwm-supply from device tree
[    7.117153] pwm-regulator regulator-vcck: Looking up pwm-supply property in node /regulator-vcck failed
[    7.117184] VCCK: supplied by regulator-dummy
[    7.117194] regulator-dummy: could not add device link regulator.8: -ENOENT
[    7.117266] VCCK: 860 <--> 1140 mV at 986 mV, enabled
[    7.118498] VDDEE: will resolve supply early: pwm
[    7.118515] pwm-regulator regulator-vddee: Looking up pwm-supply from device tree
[    7.118526] pwm-regulator regulator-vddee: Looking up pwm-supply property in node /regulator-vddee failed
[    7.118553] VDDEE: supplied by regulator-dummy
[    7.118563] regulator-dummy: could not add device link regulator.9: -ENOENT

Fixes: 524d96083b66 ("ARM: dts: meson8b: odroidc1: add the CPU voltage regulator")
Fixes: 8bdf38be712d ("ARM: dts: meson8b: odroidc1: add the VDDEE regulator")

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
V1 - Fix the commit subject and commit message
---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Martin Blumenstingl July 8, 2021, 12:58 p.m. UTC | #1
On Mon, Jul 5, 2021 at 1:25 PM Anand Moon <linux.amoon@gmail.com> wrote:
>

> After enabling CONFIG_REGULATOR_DEBUG=y we observer below debug logs.

I think there's a typo here: observer -> observe
maybe Kevin or Neil can fix this up (in this and the following two
patches) while applying the patch so you don't have to re-spin a v3

> Changes help link VCCK and VDDEE pwm regulator to 5V regulator supply

> instead of dummy regulator.

>

> [    7.117140] pwm-regulator regulator-vcck: Looking up pwm-supply from device tree

> [    7.117153] pwm-regulator regulator-vcck: Looking up pwm-supply property in node /regulator-vcck failed

> [    7.117184] VCCK: supplied by regulator-dummy

> [    7.117194] regulator-dummy: could not add device link regulator.8: -ENOENT

> [    7.117266] VCCK: 860 <--> 1140 mV at 986 mV, enabled

> [    7.118498] VDDEE: will resolve supply early: pwm

> [    7.118515] pwm-regulator regulator-vddee: Looking up pwm-supply from device tree

> [    7.118526] pwm-regulator regulator-vddee: Looking up pwm-supply property in node /regulator-vddee failed

> [    7.118553] VDDEE: supplied by regulator-dummy

> [    7.118563] regulator-dummy: could not add device link regulator.9: -ENOENT

>

> Fixes: 524d96083b66 ("ARM: dts: meson8b: odroidc1: add the CPU voltage regulator")

> Fixes: 8bdf38be712d ("ARM: dts: meson8b: odroidc1: add the VDDEE regulator")

>

> Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

> Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

> Signed-off-by: Anand Moon <linux.amoon@gmail.com>

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Neil Armstrong July 26, 2021, 8:06 a.m. UTC | #2
Hi,

On 08/07/2021 14:58, Martin Blumenstingl wrote:
> On Mon, Jul 5, 2021 at 1:25 PM Anand Moon <linux.amoon@gmail.com> wrote:

>>

>> After enabling CONFIG_REGULATOR_DEBUG=y we observer below debug logs.

> I think there's a typo here: observer -> observe

> maybe Kevin or Neil can fix this up (in this and the following two

> patches) while applying the patch so you don't have to re-spin a v3


Fixed while applying !

> 

>> Changes help link VCCK and VDDEE pwm regulator to 5V regulator supply

>> instead of dummy regulator.

>>

>> [    7.117140] pwm-regulator regulator-vcck: Looking up pwm-supply from device tree

>> [    7.117153] pwm-regulator regulator-vcck: Looking up pwm-supply property in node /regulator-vcck failed

>> [    7.117184] VCCK: supplied by regulator-dummy

>> [    7.117194] regulator-dummy: could not add device link regulator.8: -ENOENT

>> [    7.117266] VCCK: 860 <--> 1140 mV at 986 mV, enabled

>> [    7.118498] VDDEE: will resolve supply early: pwm

>> [    7.118515] pwm-regulator regulator-vddee: Looking up pwm-supply from device tree

>> [    7.118526] pwm-regulator regulator-vddee: Looking up pwm-supply property in node /regulator-vddee failed

>> [    7.118553] VDDEE: supplied by regulator-dummy

>> [    7.118563] regulator-dummy: could not add device link regulator.9: -ENOENT

>>

>> Fixes: 524d96083b66 ("ARM: dts: meson8b: odroidc1: add the CPU voltage regulator")

>> Fixes: 8bdf38be712d ("ARM: dts: meson8b: odroidc1: add the VDDEE regulator")

>>

>> Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

>> Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

>> Signed-off-by: Anand Moon <linux.amoon@gmail.com>

> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

> 


Neil
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index c440ef94e082..04356bc639fa 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -131,7 +131,7 @@  vcck: regulator-vcck {
 		regulator-min-microvolt = <860000>;
 		regulator-max-microvolt = <1140000>;
 
-		vin-supply = <&p5v0>;
+		pwm-supply = <&p5v0>;
 
 		pwms = <&pwm_cd 0 12218 0>;
 		pwm-dutycycle-range = <91 0>;
@@ -163,7 +163,7 @@  vddee: regulator-vddee {
 		regulator-min-microvolt = <860000>;
 		regulator-max-microvolt = <1140000>;
 
-		vin-supply = <&p5v0>;
+		pwm-supply = <&p5v0>;
 
 		pwms = <&pwm_cd 1 12218 0>;
 		pwm-dutycycle-range = <91 0>;