Skip to contentSkip to conversation

Add phy+vcc supply to NanoPi R5S and Q64-B

PATCH Applied Diederik de Haas 2 participants 4 messages May 3, 2025 – May 5, 2025

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

cover Add phy+vcc supply to NanoPi R5S and Q64-B

Testing on my NanoPi R5S and Quartz64 Model B brought some more issues with power supplies to light, so fix them as well.

Diederik de Haas (2):
arm64: dts: rockchip: Add phy-supply to gmac0 on NanoPi R5S
arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3566-quartz64-b

 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts | 1 +
 arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.49.0
#1 lore raw

PATCH 1/2 arm64: dts: rockchip: Add phy-supply to gmac0 on NanoPi R5S

According to paragraph "7.16. Power" of the RTL8211F-CG datasheet, gmac0 needs to have a 3.3V power supply.
On page 22 of the NanoPi R5S version 2204, that is identified as VCC_GEPHY_3V3 which is connected to the VCC_3V3 power source.

This fixes the following warning:

rk_gmac-dwmac fe2a0000.ethernet: supply phy not found, using dummy regulator

---
 arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts +1 -0
index e50f1585244a..805cb23493e8 100644
@@ -61,6 +61,7 @@ &gmac0 {
 	clock_in_out = "output";
 	phy-handle = <&rgmii_phy0>;
 	phy-mode = "rgmii";
+	phy-supply = <&vcc_3v3>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&gmac0_miim
 		     &gmac0_tx_bus2
Signature · 1 line
2.49.0
#2 lore raw

PATCH 2/2 arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3566-quartz64-b

In reply to Diederik de Haas

The Quartz64 Model B has a Winbound 25Q64DWZPIG SPI flash chip, identified as 'U13' on the component placement schematic.
In the Quartz 64 Model-B Schematic from 20220124 on page 17, we can see that the VCC connector is connected to VCCIO_FLASH and page 4 shows that that in turn is connected to the VCCIO2 domain.
That domain uses vcc_1v8 as its power source.

This fixes the following warning:

spi-nor spi4.0: supply vcc not found, using dummy regulator

---
 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts +1 -0
index 5707321a1144..f8cf03380636 100644
@@ -648,6 +648,7 @@ flash@0 {
 		spi-max-frequency = <24000000>;
 		spi-rx-bus-width = <4>;
 		spi-tx-bus-width = <1>;
+		vcc-supply = <&vcc_1v8>;
 	};
 };
 
Signature · 1 line
2.49.0
maintainer Applied
#3 lore raw
In reply to Diederik de Haas
Quoted 8 lines · Diederik de Haas

Testing on my NanoPi R5S and Quartz64 Model B brought some more issues with power supplies to light, so fix them as well.

Diederik de Haas (2):
arm64: dts: rockchip: Add phy-supply to gmac0 on NanoPi R5S
arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3566-quartz64-b

[...]

Applied, thanks!

[1/2] arm64: dts: rockchip: Add phy-supply to gmac0 on NanoPi R5S

      commit: fdc68be8a8acbea9630c3bca560b7a1cf3a952e2
[2/2] arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3566-quartz64-b
      commit: ec79aee752c6b5c7695cd82a57a8a9249d09316d

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>