Skip to contentSkip to conversation

arm64: dts: rockchip: Add missing rockchip,pipe-grf to rk3568 PCIe v3 PHY

PATCH In review Aurelien Jarno 2 participants 4 messages Sep 26, 2022

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

PATCH 1/1 arm64: dts: rockchip: Add missing rockchip,pipe-grf to rk3568 PCIe v3 PHY

This commit fixes the error message

rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap

during boot by providing the missing rockchip,pipe-grf property.

Fixes faedfa5b40f0 ("arm64: dts: rockchip: Add PCIe v3 nodes to rk3568")
---
 arch/arm64/boot/dts/rockchip/rk3568.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3568.dtsi +1 -0
index ba67b58f05b7..8818b283ba11 100644
@@ -56,6 +56,7 @@ pcie30phy: phy@fe8c0000 {
 		clock-names = "refclk_m", "refclk_n", "pclk";
 		resets = <&cru SRST_PCIE30PHY>;
 		reset-names = "phy";
+		rockchip,pipe-grf = <&pipegrf>;
 		rockchip,phy-grf = <&pcie30_phy_grf>;
 		status = "disabled";
 	};
Signature · 1 line
2.35.1
#1 lore raw
Quoted 4 lines · Aurelien Jarno

This commit fixes the error message

rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap

The pipe grf only is used on the rk3588 device for this phy.

Quoted 24 lines

during boot by providing the missing rockchip,pipe-grf property.

Fixes faedfa5b40f0 ("arm64: dts: rockchip: Add PCIe v3 nodes to rk3568")
---
 arch/arm64/boot/dts/rockchip/rk3568.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3568.dtsi +1 -1
index ba67b58f05b7..8818b283ba11 100644
@@ -56,6 +56,7 @@ pcie30phy: phy@fe8c0000 {
                clock-names = "refclk_m", "refclk_n", "pclk";
                resets = <&cru SRST_PCIE30PHY>;
                reset-names = "phy";
+               rockchip,pipe-grf = <&pipegrf>;
                rockchip,phy-grf = <&pcie30_phy_grf>;
                status = "disabled";
        };
--

2.35.1

#2 lore raw
Quoted 7 lines · Peter Geis
Quoted 4 lines · Aurelien Jarno

This commit fixes the error message

rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap

The pipe grf only is used on the rk3588 device for this phy.

Ok, looking at the code in details, I confirm that. Does it mean the change should be done at the phy driver level, to only look for rockchip,pipe-grf on the rk3588 device?

Signature · 2 lines
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net
#3 lore raw
Quoted 6 lines · Aurelien Jarno
Quoted 4 lines · Peter Geis
Quoted 3 lines · Aurelien Jarno

This commit fixes the error message

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap

The pipe grf only is used on the rk3588 device for this phy.

Ok, looking at the code in details, I confirm that. Does it mean the change should be done at the phy driver level, to only look for rockchip,pipe-grf on the rk3588 device?

That would be reasonable, yes.

Quoted 4 lines

--
Aurelien Jarno GPG: 4096R/1DDD8C9B
[email protected] http://www.aurel32.net