summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/exynos5410-smdk5410.dts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-09-01 10:54:08 +0300
committerKrzysztof Kozlowski <krzk@kernel.org>2020-09-03 23:46:44 +0300
commit8dec8385bee4f77e9d09a897a01cab8643c78a7d (patch)
treef146049c14375ad2e49fc405e6fa9f66d7bd84e0 /arch/arm/boot/dts/exynos5410-smdk5410.dts
parent2495ddd2d17c20573463ac9c90ae6a83b79d7aa9 (diff)
downloadlinux-8dec8385bee4f77e9d09a897a01cab8643c78a7d.tar.xz
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
Diffstat (limited to 'arch/arm/boot/dts/exynos5410-smdk5410.dts')
-rw-r--r--arch/arm/boot/dts/exynos5410-smdk5410.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
index 5282b5deca86..2a3ade77a2de 100644
--- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
+++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
@@ -29,6 +29,13 @@
#clock-cells = <0>;
};
+ pmic_ap_clk: pmic-ap-clk {
+ /* Workaround for missing PMIC and its clock */
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ };
+
firmware@2037000 {
compatible = "samsung,secure-firmware";
reg = <0x02037000 0x1000>;
@@ -79,6 +86,11 @@
};
};
+&rtc {
+ clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
+ clock-names = "rtc", "rtc_src";
+};
+
&sromc {
pinctrl-names = "default";
pinctrl-0 = <&srom_ctl>, <&srom_ebi>;