openwrtv4/target/linux/ath79/dts
David Bauer 3f8c5d5476 ath79: add support for Fritz!Box 4020
This commit adds support for the AVM Fritz!Box 4020 WiFi-router.

SoC:   Qualcomm Atheros QCA9561 (Dragonfly) 750MHz
RAM:   Winbond W971GG6KB-25
FLASH: Macronix MX25L12835F
WiFi:  QCA9561 b/g/n 3x3 450Mbit/s
USB:   1x USB 2.0
IN:    WPS button, WiFi button
OUT:   Power LED green, Internet LED green, WLAN LED green,
       LAN LED green, INFO LED green, INFO LED red
UART:  Header Next to Black metal shield
       Pinout is 3.3V - RX - TX - GND (Square Pad is 3.3V)
       The Serial setting is 115200-8-N-1.

Tested and working:
 - Ethernet (LAN + WAN)
 - WiFi (correct MAC)
 - Installation via EVA bootloader
 - OpenWRT sysupgrade
 - Buttons
 - LEDs

The USB port doesn't work. Both Root Hubs are detected as having 0 Ports:

[    3.670807] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.723267] usbcore: registered new interface driver usbfs
[    3.729058] usbcore: registered new interface driver hub
[    3.734616] usbcore: registered new device driver usb
[    3.744181] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.758357] SCSI subsystem initialized
[    3.766026] ehci-platform: EHCI generic platform driver
[    3.771548] ehci-platform ehci-platform.0: EHCI Host Controller
[    3.777708] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    3.788169] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    3.816647] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 0.00
[    3.824001] hub 1-0:1.0: USB hub found
[    3.828219] hub 1-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    3.835825] ehci-platform ehci-platform.1: EHCI Host Controller
[    3.842009] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    3.852481] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    3.886631] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 0.00
[    3.894011] hub 2-0:1.0: USB hub found
[    3.898190] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    3.908928] usbcore: registered new interface driver usb-storage
[    3.915634] kmodloader: done loading kernel modules from /etc/modules-boot.d/*

A few words about the shift-register:

AVM used a trick to control the shift-register for the LEDs with only 2
pins, SERCLK and MOSI. Q7S, normally used for daisy-chaining multiple
shift-registers, pulls the latch, moving the shift register-state to
the storage register. It also pulls down MR (normally pulled up) to
clear the storage register, so the latch gets released and will not be
pulled by the remaining bits in the shift-register. Shift register is
all-zero after this.

For that we need to make sure output 7 is set to high on driver probe.
We accomplish this by using gpio-hogging.

Installation via EVA:
In the first seconds after Power is connected, the bootloader will
listen for FTP connections on 169.254.157.1 (Might also be 192.168.178.1).
Firmware can be uploaded like following:

  ftp> quote USER adam2
  ftp> quote PASS adam2
  ftp> binary
  ftp> debug
  ftp> passive
  ftp> quote MEDIA FLSH
  ftp> put openwrt-sysupgrade.bin mtd1

Note that this procedure might take up to two minutes. After transfer is
complete you need to powercycle the device to boot OpenWRT.

Signed-off-by: David Bauer <mail@david-bauer.net>
2018-08-19 18:52:22 +02:00
..
ar724x.dtsi ath79: add pinmux node to ar724x.dtsi 2018-06-01 08:23:02 +02:00
ar934x.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7100.dtsi ath79: ag71xx: remove PHY reset 2018-08-09 18:44:57 +02:00
ar7161_dlink_dir-825-b1.dts ath79: use both DIR-825 B1 power leds for boot status indication 2018-08-15 07:42:36 +02:00
ar7161_netgear_wndr3700.dts ath79: add WNDR3700 and WNDR3700v2 2018-08-13 08:37:19 +02:00
ar7161_netgear_wndr3700.dtsi ath79: use both WNDR3x00 power leds for boot status indication 2018-08-15 07:42:36 +02:00
ar7161_netgear_wndr3700v2.dts ath79: add WNDR3700 and WNDR3700v2 2018-08-13 08:37:19 +02:00
ar7161_netgear_wndr3800.dts ath79: create WNDR3700 series .dtsi and adjust WNDR3800 2018-08-13 08:37:19 +02:00
ar7240.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7240_buffalo_whr-g301n.dts ath79: add support for Buffalo WHR-G301N 2018-08-16 21:20:57 +02:00
ar7240_netgear_wnr612-v2.dts ath79: add Netgear WNR612 v2 2018-06-26 07:05:30 +02:00
ar7240_netgear_wnr612-v2.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar7240_on_n150r.dts ath79: add support for ON Networks N150R 2018-06-26 07:05:44 +02:00
ar7240_tplink_tl-wr74xn-v1.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar7240_tplink_tl-wr740n-v1.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7240_tplink_tl-wr740n-v3.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7240_tplink_tl-wr741-v1.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7240_tplink_tl-wr743nd-v1.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7240_tplink_tl-wr841-v5.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7240_tplink_tl-wr941-v4.dts ath79: Fix led nodes for TL-WR740N v2 and add its clones 2018-08-08 08:11:11 +02:00
ar7241.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7241_tplink.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar7241_tplink_tl-mr3x20.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7241_tplink_tl-mr3220-v1.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar7241_tplink_tl-mr3420-v1.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar7241_tplink_tl-wr841-v7.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar7241_ubnt_bullet-m.dts ath79: ar7241: Update dts for current ag71xx driver 2018-07-30 10:43:34 +02:00
ar7241_ubnt_nano-m.dts ath79: fix dts files 2018-05-17 07:40:19 +02:00
ar7241_ubnt_rocket-m.dts ath79: ar7241: Update dts for current ag71xx driver 2018-07-30 10:43:34 +02:00
ar7241_ubnt_unifi.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar7241_ubnt_xm.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7242.dtsi ath79: Add switch reset definition in dts 2018-07-30 10:43:35 +02:00
ar7242_avm_fritz300e.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar7242_buffalo_wzr-hp-g450h.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar7242_tplink_tl-wr2543-v1.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9132.dtsi ath79: ar913x: fix eth pll register 2018-08-13 08:37:19 +02:00
ar9132_tplink_tl-wr941-v2.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9132_tplink_tl-wr1043nd-v1.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9330.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9330_glinet_ar150.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9331.dtsi ath79: add tl-mr3020-v1 support 2018-06-08 12:19:49 +02:00
ar9331_dptechnics_dpt-module.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9331_dragino_ms14.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9331_embeddedwireless_dorin.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9331_etactica_eg200.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9331_onion_omega.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9331_pisen_wmm003n.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9331_tplink_tl-mr10u.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9331_tplink_tl-mr3020-v1.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9331_tplink_tl-mr3040-v2.dts ath79: add support for TP-Link MR-3040 v2 2018-08-16 21:20:57 +02:00
ar9331_tplink_tl-wr703n.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9331_tplink_tl-wr703n_tl-mr10u.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9331_tplink_tl-wr740nd-v4.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9331_tplink_tl-wr741nd-v4.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9331_tplink_tl-wr741nd-v4.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9341.dtsi ath79: ar934x: Update dts for current ag71xx driver 2018-07-30 10:43:33 +02:00
ar9341_pcs_cr3000.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9344.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
ar9344_ocedo_raccoon.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9344_pcs_cap324.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9344_pcs_cr5000.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ar9344_tplink_tl-wdr3600.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9344_tplink_tl-wdr4300.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
ar9344_tplink_tl-wdr4300.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
ath79.dtsi ath79: ar934x: Update dts for current ag71xx driver 2018-07-30 10:43:33 +02:00
qca956x.dtsi ath79: add QCA956x GMAC config 2018-08-13 08:43:15 +02:00
qca9533.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
qca9533_glinet_ar300m.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
qca9533_glinet_ar300m_nand.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
qca9533_glinet_ar300m_nor.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
qca9533_tplink_tl-wr841-v9.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9533_tplink_tl-wr841-v11.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9533_tplink_tl-wr841.dtsi ath79: add support for TP-Link WR841N/ND v11 2018-08-14 10:19:37 +02:00
qca9557.dtsi ath79: fix PLL settings for QCA955x 2018-08-09 17:24:39 +01:00
qca9557_iodata_wn-ac-dgr.dtsi ath79: add support for I-O DATA WN-AC1167DGR 2018-08-16 21:20:57 +02:00
qca9557_iodata_wn-ac1167dgr.dts ath79: add support for I-O DATA WN-AC1167DGR 2018-08-16 21:20:57 +02:00
qca9557_iodata_wn-ac1600dgr2.dts ath79: add support for I-O DATA WN-AC1167DGR 2018-08-16 21:20:57 +02:00
qca9558_buffalo_bhr-4grv2.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9558_ocedo_koala.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9558_openmesh_om5p-ac-v2.dts ath79: fix PLL settings for QCA955x 2018-08-09 17:24:39 +01:00
qca9558_tplink_archer-c7-v1.dts ath79: add support for TP-Link Archer C7 v1 2018-08-19 18:48:43 +02:00
qca9558_tplink_archer-c7-v2.dts ath79: rename tl-archer-c7 to archer-c7 2018-08-06 07:31:54 +02:00
qca9558_tplink_archer-c7.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9558_tplink_tl-wdr4900-v2.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9558_tplink_tl-wr1043nd-v2.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
qca9558_tplink_tl-wr1043nd-v3.dts ath79: rename dts/image using manufacturer_board scheme 2018-08-06 07:31:54 +02:00
qca9558_tplink_tl-wr1043nd.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9561_avm_fritz4020.dts ath79: add support for Fritz!Box 4020 2018-08-19 18:52:22 +02:00
qca9563_phicomm_k2t.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9563_tplink_re450-v2.dts ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9563_tplink_tl-wr1043n.dtsi ath79: add support for indicating the boot state using multiple leds 2018-08-15 07:42:36 +02:00
qca9563_tplink_tl-wr1043nd-v4.dts ath79: fix dts warnings 2018-08-08 08:11:11 +02:00
qca9563_ubnt_unifiac-lite.dts ath79: add support for Unifi AC Mesh 2018-06-28 20:31:48 +02:00
qca9563_ubnt_unifiac-lite.dtsi ath79: add support for Unifi AC Mesh 2018-06-28 20:31:48 +02:00
qca9563_ubnt_unifiac-mesh-pro.dts ath79: add support for UniFi AC-Mesh Pro 2018-07-07 21:07:40 +02:00
qca9563_ubnt_unifiac-mesh.dts ath79: add support for Unifi AC Mesh 2018-06-28 20:31:48 +02:00
qca9563_ubnt_unifiac-pro.dts ath79: add support for UniFi AC-Mesh Pro 2018-07-07 21:07:40 +02:00
qca9563_ubnt_unifiac-pro.dtsi ath79: add support for UniFi AC-Mesh Pro 2018-07-07 21:07:40 +02:00
qca9563_ubnt_unifiac.dtsi ath79: fix dts warnings 2018-08-08 08:11:11 +02:00