mirror of
https://github.com/Fishwaldo/build.git
synced 2025-04-01 19:51:21 +00:00
94 lines
2.2 KiB
Diff
94 lines
2.2 KiB
Diff
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
|
index c72da8c..41a057e 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
|
@@ -128,6 +128,16 @@
|
|
pins = "PH0", "PH1";
|
|
function = "uart0";
|
|
};
|
|
+
|
|
+ uart2_pins: uart2 {
|
|
+ pins = "PD19", "PD20";
|
|
+ function = "uart2";
|
|
+ };
|
|
+
|
|
+ uart3_pins: uart3 {
|
|
+ pins = "PD23", "PD24", "PD25", "PD26";
|
|
+ function = "uart3";
|
|
+ };
|
|
};
|
|
|
|
uart0: serial@5000000 {
|
|
@@ -768,6 +893,11 @@
|
|
pins = "PL0", "PL1";
|
|
function = "s_i2c";
|
|
};
|
|
+
|
|
+ r_uart_pins: r-uart {
|
|
+ pins = "PL2", "PL3";
|
|
+ function = "s_uart";
|
|
+ };
|
|
};
|
|
|
|
r_i2c: i2c@7081400 {
|
|
@@ -782,6 +912,18 @@
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
+
|
|
+ r_uart: serial@7080000 {
|
|
+ compatible = "snps,dw-apb-uart";
|
|
+ reg = <0x07080000 0x400>;
|
|
+ interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ reg-shift = <2>;
|
|
+ reg-io-width = <4>;
|
|
+ clocks = <&r_ccu CLK_R_APB2_UART>;
|
|
+ resets = <&r_ccu RST_R_APB2_UART>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
};
|
|
|
|
thermal-zones {
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
|
|
index b2526da..f31e14d 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
|
|
@@ -197,6 +201,18 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&uart2 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart2_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&uart3 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart3_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
&usb2otg {
|
|
dr_mode = "otg";
|
|
status = "okay";
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
|
|
index afee79f..c66f4dd 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
|
|
@@ -323,8 +348,14 @@
|
|
};
|
|
};
|
|
|
|
+&r_uart {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&r_uart_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
/delete-node/ &spi0;
|
|
|
|
&uart0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart0_ph_pins>;
|