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 Tiny4412

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 fixed-clock. This fixes S3C RTC and
silences dtbs_check warnings like:

arch/arm/boot/dts/exynos4412-tiny4412.dt.yaml: rtc@10070000: clocks: [[7, 346]] is too short
arch/arm/boot/dts/exynos4412-tiny4412.dt.yaml: rtc@10070000: clock-names: ['rtc'] is too short

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

+9
+9
arch/arm/boot/dts/exynos4412-tiny4412.dts
··· 65 65 compatible = "samsung,clock-xusbxti"; 66 66 clock-frequency = <24000000>; 67 67 }; 68 + 69 + pmic_ap_clk: pmic-ap-clk { 70 + /* Workaround for missing clock on PMIC */ 71 + compatible = "fixed-clock"; 72 + #clock-cells = <0>; 73 + clock-frequency = <32768>; 74 + }; 68 75 }; 69 76 70 77 panel { ··· 117 110 118 111 &rtc { 119 112 status = "okay"; 113 + clocks = <&clock CLK_RTC>, <&pmic_ap_clk>; 114 + clock-names = "rtc", "rtc_src"; 120 115 }; 121 116 122 117 &sdhci_2 {