]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 24 Jul 2025 08:38:59 +0000 (10:38 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 12 Sep 2025 14:11:31 +0000 (16:11 +0200)
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 <fshao@chromium.org>
Link: https://lore.kernel.org/r/20250724083914.61351-24-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7986a.dtsi

index a9e079fd42c6cf3f2138537da60a79871a26f8a2..a8972330a7b89c022cd71500bdd3c883a9051e8e 100644 (file)
                        };
                };
 
-               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>;