Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: nuvoton: add refclk and update peripheral clocks for NPCM845

Add a 25 MHz fixed-clock node (refclk) in the NPCM845-EVB board device
tree to represent the external reference clock used by the NPCM845 reset
and clock controller.

Update peripherals (timer0, watchdog0-2) in the NPCM845 device tree to
reference this refclk directly instead of the previous clock controller
output (NPCM8XX_CLK_REFCLK).

Depends-on: arm64: dts: nuvoton: Combine NPCM845 reset and clk nodes

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Link: https://patch.msgid.link/20250706134207.2168184-3-tmaimon77@gmail.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>

authored by

Tomer Maimon and committed by
Andrew Jeffery
13587bef 2e6028f8

+11 -4
+5 -4
arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi
··· 47 47 reg = <0x0 0xf0801000 0x0 0xC4>; 48 48 nuvoton,sysgcr = <&gcr>; 49 49 #reset-cells = <2>; 50 + clocks = <&refclk>; 50 51 #clock-cells = <1>; 51 52 }; 52 53 ··· 72 71 compatible = "nuvoton,npcm845-timer"; 73 72 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 74 73 reg = <0x8000 0x1C>; 75 - clocks = <&clk NPCM8XX_CLK_REFCLK>; 74 + clocks = <&refclk>; 76 75 clock-names = "refclk"; 77 76 }; 78 77 ··· 144 143 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; 145 144 reg = <0x801c 0x4>; 146 145 status = "disabled"; 147 - clocks = <&clk NPCM8XX_CLK_REFCLK>; 146 + clocks = <&refclk>; 148 147 syscon = <&gcr>; 149 148 }; 150 149 ··· 153 152 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 154 153 reg = <0x901c 0x4>; 155 154 status = "disabled"; 156 - clocks = <&clk NPCM8XX_CLK_REFCLK>; 155 + clocks = <&refclk>; 157 156 syscon = <&gcr>; 158 157 }; 159 158 ··· 162 161 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 163 162 reg = <0xa01c 0x4>; 164 163 status = "disabled"; 165 - clocks = <&clk NPCM8XX_CLK_REFCLK>; 164 + clocks = <&refclk>; 166 165 syscon = <&gcr>; 167 166 }; 168 167 };
+6
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-evb.dts
··· 19 19 memory@0 { 20 20 reg = <0x0 0x0 0x0 0x40000000>; 21 21 }; 22 + 23 + refclk: refclk-25mhz { 24 + compatible = "fixed-clock"; 25 + clock-frequency = <25000000>; 26 + #clock-cells = <0>; 27 + }; 22 28 }; 23 29 24 30 &serial0 {