peter 发表于 2018-9-29 18:23:05

TINKERBOARD LINUX 加RTC功能

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

风火轮用户94353 发表于 2018-11-19 10:27:43

请问怎么添加?有tinkerboards的原理图和丝印图吗?android需要修改吗
页: [1]
查看完整版本: TINKERBOARD LINUX 加RTC功能