]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: microchip: add tsu clock to macb on mpfs
authorConor Dooley <conor.dooley@microchip.com>
Thu, 20 Nov 2025 09:58:45 +0000 (09:58 +0000)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 24 Mar 2026 18:34:05 +0000 (18:34 +0000)
In increment mode, the tsu clock for the macb is provided separately to
the pck, usually the same clock as the reference to the rtc provided by
an off-chip oscillator. pclk is 150 MHz typically, and the reference is
either 100 MHz or 125 MHz, so having the tsu clock is required for
correct rate selection.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/microchip/mpfs.dtsi

index 0fb94581b6cbef76356abc8798e1a436d3a45207..bf004e10d60d57347a8623f4bd1fca57bb9c3814 100644 (file)
                        interrupt-parent = <&plic>;
                        interrupts = <64>, <65>, <66>, <67>, <68>, <69>;
                        local-mac-address = [00 00 00 00 00 00];
-                       clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
-                       clock-names = "pclk", "hclk";
+                       clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>, <&refclk>;
+                       clock-names = "pclk", "hclk", "tsu_clk";
                        resets = <&mss_top_sysreg CLK_MAC0>;
                        status = "disabled";
                };
                        interrupt-parent = <&plic>;
                        interrupts = <70>, <71>, <72>, <73>, <74>, <75>;
                        local-mac-address = [00 00 00 00 00 00];
-                       clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
-                       clock-names = "pclk", "hclk";
+                       clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>, <&refclk>;
+                       clock-names = "pclk", "hclk", "tsu_clk";
                        resets = <&mss_top_sysreg CLK_MAC1>;
                        status = "disabled";
                };