Add support for WA-9555 (Wave 2 AC3000 MT7621A+MT7615N+MT7615D)

Board

1_WA-9555_board

Serial Console pinout (need to solder the header as it is missing)

1_WA-9555_serial_console

OpenWRT Bootlog ( youhua_wr1200js-squashfs-sysupgrade.bin

[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is YouHua WR1200JS
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80545e80, node_mem_map 81003000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8110f000 s26256 r8192 d22896 u57344
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00023231
[    0.000000] Readback ErrCtl register=00023231
[    0.000000] Memory: 123716K/131072K available (4596K kernel code, 239K rwdata, 564K rodata, 220K init, 270K bss, 7356K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015496] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087814] pid_max: default: 32768 minimum: 301
[    0.097124] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110143] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125830] Hierarchical SRCU implementation.
[    0.135253] smp: Bringing up secondary CPUs ...
[    0.145640] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.145649] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.145661] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.145793] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204658] Synchronize counters for CPU 1: done.
[    0.275676] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.275685] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.275694] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.275763] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325458] Synchronize counters for CPU 2: done.
[    0.386459] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.386467] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.386475] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.386556] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445025] Synchronize counters for CPU 3: done.
[    0.504630] smp: Brought up 1 node, 4 CPUs
[    0.516139] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535602] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548031] pinctrl core: initialized pinctrl subsystem
[    0.558890] NET: Registered protocol family 16
[    0.572495] Can't analyze schedule() prologue at 80478bc4
[    0.583173] FPU Affinity set after 11720 emulations
[    0.583841] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.893833] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.903898] ***** Xtal 40MHz *****
[    0.910626] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.920835] Port 0 N_FTS = 1b102800
[    0.927733] Port 1 N_FTS = 1b102800
[    0.934660] Port 2 N_FTS = 1b102800
[    2.093347] PCIE2 no card, disable it(RST&CLK)
[    2.102037]  -> 21007f2
[    2.106858] PCIE0 enabled
[    2.112054] PCIE1 enabled
[    2.117236] PCI host bridge /pcie@1e140000 ranges:
[    2.126761]  MEM 0x0000000060000000..0x000000006fffffff
[    2.137126]   IO 0x000000001e160000..0x000000001e16ffff
[    2.147483] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.169785] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.181049] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.192268] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.204691] PCI host bridge to bus 0000:00
[    2.212707] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.226381] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.238110] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.251603] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.267357] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.267396] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.267407] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.267470] pci 0000:00:00.0: supports D1
[    2.267479] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.267735] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.267769] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.267786] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.267856] pci 0000:00:01.0: supports D1
[    2.267867] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.268113] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.283918] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.300006] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    2.300069] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.300410] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.300650] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    2.300715] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.301041] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.301063] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    2.301146] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.314181] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.327992] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.341126] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.354947] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.368427] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.381911] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    2.395386] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[    2.408871] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.423387] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.433206] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.446717] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.461229] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.471053] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.485881] clocksource: Switched to clocksource GIC
[    2.497251] NET: Registered protocol family 2
[    2.506622] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.520362] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.532970] TCP: Hash tables configured (established 1024 bind 1024)
[    2.545692] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.557198] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.569836] NET: Registered protocol family 1
[    2.578422] PCI: CLS 0 bytes, default 32
[    2.815829] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.827187] Crashlog allocated RAM at address 0x3f00000
[    2.837633] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.856687] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.868159] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.889821] random: fast init done
[    2.897471] io scheduler noop registered
[    2.905111] io scheduler deadline registered (default)
[    2.916490] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.932520] console [ttyS0] disabled
[    2.939571] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.957534] console [ttyS0] enabled
[    2.964398] bootconsole [early0] disabled
[    2.973164] cacheinfo: Failed to find cpu0 device node
[    2.978338] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.985142] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.992487] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.998643] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    3.003723] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.010102] Creating 4 MTD partitions on "spi0.0":
[    3.014879] 0x000000000000-0x000000030000 : "u-boot"
[    3.020918] 0x000000030000-0x000000040000 : "u-boot-env"
[    3.027268] 0x000000040000-0x000000050000 : "factory"
[    3.033315] 0x000000050000-0x000001000000 : "firmware"
[    3.081017] 2 uimage-fw partitions found on MTD device firmware
[    3.086950] 0x000000050000-0x00000020be3b : "kernel"
[    3.092925] 0x00000020be3b-0x000001000000 : "rootfs"
[    3.098877] mtd: device 5 (rootfs) set to be root filesystem
[    3.104629] 1 squashfs-split partitions found on MTD device rootfs
[    3.110827] 0x000000470000-0x000001000000 : "rootfs_data"
[    3.117960] libphy: Fixed MDIO Bus: probed
[    3.187854] libphy: mdio: probed
[    4.590684] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.597345] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.608141] NET: Registered protocol family 10
[    4.614119] Segment Routing with IPv6
[    4.617958] NET: Registered protocol family 17
[    4.622450] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.635366] 8021q: 802.1Q VLAN Support v1.8
[    4.642037] hctosys: unable to open rtc device (rtc0)
[    4.654754] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    4.662300] Freeing unused kernel memory: 220K
[    4.666805] This architecture does not have kernel memory protection.
[    5.035515] random: crng init done
[    5.321958] init: Console is alive
[    5.325583] init: - watchdog -
[    6.082011] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.190348] usbcore: registered new interface driver usbfs
[    6.195989] usbcore: registered new interface driver hub
[    6.201443] usbcore: registered new device driver usb
[    6.214856] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.220227] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.236059] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.244534] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.251291] hub 1-0:1.0: USB hub found
[    6.255108] hub 1-0:1.0: 2 ports detected
[    6.259681] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.264990] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.272503] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.279112] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.288004] hub 2-0:1.0: USB hub found
[    6.291812] hub 2-0:1.0: 1 port detected
[    6.298491] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.326175] init: - preinit -
[    7.184697] mtk_soc_eth 1e100000.ethernet: PPE started
[   10.483260] jffs2: notice: (460) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (2 unchecked, 2 orphan) and 23 of xref (2 dead, 0 orphan) found.
[   10.502232] mount_root: switching to jffs2 overlay
[   10.548228] overlayfs: upper fs does not support tmpfile.
[   10.558300] urandom-seed: Seeding with /etc/urandom.seed
[   10.647938] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   10.663703] procd: - early -
[   10.666742] procd: - watchdog -
[   11.366110] procd: - watchdog -
[   11.369700] procd: - ubus -
[   11.660094] procd: - init -
[   11.963019] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.973721] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.390432] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.398493] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.407334] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.930522] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   13.131158] xt_time: kernel timezone is -0000
[   13.345201] PPP generic driver version 2.4.2
[   13.350780] NET: Registered protocol family 24
[   13.427830] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.982805] mtk_soc_eth 1e100000.ethernet: PPE started
[   19.994887] br-lan: port 1(eth0.1) entered blocking state
[   20.000433] br-lan: port 1(eth0.1) entered disabled state
[   20.006460] device eth0.1 entered promiscuous mode
[   20.011301] device eth0 entered promiscuous mode
[   20.020179] br-lan: port 1(eth0.1) entered blocking state
[   20.025633] br-lan: port 1(eth0.1) entered forwarding state
[   20.031834] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.016179] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:/# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7615
02:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7615

root@OpenWrt:/# free
             total       used       free     shared    buffers     cached
Mem:        123936      31120      92816         60       2144       5820
-/+ buffers/cache:      23156     100780
Swap:            0          0          0

root@OpenWrt:/# dmesg | grep spi
[    2.992487] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.998643] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    3.003723] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.010102] Creating 4 MTD partitions on "spi0.0":