]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: microchip: add tsu clock to macb on pic64gx
authorConor Dooley <conor.dooley@microchip.com>
Tue, 7 Apr 2026 15:36:23 +0000 (16:36 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 5 May 2026 09:44:08 +0000 (10:44 +0100)
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/pic64gx.dtsi

index c164d7bc270a22683d4f15204479616fa0dfe97d..e9ec376b1776b61949fc19f2547f85ce4b9d3eb6 100644 (file)
                        interrupts = <64>, <65>, <66>, <67>, <68>, <69>;
                        /* Filled in by a bootloader */
                        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";
                };
                        interrupts = <70>, <71>, <72>, <73>, <74>, <75>;
                        /* Filled in by a bootloader */
                        local-mac-address = [00 00 00 00 00 00];
-                       clocks = <&clkcfg CLK_MAC1>, <&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_MAC1>;
                        status = "disabled";
                };