Skip to content

Commit

Permalink
arm64: dts: meson-sm1: Fix the pwm regulator supply properties
Browse files Browse the repository at this point in the history
[ Upstream commit 0b26fa8 ]

After enabling CONFIG_REGULATOR_DEBUG=y we observe below debug logs.
Changes help link VDDCPU pwm regulator to 12V regulator supply
instead of dummy regulator.

[   11.602281] pwm-regulator regulator-vddcpu: Looking up pwm-supply property
               in node /regulator-vddcpu failed
[   11.602344] VDDCPU: supplied by regulator-dummy
[   11.602365] regulator-dummy: could not add device link regulator.11: -ENOENT
[   11.602548] VDDCPU: 721 <--> 1022 mV at 1022 mV, enabled

Fixes: 88d537b ("arm64: dts: meson: convert meson-sm1-odroid-c4 to dtsi")
Fixes: 700ab8d ("arm64: dts: khadas-vim3: add support for the SM1 based VIM3L")
Fixes: 3d9e764 ("arm64: dts: meson-sm1-sei610: enable DVFS")
Fixes: 976e920 ("arm64: dts: meson-sm1: add Banana PI BPI-M5 board dts")

Cc: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20210919202918.3556-4-linux.amoon@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
moonlinux authored and gregkh committed Nov 18, 2021
1 parent 2b9828e commit 876ba79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts
Expand Up @@ -173,7 +173,7 @@
regulator-min-microvolt = <690000>;
regulator-max-microvolt = <1050000>;

vin-supply = <&dc_in>;
pwm-supply = <&dc_in>;

pwms = <&pwm_AO_cd 1 1250 0>;
pwm-dutycycle-range = <100 0>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts
Expand Up @@ -24,7 +24,7 @@
regulator-min-microvolt = <690000>;
regulator-max-microvolt = <1050000>;

vin-supply = <&vsys_3v3>;
pwm-supply = <&vsys_3v3>;

pwms = <&pwm_AO_cd 1 1250 0>;
pwm-dutycycle-range = <100 0>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
Expand Up @@ -116,7 +116,7 @@
regulator-min-microvolt = <721000>;
regulator-max-microvolt = <1022000>;

vin-supply = <&main_12v>;
pwm-supply = <&main_12v>;

pwms = <&pwm_AO_cd 1 1250 0>;
pwm-dutycycle-range = <100 0>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts
Expand Up @@ -185,7 +185,7 @@
regulator-min-microvolt = <690000>;
regulator-max-microvolt = <1050000>;

vin-supply = <&dc_in>;
pwm-supply = <&dc_in>;

pwms = <&pwm_AO_cd 1 1500 0>;
pwm-dutycycle-range = <100 0>;
Expand Down

0 comments on commit 876ba79

Please sign in to comment.