Enable UART2 on Rockpi S (#2460)

* Add uart2 for debug on Rockpi S

* Rename for clarity

* Add patch to DEV too
This commit is contained in:
Igor Pečovnik 2020-12-15 22:25:23 +01:00 committed by GitHub
parent f8cd769b46
commit b7d4a7a577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,23 @@
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-08-30 17:11:49.162572017 +0300
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-08-30 17:12:00.122550893 +0300
@@ -12,7 +12,7 @@
compatible = "radxa,rockpis", "rockchip,rk3308";
chosen {
- stdout-path = "serial0:1500000n8";
+ stdout-path = "serial2:1500000n8";
};
leds {
@@ -326,6 +326,10 @@
status = "okay";
};
+&uart2 {
+ status = "okay";
+};
+
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&uart4_xfer &uart4_rts &uart4_cts>;

View File

@ -0,0 +1,23 @@
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-08-30 17:11:49.162572017 +0300
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-08-30 17:12:00.122550893 +0300
@@ -12,7 +12,7 @@
compatible = "radxa,rockpis", "rockchip,rk3308";
chosen {
- stdout-path = "serial0:1500000n8";
+ stdout-path = "serial2:1500000n8";
};
leds {
@@ -326,6 +326,10 @@
status = "okay";
};
+&uart2 {
+ status = "okay";
+};
+
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&uart4_xfer &uart4_rts &uart4_cts>;