Ok i still can't believe it but after looking at orangepione dts files comparing it to nanopi-neo.dts i managed to make some changes that made the serial ports work:
root@nanopineo:/boot/dtb# diff sun8i-h3-nanopi-neo.dts.orig sun8i-h3-nanopi-neo.dts -u
--- sun8i-h3-nanopi-neo.dts.orig 2017-02-04 09:18:09.295914003 +0000
+++ sun8i-h3-nanopi-neo.dts 2017-02-04 09:13:25.065085930 +0000
@@ -759,7 +759,9 @@
resets = <0x2 0x32>;
dmas = <0x16 0x7 0x16 0x7>;
dma-names = "rx", "tx";
- status = "disabled";
+ pinctrl-names = "default";
+ pinctrl-0 = <0x43 0x44>;
+ status = "okay";
linux,phandle = <0x49>;
phandle = <0x49>;
};
@@ -774,7 +776,9 @@
resets = <0x2 0x33>;
dmas = <0x16 0x8 0x16 0x8>;
dma-names = "rx", "tx";
- status = "disabled";
+ pinctrl-names = "default";
+ pinctrl-0 = <0x45>;
+ status = "okay";
linux,phandle = <0x4a>;
phandle = <0x4a>;
};
@@ -1495,12 +1499,14 @@
clocks = <0x0>;
resets = <0x0>;
dmas = <0x0 0x8>;
+ pinctrl-0 = <0x0>;
};
serial@01c28800 {
clocks = <0x0>;
resets = <0x0>;
dmas = <0x0 0x8>;
+ pinctrl-0 = <0x0>;
};
serial@01c28c00 {
root@nanopineo:/boot/dtb# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:U6_16550A mmio:0x01C28000 irq:33 tx:8350 rx:0 RTS|DTR
1: uart:U6_16550A mmio:0x01C28400 irq:34 tx:13239 rx:24 brk:1 RTS|CTS|DTR
2: uart:U6_16550A mmio:0x01C28800 irq:35 tx:26 rx:0 RTS|CTS|DTR
3: uart:U6_16550A mmio:0x01C28C00 irq:36 tx:0 rx:0 CTS
4: uart:unknown port:00000000 irq:0
5: uart:unknown port:00000000 irq:0
6: uart:unknown port:00000000 irq:0
7: uart:unknown port:00000000 irq:0
shouldn't uart2 have uart2_rts_cts section too ?
Other issue - every reboot the ethernet adapter has different mac address
I solved it by adding :
mac-address = [72 28 b7 40 79 f2];
to sun8i-h3-nanopi-neo.dts under ethernet@1c30000
I'm on fire today.
If you use newest build images, we now provide some overlays in the /boot/dtb/overlay folder, and your can activate them in /boot/armbianEnv.txt with :
overlays=uart1-enable uart2-enable i2c0 spi0-spidev