Skip to contentSkip to conversation

arm64: dts: rockchip: fix GMAC clocks and USB OTG power on RK3568 boards

PATCH Applied Coia Prant 3 participants 13 messages Nov 2 – Nov 22

Subsystems (3)
lore
Share & tools
lore

Coia Prant

author
#0 lore raw

v3 cover arm64: dts: rockchip: fix GMAC clocks and USB OTG power on RK3568 boards

Changes since v1:
- Patch 5 (USB OTG power): Reworked the power tree based on the schematic. Instead of tying usb2phy0_otg directly to the boost, model the OR-ed 5V_OUT rail explicitly. Add vbat, 5v_boost, and 5v_out nodes, and fix the vin-supply of vcc5v0_usb30_otg0 to depend on 5v_out. Drop the incorrect phy-supply change on usb2phy0_otg.
- Patch 6 (modem power): New patch. Fix vcc3v4_rf vin-supply from vccin_5v to vcc_syson so the M.2 B-Key modem does not lose power when the board runs on battery.

Changes since v2:
- Patch 5: Fixed vbat min/max mismatch (both set to 3.7V) to satisfy the fixed-regulator constraints.
- Patch 5: Fixed vcc5v0_usb30_otg0 to depend on regulator_5v_out instead of bypassing it.
- Patch 6: Updated commit message to clarify this is a topology correction rather than a runtime hardware switch fix, as both rails are always-on.
- Cover letter: updated the summary for Patch 6.

===

This series fixes three classes of board-level issues found while bringing up several RK3568 boards.

The first four patches address GMAC clock parents. On these boards the DTS lists SCLK_GMACx in assigned-clocks but only provides a parent for SCLK_GMACx_RX_TX, so SCLK_GMACx keeps whatever parent the bootloader or the hardware reset left. Add CLK_MACx_2TOP explicitly so the GMAC main clock always comes from the internal source. BPI-R2 Pro additionally describes clock_in_out wrongly ("input" while the port is a fixed-link with no external 125 MHz clock); switch it to "output" to match the hardware. On RK3568 clock_in_out does not change the hardware clock routing today, so that part is a description fix.

Patch 5 fixes USB OTG power on the Ariaboard Photonicat. On battery power the USB port is dead because the 5V_OUT rail (which feeds the USB load switch) relies on a boost converter that is not enabled. Add the vbat, 5v_boost, and 5v_out regulator nodes to model the OR-ed power path from the schematic, restoring USB host functionality on battery.

Patch 6 fixes the M.2 B-Key modem power supply topology on the same board. The vcc3v4_rf regulator was incorrectly modeled as supplied by vccin_5v (external DC). Correct it to vcc_syson per the schematic to accurately reflect the hardware power tree.
---
Coia Prant (6):
arm64: dts: rockchip: fix GMAC clock parents on 9Tripod X3568 v4
arm64: dts: rockchip: fix GMAC clock parents on Graperain G3568 v2
arm64: dts: rockchip: fix GMAC clock setup on BPI-R2 Pro
arm64: dts: rockchip: fix GMAC clock parent on Photonicat
arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode
arm64: dts: rockchip: fix modem power supply topology on Photonicat

 .../dts/rockchip/rk3568-9tripod-x3568-v4.dts  |  4 +-
 .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts   |  4 +-
 .../rockchip/rk3568-graperain-g3568-v2.dts    |  4 +-
 .../boot/dts/rockchip/rk3568-photonicat.dts   | 53 +++++++++++++++++--
 4 files changed, 57 insertions(+), 8 deletions(-)
Signature · 1 line
2.47.3
author
#1 lore raw

PATCH v3 1/6 arm64: dts: rockchip: fix GMAC clock parents on 9Tripod X3568 v4

Both GMAC nodes list SCLK_GMACx in assigned-clocks, but only SCLK_GMACx_RX_TX gets a parent in assigned-clock-parents. SCLK_GMACx therefore keeps whatever parent the bootloader or the hardware reset left, which may or may not be the internal CLK_MACx_2TOP.

Add CLK_MACx_2TOP as the parent of SCLK_GMACx explicitly, so the GMAC main clock always comes from the internal clock source and does not depend on the bootloader state. The rate assignment is unchanged:
SCLK_GMACx_RX_TX stays at 0 (managed at runtime by rk_set_clk_tx_rate()), SCLK_GMACx stays at 125 MHz.

