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

ARM: dts: exynos: Correct S3C RTC bindings in SMDK5410

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 S3C RTC
and silences dtbs_check warnings like:

arch/arm/boot/dts/exynos5410-smdk5410.dt.yaml: rtc@101e0000: clocks: [[5, 317]] is too short
arch/arm/boot/dts/exynos5410-smdk5410.dt.yaml: rtc@101e0000: clock-names: ['rtc'] is too short

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

+12
+12
arch/arm/boot/dts/exynos5410-smdk5410.dts
··· 29 29 #clock-cells = <0>; 30 30 }; 31 31 32 + pmic_ap_clk: pmic-ap-clk { 33 + /* Workaround for missing PMIC and its clock */ 34 + compatible = "fixed-clock"; 35 + #clock-cells = <0>; 36 + clock-frequency = <32768>; 37 + }; 38 + 32 39 firmware@2037000 { 33 40 compatible = "samsung,secure-firmware"; 34 41 reg = <0x02037000 0x1000>; ··· 84 77 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 85 78 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; 86 79 }; 80 + }; 81 + 82 + &rtc { 83 + clocks = <&clock CLK_RTC>, <&pmic_ap_clk>; 84 + clock-names = "rtc", "rtc_src"; 87 85 }; 88 86 89 87 &sromc {