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

ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKC110

The S3C RTC requires 32768 Hz clock as input which is provided by PMIC.
However the PMIC is not described in DTS at all so at least add
a workaround to model its clock with a fixed-clock.

This fixes dtbs_check warnings:

rtc@e2800000: clocks: [[2, 145]] is too short
rtc@e2800000: clock-names: ['rtc'] is too short

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200907161141.31034-14-krzk@kernel.org

+9
+9
arch/arm/boot/dts/s5pv210-smdkc110.dts
··· 30 30 device_type = "memory"; 31 31 reg = <0x20000000 0x20000000>; 32 32 }; 33 + 34 + pmic_ap_clk: clock-0 { 35 + /* Workaround for missing PMIC and its clock */ 36 + compatible = "fixed-clock"; 37 + #clock-cells = <0>; 38 + clock-frequency = <32768>; 39 + }; 33 40 }; 34 41 35 42 &xusbxti { ··· 61 54 62 55 &rtc { 63 56 status = "okay"; 57 + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; 58 + clock-names = "rtc", "rtc_src"; 64 59 }; 65 60 66 61 &i2c0 {