[OpenWrt-Devel] [PATCH/RFC/BROKEN 2/3] ath79: add support for Atheros AR934x HS UART

Daniel Golle daniel at makrotopia.org
Sun Feb 2 11:41:12 EST 2020


AR934x chips also got the 'old' qca,ar9330-uart in addition to the
'new' ns16550a compatible one.
Add device-tree bindings in ar934x.dtsi to make use of it.

Reported-by: Piotr Dymacz <pepe2k at gmail.com>
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
Unfortunately this doesn't work yet, I suspect a clock output doesn't
get enabled. Symptoms are that the uart probes and the first
echo Hallo World > /dev/ttyATH1
returns (but the characters are not actually outputted), doing that
again will not return but wait forever.

Any hints would be more than welcome :)

 target/linux/ath79/dts/ar934x.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/target/linux/ath79/dts/ar934x.dtsi b/target/linux/ath79/dts/ar934x.dtsi
index 8cd0b4e086..1467043209 100644
--- a/target/linux/ath79/dts/ar934x.dtsi
+++ b/target/linux/ath79/dts/ar934x.dtsi
@@ -133,6 +133,21 @@
 
 				#reset-cells = <1>;
 			};
+
+			hs_uart: uart at 18500000 {
+				compatible = "qca,ar9330-uart";
+				reg = <0x18500000 0x14>;
+
+				interrupts = <6>;
+
+				clocks = <&pll ATH79_CLK_REF>;
+				clock-names = "uart";
+
+				resets = <&rst 17>;
+				reset-names = "uart1";
+
+				status = "disabled";
+			};
 		};
 
 		nand: nand at 1b000200 {
-- 
2.25.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list