Skip to contentSkip to conversation

imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board

PATCH New Lukasz Majewski 2 participants 2 messages Oct 15, 2019 – Nov 4, 2019

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

PATCH 1/1 imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board

The TPC70 is equipped with DS1307 RTC device. Add code to enable support for it.

---

 arch/arm/dts/imx6q-kp.dts      | 5 +++++
 configs/kp_imx6q_tpc_defconfig | 2 ++
 2 files changed, 7 insertions(+)
arch/arm/dts/imx6q-kp.dts +5 -0
index 12d6db6f80..48ade9eeac 100644
@@ -76,6 +76,11 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
+
+	ds1307: rtc at 32 {
+		compatible = "dallas,ds1307";
+		reg = <0x32>;
+	};
 };
 
 &i2c2 {
configs/kp_imx6q_tpc_defconfig +2 -0
index 3d93c20999..2484e91635 100644
@@ -62,6 +62,8 @@ CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_SPL_DM_REGULATOR_FIXED=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_MXC_UART=y
 CONFIG_SYSRESET=y
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board

Quoted 3 lines

The TPC70 is equipped with DS1307 RTC device. Add code to enable support for it.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================