]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: ti: k3-am64: Add PCIe ctrl node to main_conf region
authorAndrew Davis <afd@ti.com>
Wed, 2 Apr 2025 11:32:01 +0000 (17:02 +0530)
committerNishanth Menon <nm@ti.com>
Fri, 18 Apr 2025 18:28:12 +0000 (13:28 -0500)
This region is used for controlling the function of the PCIe IP. It is
compatible with "ti,j784s4-pcie-ctrl", add this here and use it with
the PCIe node.

Signed-off-by: Andrew Davis <afd@ti.com>
[j-choudhary@ti.com: Add changes to k3-am642-evm-pcie0-ep.dtso]
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20250402113201.151195-6-j-choudhary@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am64-main.dtsi
arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso

index 324eb44c258d37bb2da7f7152da93df51070fce4..d872a624601cbd4710e6cbe4044ed7420d6c6760 100644 (file)
                        reg = <0x00000014 0x4>;
                };
 
+               pcie0_ctrl: pcie-ctrl@4070 {
+                       compatible = "ti,j784s4-pcie-ctrl", "syscon";
+                       reg = <0x4070 0x4>;
+               };
+
                serdes_ln_ctrl: mux-controller@4080 {
                        compatible = "reg-mux";
                        reg = <0x4080 0x4>;
                interrupt-names = "link_state";
                interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
                device_type = "pci";
-               ti,syscon-pcie-ctrl = <&main_conf 0x4070>;
+               ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
                max-link-speed = <2>;
                num-lanes = <1>;
                power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
index 6b029539e0dbb421495b666f13a97b050824a83c..43275177485341f2a20792997103dcae0defbc84 100644 (file)
@@ -46,6 +46,6 @@
                max-functions = /bits/ 8 <1>;
                phys = <&serdes0_pcie_link>;
                phy-names = "pcie-phy";
-               ti,syscon-pcie-ctrl = <&main_conf 0x4070>;
+               ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
        };
 };