Skip to contentSkip to conversation

Add device tree nodes needed by OpenSBI on Visionfive 2

PATCH In review Nam Cao 2 participants 5 messages Jan 29, 2024 – Jan 31, 2024 RISC-V

lore
Share & tools
lore

Nam Cao

author
#0 lore raw

v2 cover 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(+)
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH v2 1/2 riscv: dts: jh7110: add power management unit controller node

JH7110 has a power management unit controller node. Add this node.

This device is used by OpenSBI during board reset/shutdown.

---
 arch/riscv/dts/jh7110.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/dts/jh7110.dtsi +6 -0
index ec237a46ff..56e34fd560 100644
@@ -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
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH v2 2/2 riscv: dts: starfive: add regulator device

In reply to Nam Cao

Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.

---
v2: "stf,axp15060-regulator" -> "x-powers,axp15060" to match Linux.

 arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi +5 -0
index e40f57a150..fe4b3e71ae 100644
@@ -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>;
Signature · 1 line
2.39.2
Reviewed-by on v2 2/2
#4 lore raw

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

In reply to Nam Cao
Quoted 9 lines · Nam Cao

Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown.

---
v2: "stf,axp15060-regulator" -> "x-powers,axp15060" to match Linux.

 arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
 1 file changed, 5 insertions(+)