diff mbox series

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

Message ID 47fd2b2225f52a2d5c3a91494ef7b9036e944199.1706517351.git.namcao@linutronix.de
State Accepted
Commit 6882255ac3107c58e1153311df8a8270087f8cb3
Delegated to: Andes
Headers show
Series Add device tree nodes needed by OpenSBI on Visionfive 2 | expand

Commit Message

Nam Cao Jan. 29, 2024, 8:43 a.m. UTC
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(+)

Comments

Leo Liang Jan. 31, 2024, 8:49 a.m. UTC | #1
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>
diff mbox series

Patch

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>;