git: 173d0fb61672 - main - add overlay for enabling serial1 / uart1 on rk3328
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 09:33:35 UTC
The branch main has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=173d0fb61672ab51fad30b62c2a1be3c6cc100be
commit 173d0fb61672ab51fad30b62c2a1be3c6cc100be
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2022-01-18 07:26:14 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-01-26 09:31:59 +0000
add overlay for enabling serial1 / uart1 on rk3328
On Rock64 the uart is routed to pins on the "Pi-2" header, so it is
potentially useful.
Pin mapping:
----------------------------
| ID | Name | Function |
----------------------------
| 15 | GPIO3_A4 | TX |
| 16 | GPIO3_A5 | RTS |
| 18 | GPIO3_A6 | RX |
| 22 | GPIO3_A7 | CTS |
----------------------------
MFC after: 2 weeks
---
sys/dts/arm64/overlays/rk3328-uart1.dtso | 12 ++++++++++++
sys/modules/dtb/rockchip/Makefile | 1 +
2 files changed, 13 insertions(+)
diff --git a/sys/dts/arm64/overlays/rk3328-uart1.dtso b/sys/dts/arm64/overlays/rk3328-uart1.dtso
new file mode 100644
index 000000000000..96ae37e363fe
--- /dev/null
+++ b/sys/dts/arm64/overlays/rk3328-uart1.dtso
@@ -0,0 +1,12 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3328";
+};
+
+&{/serial@ff120000} {
+ status = "okay";
+};
+
+/* vim: set ft=dts: */
diff --git a/sys/modules/dtb/rockchip/Makefile b/sys/modules/dtb/rockchip/Makefile
index b0d3b977a347..1e0c6a2d4362 100644
--- a/sys/modules/dtb/rockchip/Makefile
+++ b/sys/modules/dtb/rockchip/Makefile
@@ -21,6 +21,7 @@ DTS= \
DTSO= rk3328-analog-sound.dtso \
rk3328-i2c0.dtso \
+ rk3328-uart1.dtso \
rk3328-dwc3.dtso \
rk3399-mmc0-disable.dtso \
rk3399-mmc1-disable.dtso \