Skip to contentSkip to conversation

ARM: dts: sun8i: Open FETA40i-C regulator aldo1

PATCH Applied Fuyao Kashizuku 3 participants 4 messages Dec 26, 2023 – Jan 23, 2024

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

PATCH v2 1/1 ARM: dts: sun8i: Open FETA40i-C regulator aldo1

The USB PHY in the Allwinner R40 SoC seems to rely on voltage on the VCC-TVIN/OUT supply pins for proper operation, on top of its own supply voltage on VCC-USB. Without a 3.3V voltage supplied to VCC-TV*, USB operation becomes unstable and can result in disconnects.

The Forlinx FETA40i-C SoM connects both the VCC-TVOUT and VCC-TVIN pins to the ALDO1 rail of the PMIC, so we need to enable that rail for USB operation. Since there is no supply property in the DT bindings for the USB core, we need to always enable the regulator.

This fixes unstable USB operation on boards using the Forlinx FETA40i-C module.

---
Changes in v2:
- Subject include board name.
- regulator name changed to vcc-3v3-tv-usb.
- explain why we need to enable the regulator.
- use full name of the commiter
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

 arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi +7 -0
index 9f39b5a2bb35..c12361d0317f 100644
@@ -42,6 +42,13 @@ &pio {
 	vcc-pg-supply = <&reg_dldo1>;
 };
 
+&reg_aldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-3v3-tv-usb";
+};
+
 &reg_aldo2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
Signature · 1 line
2.39.2
Reviewed-by on v2 1/1
#1 lore raw

On Tue, 26 Dec 2023 16:40:05 +0800
Fuyao Kashizuku <[email protected]> wrote:

Hi,

many thanks for the quick turnaround!

Quoted 10 lines

The USB PHY in the Allwinner R40 SoC seems to rely on voltage on the VCC-TVIN/OUT supply pins for proper operation, on top of its own supply voltage on VCC-USB. Without a 3.3V voltage supplied to VCC-TV*, USB operation becomes unstable and can result in disconnects.

The Forlinx FETA40i-C SoM connects both the VCC-TVOUT and VCC-TVIN pins to the ALDO1 rail of the PMIC, so we need to enable that rail for USB operation. Since there is no supply property in the DT bindings for the USB core, we need to always enable the regulator.

Quoted 4 lines

This fixes unstable USB operation on boards using the Forlinx FETA40i-C module.

Perfect, looks good to me now!

Thanks!
Andre

Quoted 29 lines

---
Changes in v2:
- Subject include board name.
- regulator name changed to vcc-3v3-tv-usb.
- explain why we need to enable the regulator.
- use full name of the commiter
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

 arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi +7 -0
index 9f39b5a2bb35..c12361d0317f 100644
@@ -42,6 +42,13 @@ &pio {
 	vcc-pg-supply = <&reg_dldo1>;
 };
 
+&reg_aldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-3v3-tv-usb";
+};
+
 &reg_aldo2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Fuyao Kashizuku

Dne torek, 26. december 2023 ob 09:40:05 CET je Fuyao Kashizuku napisal(a):

Quoted 10 lines

The USB PHY in the Allwinner R40 SoC seems to rely on voltage on the VCC-TVIN/OUT supply pins for proper operation, on top of its own supply voltage on VCC-USB. Without a 3.3V voltage supplied to VCC-TV*, USB operation becomes unstable and can result in disconnects.

The Forlinx FETA40i-C SoM connects both the VCC-TVOUT and VCC-TVIN pins to the ALDO1 rail of the PMIC, so we need to enable that rail for USB operation. Since there is no supply property in the DT bindings for the USB core, we need to always enable the regulator.

Quoted 4 lines

This fixes unstable USB operation on boards using the Forlinx FETA40i-C module.

Best regards,
Jernej

Quoted 30 lines

---
Changes in v2:
- Subject include board name.
- regulator name changed to vcc-3v3-tv-usb.
- explain why we need to enable the regulator.
- use full name of the commiter
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

 arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi +7 -0
index 9f39b5a2bb35..c12361d0317f 100644
@@ -42,6 +42,13 @@ &pio {
 	vcc-pg-supply = <&reg_dldo1>;
 };
 
+&reg_aldo1 {
+	regulator-always-on;
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-3v3-tv-usb";
+};
+
 &reg_aldo2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1800000>;
maintainer Applied
#3 lore raw
In reply to Fuyao Kashizuku

Dne torek, 26. december 2023 ob 09:40:05 CET je Fuyao Kashizuku napisal(a):

Quoted 10 lines

The USB PHY in the Allwinner R40 SoC seems to rely on voltage on the VCC-TVIN/OUT supply pins for proper operation, on top of its own supply voltage on VCC-USB. Without a 3.3V voltage supplied to VCC-TV*, USB operation becomes unstable and can result in disconnects.

The Forlinx FETA40i-C SoM connects both the VCC-TVOUT and VCC-TVIN pins to the ALDO1 rail of the PMIC, so we need to enable that rail for USB operation. Since there is no supply property in the DT bindings for the USB core, we need to always enable the regulator.

Quoted 4 lines

This fixes unstable USB operation on boards using the Forlinx FETA40i-C module.

Merged, thanks!

Best regards,
Jernej