Skip to contentSkip to conversation

clk: rockchip: rk3568: add stubs for CLK_PCIEPHY_REF clocks

PATCH New Vasily Khoruzhick 1 participant 2 messages Mar 8, 2023

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

PATCH v3 1/2 clk: rockchip: rk3568: add stubs for CLK_PCIEPHY_REF clocks

Device tree contains assigned-clock-rates property for these, but default value will work just fine

---
v3: add r-b tag from Kever
v2: implement stubs for CLK_PCIEPHY_REF instead of dropping assigned-clock properties

 drivers/clk/rockchip/clk_rk3568.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/clk/rockchip/clk_rk3568.c +3 -0
index 253b69504f..1c6adc56f9 100644
@@ -425,6 +425,9 @@ static ulong rk3568_pmuclk_set_rate(struct clk *clk, ulong rate)
 	case PCLK_PMU:
 		ret = rk3568_pmu_set_pmuclk(priv, rate);
 		break;
+	case CLK_PCIEPHY0_REF:
+	case CLK_PCIEPHY1_REF:
+		return 0;
 	default:
 		return -ENOENT;
 	}
Signature · 1 line
2.39.2
#1 lore raw

PATCH v3 2/2 arm64:dts: rk356x-u-boot: do not drop combphy1 assigned-clocks/rates

We have stubs for CLK_PCIEPHY_REF now, so there is no reason to modify the dtsi.

This essentialy reverts commit 5bec4b0de785
("arm64: dts: rk356x-u-boot: Drop combphy1 assigned-clocks/rates").

---
v3: change patch subject and description from default revert commit to a bit more verbose
v2: revert dropping assigned-clock properties because we have stubs for CLK_PCIEPHY_REF clocks now

 arch/arm/dts/rk356x-u-boot.dtsi | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/dts/rk356x-u-boot.dtsi +0 -5
index 2331641049..1709604b22 100644
@@ -34,11 +34,6 @@
 	};
 };
 
-&combphy1 {
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-rates;
-};
-
 &cru {
 	u-boot,dm-pre-reloc;
 	status = "okay";
Signature · 1 line
2.39.2