aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: Disable all ethernet ports except port 0 on A5-V11.John Crispin2016-06-191-1/+2
| | | | | | | | | Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49292 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Disable all ethernet ports except port 4 on HT-TM02.John Crispin2016-06-191-0/+1
| | | | | | | | | Port 4 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49291 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Get rt3050 ethernet ports to be disabled from the device tree.John Crispin2016-06-191-0/+81
| | | | | | | | | | | | | | | This patch allows configuring ports to be disabled in the device tree; this saves power, since disabling ports here actually disables power to ethernet PHYs. Line 444 enables all ethernet ports, so line 487 is getting zero ports to be disabled, except for port 5 in SoCs where this is not implemented as it will be sticky disabled in register POC0. Because of this, the code will still read the switch configuration and OR it to the device tree setting. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49290 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix comment in rt3050 ethernet switch driver.John Crispin2016-06-191-0/+24
| | | | | | | | | | | | Line 444 is actually enabling all switch ports by setting the disable bits to 0. This needs to be done because the bootloader sets all ports to disabled by default (which is the case for at least one router based on RT5350). So, this patch fixes the comment in line 443. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49289 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix documentation for the rt3050 switch driver.John Crispin2016-06-191-0/+23
| | | | | | | | The prefix used in the driver is now "mediatek" instead of "ralink". Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49288 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.John Crispin2016-06-191-0/+26
| | | | | | | | | | | | | | | | | | The FCT2 esw register should be set to 0x2500C to have "unknown IPv6 multicast" packets broadcasted to every port, instead of dropped. The previous value only let those packets go through ports 1 and 3. "Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo requests addressed to well-known addresses, such as ff02::1 (MAC address is 33:33:00:00:00:01 in this case). Please note that by default ICMPv6 echo requests to ff02::1 are not replied to by the router because of ip6tables considering those packets to be invalid. But this is another bug/patch. ;) Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49287 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Planex MZK-EX750NP.John Crispin2016-06-198-1/+174
| | | | | | | | | | | add support for Planex MZK-EX750NP. MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater. Built-in power supply. 64MiB RAM, 8MiB SPI Flash, non Wired Ethernet. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49268 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for the Netgear WNDR3700v5John Crispin2016-04-268-0/+171
| | | | | | | | | | https://wiki.openwrt.org/toh/netgear/wndr3700 wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49247 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Planex MZK-EX300NPJohn Crispin2016-04-268-1/+153
| | | | | | | | | | MZK-EX300NP is MT7620A based wifi repeater. Built-in power supply. 64MiB RAM, 8MiB SPI Flash, non Wired Ethernet. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49235 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Planex CS-QR10John Crispin2016-04-268-1/+187
| | | | | | | | | | | | CS-QR10 is MT7620A based IP Camera. the camera and sound does not work with kernel 4.4. - camera chip is sn9c291. - sound chip is wm8960. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49234 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix build of targetHauke Mehrtens2016-04-241-10/+10
| | | | | | | | | | | | Makes the patches apply again by fixing the white space broken patch. This problem was introduced in r49212. Closes #22248 and #22259 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49221 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for ZBT WG3526John Crispin2016-04-217-1/+153
| | | | | | | | | | | | | | | | | | The WG3526 is the follow-up to the 2626 and is mostly the same, with the excaption that the mt7602 has been replaced with the mt7603. The internal wifi setup has also changed slightly. Based on my tests, everything that worked on the 2626 works on the 3526 and with roughly the same performance. v1->v2: * Remove some references to 2626 that I had missed in the dts. v2->v3: * Update patch to match new file structure. * Removed SD driver to be consistent with other MT7621 targets. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49213 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: awake rt305x USB controllerJohn Crispin2016-04-211-0/+15
| | | | | | | | | | | | | Because of Ralink uboot set USB controller into sleep mode [1] we check it and awake controller before any registers access. Fix ticket #21396 [2] [1] http://marc.info/?l=linux-usb&m=137398626102108&w=2 [2] https://dev.openwrt.org/ticket/21396 Signed-Off-By: Serge Vasilugin <vasilugin@yandex.ru> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49212 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for ELECOM WRH-300CRJohn Crispin2016-04-218-2/+172
| | | | | | | | | | | | | | ELECOM WRH-300CR is MT7620N based very small Wi-Fi router with 64MiB DDR2 SDRAM, 16MiB SPI Flash, one fast ethernet port, and (internal but easy-to-access) UART. it also has internal USB hub and USB card reader which provide one USB port, one SD card slot, and one microSD card slot. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49211 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update DTS file for Planex DB-WRT01John Crispin2016-04-211-1/+1
| | | | | | | | update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49209 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix support Planex MZK-750DHP.John Crispin2016-04-205-4/+41
| | | | | | | | | | fix script for Planex MZK-750DHP. modification of the GPIO definition. add Profile. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49205 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: rt3352 usbphy fix in dts-fileJohn Crispin2016-04-201-1/+8
| | | | | | | | Add missing rt3352 usb phy. Fix ticket #20499. Signed-Off-By:Serge Vasilugin <vasilugin@yandex.ru> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: update kernel 4.4 to version 4.4.7Hauke Mehrtens2016-04-161-3/+3
| | | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49176 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove accidentally comitted codeJohn Crispin2016-04-091-95/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49161 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Disable the SD driver by default on MT7621John Crispin2016-04-094-4/+4
| | | | | | | | | | | | | | | | The SD driver has been a long and dragging issue on the MT7621 platforms as it hasn't worked for months resulting in unbootable devices. Until it's fixed, disable it in the default profiles. Reports / Discussed here: https://dev.openwrt.org/ticket/21392 https://dev.openwrt.org/ticket/21834 https://dev.openwrt.org/ticket/21995 https://forum.openwrt.org/viewtopic.php?id=59092 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49131 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fixes for LinkIt 7688John Crispin2016-04-093-1/+78
| | | | | | | | | | | | | Misc fixes for LinkIt 7688 board: - Copy the right wireless firmware for the mt7688 - Add back '0065-mt7688-fixes.patch', left out after the move to Linux 4.4. - Remove SPI_DEV from linux config which otherwise causes a massive warning - Add wmac to LINKIT7688.dts so wireless works Signed-off-by: Adam Kent <adam@semicircular.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49130 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Adjust image size limit for the D-Link DIR-860L B1John Crispin2016-04-092-0/+96
| | | | | | | | | | Currently the maximum image size defaults to 8Mbyte even though this model has 16Mbyte of flash memory. Tested and works on my device. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49129 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix for Planex MZK-WDPR (lcd control gpio).John Crispin2016-04-091-0/+10
| | | | | | | | | add lcd control gpio pin for Planex MZK-WDPR. LCD board initial timming is GPIO control. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49128 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: fix Ubiquiti EdgeRouter X profileJohn Crispin2016-04-091-1/+2
| | | | | | | | Remove unnecessary packages to reduce image size so it fits in initramfs (to enable upgrading from factory firmware). Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: sync MQmaker WiTi profile name to dts nameJohn Crispin2016-04-091-3/+3
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49126 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable device profiling by dtsJohn Crispin2016-04-091-0/+1
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49125 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: add a device to TARGET_DEVICES after it's definitionJohn Crispin2016-04-091-4/+12
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49124 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: fix initramfs image for ubnt-erxJohn Crispin2016-04-091-46/+20
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49123 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: move different subtarget image generation to separate makefiles to ↵John Crispin2016-04-018-935/+865
| | | | | | | | | | | | | | improve maintainability - all subtarget specific defines are in their own files - common defines left in main Makefile - each subtarget makefile idefed with SUBTARGET - all subtargets compile tested - few seems to be broken/unneeded things marked with FIXME Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49104 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: lzma-loader: fix O32 ABI conformanceGabor Juhos2016-03-211-0/+3
| | | | | | | | | | | | | | | | | | | According to the calling convention of the o32 ABI the caller function must reserve stack space for $a0-$a3 registers in case the callee needs to save its arguments. The assembly startup code does not reserve stack space for these registers thus when the main C function needs to save its arguments, that will cause a stack overflow. Fix the assembly code to reserve stack space for the registers to avoid that. Untested. It seems that the lzma-loader is not used at all? Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49062 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: MiWifi-Nano - change gpios to leds, add to default build groupJohn Crispin2016-03-203-23/+21
| | | | | | | | | | | | 1) Use leds to indicate: Red - Power Amber - Radio On Blue - Wifi associated 2) Add profile to default build group for MT7628 subtarget Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49045 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for Xiaomi MiWiFi NanoJohn Crispin2016-03-166-0/+126
| | | | | | | | | | | | | | | Xiaomi MiWiFi Nano is based on Mediatek MT7628 with 64MB ram 16MB flash Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com> v3 includes changes suggested by L. D. Pinney & Karl Palsson- Eliminate en25q64 (4MB) flash chip Alphabetization Remove hyphen in model Rename profile from miwifinano.mk to xiaomi.mk Add gpios that are attached to leds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49024 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for GL-MT750John Crispin2016-03-107-1/+177
| | | | | | | | This patch adds support for GL-MT750. GL-MT750 is powered by MT7620A and MT7610e, dual band 802.11ac, 2.4G 300Mbps and 5G 450Mbps. It has 5 LANs, MMC interface, USB, a lot of IOs and PoE support. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48994 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for GL-MT300NJohn Crispin2016-03-107-1/+173
| | | | | | | | This patch adds support for GL-MT300N. GL-MT300N is powered by MT7620N with 16MB flash, 64MB RAM, 2 LANs, USB, UART, GPIO and PoE support. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48993 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for GL-MT300AJohn Crispin2016-03-107-0/+190
| | | | | | | | This patches adds support for GL-MT300A. GL-MT300A is powered by MT7620A. It has 16MB flash, 128MB RAM, Two LANs, USB, UART and MMC daughter board. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48992 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Planex MZK-WDPR.John Crispin2016-03-085-0/+84
| | | | | | | | | | | add support for Planex MZK-WDPR. MZK-WDPR(MZK-WDPR-R01) is internet radio tuner. This patch is "network board" in MZK-WDPR. LCD board is non OpenWrt Platform. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48968 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: convert the remaining subtargets to 4.4Felix Fietkau2016-03-0789-35482/+65
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48954 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)Felix Fietkau2016-03-072-1/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48953 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add linux 4.4 support, update mt7621 subtarget to 4.4Felix Fietkau2016-03-0769-13/+30076
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48951 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: fix WF-2881 for ubi splitJohn Crispin2016-03-042-14/+5
| | | | | | | | This patch fix firmware split for WF-2881 which was previously manually partitioned. Signed-off-by: YounJae Rho <luxflow@live.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48908 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add profiles for JCG routersJohn Crispin2016-03-042-0/+60
| | | | | | | | | | This patch adds profiles and support for building factory and sysupgrade images for JHR-N805R, JHR-N825R and JHR-N926R. Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48906 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add JCG routers to base-filesJohn Crispin2016-03-044-0/+18
| | | | | | | | | | This patch adds support for JHR-N805R, JHR-N825R and JHR-N926R to various scripts in the base-files directory. Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add device tree for JCG JHR-N926RJohn Crispin2016-03-041-0/+127
| | | | | | | | | | | | | | | | Add a device tree for JCG JHR-N825R This router is based on a RT3052 and has 4MB of CFI flash and 32MB of SDRAM. As a special feature, it comes with a two digit seven segment display that is connected to a pair of daisy-chained 74164 shift registers that can be controlled via GPIOs. For details, see https://wikidevi.com/wiki/JCG_JHR-N825R . Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48904 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add device tree for JCG JHR-N825RJohn Crispin2016-03-041-0/+81
| | | | | | | | | | | | Add a device tree for JCG JHR-N825R This router is based on a RT3052 and has 4MB of CFI flash and 32MB of SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N825R . Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48903 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add device tree for JCG JHR-N805RJohn Crispin2016-03-041-0/+89
| | | | | | | | | | | | Add a device tree for JCG JHR-N805R This router is based on a RT3050 and has 4MB of SPI flash and 16MB of SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N805R . Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48902 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Incorrect file mode changeJohn Crispin2016-03-034-0/+0
| | | | | | | | | | | Commit d0f5ab6d95a1 ("ramips: Added support for ZBT-826 / ZBT-1026") incorrectly changed the mode of the ramips shell scripts from 755 to 644. I.e., they are not excutable any more and for example devices will be left with broken configs. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48893 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable mt76 on mt7688 by defaultFelix Fietkau2016-03-022-0/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48886 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Added support for ZBT-826 / ZBT-1026John Crispin2016-03-017-0/+155
| | | | | | | | | Support for these MT7620-based routers: https://wiki.openwrt.org/toh/zbt/we-826 Based on Oskari’s patches found here: https://dev.openwrt.org/ticket/19996 Signed-off-by: Jamie Stuart <jamie@onebillion.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48865 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add sysupgrade support for mt7628Felix Fietkau2016-02-281-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48813 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: create device tree node for MT7628 WMAC in preparation for future ↵Felix Fietkau2016-02-282-0/+17
| | | | | | | | work on driver support in mt76 Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48812 3c298f89-4303-0410-b956-a3cf2f4a3e73