aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
Commit message (Collapse)AuthorAgeFilesLines
* ath79: add support for more AR7241 TP-Link boardsDmytro Smyrnov2018-06-288-0/+266
| | | | | | | | | | | Its common AP99(AR7241) platform with following devices: TP-Link TL-WR841N/ND v7 (SoC AR7241 / Wifi AR9287 / without USB) TP-Link TL-MR3220 v1 (SoC AR7241 / Wifi AR9285 / USB support) TP-Link TL-MR3420 v1 (SoC AR7241 / Wifi AR9287 / USB support) Signed-off-by: Dmytro Smyrnov <dioptimizer@hotmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: small wr1043nd-v4 fixesLucian Cristian2018-06-284-23/+36
| | | | | | | | | | | | | | | - fix sysupgrade check - move usb to v4 dts because v5 doesn't have it - make wan mac address behave like ar71xx target - add orange wan led support, it can be userspace activated like: on: echo default-on > /sys/class/leds/tp-link\:orange\:wan/trigger off: echo none > /sys/class/leds/tp-link\:orange\:wan/trigger Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add support for Ubiquiti UniFi AC-ProLucian Cristian2018-06-286-126/+178
| | | | | | | | rework the dts to a common unifi-ac dtsi pro network is connected via phy0 and has usb ports lite network is connected via phy4 without usb ports Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: sync naming of Ubiquiti devicesAdrian Schmutzler2018-06-284-7/+8
| | | | | | | Use a Unifi AC Lite board-/image name consistent with other Ubiquiti devices. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ath79: Remove all memory nodes defined in dtsChuanhong Guo2018-06-2824-120/+0
| | | | | | | This target can automatically detect the correct memory size and we've been using it for long in ar71xx. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* treewide: gpio-export: add error handlingMathias Kresin2018-06-281-1/+3
| | | | | | | | Check if the GPIO is valid (or set at all). If no GPIO is set in the devicetree, a gpiolib related kernel warning + stacktrace is shown during boot and gpio-export reports GPIOs as exported albeit none really is. Signed-off-by: Mathias Kresin <dev@kresin.me>
* firmware-utils: tplink-safeloader: switch tl-wr1043nd-v4 to dynamic partitionsLucian Cristian2018-06-271-1/+1
| | | | | | | Use the new dynamic partition split in tplink-safeloader so we no longer have to worry about kernel size increases. Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add support for TP-Link Archer c7 v2Sibren Vasse2018-06-266-1/+278
| | | | Signed-off-by: Sibren Vasse <github@sibrenvasse.nl>
* ath79: add tl-wr2543-v1 supportLucian Cristian2018-06-265-0/+205
| | | | | | to switch between wlan leds we need a userspace implementation Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add support for ON Networks N150RZoltan HERPAI2018-06-265-2/+32
| | | | | | | | | | | | This is a rebranded Netgear WNR612v2, specs are the same. - Atheros AR7240 (Python) @400MHz - flash 4MB - ram 32MB - ethernet 10/100: 1xwan + 2xlan (only two) - radio AR9285 Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* ath79: add Netgear WNR612 v2Zoltan HERPAI2018-06-267-0/+189
| | | | | | | | | | | | | | | Netgear WNR612 v2: - cpu Atheros AR7240 (Python) @400MHz - flash 4MB - ram 32MB - ethernet 10/100: 1xwan + 2xlan (only two) - radio AR9285 As there is a rebranded WNR612v2 called ON Networks N150R, add a dtsi which includes all device support, and add a separate dts for the device only (with a separate one for the subsequent N150R). Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* ath79: ar934x: use irq-ath79-intc driver and enable wmacJohann Neuhauser2018-06-204-9/+66
| | | | Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
* ath79: qca95xx: add new intc2, correct intc3 and add second pcie on qca9557Johann Neuhauser2018-06-203-9/+49
| | | | Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
* ath79: fix irq-ath79-intc driver and add support for other ath79 SoCsJohann Neuhauser2018-06-201-14/+52
| | | | | | | | | | | | | | Add the missing enable and disable function. Remove dummy mask and unmask function and use the one provided by irq_dummy_chip. Allow interrupt status register being defined from dts. Add ddr_wb_flush for ar934x/qca953x. Rename controller name to qca,ar9340-intc because this design was first introduced in AR934x. Signed-off-by: Chuanhong Guo <gch981213@gmail.com> Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
* ath79: fix qm5p-ac-v2 dts fileJohn Crispin2018-06-181-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ath79: add support for tl-wr1043nd v2/v3Lucian Cristian2018-06-186-23/+341
| | | | Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add initial nand support for gl-ar300mMarty E. Plummer2018-06-187-1/+123
| | | | Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
* ath79: initial gl-ar300m supportMarty E. Plummer2018-06-185-0/+436
| | | | Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
* ath79: fix rx ring buffer stall qca956xLucian Cristian2018-06-181-1/+2
| | | | | | when ported from ar71xx to ath79 the qca9560-eth was omitted Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add tl-wr1043nd-v4 support everything is workingLucian Cristian2018-06-185-11/+271
| | | | | | | tplink-safeloader: resize kernel partition kernel 4.14 is much bigger, resize the partition Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add ubiquiti unifi ap ac lite/lrLucian Cristian2018-06-184-0/+171
| | | | Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: ag71xx: fix pll-data setting for ar7242/ar934x/qca955x/qca956xWeijie Gao2018-06-181-10/+7
| | | | | | | | | | | ar71xx/ar913x series use the old pll registers and settings. However started from ar7242, a new pll register is introduced and the pll setting is much simpler. This can be observed from dev-eth.c from the ar71xx target. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ath79: add support for Phicomm K2TWeijie Gao2018-06-187-0/+587
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds dts for qca956x and also support for Phicomm K2T The qca965x.dtsi adds nearly all the necessary components. Both ath9k AHB and PCIe worked well. The Phicomm K2T uses MTD partition 'config' to store the mac addresses in JSON format. To extract these fields correctly, a script is introduced: /lib/functions/k2t.sh This script provides a helper function to extract mac addresses, and is used in three places. Hardware spec of Phicomm K2T: CPU: QCA9563 DRAM: 64MB DDR2 Flash: 16MB SPI-NOR Switch: QCA8337 WiFi 5.8GHz: QCA9886 Flash instruction: Apply sysupgrade.bin via serial console: tftp 0x80000000 sysupgrade.bin && erase 0x9f090000 +$filesize && cp.b $fileaddr 0x9f090000 $filesize Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ath79: move Netgear build code into a common makefileZoltan HERPAI2018-06-182-23/+23
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: bump 4.14 to 4.14.49Koen Vandeputte2018-06-181-3/+3
| | | | | | | | | Refreshed all patches Compile-tested on: cns3xxx, imx6, x86-64 Runtime-tested on: cns3xxx, imx6, x86-64 Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* ath79: clean up led config script files for all devicesJohann Neuhauser2018-06-167-34/+17
| | | | | | | | | 1. Move all status led definitions out of diag.sh into device dt as we use here a generic script hook. 2. Encode "phy0ptp" led trigger in dt of device for all ath79 devices. Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
* ath79: fix WNDR3800 supportHannu Nyman2018-06-161-12/+37
| | | | | | | | | | | | | | | | Fixes for WNDR3800 DTS: * fix bootcmd * name art partition to reference it for MACs * format firmware partition's address similarly as others * make u-boot-env read-only like in ar71xx * read wan and lan MACs from art * fix LED and button gpio values to match ar71xx (orange/green powerLED, reset button) * enable power LED in dts by alias led-status * define USB LED triggers and connect to USB port * change wifi button to KEY_RFKILL like in ar71xx Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* ath79: led-resets: add default-trigger propertyJohann Neuhauser2018-06-161-1/+4
| | | | | | | | | Add support for the common led property "linux,default-trigger". It allows to set a default led trigger via devicetree. Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de> [add commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ath79: fix usb led on wr-1043nd-v1Lucian Cristian2018-06-162-10/+1
| | | | | | | usb port was not triggered correctly also remove uneded wifi led trigger from the script Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: fixup TL-WR703N/TL-MR10U splitAlex Maclean2018-06-163-19/+13
| | | | | | | | | | | Readd SoC compatible strings and correct model names mangled in a51078f7354fac9e31f6956cbddc77aaef02c67b, cleanup dts to remove duplication, rename dtsi for clarity, use correct GPIO for TL-MR10U USB power. Tested only on TL-WR703N due to lack of a TL-MR10U. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add tl-mr3020-v1 supportLucian Cristian2018-06-085-12/+106
| | | | Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: wr1043: fix DTC warningsKarl Palsson2018-06-081-1/+1
| | | | | | Use the "correct" unit name to avoid DTC warnings. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: glinet ar150: fix DTC warningsKarl Palsson2018-06-081-1/+1
| | | | | | Supply a unit name to match other .dts files and avoid DTC warnings. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: ubnt: fix DTC warningsKarl Palsson2018-06-082-12/+10
| | | | | | | Use explicit labels instead of units with no reg's to avoid DTC warnings. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: wdr4300: avoid DTC warningsKarl Palsson2018-06-081-4/+2
| | | | | | Use direct button labels to avoid dtc warnings Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: buffalo_wzr-hp-g450h: fix dtc warningsKarl Palsson2018-06-081-13/+8
| | | | | | | | Just name buttons directly, rather than abstract and then also a label. Likewise for leds. Avoids DTC warnings about unit address with no reg parameter. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: avm_fritz300e: avoid dtc warningsKarl Palsson2018-06-081-1/+1
| | | | | | Use number formats preferred by the device tree compiler Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: mdio: add address-cells and size-cells defaultsKarl Palsson2018-06-081-0/+4
| | | | | | | Eliminates warnings about relying on defaults from the device tree compiler. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: ar9330.dtsi: fix typo in USB unit nameKarl Palsson2018-06-081-1/+1
| | | | | | | | | Make the unitname match the reg address. This fixes a DTC warning. Tested that USB is still functional on an ar9331 device including this dtsi. Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: add etactica-eg200 supportKarl Palsson2018-06-084-0/+160
| | | | | | | | | | | | | | | | | | | | Based on original ar71xx eg200 board files Tested working: * usb hub, storage and serial port * ethernet * wifi * leds * button sysupgrade from self->self passes validity checks. sysupgrade from old ar71xx->ath79 passes. (however this doesn't migrate wireless driver configs) Only unknown issue is the existance of a /sys/class/leds/ath9k-phy0, which doesn't "exist" Signed-off-by: Karl Palsson <karlp@etactica.com>
* ath79: add TP-Link TL-MR10U portAdoal Xu2018-06-085-133/+172
| | | | Signed-off-by: Adoal Xu <adoalxu@gmail.com>
* ath79: fix qca956x SoC bootLucian Cristian2018-06-071-0/+17
| | | | | | based on old ar71xx irq.c driver Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
* ath79: add WLAN, Ethernet-Switch with LAN/WAN and Status LED to DorinCatrinel Catrinescu2018-06-073-6/+15
| | | | Signed-off-by: Catrinel Catrinescu <cc@80211.de>
* ath79: lzma-loader: sync with ar71xx targetMatthias Schiffer2018-06-067-11/+29
| | | | | | | | | | | | | | Import all improvements made in the lzma-loader since development on the ath79 target started. This also reverts fe594bf90d09 ("ath79: fix loader-okli, lzma-loader"), as is obsoleted by 2ad60168b6af ("ar71xx: lzma-loader: move padding workaround to gzip step"). Likely, many of the changes should be ported to the ramips lzma-loader as well, but I don't have a device to test this. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* kernel: bump 4.14 to 4.14.48Stijn Tintel2018-06-052-7/+7
| | | | | | | | | | | | | | | | | | Remove upstreamed patches: generic/pending/101-clocksource-mips-gic-timer-fix-clocksource-counter-w.patch generic/pending/103-MIPS-c-r4k-fix-data-corruption-related-to-cache-coherence.patch generic/pending/182-net-qmi_wwan-add-BroadMobi-BM806U-2020-2033.patch lantiq/0025-MIPS-lantiq-gphy-Remove-reboot-remove-reset-asserts.patch Update patches that no longer apply: generic/pending/811-pci_disable_usb_common_quirks.patch ath79/0009-MIPS-ath79-add-lots-of-missing-registers.patch Fixes CVE-2018-6412. Compile-tested: octeon, x86/64. Runtime-tested: octeon, x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* ath79: correct wmac names in dtsAlex Maclean2018-06-012-2/+2
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add TP-Link TL-WR703N portAlex Maclean2018-06-013-0/+150
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add TP-Link TL-WR740N/ND v2 portAlex Maclean2018-06-015-0/+197
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add pinmux node to ar724x.dtsiAlex Maclean2018-06-011-0/+15
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add AR7240 dtsiAlex Maclean2018-06-011-0/+66
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>