Fixes 156a530ed5ed ("arm64: dts: rockchip: Add devicetree for the 9Tripod X3568 v4")
---
 arch/arm64/boot/dts/rockchip/rk3568-9tripod-x3568-v4.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-9tripod-x3568-v4.dts +2 -2
index 4903e32d0ead0..d94bc34a31e67 100644
@@ -268,7 +268,7 @@ &cpu3 {
 
 &gmac0 {
 	assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
-	assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
+	assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
 	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	pinctrl-names = "default";
@@ -284,7 +284,7 @@ &gmac0_rgmii_clk
 
 &gmac1 {
 	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
-	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
+	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
 	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	pinctrl-names = "default";
Signature · 1 line
2.47.3
author
#2 lore raw

PATCH v3 2/6 arm64: dts: rockchip: fix GMAC clock parents on Graperain G3568 v2

In reply to Coia Prant

Both GMAC nodes list SCLK_GMACx in assigned-clocks, but only SCLK_GMACx_RX_TX gets a parent in assigned-clock-parents. SCLK_GMACx therefore keeps whatever parent the bootloader or the hardware reset left, which may or may not be the internal CLK_MACx_2TOP.

Add CLK_MACx_2TOP as the parent of SCLK_GMACx explicitly, so the GMAC main clock always comes from the internal clock source and does not depend on the bootloader state. The rate assignment is unchanged:
SCLK_GMACx_RX_TX stays at 0 (managed at runtime by rk_set_clk_tx_rate()), SCLK_GMACx stays at 125 MHz.

Fixes f296bb503a24 ("arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2")
---
 arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts +2 -2
index 4c55c7d211599..07cfc68b5f91b 100644
@@ -280,7 +280,7 @@ &cpu3 {
 
 &gmac0 {
 	assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
-	assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
+	assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
 	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	pinctrl-names = "default";
@@ -296,7 +296,7 @@ &gmac0_rgmii_clk
 
 &gmac1 {
 	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
-	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
+	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
 	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	pinctrl-names = "default";
Signature · 1 line
2.47.3
author
#3 lore raw

PATCH v3 3/6 arm64: dts: rockchip: fix GMAC clock setup on BPI-R2 Pro

In reply to Coia Prant

Both GMAC nodes rely on the internal 125 MHz GMAC main clock, but neither pins its rate explicitly. Add assigned-clock-rates = <0>, <125000000> so SCLK_GMACx is fixed at 125 MHz instead of whatever the bootloader or the hardware reset left. The RGMII speed clock (SCLK_GMACx_RX_TX) stays at 0, since it is managed at runtime by rk_set_clk_tx_rate().

For gmac0, also switch clock_in_out from "input" to "output". The port uses a fixed-link, and there is no external 125 MHz clock feeding the MAC, so "input" described a clock source that is not wired up. Note that on RK3568 clock_in_out does not change the hardware clock routing today (rk3568_ops has no io_clksel masks), so this corrects the description rather than the behaviour.

Fixes f901aaadaa2a ("arm64: dts: rockchip: Add Bananapi R2 Pro")
---
 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +3 -1
index 4d3ebe50b90ba..677b6261a3a1e 100644
@@ -206,7 +206,8 @@ &combphy2 {
 &gmac0 {
 	assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
 	assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
-	clock_in_out = "input";
+	assigned-clock-rates = <0>, <125000000>;
+	clock_in_out = "output";
 	phy-mode = "rgmii";
 	pinctrl-names = "default";
 	pinctrl-0 = <&gmac0_miim
@@ -232,6 +233,7 @@ fixed-link {
 &gmac1 {
 	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
 	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
+	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	phy-handle = <&rgmii_phy1>;
 	phy-mode = "rgmii";
Signature · 1 line
2.47.3
author
#4 lore raw

PATCH v3 4/6 arm64: dts: rockchip: fix GMAC clock parent on Photonicat

In reply to Coia Prant

The RGMII WAN port on the Ariaboard Photonicat uses SCLK_GMAC1 as the GMAC main clock and SCLK_GMAC1_RX_TX as the RGMII speed clock. Only the parent of SCLK_GMAC1_RX_TX is set, so SCLK_GMAC1 keeps whatever parent the bootloader or the hardware reset left.

Set the parent of SCLK_GMAC1 to CLK_MAC1_2TOP explicitly, so the GMAC main clock always uses the internal source and does not depend on the bootloader state. The rate assignment is unchanged: SCLK_GMAC1_RX_TX keeps its rate unset, SCLK_GMAC1 stays at 125 MHz.

Fixes ba124e06ce7b ("arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568")
---
 arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts +1 -1
index b719d5b661c43..7e0a2ab829209 100644
@@ -285,7 +285,7 @@ &gmac0 {
 /* Motorcomm YT8521SC WAN port */
 &gmac1 {
 	assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
-	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
+	assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
 	assigned-clock-rates = <0>, <125000000>;
 	clock_in_out = "output";
 	phy-handle = <&rgmii_phy>;
Signature · 1 line
2.47.3
author
#5 lore raw

PATCH v3 5/6 arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

In reply to Coia Prant

When the Ariaboard Photonicat runs on battery, the USB port has no power output and attached devices are not detected. With the external supply connected, the same port works fine.

Per the schematic, the 5V_OUT rail that feeds the USB load switch (U12, enabled by USB_HOST_PWREN_H) is the OR-ed combination of two sources:
- VCCIN_5V (external DC input), OR-ed via D16.
- 5V_BOOST from the VBAT boost converter (U16, enabled by BOOST_EN / GPIO4_D2), OR-ed via D5002.

The 5V_OUT rail has no enable pin of its own. Since the regulator framework can only model a single power supply dependency per fixed-regulator, add a regulator_5v_boost node for the VBAT boost converter, and a regulator_5v_out node to represent the OR-ed 5V_OUT rail. Bind the vin-supply of regulator_5v_out to regulator_5v_boost to ensure VBAT is boosted when the system runs on battery. When VCCIN_5V is present, D16 takes over.

The USB load switch (vcc5v0_usb30_otg0) is then supplied by regulator_5v_out. This restores USB host functionality on battery power, matching the vendor firmware behaviour.

---
 .../boot/dts/rockchip/rk3568-photonicat.dts   | 49 ++++++++++++++++++-
 1 file changed, 48 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts +48 -1
index 7e0a2ab829209..290e3ee97c709 100644
@@ -59,6 +59,47 @@ hdmi_con_in: endpoint {
 		};
 	};
 
+	regulator_5v_boost: regulator-5v-boost {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&boost_en>;
+		regulator-name = "5v_boost";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vbat>;
+	};
+
+	/*
+	 * 5V_OUT is the OR-ed combination of the VBAT boost (via D5002)
+	 * and VCCIN_5V (via D16).
+	 * It has no enable pin of its own.
+	 * Model it as a fixed regulator depending on the boost converter,
+	 * so that VBAT is boosted when running on battery.
+	 *
+	 * 5V_OUT supplies:
+	 * - VCC5V0_USB30_OTG0 (USB VBUS via U12 load switch)
+	 * - VCC5V_HDMI (HDMI 5V via D5000)
+	 * - J53 expansion header (Pin 1)
+	 */
+	regulator_5v_out: regulator-5v-out {
+		compatible = "regulator-fixed";
+		regulator-name = "5v_out";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&regulator_5v_boost>;
+	};
+
+	vbat: regulator-vbat {
+		compatible = "regulator-fixed";
+		regulator-name = "vbat";
+		regulator-min-microvolt = <3700000>;
+		regulator-max-microvolt = <3700000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
 	vcc_1v8: regulator-vcc-1v8 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_1v8";
@@ -148,7 +189,7 @@ vcc5v0_usb30_otg0: regulator-vcc5v0-usb30-otg0 {
 		regulator-name = "vcc5v0_usb30_otg0";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
-		vin-supply = <&vccin_5v>;
+		vin-supply = <&regulator_5v_out>;
 	};
 
 	vccin_5v: regulator-vccin-5v {
@@ -446,6 +487,12 @@ pcie_pwren_h: pcie-pwren-h {
 		};
 	};
 
+	power {
+		boost_en: boost-en {
+			rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	sdmmc0 {
 		sdmmc0_pwren: sdmmc0-pwren {
 			rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
Signature · 1 line
2.47.3
#6 lore raw

Re: [PATCH v3 5/6] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Hi,

Quoted 1 line

regulator_5v_boost: regulator-5v-boost {

I prefer to use vcc as a prefix for consistency.

arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts hdmi_con_in: endpoint { · line 79

Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts +5 -0
+	 * 5V_OUT is the OR-ed combination of the VBAT boost (via D5002)
+	 * and VCCIN_5V (via D16).
+	 * It has no enable pin of its own.
+	 * Model it as a fixed regulator depending on the boost converter,
+	 * so that VBAT is boosted when running on battery.

What are the benefits of doing this? This is not a real regulator. It is the same path as 5V_BOOST. D16 controls which channel the VIN of VCC5V0_USB30_OTG0 comes from.

author
#7 lore raw

Re: [PATCH v3 5/6] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Quoted 13 lines · Chukun Pan <[email protected]> 于2026年11月4日周三 20:40写道:

Hi,

Quoted 1 line

regulator_5v_boost: regulator-5v-boost {

I prefer to use vcc as a prefix for consistency.

arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts hdmi_con_in: endpoint { · line 79

Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts +5 -0
+      * 5V_OUT is the OR-ed combination of the VBAT boost (via D5002)
+      * and VCCIN_5V (via D16).
+      * It has no enable pin of its own.
+      * Model it as a fixed regulator depending on the boost converter,
+      * so that VBAT is boosted when running on battery.
Quoted 3 lines

What are the benefits of doing this? This is not a real regulator. It is the same path as 5V_BOOST. D16 controls which channel the VIN of VCC5V0_USB30_OTG0 comes from.

Hi,

Thanks for the feedback.

1. Naming: I'd prefer to keep the names as regulator-5v-boost and regulator-5v-out. These match the exact net names in the schematic (5V_BOOST and 5V_OUT). Adding a vcc prefix would break the 1:1 mapping between the DTS and the schematic, making it harder for anyone tracing the board power.

2. Regarding the 5V_OUT node: I understand your point that D16/D5002 are hardware ORing and there is no software control. However, 5V_OUT is a distinct net in the schematic. Keeping the node makes the DT power tree accurately reflect the hardware and clearly documents that both the USB VBUS and HDMI 5V domains share this OR-ed source.

The regulator-fixed binding supports modeling always-on fixed rails, so this doesn't break the regulator semantics. If the kernel later supports multiple vin-supply inputs, we can update this node to list both the boost and VCCIN_5V explicitly. For now, chaining vcc5v0_usb30_otg0 -> 5v_out -> 5v_boost is the most accurate representation.

Coia

#8 lore raw

Re: [PATCH v3 5/6] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Hi,

Quoted 3 lines

(5V_BOOST and 5V_OUT). Adding a vcc prefix would break the 1:1 mapping between the DTS and the schematic, making it harder for anyone tracing the board power.

I didn't mean to change the nodename, but rather aliases. BTW nodes should be sorted by nodename (placed at the top).

Quoted 4 lines

... However, 5V_OUT
is a distinct net in the schematic. Keeping the node makes the DT power tree accurately reflect the hardware and clearly documents that both the USB VBUS and HDMI 5V domains share this OR-ed source.

It is not an independent network. 5V_BOOST and 5V_OUT are on the same VOUT, only separated by a diode. The device tree describes the hardware. 5V_OUT is not a regulator, it has no enable control, so treating it as a standalone regulator is incorrect.

Quoted 3 lines

... For now, chaining
vcc5v0_usb30_otg0 -> 5v_out -> 5v_boost is the most accurate representation.

Adding a fake regulator is just a waste of startup time.

author
#9 lore raw

Re: [PATCH v3 5/6] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Quoted 20 lines · Chukun Pan <[email protected]> 于2026年11月6日周五 19:51写道:

Hi,

Quoted 3 lines

(5V_BOOST and 5V_OUT). Adding a vcc prefix would break the 1:1 mapping between the DTS and the schematic, making it harder for anyone tracing the board power.

I didn't mean to change the nodename, but rather aliases. BTW nodes should be sorted by nodename (placed at the top).

Quoted 4 lines

... However, 5V_OUT
is a distinct net in the schematic. Keeping the node makes the DT power tree accurately reflect the hardware and clearly documents that both the USB VBUS and HDMI 5V domains share this OR-ed source.

It is not an independent network. 5V_BOOST and 5V_OUT are on the same VOUT, only separated by a diode. The device tree describes the hardware. 5V_OUT is not a regulator, it has no enable control, so treating it as a standalone regulator is incorrect.

Quoted 5 lines
Quoted 3 lines

... For now, chaining
vcc5v0_usb30_otg0 -> 5v_out -> 5v_boost is the most accurate representation.

Adding a fake regulator is just a waste of startup time.

Hi,

Thanks for the feedback.

I understand your concern regarding 5V_OUT not being a standalone physical regulator. However, I'd prefer to keep the node for two reasons:

1. Consistency: The DTS already models other always-on fixed rails without any enable control (e.g., vccin_5v, vcc_sysin, vcc_syson). Keeping 5v_out is consistent with this established pattern in the same file.

2. Accuracy to the schematic: 5V_OUT is a distinct net where the external DC input and the boost output are OR-ed together. Keeping this node makes the DT power tree a 1:1 mapping to the hardware schematic, clearly documenting that both USB VBUS and HDMI 5V share this OR-ed source.

Regarding the startup time, a fixed-regulator without GPIO or clock controls does no hardware I/O during probe, so the overhead is negligible.

On the node ordering: the node is named regulator-5v-boost (starting with 'r'), so it is correctly sorted after battery and chosen.

Coia

#10 lore raw

Re: [PATCH v3 5/6] arm64: dts: rockchip: fix USB OTG power on Photonicat in battery mode

Hi,

Quoted 3 lines

I understand your concern regarding 5V_OUT not being a standalone physical regulator. However, I'd prefer to keep the node for two reasons:

It looks like you copied your previous reply.

Quoted 3 lines

Regarding the startup time, a fixed-regulator without GPIO or clock controls does no hardware I/O during probe, so the overhead is negligible.

Adding an uncontrolled regulator is not recommended. Similar discussions:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Quoted 2 lines

On the node ordering: the node is named regulator-5v-boost (starting with 'r'), so it is correctly sorted after battery and chosen

I misread it, sorry.

author
#11 lore raw

PATCH v3 6/6 arm64: dts: rockchip: fix modem power supply topology on Photonicat

In reply to Coia Prant

The vcc3v4_rf regulator supplies the M.2 B-Key 5G modem. It was incorrectly modeled as being supplied by vccin_5v (the external DC input, before the main power switch).

Per the schematic, VCC3V4_RF is actually derived from VCC_SYSON (the main system power rail after the power switch Q5013) via a ferrite bead (B1).

Change the vin-supply of vcc3v4_rf to vcc_syson to accurately reflect the hardware topology. While both vccin_5v and vcc_syson are always-on fixed regulators without runtime GPIO control, this ensures the DT power tree matches the schematic and traces the modem's power path correctly. It also clarifies that the modem relies on the main system rail rather than the external DC input directly.

Fixes ba124e06ce7b ("arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568")
---
 arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts +1 -1
index 290e3ee97c709..6ba70e5d9037e 100644
@@ -177,7 +177,7 @@ vcc3v4_rf: regulator-vcc3v4-rf {
 		regulator-name = "vcc3v4_rf";
 		regulator-min-microvolt = <3400000>;
 		regulator-max-microvolt = <3400000>;
-		vin-supply = <&vccin_5v>;
+		vin-supply = <&vcc_syson>;
 	};
 
 	vcc5v0_usb30_otg0: regulator-vcc5v0-usb30-otg0 {
Signature · 1 line
2.47.3
maintainer Applied
#12 lore raw

Re: (subset) [PATCH v3 0/6] arm64: dts: rockchip: fix GMAC clocks and USB OTG power on RK3568 boards

In reply to Coia Prant
Quoted 11 lines · Coia Prant

Changes since v1:
- Patch 5 (USB OTG power): Reworked the power tree based on the schematic. Instead of tying usb2phy0_otg directly to the boost, model the OR-ed 5V_OUT rail explicitly. Add vbat, 5v_boost, and 5v_out nodes, and fix the vin-supply of vcc5v0_usb30_otg0 to depend on 5v_out. Drop the incorrect phy-supply change on usb2phy0_otg.
- Patch 6 (modem power): New patch. Fix vcc3v4_rf vin-supply from vccin_5v to vcc_syson so the M.2 B-Key modem does not lose power when the board runs on battery.

[...]

Applied, thanks!

[1/6] arm64: dts: rockchip: fix GMAC clock parents on 9Tripod X3568 v4

      commit: 1b14b7c656147a8288b85aef4988007f0458e256
[2/6] arm64: dts: rockchip: fix GMAC clock parents on Graperain G3568 v2
      commit: 3ff840ec8cd331b304836ecd716c674fcdee15b9
[3/6] arm64: dts: rockchip: fix GMAC clock setup on BPI-R2 Pro
      commit: 39594d438bfe0961d975d5428a325dc07aa47342
[4/6] arm64: dts: rockchip: fix GMAC clock parent on Photonicat
      commit: 5925f9674f34ba53888fcd3ba21b143bfa835c27
[6/6] arm64: dts: rockchip: fix modem power supply topology on Photonicat
      commit: 9dc1e2851750ed78d46ea52028a69d3eb36b6a65

Best regards,

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