Skip to contentSkip to conversation

ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

PATCH Superseded Markus Reichl 2 participants 2 messages Mar 30, 2015

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 ARM: dts: exynos5422-odroidxu3: add 'rtc_src' clock to rtc node

The Exynos5422 SoC has a s3c6410 RTC where the source clock is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards. It is based in v4.0-rc2.

---
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---

 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
arch/arm/boot/dts/exynos5422-odroidxu3.dts +8 -5
index a519c86..ac663ec 100644
@@ -11,6 +11,7 @@
 */
 
 /dts-v1/;
+#include <dt-bindings/clock/samsung,s2mps11.h>
 #include "exynos5800.dtsi"
 
 / {
@@ -44,7 +45,7 @@
 	hsi2c_4: i2c@12CA0000 {
 		status = "okay";
 
-		s2mps11_pmic@66 {
+		s2mps11: s2mps11_pmic@66 {
 			compatible = "samsung,s2mps11-pmic";
 			reg = <0x66>;
 			s2mps11,buck2-ramp-delay = <12>;
@@ -274,10 +275,6 @@
 			reg = <0x50>;
 		};
 	};
-
-	rtc@101E0000 {
-		status = "okay";
-	};
 };
 
 &hdmi {
@@ -369,3 +366,9 @@
 		shunt-resistor = <10000>;
 	};
 };
+
+&rtc {
+	status = "okay";
+	clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
+	clock-names = "rtc", "rtc_src";
+};
Signature · 1 line
1.9.1
#1 lore raw

2015-03-30 16:16 GMT+02:00 Markus Reichl <[email protected]>:

Quoted 30 lines

The Exynos5422 SoC has a s3c6410 RTC where the source clock is now a mandatory property.

This patch fixes probe failure of s3c-rtc on Odroid-XU3 boards. It is based in v4.0-rc2.

---
Changes since v1:
1. Dropped Documentation.
2. Split into 2 parts.
---

 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1 -0
index a519c86..ac663ec 100644
@@ -11,6 +11,7 @@
 */
 
 /dts-v1/;
+#include <dt-bindings/clock/samsung,s2mps11.h>
 #include "exynos5800.dtsi"
 
 / {

arch/arm/boot/dts/exynos5422-odroidxu3.dts line 48

Quoted 5 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1 -1
@@ -44,7 +45,7 @@
        hsi2c_4: i2c@12CA0000 {
                status = "okay";
 
-               s2mps11_pmic@66 {
+               s2mps11: s2mps11_pmic@66 {

Why this is needed? This phandle is not used later.

Rest looks fine.

Best regards,
Krzysztof