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

arm64: dts: nuvoton: combine NPCM845 reset and clk nodes

Combine the NPCM845 reset and clock controller nodes into a single node
with compatible "nuvoton,npcm845-reset" in nuvoton-common-npcm8xx.dtsi,
using the auxiliary device framework to provide clock functionality.

Update the register range to 0xC4 to cover the shared reset and clock
registers at 0xf0801000.

Remove the separate nuvoton,npcm845-clk node, as the reset driver now
handles clocks via an auxiliary device.

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

authored by

Tomer Maimon and committed by
Andrew Jeffery
2e6028f8 91f8329e

+3 -8
+3 -8
arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi
··· 42 42 interrupt-parent = <&gic>; 43 43 ranges; 44 44 45 - rstc: reset-controller@f0801000 { 45 + clk: rstc: reset-controller@f0801000 { 46 46 compatible = "nuvoton,npcm845-reset"; 47 - reg = <0x0 0xf0801000 0x0 0x78>; 48 - #reset-cells = <2>; 47 + reg = <0x0 0xf0801000 0x0 0xC4>; 49 48 nuvoton,sysgcr = <&gcr>; 50 - }; 51 - 52 - clk: clock-controller@f0801000 { 53 - compatible = "nuvoton,npcm845-clk"; 49 + #reset-cells = <2>; 54 50 #clock-cells = <1>; 55 - reg = <0x0 0xf0801000 0x0 0x1000>; 56 51 }; 57 52 58 53 apb {