riscv: dts: thead: Add APB clocks for TH1520 GMACs
authorYao Zi <ziyao@disroot.org>
Fri, 8 Aug 2025 09:36:56 +0000 (09:36 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Aug 2025 10:52:21 +0000 (12:52 +0200)
Describe perisys-apb4-hclk as the APB clock for TH1520 SoC, which is
essential for accessing GMAC glue registers.

Fixes: 7e756671a664 ("riscv: dts: thead: Add TH1520 ethernet nodes")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Tested-by: Drew Fustini <fustini@kernel.org>
Link: https://patch.msgid.link/20250808093655.48074-5-ziyao@disroot.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
arch/riscv/boot/dts/thead/th1520.dtsi

index 42724bf7e90e08fac326c464d0f080e3bd2cd59b..03f1d731904994cf1f93b8fb51ae01eb165e574d 100644 (file)
                        reg-names = "dwmac", "apb";
                        interrupts = <67 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "macirq";
-                       clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC1>;
-                       clock-names = "stmmaceth", "pclk";
+                       clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC1>,
+                                <&clk CLK_PERISYS_APB4_HCLK>;
+                       clock-names = "stmmaceth", "pclk", "apb";
                        snps,pbl = <32>;
                        snps,fixed-burst;
                        snps,multicast-filter-bins = <64>;
                        reg-names = "dwmac", "apb";
                        interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "macirq";
-                       clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC0>;
-                       clock-names = "stmmaceth", "pclk";
+                       clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC0>,
+                                <&clk CLK_PERISYS_APB4_HCLK>;
+                       clock-names = "stmmaceth", "pclk", "apb";
                        snps,pbl = <32>;
                        snps,fixed-burst;
                        snps,multicast-filter-bins = <64>;