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

ARM: dts: wpcm450: Add clock controller node

This declares the clock controller and the necessary 48 Mhz reference
clock in the WPCM450 device. Switching devices over to the clock
controller is intentionally done in a separate patch to give time for
the clock controller driver to land.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20221104161850.2889894-5-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Jonathan Neuschäfer and committed by
Joel Stanley
362e8be2 4b90b148

+17
+17
arch/arm/boot/dts/nuvoton-wpcm450.dtsi
··· 37 37 #clock-cells = <0>; 38 38 }; 39 39 40 + refclk: clock-48mhz { 41 + /* 48 MHz reference oscillator */ 42 + compatible = "fixed-clock"; 43 + clock-output-names = "ref"; 44 + clock-frequency = <48000000>; 45 + #clock-cells = <0>; 46 + }; 47 + 40 48 soc { 41 49 compatible = "simple-bus"; 42 50 #address-cells = <1>; ··· 55 47 gcr: syscon@b0000000 { 56 48 compatible = "nuvoton,wpcm450-gcr", "syscon", "simple-mfd"; 57 49 reg = <0xb0000000 0x200>; 50 + }; 51 + 52 + clk: clock-controller@b0000200 { 53 + compatible = "nuvoton,wpcm450-clk"; 54 + reg = <0xb0000200 0x100>; 55 + clocks = <&refclk>; 56 + clock-names = "ref"; 57 + #clock-cells = <1>; 58 + #reset-cells = <1>; 58 59 }; 59 60 60 61 serial0: serial@b8000000 {