mediatek: mt7988: add missing clock for PCIe ports
authorDaniel Golle <daniel@makrotopia.org>
Fri, 15 Mar 2024 14:07:58 +0000 (14:07 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 15 Mar 2024 14:09:11 +0000 (14:09 +0000)
Add missing CLK_TOP_PEXTP_Px_SEL clock for each of the 4 PCIe interfaces
of the MT7988 SoC. Without that clock PCIe doesn't work reliable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/files-6.1/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a.dtsi

index 904339335f3c154ccad38cbd62c9b67511631405..52bfed89ee510efe5e8d31268b132b6730e134dd 100644 (file)
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P2>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P2>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P2>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P2>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P2>,
+                                <&topckgen CLK_TOP_PEXTP_P2_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie2_pins>;
                        phys = <&xphyu3port0 PHY_TYPE_PCIE>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P3>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P3>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P3>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P3>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P3>,
+                                <&topckgen CLK_TOP_PEXTP_P3_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie3_pins>;
                        #interrupt-cells = <1>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P0>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P0>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P0>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P0>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P0>,
+                                <&topckgen CLK_TOP_PEXTP_P0_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie0_pins>;
                        #interrupt-cells = <1>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P1>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P1>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P1>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P1>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P1>,
+                                <&topckgen CLK_TOP_PEXTP_P1_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie1_pins>;
                        #interrupt-cells = <1>;
index 904339335f3c154ccad38cbd62c9b67511631405..52bfed89ee510efe5e8d31268b132b6730e134dd 100644 (file)
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P2>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P2>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P2>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P2>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P2>,
+                                <&topckgen CLK_TOP_PEXTP_P2_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie2_pins>;
                        phys = <&xphyu3port0 PHY_TYPE_PCIE>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P3>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P3>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P3>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P3>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P3>,
+                                <&topckgen CLK_TOP_PEXTP_P3_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie3_pins>;
                        #interrupt-cells = <1>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P0>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P0>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P0>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P0>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P0>,
+                                <&topckgen CLK_TOP_PEXTP_P0_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie0_pins>;
                        #interrupt-cells = <1>;
                        clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P1>,
                                 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P1>,
                                 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P1>,
-                                <&infracfg CLK_INFRA_133M_PCIE_CK_P1>;
+                                <&infracfg CLK_INFRA_133M_PCIE_CK_P1>,
+                                <&topckgen CLK_TOP_PEXTP_P1_SEL>;
                        clock-names = "pl_250m", "tl_26m", "peri_26m",
-                                     "top_133m";
+                                     "top_133m", "pextp_clk";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pcie1_pins>;
                        #interrupt-cells = <1>;