131 lines
3.6 KiB
Diff
131 lines
3.6 KiB
Diff
From ec672c0df13c296d37c600fa753485a9ac4a97e1 Mon Sep 17 00:00:00 2001
|
|
From: Deokgyu Yang <secugyu@gmail.com>
|
|
Date: Thu, 15 Apr 2021 18:25:05 +0900
|
|
Subject: [PATCH 093/109] ODROID-C4: arm64/dts: Make UART_A disabled by default
|
|
and add UART DTBOs
|
|
|
|
Since UART_A can be enabled by DTBO now.
|
|
|
|
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
|
|
Change-Id: Ie08f49bafc7fab96879469deeaa53b5d7c9a9dfa
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 2 +-
|
|
.../boot/dts/amlogic/overlays/odroidc4/Makefile | 4 ++++
|
|
.../boot/dts/amlogic/overlays/odroidc4/uart0.dts | 13 +++++++++++++
|
|
.../boot/dts/amlogic/overlays/odroidc4/uart1.dts | 13 +++++++++++++
|
|
.../boot/dts/amlogic/overlays/odroidc4/uart2.dts | 13 +++++++++++++
|
|
.../boot/dts/amlogic/overlays/odroidc4/uart3.dts | 13 +++++++++++++
|
|
6 files changed, 57 insertions(+), 1 deletion(-)
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart0.dts
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart1.dts
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart2.dts
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart3.dts
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
index 5d021d1639fa..5735664734fc 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
@@ -300,7 +300,7 @@ &tohdmitx {
|
|
};
|
|
|
|
&uart_A {
|
|
- status = "okay";
|
|
+ status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart_a_pins>;
|
|
};
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
index 5bc56edf9770..6a308651b833 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
@@ -3,6 +3,10 @@ dtbo-y += \
|
|
hktft35.dtbo \
|
|
pcf8563.dtbo \
|
|
spi0.dtbo \
|
|
+ uart0.dtbo \
|
|
+ uart1.dtbo \
|
|
+ uart2.dtbo \
|
|
+ uart3.dtbo \
|
|
sx865x-i2c1.dtbo \
|
|
w1-gpio_p15.dtbo \
|
|
w1-gpio_p22.dtbo
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart0.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart0.dts
|
|
new file mode 100644
|
|
index 000000000000..a9cb3fb41077
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart0.dts
|
|
@@ -0,0 +1,13 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ fragment@0 {
|
|
+ target = <&uart_A>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart1.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart1.dts
|
|
new file mode 100644
|
|
index 000000000000..c1d25f9bee4c
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart1.dts
|
|
@@ -0,0 +1,13 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ fragment@0 {
|
|
+ target = <&uart_B>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart2.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart2.dts
|
|
new file mode 100644
|
|
index 000000000000..e2d717288ed0
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart2.dts
|
|
@@ -0,0 +1,13 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ fragment@0 {
|
|
+ target = <&uart_C>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart3.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart3.dts
|
|
new file mode 100644
|
|
index 000000000000..735faedc9d94
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/uart3.dts
|
|
@@ -0,0 +1,13 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ fragment@0 {
|
|
+ target = <&uart_AO_B>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
--
|
|
2.25.1
|
|
|