[PATCH 1/2] riscv: dts: starfive: add regulator device

Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de --- arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi index e94f9fe826..388d29727f 100644 --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi @@ -127,6 +127,11 @@ pinctrl-0 = <&i2c5_pins>; status = "okay";
+ pmic@36 { + compatible = "stf,axp15060-regulator"; + reg = <0x36>; + }; + eeprom@50 { compatible = "atmel,24c04"; reg = <0x50>;

JH7110 has a power management unit controller node. Add this node.
This device is used by OpenSBI during board reset and shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de --- arch/riscv/dts/jh7110.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index 6d2675d6ce..2cdc683d49 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b/arch/riscv/dts/jh7110.dtsi @@ -473,6 +473,12 @@ status = "disabled"; };
+ power-controller@17030000 { + compatible = "starfive,jh7110-pmu"; + reg = <0x0 0x17030000 0x0 0x10000>; + interrupts = <111>; + }; + qspi: spi@13010000 { compatible = "cdns,qspi-nor"; reg = <0x0 0x13010000 0x0 0x10000

On Wed, 17 Jan 2024 12:15:25 +0100 Nam Cao namcao@linutronix.de wrote:
Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi index e94f9fe826..388d29727f 100644 --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi @@ -127,6 +127,11 @@ pinctrl-0 = <&i2c5_pins>; status = "okay";
- pmic@36 {
compatible = "stf,axp15060-regulator";
I should mention that Linux is using the string "x-powers,axp15060" for the same device, but OpenSBI is using this one. So I'm not entirely sure which one should I use here in U-Boot. If we use Linux's string, then OpenSBI needs to be changed.
reg = <0x36>;
- };
- eeprom@50 { compatible = "atmel,24c04"; reg = <0x50>;
participants (1)
-
Nam Cao