105 lines
2.8 KiB
Diff
105 lines
2.8 KiB
Diff
From 34095f1211659968d5bbd935d451e966ebd76946 Mon Sep 17 00:00:00 2001
|
|
From: Patrick Yavitz <pyavitz@xxxxx.com>
|
|
Date: Wed, 2 Aug 2023 19:25:17 -0400
|
|
Subject: [PATCH] arm64: dts: amlogic: meson-sm1-bananapi: add uart AO_B and B
|
|
|
|
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 9 +++++++++
|
|
.../arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi | 14 ++++++++++++++
|
|
2 files changed, 23 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
index 88b848c65b0d..7e85b7dc356d 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
@@ -1893,6 +1893,15 @@ mux {
|
|
};
|
|
};
|
|
|
|
+ uart_ao_b_pins: uart-b-ao {
|
|
+ mux {
|
|
+ groups = "uart_ao_b_tx_8",
|
|
+ "uart_ao_b_rx_9";
|
|
+ function = "uart_ao_b";
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
uart_ao_a_cts_rts_pins: uart-ao-a-cts-rts {
|
|
mux {
|
|
groups = "uart_ao_a_cts",
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi
|
|
index ea4784a190da..7072d0e7bd4a 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi
|
|
@@ -26,6 +26,8 @@ key {
|
|
|
|
aliases {
|
|
serial0 = &uart_AO;
|
|
+ serial2 = &uart_B;
|
|
+ serial4 = &uart_AO_B;
|
|
ethernet0 = ðmac;
|
|
};
|
|
|
|
@@ -426,6 +428,18 @@ &uart_AO {
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
+&uart_AO_B {
|
|
+ status = "disabled";
|
|
+ pinctrl-0 = <&uart_ao_b_pins>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
+&uart_B {
|
|
+ status = "disabled";
|
|
+ pinctrl-0 = <&uart_b_pins>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
&usb {
|
|
status = "okay";
|
|
};
|
|
--
|
|
2.39.2
|
|
|
|
From ce5cc12ce8e33f9089c2c9b6ab6deb7cf2759cb2 Mon Sep 17 00:00:00 2001
|
|
From: Patrick Yavitz <pyavitz@xxxxx.com>
|
|
Date: Fri, 4 Aug 2023 05:36:52 -0400
|
|
Subject: [PATCH] arm64: dts: amlogic: meson-sm1-bananapi-m2-pro: add uart_A
|
|
|
|
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
|
|
---
|
|
.../boot/dts/amlogic/meson-sm1-bananapi-m2-pro.dts | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m2-pro.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m2-pro.dts
|
|
index 586034316ec3..5ccdc91ac276 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m2-pro.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m2-pro.dts
|
|
@@ -13,6 +13,10 @@ / {
|
|
compatible = "bananapi,bpi-m2-pro", "amlogic,sm1";
|
|
model = "Banana Pi BPI-M2-PRO";
|
|
|
|
+ aliases {
|
|
+ serial1 = &uart_A;
|
|
+ };
|
|
+
|
|
sound {
|
|
compatible = "amlogic,axg-sound-card";
|
|
model = "BPI-M2-PRO";
|
|
@@ -95,3 +99,9 @@ &tdmout_b {
|
|
&tohdmitx {
|
|
status = "okay";
|
|
};
|
|
+
|
|
+&uart_A {
|
|
+ status = "disabled";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart_a_pins>;
|
|
+};
|
|
--
|
|
2.39.2
|
|
|