Skip to contentSkip to conversation

arm64: ls1028a-qds: correct bus of rtc

PATCH Biwen Li 2 participants 2 messages Sep 4, 2019 – Oct 6, 2019

Subsystems (2)
lore
Share & tools
lore

Biwen Li

author
#0 lore raw

The rtc is on i2c2 bus(hardware), not on i2c1 channel 3, so correct it

---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +8 -5
index de6ef39f3118..6c0540ad9c59 100644
@@ -133,11 +133,6 @@
 				vcc-supply = <&sb_3v3>;
 			};
 
-			rtc@51 {
-				compatible = "nxp,pcf2129";
-				reg = <0x51>;
-			};
-
 			eeprom@56 {
 				compatible = "atmel,24c512";
 				reg = <0x56>;
@@ -166,6 +161,14 @@
 	};
 };
 
+&i2c1 {
+	status = "okay";
+	rtc@51 {
+		compatible = "nxp,pcf2129";
+		reg = <0x51>;
+	};
+};
+
 &sai1 {
 	status = "okay";
 };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Biwen Li

The rtc is on i2c2 bus(hardware), not on i2c1 channel 3, so correct it

This looks a like a fix. Do we need a Fixes tag for it?

Quoted 21 lines
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +0 -5
index de6ef39f3118..6c0540ad9c59 100644
@@ -133,11 +133,6 @@
 				vcc-supply = <&sb_3v3>;
 			};
 
-			rtc@51 {
-				compatible = "nxp,pcf2129";
-				reg = <0x51>;
-			};
-
 			eeprom@56 {
 				compatible = "atmel,24c512";
 				reg = <0x56>;

arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts line 165

Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +2 -0
@@ -166,6 +161,14 @@
 	};
 };
 
+&i2c1 {
+	status = "okay";

Please have a newline between properties and child node.

Shawn

Quoted 12 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +6 -0
+	rtc@51 {
+		compatible = "nxp,pcf2129";
+		reg = <0x51>;
+	};
+};
+
 &sai1 {
 	status = "okay";
 };
Signature · 1 line
2.17.1