summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos4412-tiny4412.dts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-08-30 15:51:59 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-09-02 17:48:07 +0200
commit6511f11a49825a3ef0fc6529bee84716d58f3c4d (patch)
treeb51962b759c5209ad5500866a2dd1242d26b9bec /arch/arm/boot/dts/exynos4412-tiny4412.dts
parentARM: dts: exynos: Correct S3C RTC bindings in SMDK4412 (diff)
downloadlinux-6511f11a49825a3ef0fc6529bee84716d58f3c4d.tar.xz
linux-6511f11a49825a3ef0fc6529bee84716d58f3c4d.zip
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
Diffstat (limited to 'arch/arm/boot/dts/exynos4412-tiny4412.dts')
-rw-r--r--arch/arm/boot/dts/exynos4412-tiny4412.dts9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts b/arch/arm/boot/dts/exynos4412-tiny4412.dts
index 7512c86e634e..017b26108bb0 100644
--- a/arch/arm/boot/dts/exynos4412-tiny4412.dts
+++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts
@@ -65,6 +65,13 @@
compatible = "samsung,clock-xusbxti";
clock-frequency = <24000000>;
};
+
+ pmic_ap_clk: pmic-ap-clk {
+ /* Workaround for missing clock on PMIC */
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ };
};
panel {
@@ -110,6 +117,8 @@
&rtc {
status = "okay";
+ clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
+ clock-names = "rtc", "rtc_src";
};
&sdhci_2 {