]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: dts: exynos: Add max77686 clocks for S3C RTC in SMDK5250
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 1 Sep 2020 07:54:12 +0000 (09:54 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 3 Sep 2020 20:47:28 +0000 (22:47 +0200)
Add clock-cells to max77686 PMIC node so its 32 kHz clocks could be used
later in the S3C RTC node. Except making the S3C RTC working, this also
fixes dtbs_check warnings:

  arch/arm/boot/dts/exynos5250-smdk5250.dt.yaml: rtc@101e0000: clocks: [[2, 337]] is too short
  arch/arm/boot/dts/exynos5250-smdk5250.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-9-krzk@kernel.org
arch/arm/boot/dts/exynos5250-smdk5250.dts

index 5c42df024adf3abcf5e5a4448e0e560dec65bcc9..00af7fb650805c637db97a240eb078a9bb8ff4b5 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/clock/maxim,max77686.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include "exynos5250.dtsi"
                reg = <0x50>;
        };
 
-       max77686@9 {
+       max77686: pmic@9 {
                compatible = "maxim,max77686";
                reg = <0x09>;
                interrupt-parent = <&gpx3>;
                interrupts = <2 IRQ_TYPE_NONE>;
                pinctrl-names = "default";
                pinctrl-0 = <&max77686_irq>;
+               #clock-cells = <1>;
                wakeup-source;
 
                voltage-regulators {
 
 &rtc {
        status = "okay";
+       clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
+       clock-names = "rtc", "rtc_src";
 };
 
 &sata {