Skip to contentSkip to conversation

Add I2C and enable M41T0M6 RTC

PATCH RESEND Applied Bhuvanchandra DV 2 participants 4 messages Nov 13, 2014 – Nov 19, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

v2 cover Add I2C and enable M41T0M6 RTC

Add I2C support on Colibri VFxx moduels and enable M41T0M6 RTC available on Colibri carrier boards.

Bhuvanchandra DV (2):
ARM: dts: vf-colibri: Add I2C support
ARM: dts: vf-colibri-eval-v3.dts: Enable ST-M41T0M6 RTC

 arch/arm/boot/dts/vf-colibri-eval-v3.dtsi |   12 +++++++++++-
 arch/arm/boot/dts/vf-colibri.dtsi         |   13 +++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH RESEND v2 1/2 ARM: dts: vf-colibri: Add I2C support

---
 arch/arm/boot/dts/vf-colibri-eval-v3.dtsi |    6 +++++-
 arch/arm/boot/dts/vf-colibri.dtsi         |   13 +++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
arch/arm/boot/dts/vf-colibri-eval-v3.dtsi +5 -1
index 80e8fbc..7324bdc 100644
@@ -33,6 +33,10 @@
 	status = "okay";
 };
 
+&i2c0 {
+	status = "okay";
+};
+
 &pwm0 {
 	status = "okay";
 };
@@ -51,4 +55,4 @@
 
 &uart2 {
 	status = "okay";
-};
\ No newline at end of file
+};
arch/arm/boot/dts/vf-colibri.dtsi +13 -0
index ab40367..471eec0 100644
@@ -39,6 +39,12 @@
 	pinctrl-0 = <&pinctrl_fec1>;
 };
 
+&i2c0 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c0>;
+};
+
 &pwm0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_pwm0>;
@@ -102,6 +108,13 @@
 			>;
 		};
 
+		pinctrl_i2c0: i2c0grp {
+			fsl,pins = <
+				VF610_PAD_PTB14__I2C0_SCL		0x37ff
+				VF610_PAD_PTB15__I2C0_SDA		0x37ff
+			>;
+		};
+
 		pinctrl_pwm0: pwm0grp {
 			fsl,pins = <
 				VF610_PAD_PTB0__FTM0_CH0		0x1182
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH RESEND v2 2/2 ARM: dts: vf-colibri-eval-v3.dts: Enable ST-M41T0M6 RTC

In reply to Bhuvanchandra DV

ST-M41T0M6 is available on Colibri carrier boards. Hence enable M41T0M6 RTC.

---
 arch/arm/boot/dts/vf-colibri-eval-v3.dtsi |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/vf-colibri-eval-v3.dtsi +6 -0
index 7324bdc..20251a3 100644
@@ -35,6 +35,12 @@
 
 &i2c0 {
 	status = "okay";
+
+	/* M41T0M6 real time clock on carrier board */
+	rtc: m41t0m6 at 68 {
+		compatible = "st,m41t00";
+		reg = <0x68>;
+	};
 };
 
 &pwm0 {
Signature · 1 line
1.7.9.5
Applied
#3 lore raw
In reply to Bhuvanchandra DV
Quoted 6 lines · Bhuvanchandra DV

Add I2C support on Colibri VFxx moduels and enable M41T0M6 RTC available on Colibri carrier boards.

Bhuvanchandra DV (2):
ARM: dts: vf-colibri: Add I2C support
ARM: dts: vf-colibri-eval-v3.dts: Enable ST-M41T0M6 RTC

Applied both, thanks.

Quoted 8 lines
 arch/arm/boot/dts/vf-colibri-eval-v3.dtsi |   12 +++++++++++-
 arch/arm/boot/dts/vf-colibri.dtsi         |   13 +++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5