[PATCH v2 0/2] Add device tree nodes needed by OpenSBI on Visionfive 2

This series adds 2 device tree nodes. These are needed by OpenSBI to perform reset/shutdown of the board.
v2: - rename "compatible" property to match the one in Linux. - extra clarification in commit messages.
Nam Cao (2): riscv: dts: jh7110: add power management unit controller node riscv: dts: starfive: add regulator device
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++ arch/riscv/dts/jh7110.dtsi | 6 ++++++ 2 files changed, 11 insertions(+)

JH7110 has a power management unit controller node. Add this node.
This device is used by OpenSBI during board reset/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 ec237a46ff..56e34fd560 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 Mon, Jan 29, 2024 at 09:43:08AM +0100, Nam Cao wrote:
JH7110 has a power management unit controller node. Add this node.
This device is used by OpenSBI during board reset/shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de
arch/riscv/dts/jh7110.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
Reviewed-by: Leo Yu-Chi Liang ycliang@andestech.com

Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de --- v2: "stf,axp15060-regulator" -> "x-powers,axp15060" to match Linux.
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 e40f57a150..fe4b3e71ae 100644 --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi @@ -122,6 +122,11 @@ pinctrl-0 = <&i2c5_pins>; status = "okay";
+ pmic@36 { + compatible = "x-powers,axp15060"; + reg = <0x36>; + }; + eeprom@50 { compatible = "atmel,24c04"; reg = <0x50>;

On Mon, Jan 29, 2024 at 09:43:09AM +0100, Nam Cao wrote:
Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.
Signed-off-by: Nam Cao namcao@linutronix.de
v2: "stf,axp15060-regulator" -> "x-powers,axp15060" to match Linux.
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by: Leo Yu-Chi Liang ycliang@andestech.com
participants (2)
-
Leo Liang
-
Nam Cao