ARM: dts: qcom-sdx55: switch PCIe QMP PHY to new style of bindings
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 20 Aug 2023 14:20:35 +0000 (17:20 +0300)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 02:44:07 +0000 (19:44 -0700)
Change the PCIe QMP PHY to use newer style of QMP PHY bindings (single
resource region, no per-PHY subnodes).

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230820142035.89903-19-dmitry.baryshkov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-sdx55.dtsi

index 55ce87b7525394c5c95d8eef6487be23e65c32e5..4b0039ccd0da02b8a8d4f21a4739e93ac7e0898b 100644 (file)
 
                        power-domains = <&gcc PCIE_GDSC>;
 
-                       phys = <&pcie_lane>;
+                       phys = <&pcie_phy>;
                        phy-names = "pciephy";
 
                        status = "disabled";
                        resets = <&gcc GCC_PCIE_BCR>;
                        reset-names = "core";
                        power-domains = <&gcc PCIE_GDSC>;
-                       phys = <&pcie_lane>;
+                       phys = <&pcie_phy>;
                        phy-names = "pciephy";
                        max-link-speed = <3>;
                        num-lanes = <2>;
 
                pcie_phy: phy@1c07000 {
                        compatible = "qcom,sdx55-qmp-pcie-phy";
-                       reg = <0x01c07000 0x1c4>;
+                       reg = <0x01c07000 0x2000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges;
                        clocks = <&gcc GCC_PCIE_AUX_PHY_CLK_SRC>,
                                 <&gcc GCC_PCIE_CFG_AHB_CLK>,
                                 <&gcc GCC_PCIE_0_CLKREF_CLK>,
-                                <&gcc GCC_PCIE_RCHNG_PHY_CLK>;
+                                <&gcc GCC_PCIE_RCHNG_PHY_CLK>,
+                                <&gcc GCC_PCIE_PIPE_CLK>;
                        clock-names = "aux",
                                      "cfg_ahb",
                                      "ref",
-                                     "refgen";
+                                     "refgen",
+                                     "pipe";
+
+                       clock-output-names = "pcie_pipe_clk";
+                       #clock-cells = <0>;
+
+                       #phy-cells = <0>;
 
                        resets = <&gcc GCC_PCIE_PHY_BCR>;
                        reset-names = "phy";
                        assigned-clock-rates = <100000000>;
 
                        status = "disabled";
-
-                       pcie_lane: lanes@1c06000 {
-                               reg = <0x01c06000 0x104>, /* tx0 */
-                                     <0x01c06200 0x328>, /* rx0 */
-                                     <0x01c07200 0x1e8>, /* pcs */
-                                     <0x01c06800 0x104>, /* tx1 */
-                                     <0x01c06a00 0x328>, /* rx1 */
-                                     <0x01c07600 0x800>; /* pcs_misc */
-                               clocks = <&gcc GCC_PCIE_PIPE_CLK>;
-                               clock-names = "pipe0";
-
-                               #phy-cells = <0>;
-                               clock-output-names = "pcie_pipe_clk";
-                       };
                };
 
                ipa: ipa@1e40000 {