RK3288 添加普通串口uart1和uart3

CPU:RK3288

系统:Android 5.1

 

diff --git a/device/rockchip/common/init.connectivity.rc b/device/rockchip/common/init.connectivity.rc
index 4957cdb..15c507e 100755
--- a/device/rockchip/common/init.connectivity.rc
+++ b/device/rockchip/common/init.connectivity.rc
@@ -59,10 +59,10 @@ on boot
 
 # bluetooth power up/down interface
     chmod 0660 /dev/ttyS0
-    chmod 0660 /dev/ttyS1
+#   chmod 0660 /dev/ttyS1
     chmod 0660 /dev/vflash
     chown bluetooth net_bt_stack /dev/vflash
-    chown bluetooth net_bt_stack /dev/ttyS1
+#   chown bluetooth net_bt_stack /dev/ttyS1
     chown bluetooth net_bt_stack /dev/ttyS0
     chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
     chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
diff --git a/device/rockchip/common/init.rk30board.rc b/device/rockchip/common/init.rk30board.rc
old mode 100644
new mode 100755
index 2cfcbb8..7357314
--- a/device/rockchip/common/init.rk30board.rc
+++ b/device/rockchip/common/init.rk30board.rc
@@ -25,6 +25,10 @@ on post-fs-data
     chown root system /system/lib/hw/gps.default.so
     mkdir /data/gps 0770 system net_bt_stack
 
+    chmod 666 /dev/ttyS1
+    chmod 666 /dev/ttyS3
+    chmod 666 /dev/ttyS4
+
     ##$_rbox_$_modify_$_chenzhi_20120309
     ##$_rbox_$_modify_$_begin
     mkdir /data/misc/ppp 777 system system
diff --git a/kernel/arch/arm/boot/dts/rk3288_rk808.dts b/kernel/arch/arm/boot/dts/rk3288_rk808.dts
index fbfcf2b..4c4dfd9 100755
--- a/kernel/arch/arm/boot/dts/rk3288_rk808.dts
+++ b/kernel/arch/arm/boot/dts/rk3288_rk808.dts
@@ -304,6 +304,24 @@
        pinctrl-0 = <&uart0_xfer &uart0_cts>;
 };
 
+&uart_bb {
+       status = "okay";
+       dma-names = "!tx", "!rx";
+       pinctrl-0 = <&uart1_xfer &uart1_cts>;
+};
+
+&uart_gps {
+       status = "okay";
+       dma-names = "!tx", "!rx";
+       pinctrl-0 = <&uart3_xfer &uart3_cts>;
+};
+
+&uart_exp {
+       status = "okay";
+       dma-names = "!tx", "!rx";
+       pinctrl-0 = <&uart4_xfer &uart4_cts>;
+};
+
 &i2c0 {
        status = "okay";

 

转载于:https://www.cnblogs.com/lialong1st/p/11018958.html

你可能感兴趣的:(RK3288 添加普通串口uart1和uart3)