Skip to content

Commit a7f75e2

Browse files
ziyao233Paolo Abeni
authored andcommitted
riscv: dts: thead: Add APB clocks for TH1520 GMACs
Describe perisys-apb4-hclk as the APB clock for TH1520 SoC, which is essential for accessing GMAC glue registers. Fixes: 7e75667 ("riscv: dts: thead: Add TH1520 ethernet nodes") Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Drew Fustini <[email protected]> Tested-by: Drew Fustini <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 4cc339c commit a7f75e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

arch/riscv/boot/dts/thead/th1520.dtsi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,9 @@
297297
reg-names = "dwmac", "apb";
298298
interrupts = <67 IRQ_TYPE_LEVEL_HIGH>;
299299
interrupt-names = "macirq";
300-
clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC1>;
301-
clock-names = "stmmaceth", "pclk";
300+
clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC1>,
301+
<&clk CLK_PERISYS_APB4_HCLK>;
302+
clock-names = "stmmaceth", "pclk", "apb";
302303
snps,pbl = <32>;
303304
snps,fixed-burst;
304305
snps,multicast-filter-bins = <64>;
@@ -319,8 +320,9 @@
319320
reg-names = "dwmac", "apb";
320321
interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
321322
interrupt-names = "macirq";
322-
clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC0>;
323-
clock-names = "stmmaceth", "pclk";
323+
clocks = <&clk CLK_GMAC_AXI>, <&clk CLK_GMAC0>,
324+
<&clk CLK_PERISYS_APB4_HCLK>;
325+
clock-names = "stmmaceth", "pclk", "apb";
324326
snps,pbl = <32>;
325327
snps,fixed-burst;
326328
snps,multicast-filter-bins = <64>;

0 commit comments

Comments
 (0)