Thread (109 messages) 109 messages, 7 authors, 2025-09-23

Re: [PATCH 23/38] arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address

From: Fei Shao <hidden>
Date: 2025-07-25 11:46:34
Also in: dri-devel, linux-crypto, linux-gpio, linux-media, linux-mediatek, linux-phy, linux-remoteproc, linux-sound, lkml

On Thu, Jul 24, 2025 at 5:49 PM AngeloGioacchino Del Regno
[off-list ref] wrote:
The PCIe TPHY is under the soc bus, which provides MMIO, and all
nodes under that must use the bus, otherwise those would clearly
be out of place.

Add ranges to the PCIe tphy and assign the address to the main
node to silence a dtbs_check warning, and fix the children to
use the MMIO range of t-phy.

Fixes: 963c3b0c47ec ("arm64: dts: mediatek: fix t-phy unit name")
Fixes: 918aed7abd2d ("arm64: dts: mt7986: add pcie related device nodes")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Fei Shao <redacted>
quoted hunk ↗ jump to hunk
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index 559990dcd1d1..3211905b6f86 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -428,16 +428,16 @@ pcie_intc: interrupt-controller {
                        };
                };

-               pcie_phy: t-phy {
+               pcie_phy: t-phy@11c00000 {
                        compatible = "mediatek,mt7986-tphy",
                                     "mediatek,generic-tphy-v2";
-                       ranges;
-                       #address-cells = <2>;
-                       #size-cells = <2>;
+                       ranges = <0 0 0x11c00000 0x20000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        status = "disabled";

-                       pcie_port: pcie-phy@11c00000 {
-                               reg = <0 0x11c00000 0 0x20000>;
+                       pcie_port: pcie-phy@0 {
+                               reg = <0 0x20000>;
                                clocks = <&clk40m>;
                                clock-names = "ref";
                                #phy-cells = <1>;
--
2.50.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help