* [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S
@ 2026-05-20 10:00 Chukun Pan
2026-05-30 2:10 ` Chukun Pan
0 siblings, 1 reply; 4+ messages in thread
From: Chukun Pan @ 2026-05-20 10:00 UTC (permalink / raw)
To: Yixun Lan
Cc: Rob Herring, Paul Walmsley, Alexandre Ghiti, Albert Ou,
Palmer Dabbelt, Conor Dooley, Krzysztof Kozlowski, linux-riscv,
linux-kernel, devicetree, spacemit, Chukun Pan
Enable the i2c8 interface and add the connected SpacemiT P1 PMIC and
its associated regulators to support voltage regulation on the board.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
.../boot/dts/spacemit/k1-orangepi-r2s.dts | 134 ++++++++++++++++++
1 file changed, 134 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
index 1ecc40749e5a..b13a8d6a2670 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
@@ -13,6 +13,7 @@ / {
compatible = "xunlong,orangepi-r2s", "spacemit,k1";
aliases {
+ i2c8 = &i2c8;
serial0 = &uart0;
ethernet0 = ð0;
ethernet1 = ð1;
@@ -22,6 +23,15 @@ chosen {
stdout-path = "serial0";
};
+ vcc4v0: regulator-vcc4v0 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc4v0";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <4000000>;
+ regulator-max-microvolt = <4000000>;
+ };
+
vcc5v0_usb: regulator-vcc5v0-usb {
compatible = "regulator-fixed";
enable-active-high;
@@ -94,6 +104,130 @@ rgmii1: phy@1 {
};
};
+&i2c8 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c8_cfg>;
+ status = "okay";
+
+ pmic@41 {
+ compatible = "spacemit,p1";
+ reg = <0x41>;
+ interrupts = <64>;
+ vin1-supply = <&vcc4v0>;
+ vin2-supply = <&vcc4v0>;
+ vin3-supply = <&vcc4v0>;
+ vin4-supply = <&vcc4v0>;
+ vin5-supply = <&vcc4v0>;
+ vin6-supply = <&vcc4v0>;
+ aldoin-supply = <&vcc4v0>;
+ dldoin1-supply = <&buck5>;
+ dldoin2-supply = <&buck5>;
+
+ regulators {
+ buck1 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3450000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ buck2 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3450000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ buck3_1v8: buck3 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ buck4_3v3: buck4 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ buck5: buck5 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3450000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ buck6 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3450000>;
+ regulator-ramp-delay = <5000>;
+ regulator-always-on;
+ };
+
+ aldo1_3v3: aldo1 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ regulator-boot-on;
+ };
+
+ aldo2 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ aldo3 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ aldo4 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ dldo1 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ regulator-boot-on;
+ };
+
+ dldo2 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ dldo3 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ dldo4 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ regulator-always-on;
+ };
+
+ dldo5 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ dldo6 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ regulator-always-on;
+ };
+
+ dldo7 {
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <3400000>;
+ };
+ };
+ };
+};
+
&pdma {
status = "okay";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S
2026-05-20 10:00 [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S Chukun Pan
@ 2026-05-30 2:10 ` Chukun Pan
2026-05-30 8:27 ` Andre Heider
2026-06-01 6:31 ` Yixun Lan
0 siblings, 2 replies; 4+ messages in thread
From: Chukun Pan @ 2026-05-30 2:10 UTC (permalink / raw)
To: amadeus
Cc: alex, aou, conor+dt, devicetree, dlan, krzk+dt, linux-kernel,
linux-riscv, palmer, pjw, robh, spacemit
Hi,
> Enable the i2c8 interface and add the connected SpacemiT P1 PMIC and
> its associated regulators to support voltage regulation on the board.
friendly ping
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S
2026-05-30 2:10 ` Chukun Pan
@ 2026-05-30 8:27 ` Andre Heider
2026-06-01 6:31 ` Yixun Lan
1 sibling, 0 replies; 4+ messages in thread
From: Andre Heider @ 2026-05-30 8:27 UTC (permalink / raw)
To: Chukun Pan
Cc: alex, aou, conor+dt, devicetree, dlan, krzk+dt, linux-kernel,
linux-riscv, palmer, pjw, robh, spacemit
Hi Chukun,
On 30.05.26 4:10 AM, Chukun Pan wrote:
> Hi,
>
>> Enable the i2c8 interface and add the connected SpacemiT P1 PMIC and
>> its associated regulators to support voltage regulation on the board.
>
> friendly ping
nice to see how all the k1 dts files are progressing ;)
Looking at the two opi ones some bits are still missing:
rv2:
- i2c8 alias
- i2c2 + eeprom + onie,tlv-layout + alias
r2s:
- sys-led
- i2c2 + eeprom + onie,tlv-layout + alias
- pcie
- qspi + spi-nor + vendor partition layout
You seems to own both, do you plan to work on that?
Best regards,
Andre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S
2026-05-30 2:10 ` Chukun Pan
2026-05-30 8:27 ` Andre Heider
@ 2026-06-01 6:31 ` Yixun Lan
1 sibling, 0 replies; 4+ messages in thread
From: Yixun Lan @ 2026-06-01 6:31 UTC (permalink / raw)
To: Chukun Pan
Cc: alex, aou, conor+dt, devicetree, krzk+dt, linux-kernel,
linux-riscv, palmer, pjw, robh, spacemit
Hi Chukun,
On 10:10 Sat 30 May , Chukun Pan wrote:
> Hi,
>
> > Enable the i2c8 interface and add the connected SpacemiT P1 PMIC and
> > its associated regulators to support voltage regulation on the board.
>
> friendly ping
Ok, will take it, so
Reviewed-by: Yixun Lan <dlan@kernel.org>
--
Yixun Lan (dlan)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-01 6:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20 10:00 [PATCH 1/1] riscv: dts: spacemit: enable PMIC on OrangePi R2S Chukun Pan
2026-05-30 2:10 ` Chukun Pan
2026-05-30 8:27 ` Andre Heider
2026-06-01 6:31 ` Yixun Lan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox