arm64: dts: imx8mp-verdin: board regulators: add always-on
Subsystems (2)
PATCH 1/1 arm64: dts: imx8mp-verdin: board regulators: add always-on
From: Max Krummenacher <[email protected]>
These regulators are switched on by HW during power up and can not be influenced by SW.
Set the always-on property.
---
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +3 -0
@@ -62,6 +62,7 @@ button-wakeup { /* Carrier Board Supplies */ reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <1800000>; regulator-min-microvolt = <1800000>; regulator-name = "+V1.8_SW";
@@ -69,6 +70,7 @@ reg_1p8v: regulator-1p8v { reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <3300000>; regulator-min-microvolt = <3300000>; regulator-name = "+V3.3_SW";
@@ -76,6 +78,7 @@ reg_3p3v: regulator-3p3v { reg_5p0v: regulator-5p0v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <5000000>; regulator-min-microvolt = <5000000>; regulator-name = "+V5_SW";
Signature · 1 line
2.35.3
Hi Max,
(CC'ing Mark and Liam)
Thank you for the patch.
Quoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
These regulators are switched on by HW during power up and can not be influenced by SW.
Set the always-on property.
Is this needed ? When a fixed regulator has no control GPIO or clock, as is the case here, I would expect the driver and/or regulator core to understand that it's always on, as the alternative is always-off, which is pointless :-) Mark, Liam, what do you think ?
Quoted 35 lines
Signed-off-by Max Krummenacher <[email protected]>---
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 3 +++ 1 file changed, 3 insertions(+)arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +3
-0@@ -62,6 +62,7 @@ button-wakeup { /* Carrier Board Supplies */ reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <1800000>; regulator-min-microvolt = <1800000>; regulator-name = "+V1.8_SW";@@ -69,6 +70,7 @@ reg_1p8v: regulator-1p8v { reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <3300000>; regulator-min-microvolt = <3300000>; regulator-name = "+V3.3_SW";@@ -76,6 +78,7 @@ reg_3p3v: regulator-3p3v { reg_5p0v: regulator-5p0v { compatible = "regulator-fixed"; + regulator-always-on; regulator-max-microvolt = <5000000>; regulator-min-microvolt = <5000000>; regulator-name = "+V5_SW";
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 11 lines · Laurent Pinchart
Quoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
These regulators are switched on by HW during power up and can not be influenced by SW.
Set the always-on property.Is this needed ? When a fixed regulator has no control GPIO or clock, as is the case here, I would expect the driver and/or regulator core to understand that it's always on, as the alternative is always-off, which is pointless :-) Mark, Liam, what do you think ?
If there's no physical control setting always-on does nothing.
Quoted 8 lines · Mark Brown
Quoted 7 lines · Laurent Pinchart
Quoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
These regulators are switched on by HW during power up and can not be influenced by SW.
Set the always-on property.
Quoted 6 lines
Quoted 4 lines
Is this needed ? When a fixed regulator has no control GPIO or clock, as is the case here, I would expect the driver and/or regulator core to understand that it's always on, as the alternative is always-off, which is pointless :-) Mark, Liam, what do you think ?
If there's no physical control setting always-on does nothing.
The patch was posted because of a warning on trying to disable an unused regulator.
However this was changed with
261f06315cf7 ("regulator: Flag uncontrollable regulators as always_on").
Max was testing with a kernel without this patch in and forgot to verify on latest upstream kernel.
Just disregard this.
Francesco
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel