]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: socfpga: arria10: Add ptp_ref clock to ethernet nodes
authorDalon Westergreen <dalon.westergreen@linux.intel.com>
Thu, 19 Mar 2020 19:27:39 +0000 (12:27 -0700)
committerDinh Nguyen <dinguyen@kernel.org>
Fri, 20 Mar 2020 19:27:39 +0000 (14:27 -0500)
The ptp_ref clock for Arria10 defaults to using the peripheral
pll emac ptp clock.  Without the ptp_ref clock in the gmac nodes
the driver defaults to the gmac main clock resulting in an
incorrect period for the ptp counter.

Signed-off-by: Dalon Westergreen <dalon.westergreen@linux.intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/socfpga_arria10.dtsi

index 2a86e72d97918a36f445e6319513aa3e2364c74b..3b8571b8b41290d358692a639f700392bcb2e1fb 100644 (file)
                        snps,perfect-filter-entries = <128>;
                        tx-fifo-depth = <4096>;
                        rx-fifo-depth = <16384>;
-                       clocks = <&l4_mp_clk>;
-                       clock-names = "stmmaceth";
+                       clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
+                       clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
                        reset-names = "stmmaceth", "stmmaceth-ocp";
                        snps,axi-config = <&socfpga_axi_setup>;
                        snps,perfect-filter-entries = <128>;
                        tx-fifo-depth = <4096>;
                        rx-fifo-depth = <16384>;
-                       clocks = <&l4_mp_clk>;
-                       clock-names = "stmmaceth";
+                       clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
+                       clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
                        reset-names = "stmmaceth", "stmmaceth-ocp";
                        snps,axi-config = <&socfpga_axi_setup>;
                        snps,perfect-filter-entries = <128>;
                        tx-fifo-depth = <4096>;
                        rx-fifo-depth = <16384>;
-                       clocks = <&l4_mp_clk>;
-                       clock-names = "stmmaceth";
+                       clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
+                       clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
                        reset-names = "stmmaceth", "stmmaceth-ocp";
                        snps,axi-config = <&socfpga_axi_setup>;