imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board
authorLukasz Majewski <lukma@denx.de>
Tue, 15 Oct 2019 10:40:51 +0000 (12:40 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Nov 2019 16:04:16 +0000 (17:04 +0100)
The TPC70 is equipped with DS1307 RTC device. Add code to enable support
for it.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
arch/arm/dts/imx6q-kp.dts
configs/kp_imx6q_tpc_defconfig

index 12d6db6f80b5b20fc04506fc63cdd01da32a9110..48ade9eeac6e27de5f5d8a231ab3e83884d59404 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_i2c1>;
        status = "okay";
+
+       ds1307: rtc@32 {
+               compatible = "dallas,ds1307";
+               reg = <0x32>;
+       };
 };
 
 &i2c2 {
index 3d93c2099927971a722d6400d5ad7c2f823bbe98..2484e91635bad4a33fbc115236c4f621dab6206c 100644 (file)
@@ -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