Skip to content

Commit 86b2255

Browse files
committed
RTC : support DS1307
Change-Id: I3d247ccc639ea0648dac6988daf9ecb0fc2a8fbc Reviewed-on: https://tp-biosrd-v02/gerrit/81357 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent fe8816d commit 86b2255

4 files changed

Lines changed: 24 additions & 1 deletion

File tree

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
1010
pps-gpio.dtbo \
1111
w1-gpio.dtbo \
1212
pitft35-resistive-tinker.dtbo \
13+
ds1307.dtbo \
1314

1415
targets += dtbs dtbs_install
1516
targets += $(dtbo-y)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Definitions for ds1307
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
7+
8+
fragment@0 {
9+
target = <&i2c1>;
10+
__overlay__ {
11+
rtc: ds1307@68 {
12+
compatible = "dallas,ds1307";
13+
status = "okay";
14+
};
15+
};
16+
};
17+
};

arch/arm/boot/dts/rk3288-miniarm.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,11 @@
599599

600600
&i2c1 {
601601
status = "okay";
602+
rtc: ds1307@68 {
603+
compatible = "dallas,ds1307";
604+
reg = <0x68>;
605+
status = "disabled";
606+
};
602607
};
603608

604609
&i2c3 {

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,4 +791,4 @@ CONFIG_W1_MASTER_GPIO=y
791791
CONFIG_W1_SLAVE_THERM=y
792792
CONFIG_RK_CHAR_DRIVERS=y
793793
CONFIG_RK3288_DEVGPIOMEM=y
794-
794+
CONFIG_RTC_DRV_DS1307=m

0 commit comments

Comments
 (0)