Skip to contentSkip to conversation

Add RTC support to iwg20d

PATCH New Fabrizio Castro 3 participants 6 messages Feb 19, 2018 – Mar 7, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add RTC support to iwg20d

This patch series aims at adding RTC support to the iwg20d board from iWave.
The commits from this series backport board specific DT support and defconfig support.

Biju Das (3):
ARM: dts: iwg20d-q7: Add RTC support
ARM: shmobile: Enable BQ32000 rtc in shmobile_defconfig
ARM: multi_v7_defconfig: Enable BQ32000 RTC driver

 arch/arm/boot/dts/r8a7743-iwg20d-q7.dts | 18 ++++++++++++++++++
 arch/arm/configs/multi_v7_defconfig     |  1 +
 arch/arm/configs/shmobile_defconfig     |  1 +
 3 files changed, 20 insertions(+)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/3 ARM: dts: iwg20d-q7: Add RTC support

From: Biju Das <[email protected]>

Define the iWave RainboW-G20D-Qseven board dependent part of the RTC device node.

(cherry picked from commit e0e63658c2f291e0672fdf96df1f9f2963a6a9f6)
---
 arch/arm/boot/dts/r8a7743-iwg20d-q7.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/boot/dts/r8a7743-iwg20d-q7.dts +18 -0
index 081af01..f3b4890 100644
@@ -22,6 +22,11 @@
 };
 
 &pfc {
+	i2c2_pins: i2c2 {
+		groups = "i2c2";
+		function = "i2c2";
+	};
+
 	scif0_pins: scif0 {
 		groups = "scif0_data_d";
 		function = "scif0";
@@ -54,3 +59,16 @@
 		micrel,led-mode = <1>;
 	};
 };
+
+&i2c2 {
+	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	rtc at 68 {
+		compatible = "bq32000";
+		reg = <0x68>;
+	};
+};
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/3 ARM: shmobile: Enable BQ32000 rtc in shmobile_defconfig

In reply to Fabrizio Castro

From: Biju Das <[email protected]>

The iWave RZ/G1M Q7 SOM supports RTC (TI BQ32000). To increase hardware support enable the driver in the shmobile_defconfig multiplatform configuration.

(cherry picked from commit 0736aad1290d61bc3668f20253e1e1997ad8b3c1)
---
 arch/arm/configs/shmobile_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/shmobile_defconfig +1 -0
index e8a2d0b..2e79332 100644
@@ -178,6 +178,7 @@ CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_RS5C372=y
+CONFIG_RTC_DRV_BQ32K=y
 CONFIG_RTC_DRV_S35390A=y
 CONFIG_RTC_DRV_RX8581=y
 CONFIG_DMADEVICES=y
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/3 ARM: multi_v7_defconfig: Enable BQ32000 RTC driver

In reply to Fabrizio Castro

From: Biju Das <[email protected]>

The iWave RZ/G1M Q7 SOM supports RTC (TI BQ32000). To increase hardware support enable the driver in the multi_v7_defconfig multiplatform configuration.

(cherry picked from commit 545dc83ed09b5c04f663b766a92cbc8bb02c5f15)
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/multi_v7_defconfig +1 -0
index f1ba3fb..ba520f6 100644
@@ -607,6 +607,7 @@ CONFIG_RTC_DRV_MAX77686=y
 CONFIG_RTC_DRV_RK808=m
 CONFIG_RTC_DRV_MAX77802=m
 CONFIG_RTC_DRV_RS5C372=m
+CONFIG_RTC_DRV_BQ32K=m
 CONFIG_RTC_DRV_PALMAS=y
 CONFIG_RTC_DRV_ST_LPC=y
 CONFIG_RTC_DRV_TWL4030=y
Signature · 1 line
2.7.4
#4 lore raw

cover Add RTC support to iwg20d

In reply to Fabrizio Castro
Quoted 10 lines

From: Fabrizio Castro [mailto:fabrizio.castro at bp.renesas.com]
Sent: 19 February 2018 18:46
To: Ben Hutchings <[email protected]>
Cc: cip-dev at lists.cip-project.org; Chris Paterson <[email protected]>; Biju Das <[email protected]>; Fabrizio Castro <[email protected]>
Subject: [cip-dev][PATCH 0/3] Add RTC support to iwg20d

Quoted 8 lines

This patch series aims at adding RTC support to the iwg20d board from iWave. The commits from this series backport board specific DT support and defconfig support.

Biju Das (3):
ARM: dts: iwg20d-q7: Add RTC support
ARM: shmobile: Enable BQ32000 rtc in shmobile_defconfig
ARM: multi_v7_defconfig: Enable BQ32000 RTC driver

Series looks okay to me.

Quoted 8 lines
 arch/arm/boot/dts/r8a7743-iwg20d-q7.dts | 18 ++++++++++++++++++
 arch/arm/configs/multi_v7_defconfig     |  1 +
 arch/arm/configs/shmobile_defconfig     |  1 +
 3 files changed, 20 insertions(+)

--
2.7.4

#5 lore raw

cover Add RTC support to iwg20d

In reply to Fabrizio Castro
Quoted 4 lines · Fabrizio Castro

This patch series aims at adding RTC support to the iwg20d board from iWave.
The commits from this series backport board specific DT support and defconfig support.

Applied. Sorry for the delay.

Ben

Quoted 10 lines

Biju Das (3):
? ARM: dts: iwg20d-q7: Add RTC support
? ARM: shmobile: Enable BQ32000 rtc in shmobile_defconfig ? ARM: multi_v7_defconfig: Enable BQ32000 RTC driver

?arch/arm/boot/dts/r8a7743-iwg20d-q7.dts | 18 ++++++++++++++++++
?arch/arm/configs/multi_v7_defconfig?????|??1 +
?arch/arm/configs/shmobile_defconfig?????|??1 +

?3 files changed, 20 insertions(+)

Signature · 2 lines
Ben Hutchings
Software Developer, Codethink Ltd.