diff mbox series

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

Message ID 20200202163554.GA9877@makrotopia.org
State Superseded
Headers show
Series [OpenWrt-Devel,1/3] ath79: enable i2c-gpio and spi-gpio in generic subtarget | expand

Commit Message

Daniel Golle Feb. 2, 2020, 4:41 p.m. UTC
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@gmail.com>
Signed-off-by: Daniel Golle <daniel@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 mbox series

Patch

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@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@1b000200 {