build/patch/kernel/archive/odroidxu4-5.12/0089-ODROID-N2-arm64-dts-Make-UART_A-disabled-by-default-.patch

85 lines
2.4 KiB
Diff
Raw Normal View History

From 6f5c6f1ee0147778a86338b6c17a3ac3a97fb6b8 Mon Sep 17 00:00:00 2001
From: Deokgyu Yang <secugyu@gmail.com>
Date: Fri, 16 Apr 2021 12:18:29 +0900
Subject: [PATCH 089/109] ODROID-N2: arm64/dts: Make UART_A disabled by default
and add UART DTBOs
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If762b1001c48f123b62f8cb5f5d37195bc214ab1
---
.../arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 2 +-
.../boot/dts/amlogic/overlays/odroidn2/Makefile | 2 ++
.../boot/dts/amlogic/overlays/odroidn2/uart0.dts | 13 +++++++++++++
.../boot/dts/amlogic/overlays/odroidn2/uart1.dts | 13 +++++++++++++
4 files changed, 29 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart0.dts
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart1.dts
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
index 54adc2f4c46e..04c1aaef54f4 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
@@ -722,7 +722,7 @@ &toddr_c {
};
&uart_A {
- status = "okay";
+ status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&uart_a_pins>;
};
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
index 35dc85811b57..44b24128d317 100644
--- a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
@@ -1,6 +1,8 @@
dtbo-y += \
hktft35.dtbo \
spi0.dtbo \
+ uart0.dtbo \
+ uart1.dtbo \
sx865x-i2c1.dtbo \
w1-gpio_p15.dtbo \
w1-gpio_p22.dtbo
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart0.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart0.dts
new file mode 100644
index 000000000000..a9cb3fb41077
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/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/odroidn2/uart1.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart1.dts
new file mode 100644
index 000000000000..c1d25f9bee4c
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/uart1.dts
@@ -0,0 +1,13 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ fragment@0 {
+ target = <&uart_B>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+};
+
--
2.25.1