Skip to contentSkip to conversation

arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator

PATCH In review Ondrej Jirman 2 participants 3 messages Feb 23, 2020 – Feb 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator

Orange Pi PC2 features sy8106a regulator just like Orange Pi PC.

---
 .../dts/allwinner/sun50i-h5-orangepi-pc2.dts  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +20 -0
index 70b5f09984218..7b2572dc84857 100644
@@ -93,6 +93,10 @@ &codec {
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &de {
 	status = "okay";
 };
@@ -168,6 +172,22 @@ &ohci3 {
 	status = "okay";
 };
 
+&r_i2c {
+	status = "okay";
+
+	reg_vdd_cpux: regulator@65 {
+		compatible = "silergy,sy8106a";
+		reg = <0x65>;
+		regulator-name = "vdd-cpux";
+		silergy,fixed-microvolt = <1100000>;
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-ramp-delay = <200>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+
 &spi0  {
 	status = "okay";
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · Ondrej Jirman

Orange Pi PC2 features sy8106a regulator just like Orange Pi PC.

---
 .../dts/allwinner/sun50i-h5-orangepi-pc2.dts  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

Having a changelog would be great

Quoted 25 lines
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +10 -0
index 70b5f09984218..7b2572dc84857 100644
@@ -93,6 +93,10 @@ &codec {
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &de {
 	status = "okay";
 };
@@ -168,6 +172,22 @@ &ohci3 {
 	status = "okay";
 };
 
+&r_i2c {
+	status = "okay";
+
+	reg_vdd_cpux: regulator@65 {
+		compatible = "silergy,sy8106a";
+		reg = <0x65>;

arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts &ohci3 { · line 190

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +10 -0
+		regulator-name = "vdd-cpux";
+		silergy,fixed-microvolt = <1100000>;
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-ramp-delay = <200>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+

Looks like you fixed the issues reported by Samuel though. I've applied it.

Maxime

#2 lore raw
Quoted 41 lines · Maxime Ripard
Quoted 7 lines · Ondrej Jirman

Orange Pi PC2 features sy8106a regulator just like Orange Pi PC.

---
 .../dts/allwinner/sun50i-h5-orangepi-pc2.dts  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

Having a changelog would be great

Quoted 30 lines
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +15 -0
index 70b5f09984218..7b2572dc84857 100644
@@ -93,6 +93,10 @@ &codec {
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_vdd_cpux>;
+};
+
 &de {
 	status = "okay";
 };
@@ -168,6 +172,22 @@ &ohci3 {
 	status = "okay";
 };
 
+&r_i2c {
+	status = "okay";
+
+	reg_vdd_cpux: regulator@65 {
+		compatible = "silergy,sy8106a";
+		reg = <0x65>;
+		regulator-name = "vdd-cpux";
+		silergy,fixed-microvolt = <1100000>;
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-ramp-delay = <200>;
Quoted 8 lines

arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts &ohci3 { · line 190

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +5 -0
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+

Looks like you fixed the issues reported by Samuel though. I've applied it.

Sorry, yes, I just did that. Re-ordering + removing a comment and changing the fixed voltage.

Thank you,

	o.
Quoted 1 line

Maxime