|
1,添加DS3231硬件
2,软件修改如下教程
https://tinkerboarding.co.uk/wiki/index.php/DS3231
- diff --git a/arch/arm/boot/dts/rk3288-miniarm.dts b/arch/arm/boot/dts/rk3288-miniarm.dts
- index 88fde1f..0ff7a33 100755
- --- a/arch/arm/boot/dts/rk3288-miniarm.dts
- +++ b/arch/arm/boot/dts/rk3288-miniarm.dts
- @@ -596,6 +596,10 @@
-
- &i2c1 {
- status = "okay";
- + rtc: ds1307@68 {
- + compatible = "dallas,ds1307";
- + reg = <0x68>;
- + };
- };
-
- &i2c3 {
- diff --git a/arch/arm/configs/miniarm-rk3288_defconfig b/arch/arm/configs/miniarm-rk3288_defconfig
- index d372ebc..7316d43 100755
- --- a/arch/arm/configs/miniarm-rk3288_defconfig
- +++ b/arch/arm/configs/miniarm-rk3288_defconfig
- @@ -778,3 +778,4 @@ CONFIG_TEXTSEARCH_BM=y
- CONFIG_TEXTSEARCH_FSM=y
- CONFIG_PPS_CLIENT_GPIO=y
- CONFIG_POSIX_MQUEUE=y
- +CONFIG_RTC_DRV_DS1307=m
复制代码
|
|