aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
Commit message (Collapse)AuthorAgeFilesLines
* ath79: add status LED on GL.iNet AR300MPaul Wassi2018-12-311-1/+8
| | | | | | This adds the triggers for the status LED of this device. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: fix boardname of GL.iNet GL-AR300MPaul Wassi2018-12-316-9/+10
| | | | | | | | | | This device is called GL-AR300M, therefore rename the board(s) to 'gl-ar300m-nor' and 'gl-ar300m-nand' Signed-off-by: Paul Wassi <p.wassi@gmx.at> [change boardname in uboot envtools as well, don't use wildcards for boardname] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: Add support for TP-Link WR810NPaul Wassi2018-12-315-1/+182
| | | | | | Device specifications given in b23b0fb28b760ce66a8f93d4681c8bd300d75d30 Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: Add GL.iNet AR150 LED triggersPaul Wassi2018-12-311-0/+4
| | | | | | | When switching from ar71xx to ath79 the default netdev LED triggers for LAN and WAN got lost. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: fix boardname of GL.iNet GL-AR150Paul Wassi2018-12-313-4/+4
| | | | | | | This device is called GL-AR150, therefore rename the board to 'gl-ar150' Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: add support for ELECOM WRC-1750GHBK2-I/CINAGAKI Hiroshi2018-12-316-138/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ELECOM WRC-1750GHBK2-I/WRC-1750GHBK2-C are 2.4/5 GHz band 11ac routers, based on Qualcomm Atheros QCA9563. This commit also includes small fix; use "0x0x03000101" as pll_1000 instead of "0x03000000". Specification: - SoC: Qualcom Atheros QCA9563 - RAM: 128 MB (DDR2) - Flash: 16 MB (SPI-NOR) - WLAN: 2.4/5 GHz - 2.4 GHz: 2T2R (SoC internal) - 5 GHz: 3T3R (QCA9880) - Ethernet: 10/100/1000 Mbps - LED/key: 4x/3x (2x buttons, 1x slide-switch) - UART: through-hole on PCB - Vcc, RX, GND, TX from switch (QCA8337N) side - 115200n8 Flash instruction using factory image: 1. Boot WRC-1750GHBK2-I/C normaly 2. Access to "http://192.168.2.1/" and open firmware upgrade page ("ファームウェア更新 手動更新(アップデート)") 3. Select the OpenWrt factory image and click apply ("適用") button to perform firmware update 4. On the (initramfs) factory image, perform sysupgrade with squashfs-sysupgrade image 5. Wait ~150 seconds to complete flashing Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ath79: Fix UBNT Unifi AC LEDsPaul Wassi2018-12-311-2/+2
| | | | | | | Both LEDs on these devices are ACTIVE_HIGH, change back to what it is on ar71xx. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: Fix system LED on TP-Link WR740/741 v4Paul Wassi2018-12-311-1/+1
| | | | | | | The system LED on these devices is ACTIVE_LOW, change back to what it is on ar71xx. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ath79: add support for TP-Link TL-WR841N/ND v8Antonio Silverio2018-12-314-0/+175
| | | | | | | | | | | | | | | | | | | CPU: Atheros AR9341 535MHz RAM: 32MB FLASH: 4MiB PORTS: 4 Port 100/10 Switch, 1 Port 100/10 Wan WiFi: Atheros AR9341 2x2:2 bgn LED: Power (static on), LAN (controlled by Switch), WAN, SYS, WiFi, RFKill BTN: WPS, WiFi, Reset Installation: Upload the factory image via the vendor-GUI. Signed-off-by: Antonio Silverio <menion@gmail.com> [resolve merge conflicts, squash commits, fix commit title, remove default default off led properties, mark sysupgrade image compatible with the ar71xx version of the board, drop blank lines from dts] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: use caldata patching for Archer C58/C59David Bauer2018-12-312-4/+1
| | | | | | | | | | | With this commit the TP-Link Archer C58 and Archer C59 use caldata patching in order to set the correct 5GHz MAC-address. Tested on TP-Link Archer C59 v1. For more details see commit 330965b. Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: add support for GL.iNet GL-AR750SChristoph Krapp2018-12-314-4/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now this patch adds nor image generation only. NAND image generation is not supportet at the moment. Furtheremore support for the MicroSD port is not implemented as of now. Specification: - SOC: QCA9563 (775MHz) - Flash: 16 MiB (W25Q128FVSG) - RAM: 128 MiB DDR2 - Ethernet: 2x 1Gbps LAN + 1x 1Gbps WAN - Wireless: 2.4GHz (bgn) and 5GHz (ac) - USB: 1x USB 2.0 port - Button: 1x switch button, 1x reset button - LED: 3x LEDS (green) - Another LED can be accessed on GPIO 7 if soldered Flash instruction: - Set static ip to 192.168.1.2 - Unplug the power cord - Hold reset button - Plug power back in - Right led will flash 5 times - Release reset button - Browse to 192.168.1.1 - Choose sysupgrade image in NOR-flash section - Press "update nor firmware" - After successful transfer unplug network cable before device restarts Signed-off-by: Christoph Krapp <achterin@googlemail.com> [resolve merge conflicts, rename buttons, use switch input type for mode switch] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: fix OCEDO Koala ethernet configurationDavid Bauer2018-12-301-11/+1
| | | | | | | | | The OCEDO Koala has incorrect PLL settings which result in ~3% packet loss on ethernet connections. Also omit the gmac-configuration as it's incorrect too. Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: add support for D-Link DIR-859 A1Weijie Gao2018-12-307-0/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware spec of DIR-859 A1: SoC: QCA9563 DRAM: 64MB DDR2 Flash: 16MB SPI-NOR Switch: QCA8337N WiFi 5.8GHz: QCA9880 USB is supported on the PCB but not connected. Flash instructions: 1. Upgrade the factory.bin through the factory web interface or the u-boot failsafe interface. The firmware will boot up correctly for the first time. Do not power off the device after OpenWrt has booted. Otherwise the u-boot will enter failsafe mode as the checksum of the firmware has been changed. 2. Upgrade the sysupgrade.bin in OpenWrt. After upgrading completes the u-boot won't complain about the firmware checksum and it's OK to use now. 3. If you powered off the device before upgrading the sysupgrade.bin, just upgrade the factory.bin through the u-boot failsafe interface and then goto step 2. Signed-off-by: Weijie Gao <hackpascal@gmail.com> [squash commits, use common seama recipes, sync factory image recipe with ramips version] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: Fix wrong TL-WR740N v4 switch port orderEduardo Barros2018-12-291-6/+6
| | | | | | | | | | | Fix the switch port order to have the correct order in LuCI. Fixes: FS#1469 Signed-off-by: Eduardo Barros <geadas@gmail.com> [trim commit title, add a proper commit message, add fixes tag, keep alphabetical order of the blocks] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: fix Archer A7 v5 5GHz MAC adressDavid Bauer2018-12-291-1/+1
| | | | | | | | Currently all Archer A7 v5 have the same (incorrect) MAC address. The address is currently derived from eth1 which is not present on the QCA9563. Use eth0 to get the correct MAC address. Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: ubnt-bullet-m-xw: Remove eth1 disabled nodePetr Štetiar2018-12-271-4/+0
| | | | | | It's redundant as eth1 is disabled by default in ath79.dtsi. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: ubnt-bullet-m-xw: Move eth0 mtd-mac-address to the common includePetr Štetiar2018-12-272-2/+4
| | | | | | | It's same for Bullet and Nanostation so far, so let's hope it's going to be the same for other boards sharing the same platform. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: ubnt-bullet-m-xw: Remove pll-data property from eth0 nodePetr Štetiar2018-12-271-1/+0
| | | | | | | | | | | | | | | | | | It's not necessary as it's already defined in ar934x.dtsi to: pll-data = <0x16000000 0x00000101 0x00001616>; And in ar71xx it's currently set to the same values: #define AR934X_PLL_VAL_1000 0x16000000 #define AR934X_PLL_VAL_100 0x00000101 #define AR934X_PLL_VAL_10 0x00001616 And dumping the value from the airOS v6.1.7 has the same value: AR934X_PLL_ETH_XMII_CONTROL_REG 0x1805002C 0x101 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: ubnt-xw: Add LED aliases for diag and status LED supportPetr Štetiar2018-12-271-1/+8
| | | | | | | | Currently there is no LED signalization for various system states implemented in diag.sh, so this patch adds support for it. Tested-by: Joe Ayers <ae6xe@arrl.net> Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: add support for devolo WiFi pro 1750cDavid Bauer2018-12-274-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware -------- CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) WiFi2: QCA9558 3T3R WiFi5: QCA9880 3T3R BTN: 1x Reset LED: 1x LED blue 1x LED red BEEP: 1x GPIO attached piezo beeper UART: 3.3V GND TX RX (115200-N-8) (3.3V is square pad) Header is located next to reset-button There is also a Micro-B USB-port present but this only seems to be a dummy as the circuit next to it is not present (at least in my unit). It is also not mentioned in the devolo manual. Installation ------------ Make sure you set a password for the root user as prompted on first setup! 1. Upload OpenWRT sysupgrade image via SSH to the device. Use /tmp as the destination folder on the device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/<openwrt-image-name> Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: add support for devolo WiFi pro 1200eDavid Bauer2018-12-276-0/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware -------- CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) 1x Atheros AR8033 WiFi2: QCA9558 2T2R WiFi5: QCA9880 2T2R BTN: 1x Reset LED: 1x LED blue 1x LED red BEEP: 1x GPIO attached piezo beeper UART: 3.3V GND TX RX (115200-N-8) (3.3V is square pad) Header is located next to reset-button Installation ------------ Make sure you set a password for the root user as prompted on first setup! 1. Upload OpenWRT sysupgrade image via SSH to the device. Use /tmp as the destination folder on the device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/<openwrt-image-name> Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: add support for TP-Link Archer C7 v5TOCK Chiu2018-12-275-1/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for TP-Link Archer C7 v5, leveraging most effort from commit ea9baee and 1e4ee63. Archer C7 v5 is identical to Archer A7 v5 but with a different flash layout. Specification: - QCA9563 SoC (750 MHz) - 128 MiB of RAM (DDR2) - 16 MiB of flash (SPI) - 5x 1 Gbps Ethernet (1x WAN + 4x LAN) - 2.4GHz (bgn) SoC internal + 5GHz (ac) QCA9880 - 10x LED, 2x button - UART header on PCB Flash instructions: 1. Upload openwrt-ath79-generic-tplink_archer-c7-v5-squashfs-factory.bin via web interface. Flash instructions using TFTP recovery: 1. Plug PC to one of the LAN ports 2. Set PC to fixed IP address 192.168.0.66 3. Rename the factory image to ArcherC7v5_tp_recovery.bin and place it in TFTP root directory 4. Turn on the router with the reset button pressed for about 15 secs 5. Release the button and wait about 150 secs to complete flashing Signed-off-by: TOCK Chiu <tock.chiu@gmail.com>
* ath79: fix pinmux reg size for QCA955xChristian Lamparter2018-12-241-1/+1
| | | | | | | | The range of pinmux reg property "<0x1804002c 0x40>" for QCA955x SoC does not includes GPIO_FUNCTION register. Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* ath79: add support for NEC Aterm WG800HPINAGAKI Hiroshi2018-12-245-0/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NEC Aterm WG800HP is a 2.4/5 GHz band 11ac router, based on Qualcomm Atheros QCA9563. Specification: - Qualcomm Atheros QCA9563 - 64 MB of RAM (DDR2) - 8 MB of Flash (SPI-NOR) - 2.4/5 GHz wifi - 2.4 GHz: 2T2R (SoC internal) - 5 GHz: 1T1R (QCA9887) - 4x 10/100/1000 Mbps Ethernet - 8x LEDs, 3x keys (2x buttons, 1x slide-switch) - UART through-hole on PCB (J2) - Vcc, GND, NC, TX, RX from SoC side - 115200n8 Flash instruction using factory image: 1. Connect the computer to the LAN port on WG800HP 2. Connect power cable to WG800HP and turn on it 3. Access to "http://192.168.10.1/" and open firmware update page ("ファームウェア更新") 4. Select the OpenWrt factory image and click update ("更新") button 5. Wait ~150 seconds to complete flashing Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ath79: fix pinmux reg value for QCA956xINAGAKI Hiroshi2018-12-241-1/+1
| | | | | | | | | | | | | The range of pinmux reg property "<0x1804002c 0x40>" for QCA956x SoC does not includes GPIO_FUNCTION register. If the device uses "&jtag_disable_pins", this causes the following errors: [ 1.982937] pinctrl-single 1804002c.pinmux: mux offset out of range: 0x40 (0x40) [ 1.990622] pinctrl-single 1804002c.pinmux: could not add functions for pinmux_jtag_disable_pins 64x Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ath79: replace cameo-factory with existing build commandsMathias Kresin2018-12-171-2/+4
| | | | | | | | Use pad-offset and append-string to create the cameo factory images for the D-LINK DIR-825 C1/DIR-835 A1 factory images. Tested-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: dts: Remove newly added default-state=off propertyChristian Lamparter2018-12-171-10/+0
| | | | | | I'm afraid that this will be "one of many" patches to come. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* ar71xx/ath79: switch devices to the -ct driver and firmwareChristian Lamparter2018-12-172-4/+4
| | | | | | | Since commit 61b5b4971e7 ("mac80211: make ath10k-ct the default ath10k") select ath10k-ct and the -ct firmwares by default. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* treewide: dts: Remove default-state=off property from all gpio LED nodesPetr Štetiar2018-12-1758-192/+0
| | | | | | | | | | | | | | | | | | >From the Documentation/devicetree/bindings/leds/common.txt: - default-state : The initial state of the LED. Valid values are "on", "off", and "keep". If the LED is already on or off and the default-state property is set the to same value, then no glitch should be produced where the LED momentarily turns off (or on). The "keep" setting will keep the LED at whatever its current state is, without producing a glitch. The default is off if this property is not present. So setting the default-state of the LEDs to `off` is redundant as `off` is default LED state anyway. We should remove it as almost every new PR/patch submission contains this property by default which seems to be just copy&paste from some DTS file already present in the tree. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: add support for TP-Link Archer A7Karl-Felix Glatzer2018-12-176-0/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for TP-Link Archer A7 Specification: - SOC: QCA9563 - Flash: 16 MiB (SPI) - RAM: 128 MiB (DDR2) - Ethernet: 4x 1Gbps LAN + 1x 1Gbps WAN - Wireless: - 2.4GHz (bgn) SoC internal - 5GHz (ac) QCA988x - USB: 1x USB 2.0 port - Button: 1x power, 1x reset, 1x wps - LED: 10x LEDs - UART: holes in PCB - Vcc, GND, RX, TX from ethernet port side - 115200n8 Flash instructions: Upload openwrt-ath79-generic-tplink_archer-a7-v5-squashfs-factory.bin via the Webinterface. Flash instruction using tftp recovery: 1. Connect the computer to one of the LAN ports of the Archer A7 2. Set the computer IP to 192.168.0.66 3. Start a tftp server with the OpenWrt factory image in the tftp root directory renamed to ArcherC7v5_tp_recovery.bin 2. Connect power cable to Archer A7, press and hold the reset button and turn the router on 3. Keep the reset button pressed for ~5 seconds 4. Wait ~150 seconds to complete flashing Changes since first revision: - Flash instructions using stock image webinterface - Changed "Version 5" in model string to "v5" - Split DTS file in qca9563_tplink_archer-x7-v5.dtsi and qca9563_tplink_archer-a7-v5.dts - Firmware image is now build with dynamic partitioning - Default to ath10k-ct Changes since second revision: - Changed uboot@0 to uboot@20000 in DTS file - Fixed ordering issue in board led script - Specify firmware partition format in DTS file - Rebased Makefile device definition on common Device/tplink-safeloader-uimage definition - Merged switch section in network script (same configuration as tplink,tl-wdr3600 and tplink,tl-wdr4300) Signed-off-by: Karl-Felix Glatzer <karl.glatzer@gmx.de>
* ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled nodesPetr Štetiar2018-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes wrong usage of debounce-interval subnode property of gpio-keys-polled nodes, which was used inproperly in parent node, but it belongs to the subnodes, excerpt from the docs: Optional subnode-properties: - debounce-interval: Debouncing interval time in milliseconds. If not specified defaults to 5. And the docs are up to date as the source code matches that description as well: if (fwnode_property_read_u32(child, "debounce-interval", &button->debounce_interval)) button->debounce_interval = 5; While at it, I've also re-formatted gpio-keys-polled nodes, usually just adding new lines after every key subnode. Cc: Tomasz Maciej Nowak <tomek_n@o2.pl> Cc: Matt Merhar <mattmerhar@protonmail.com> Cc: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: ag71xx: Fix code formatting in ag71xx_probePetr Štetiar2018-12-171-2/+2
| | | | Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: ag71xx: Unify debug output with ar71xx and make debugging easierPetr Štetiar2018-12-171-16/+32
| | | | | | | | | Currently it's quite hard to diff debugging output between ar71xx and ath79, so this patch tries to improve it by adding the same ag71xx_dump_regs function and placing debugging output from the registers to relatively same places. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: add d-link dir-825-c1 and dir-835-a1Sebastian Kemper2018-12-177-8/+332
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit ports both dir-825-c1 and dir-835-a1 from ar71xx to ath79. They're pretty much identical, except dir-835-a1 has less LEDs. The routers come with 128 MByte of RAM and 16 MBytes of flash and sport 2.4GHz and 5.0GHz wireless. Both routers have entries already in OpenWrt's TOH. Please check there for more information on these antiquities. https://openwrt.org/toh/hwdata/d-link/d-link_dir-825_c1 https://openwrt.org/toh/hwdata/d-link/d-link_dir-835_a1 Installation: 1. Connect to the web interface of the vendor firmware (usually listening on 192.168.0.1). 2. Go to "Tools", then "Firmware". 3. In the "Firmware Upgrade" box click "Browse". 4. Select the OpenWrt factory image for your router. 5. Click "Upload", confirm the popups if you agree to flash the file you selected. 6. Wait for firmware upgrade to complete. It takes about 5 minutes. Run-tested on dir-825-c1. dir-835-a1 should work as well, but I don't have this router so I can't confirm. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [trivial changes]
* ath79: add support for TP-Link TL-WR842N/ND v1 routerMarcin Jurkowski2018-12-154-0/+175
| | | | | | | | | | | | | | | | | | This ports support for TP-Link TL-WR842N/ND v1 from ar71xx. CPU: Atheros AR7241 400 MHz RAM: 32 MiB FLASH: 8 MiB PORTS: 4 Port 100/10 Switch, 1 Port 100/10 Wan WiFi: Atheros AR9287 LED: SYS, WiFi, LAN, WAN, 3G, QSS BTN: WiFi, Reset/WPS AR71xx target used "tl-mr3420" as board id so force flag is needed if upgrading from old target. Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [trivial cleanup]
* ath79: fix dtc compiler warningsMathias Kresin2018-12-123-7/+7
| | | | | | | | | | | | The qca9557/qca956x reset-controller aren't a simple bus. A simple bus would require node unit addresses. Add the node unit addresses for the qca9557 usb phys. Add the regs for the USB_PWRCTL and USB_CONFIG registers even not yet used. Fix the wrong ar7100 pcie controller node unit address as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: dts: Use PowerCloud CAP324 bicolor status LEDDaniel F. Dickinson2018-12-061-3/+3
| | | | | | | | | PowerCloud Systems CAP324 has a bicolor power LED and OpenWrt DTS files / base files support using both colours to better inform user of state and to better match stock firmware, so use green power to indicate normal operation. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* ath79: add support for I-O DATA WN-AG300DGRINAGAKI Hiroshi2018-12-065-2/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I-O DATA WN-AG300DGR is a 2T2R 2.4/5 GHz 11n router, based on Atheros AR1022. WN-AG300DGR does not have an LED to indicates power or system status, I set "router" LED as OpenWrt status LED. There is no eeprom data for 5 GHz wlan in "art" partition. Specification: - Atheros AR1022 - 64 MB of RAM (DDR2) - 8 MB of Flash (SPI-NOR) - 2T2R 2.4/5GHz wifi - 2.4 GHz: SoC internal - 5 GHz: Atheros AR93x2 - 5x 10/100/1000 Mbps Ethernet - 6x LEDs, 6x keys (4x buttons, 1x slide switch) - 1x USB 2.0 Type-A - UART through-hole on PCB - Vcc, GND, TX, RX from ethernet port side - 115200n8 Flash instruction using factory image: 1. Connect the computer to the LAN port on WN-AG300DGR 2. Connect power cable to WN-AG300DGR and turn it 3. Access to "http://192.168.0.1/" and open firmware update page ("ファームウェア") 4. Select the OpenWrt factory image and click update ("更新") button 5. Wait ~150 seconds to complete flashing Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ath79: add support for Winchannel WB2000Chuanhong Guo2018-12-064-2/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WB2000 is a dual-band 11N AP using AR9344. The factory firmware used the original DB120 partition table with a small kernel partition at the end of firmware and the kernel will easily get oversized in the future. Since it has to be flashed using UART I also swapped kernel/rootfs and changed the default load address. Specification: - SoC: Atheros AR9344 - RAM: 128 MB - Flash: 16 MB - Ethernet: 10/100/1000 Mbps (Atheros AR8035) - 2x USB 2.0 - WIFI: AR9344(2G) + AR9382(5G) - RTC: DS1338 Known issue: 5G ath9k led doesn't work due to commit ccab68f. Flash instruction: Set up a TFTP server on your computer and configure static IP. Connect UART (J11 TX/GND/RX) and press any key to enter U-boot shell. 1. Change the default boot command: setenv bootcmd 'bootm 0x9f050000 || bootm 0x9fd50000' saveenv 2. Set your router ipaddr and server ipaddr. e.g.: setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.50 3. Load and flash the firmware: tftp 0x80060000 fw.bin erase 0x9f050000 +$filesize cp.b $fileaddr 0x9f050000 $filesize 4. Reset your router: reset Signed-off-by: Chuanhong Guo <gch981213@gmail.com> [Drop the i2c node unit address. Move the ath9k-leds node out of the spi node, it doesn't belong there. Add the #gpio-cells property to the pci wifi node. All fix dtc compiler warnings] Signed-off-by: Mathias Kresin <dev@kresin.me> merge
* ath79: fix ethernet configurations for I-O DATA ETG3-RINAGAKI Hiroshi2018-12-061-1/+13
| | | | | | | | | | | | This commit fixes several issues in eth0 on ETG3-R, and solve slowdown in NA(P)T speed. - add gmac-config with correct configurations - fix pll-data value And I added ref clock-frequency. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ath79: drop unused mtd splitterMathias Kresin2018-12-061-2/+0
| | | | | | | Neither the seama nor the wrgg splitter are used at the moment. Drop them for now to not bloat the target from the beginning. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: remove duplicate image build variablesMathias Kresin2018-12-066-19/+9
| | | | | | | Remove image build variables which are set to the same value as the default image build recipe. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: fix GL.iNet GL-AR300M sysupgradeMathias Kresin2018-12-065-7/+14
| | | | | | | | | | | The userspace boardname derived from the dts compatible was out of sync with the expected board added to the image metadata. This way a sysupgrade is refused. Sync the userspace boardname and the baordname used in the image metdata to allow a seamless sasupgrade. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: add SoC or family compatibleMathias Kresin2018-12-0626-30/+24
| | | | | | | Add missing SoC specific compatibles and/or inherit the family compatibles like "ubnt,xm". Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: add AVM EVA firmware partition compatibleDavid Bauer2018-12-062-0/+2
| | | | | | | | | | This commit adds firmware partition compatible for the AVM FRITZ!Box 4020 and AVM FRITZ!WLAN Repeater 300E. This allows to select the correct mtdsplit parser instead of trying all available ones one by one. Signed-off-by: David Bauer <mail@david-bauer.net>
* ath79: Define firmware partition format to all boards where applicablePetr Štetiar2018-12-0637-0/+37
| | | | | | | | | | Parsing "firmware" partition (to create kernel + rootfs) was implemented using OpenWrt downstream code enabled by CONFIG_MTD_SPLIT_FIRMWARE. With recent upstream mtd changes we can do it in a more clean way for DTS targets. It just requires adding a proper "compatible" string to the "firmware" partition node. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: rename qca9533.dtsi to qca953x.dtsiChuanhong Guo2018-12-068-11/+11
| | | | | | | | | qca9533 is a costdown version of qca9531 which doesn't have USB and PCIE. Rename the misleading dtsi names and fix the SoC type of gl-ar300m. Signed-off-by: Chuanhong Guo <gch981213@gmail.com> [apply the changes for the gl-x750 as well] Signed-off-by: Mathias Kresin <dev@kresin.me>
* apm821xx, ath79, ipq40xx, ipq806x, lantiq, ramips: base-files: Use generic ↵Petr Štetiar2018-12-061-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | diag.sh I wanted to add status LEDs support to my imx6 based board and have found out, that I could use diag.sh script found in ramips platform, which seems to be also shared in a few other platforms: 4801276bc2078c5bcf03003c831e3b0a target/linux/ramips/base-files/etc/diag.sh 4801276bc2078c5bcf03003c831e3b0a target/linux/ipq40xx/base-files/etc/diag.sh 4801276bc2078c5bcf03003c831e3b0a target/linux/ath79/base-files/etc/diag.sh And @chunkeey suggested to me, that I can also add lantiq, ipq806x and apm821xx to the list of platforms which could share this generic diag.sh. I've extended the base diag.sh in a way, that if it detects any of the DTS LED aliases, then it would use the generic DTS set_led_state code. The code in platform's diag.sh has moved to base-files package in this commit: base-files: diag.sh: Make it more generic towards DTS so it could be reused Signed-off-by: Petr Štetiar <ynezz@true.cz> Tested-by: Christian Lamparter <chunkeey@gmail.com> (apm821xx and ipq40xx)
* ath79: add support for Ubiquiti AirRouterRussell Senior2018-12-034-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indoor low-power router with 2.4 GHz radio CPU: Atheros AR7241 rev 1 RAM: 32 MB Flash: 8 MB NOR SPI Switch: Atheros AR7240 Ports: 1x WAN, 4x LAN 10/100 Ethernet WLAN: Atheros AR9285 (2.4 GHz) USB: 1x USB2 host port Note: Ethernet WAN/LAN port naming is reversed from ar71xx. WAN is eth0; LAN is eth1.1. UART settings: 115200, 8N1 LEDs +-------------------------- | | | | | | | | VCC | x x RX | * x | x x | x x TX | * x GND | * x | | | | +-------------------------- ETHERNET PORTS Installation from Ubiquiti firmware, is as for other ubnt-xm AirOs devices. Signed-off-by: Russell Senior <russell@personaltelco.net>
* ath79: split ubnt outdoor device leds into separate dtsiRussell Senior2018-12-035-31/+39
| | | | | | Move common LED configuration into a separate includible dtsi. Signed-off-by: Russell Senior <russell@personaltelco.net>