I just retried this and cat /sys/firmware/devicetree/base/serial@11002000/status shows okay but still nothing in dmesg and stty -F /dev/ttyS1 gives Input/output error as it doesn’t exist.
Also setserial -g /dev/ttyS0 shows the expected /dev/ttyS0, UART: 16650V2, Port: 0x0000, IRQ: 196 but /dev/ttyS1 shows UART: unknown, Port: 0x0000, IRQ: 0 on ttyS1. Also ttyS2 as expected /dev/ttyS2, UART: unknown, Port: 0x0000, IRQ: 0.
Sorry now I have absolutely no idea what you mean.
I can’t actually see anything included twice so perhaps you could point this out to me?
I haven’t actually “included” anything.
I actually just changed the file that was pulled from your git so if anything is included twice it was probably already there.
Please excuse my ignorance but this kernel building is fairly new to me.
Thanks
SERIAL_8250_NR_UARTS is already set to 4
SERIAL_8250_RUNTIME_UARTS is already set to 4
CONFIG_SERIAL_8250 is enabled
CONFIG_SERIAL_8250_CONSOLE is enabled
CONFIG_SERIAL_8250_MT6577 is enabled
CONFIG_SERIAL_8250_BTIF doesn’t exist.
I like 4.9.
I have been using this as a router since I got it and apart from these small things like 1-wire, pps and the uarts everything else appears to work perfectly.
Just need the uarts to work now so I can use my gps.
So back to the uarts.
Any other ideas?
I am also seeing this in the logs
[ 0.266820] mt6577-uart: probe of 11002000.serial failed with error -22
[ 0.266907] mt6577-uart: probe of 11003000.serial failed with error -22
Finally!
All uarts working under kernel 4.9.
uart3 is disabled and I will plug something into uart1 later today but uart0 is happily working away as I type.
[ 0.286814] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 195, base_baud = 1625000) is a ST16650V2
[ 1.008495] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 196, base_baud = 1625000) is a ST16650V2
[ 1.038531] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 197, base_baud = 1625000) is a ST16650V2
See the dts* attachments for the changes. mt7623.dtsi (2.5 KB)
mt7623n-bananapi-bpi-r2.dts (908 Bytes)