Skip to content

Commit

Permalink
imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board
Browse files Browse the repository at this point in the history
The TPC70 is equipped with DS1307 RTC device. Add code to enable support
for it.

Signed-off-by: Lukasz Majewski <[email protected]>
  • Loading branch information
Lukasz Majewski authored and sbabic committed Nov 3, 2019
1 parent 5c47bf7 commit f6a4df3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/dts/imx6q-kp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";

ds1307: rtc@32 {
compatible = "dallas,ds1307";
reg = <0x32>;
};
};

&i2c2 {
Expand Down
2 changes: 2 additions & 0 deletions configs/kp_imx6q_tpc_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6a4df3

Please sign in to comment.