aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: ZTE-Q7: fix switch driver initialization in DTS (FS#716)Jo-Philipp Wich2017-04-271-2/+4
| | | | | | | | | | Add the changes suggested by FS#716 to fix the switch driver initialization on the ZTE Q7. Also remove the `pinctrl-names` field obsoleted by the changes. Reported-by: Harry Lau <harrylwc@gmail.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: fix syntax error in board.d/01_ledsMathias Kresin2017-04-271-1/+1
| | | | | | | | | | Fixes the following error: syntax error: unexpected newline (expecting ")") Fixes: FS#739 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: ZBT-WE826: include the correct dtsiMathias Kresin2017-04-273-6/+4
| | | | | | | | | Fix a copy/paste error and include the ZBT-WE826 dtsi instead of the ZBT-WG3526 one. Fix the syntax error in the ZBT-WE826 dtsi to prevent an compile error. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: use the ZBT-WE826 power LED for status indicationMathias Kresin2017-04-252-2/+1
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add ZBT-WE826 32MB variantMathias Kresin2017-04-259-19/+57
| | | | | | | | The ZBT-WG826 is available with 16 or 32 MByte of flash. Split the device tree source file, rename the currently supported 16 MByte version and add the 32 MByte variant. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: rename Digineo AC1200 Pro to ZBT-WG3526 32MBMathias Kresin2017-04-258-29/+23
| | | | | | | | The Digineo AC1200 Pro is the 32MB flash variant of the ZBT-WG3526 with unpopulated/exposed sdhci slot. Rename to board to the OEM/ODM name and add the sdhci kernel module to use it for multiple clones. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: prepare ZBT-WG3526 for hardware variantsMathias Kresin2017-04-256-11/+14
| | | | | | | | The ZBT-WG3526 is available with 16 or 32 MByte of flash. Rename the current supported 16MByte version to indicate which flash size variant is supported. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for ZBT-WE1326Jiawei Wang2017-04-255-0/+120
| | | | | | | | | | | | | | | | | | | Specification: - SoC: MT7621AT, MT7603EN and MT7612EN - Flash: 16 MiB (W25Q128FVSG) - RAM: 512 MiB (EM6GE16EWXD-12H) - Ethernet: 1 x WAN (10/100/1000Mbps) and 4 x LAN (10/100/1000 Mbps) - Others: USB 2.0, micro SD slot, reset button and 8 x LEDs Issues: - Two LEDs for 2.4 GHz and 5 GHz Wi-Fi do not work, can't find GPIOs. - The pwr LED is not GPIO controllable How to install: - The original firmware is OpenWrt, so both LuCI or sysupgrade can be used. - Do not keep settings, for sysupgrade please use the -n option. Signed-off-by: Jiawei Wang <buaawjw@gmail.com>
* ramips: fix ZyXEL Keenetic Omni/Omni II GPIOsAlexey Belyaev2017-04-252-6/+22
| | | | | | | Each GPIO bank has only 24 gpios. Use and enable the correct banks for GPIOs > 24. Signed-off-by: Alexey Belyaev <spider@spider.vc>
* ramips: fix ZyXEL Keenetic Omni switch configAlexey Belyaev2017-04-252-2/+2
| | | | | | | The wan port is connected to switch port 0. Fix the mediatek,portmap as well as the default switch config. Signed-off-by: Alexey Belyaev <spider@spider.vc>
* ramips: update DEVICE_PACKAGES for Ubiquiti EdgeRouter XMatthias Schiffer2017-04-221-1/+1
| | | | | | Fixes removal of unneeded kernel modules with per-device rootfs. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ramips: add former board names to PSG1218 variantsDaniel Golle2017-04-211-0/+2
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: dont replace the board nameMathias Kresin2017-04-215-44/+86
| | | | | | | | | | Use fixed led names and add each board variant instead of manipulating the board name. It makes the ramips board name function less different to the one used in other targets and allows to merge them with a common function. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add former used board names to metadataMathias Kresin2017-04-212-0/+8
| | | | | | | | | We need to keep the former used (unmodified) boardname in the metadata. Otherwise an upgrade from an board using the old boardname will be refused. Fixes: a75ce960ac1b ("ramips: use different board names for variants") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: rename PSG1218 to match labelDaniel Golle2017-04-218-30/+30
| | | | | | | | Fix previous commit to be less ambigous: PSG1218 rev.A = 5 ports, external PA, heatsinks PSG1218 rev.B = 4 ports, internal PA, no heatsinks Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: split Phicomm PSG1218 and PSG1218K2CDaniel Golle2017-04-219-84/+145
| | | | | | | | | PSG1218 got only 4 Ethernet ports and WAN on port 3 while PSG1218K2C got 5 Ethernet ports and WAN on port 4 Switch to use kmod-kt76x2 instead of kmod-mt76 for both devices while at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: update kernel 4.4 to 4.4.61Jo-Philipp Wich2017-04-151-21/+0
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: really drop the rt-n56u factory imageMathias Kresin2017-04-131-1/+0
| | | | | | Remove the stale reference to the factory image. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix Netgear R6220 package selectionMathias Kresin2017-04-131-1/+1
| | | | | | | | | | | | | The Netgear R6220 requires the kmod-usb3 package and misses kmod-usb-ledtrig-usbport package to setup the configured usb led trigger. Drop the already target selected kmod-mt76. Fixes: FS#686 Fixes: 38bee61dab02 ("ramips: add support for Netgear R6220") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add RP-N53 pcie wireless eepromMathias Kresin2017-04-131-0/+9
| | | | | | | | | | Fix the PCIe 5GHz wireless by using the on flash eeprom/caldata. Disable the 2.4GHz band as this band has no antennas attached but is enabled in the eeprom/caldata. Fixes: FS#691 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix WHR-600D eeprom dt propertyMathias Kresin2017-04-131-3/+3
| | | | | | | | | | | Fix the PCIe 5GHz wireless by using the ralink mtd-eeprom property as this board have a RT5592 and uses the rt2x00 driver. The mediathek device tree bindings do not work here. Fixes: FS#691 Fixes: d8dd207ea6f2 ("ramips: use the ralink,mtd-eeprom device tree property") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: drop rt-n56u factory imageMathias Kresin2017-04-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | The factory image has an uImage header covering the entire image and not only the kernel. The original uImage header which covers only the kernel is appended to the end of the image. During LEDE boot the uImage rootfs splitter skips the whole filesystem, can't find a valid filesystem magic and panics. The last known working version was OpenWrt 14.07, which simply kept on searching for an uImage header if the first found didn't resulted into a working rootfs. This behaviour is kind of error prone since it could produce false positives. Since the sysupgrade image works fine in combination with the tftp recovery for doing the initial installation of LEDE, simply drop the factory image. Related: FS#462 Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to 4.4.59Hauke Mehrtens2017-04-021-1/+1
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update kernel 4.9 to 4.9.20Hauke Mehrtens2017-04-021-7/+3
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: fix pcie irq mapping for mt7621 on v4.9John Crispin2017-03-281-10/+18
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* kernel: update kernel 4.9 to 4.9.17Hauke Mehrtens2017-03-266-59/+10
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update kernel 4.4 to 4.4.56Hauke Mehrtens2017-03-264-36/+6
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: fix Xiaomi MiWiFi Nano firmware partition sizeMathias Kresin2017-03-241-1/+1
| | | | | | | | | | Even the commit message of the patch adding support for the MiWiFi Nano says that a 16 MB flash chip is used. Extend the firmware partition to make use of all available flash space. Fixes: FS#622 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix mt7621 boot on v4.9John Crispin2017-03-231-0/+21
| | | | | | | v4.9 CM code has a few bugs on this HW. Disable the GCR register access during boot. This caused a cpu stall. Signed-off-by: John Crispin <john@phrozen.org>
* ramips: clean kernel config symbol conflicts for MT7688 PWMFurong Xu2017-03-202-6/+0
| | | | | | pwm-mediatek should be selected in Other Modules submenu, not default to yes. Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix switch port mapping for ZBT-WE2026Vaclav Svoboda2017-03-201-2/+2
| | | | | | This patch fixes switch port mapping for Zbtlink ZBT-WE2026. Signed-off-by: Vaclav Svoboda <svoboda@neng.cz>
* ramips: add support for Zbtlink ZBT-WE2026Vaclav Svoboda2017-03-177-1/+119
| | | | | | | | | | | | | | | | | | This patch adds support for the Zbtlink ZBT-WE2026. Specification: - SoC: MediaTek MT7620N (580MHz) - RAM: 64 MiB - Flash: 8 MiB SPI - LAN: 4x100M - WAN: 1x100M Installation through bootloader webserver: - With the power unplugged press and hold reset button. - Plug power and hold reset button until LED starts to blink. - Install sysupgrade image using web interface on 192.168.1.1. Signed-off-by: Vaclav Svoboda <svoboda@neng.cz>
* ramips: sort mt7620 image file alphabeticalMathias Kresin2017-03-121-246/+246
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for Netgear EX3700Joseph C. Lehner2017-03-127-0/+184
| | | | | | | | | | | | | | | | Specifications: * SoC: MT7620A * RAM: 64 MB DDR * Flash: 8MB NOR SPI flash * WiFi: MT7612E (5Ghz) and builtin MT7620A (2.4GHz) * LAN: 1x100M The -factory images can be flashed from the device's web interface or via nmrpflash. Co-authored-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: add support for Netgear R6220Hanqing Wong2017-03-127-1/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the Netgear R6220, aka Netgear AC1200 and R6220-100NAS. Specification: - SoC: MediaTek MT7621ST (880 MHz) - Falsh: 128 MiB (Macronix MX30LF1G08AA-TI) - RAM: 128 MiB (Nanya NT5CB64M16FP-DH) - Wireless: MediaTek MT7603EN b/g/n , MediaTek MT7612EN an+ac - LAN speed: 10/100/1000 - LAN ports: 4 - WAN speed: 10/100/1000 - WAN ports: 1 - Serial baud rate of Bootloader and factory firmware: 57600 Installation through telnet: - Copy kernel.bin and rootfs.bin to a USB flash disk, plug to usb port on the router. - Enable telnet with link: http://192.168.1.1/setup.cgi?todo=debug (login if required, default: admin password) - You will see "Debug Enabled!" - Telnet 192.168.1.1 and login with "root" - ls /mnt/shares/ to find out path of your USB disk. 'myUdisk' for example. - cd /mnt/shares/myUdisk - mtd_write write rootfs.bin Rootfs - mtd_write write kernel.bin Kernel - reboot nmrpflash can be used to recover to the netgear firmware if a broken image was flashed. Signed-off-by: Hanqing Wong <hquu@outlook.com>
* ramips: Improve Sanlinking D240 configKristian Evensen2017-03-112-1/+12
| | | | | | | | | | | | | | | | | * The left most mini-PCIe slot (the one attached to SIM2) can be power-cycled by setting GPIO 0 to high/low. * The D240 only needs the MT76x2 module, so update makefile to reflect this. Note that until the default mt7620 target is updated, then kmod-mt76 (and thus kmod-mt7603) will be selected by default. v2->v3: * Indentation error. v1->v2: * Rename gpio and remove redundant comment (thanks Piotr Dymacz) Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
* ramips: kmod-sdhci-mt7620: switch dependence to kmod-mmcFurong Xu2017-03-113-5/+5
| | | | | | | mtk-mmc/mtk_sd.ko only depends on mmc_core and mmc_block. And, we remove kmod-sdhci dependence assignment from all related target devices. Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix Linksys RE6500 switch port mappingJo-Philipp Wich2017-03-071-1/+4
| | | | | | | | Properly map the internal switch ports to the proper LAN1..LAN4 labels. Fixes #530. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: remove kmod-mt76* from EX2700 imagesJoseph C. Lehner2017-03-011-1/+1
| | | | | | | These modules are not needed by the EX2700, since it does not have an external wifi chip (MT7620A is covered by rt2x00). Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: rename patch file suffix from .c to .patchFurong Xu2017-03-012-0/+0
| | | | Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: add support for Afoundry EW-1200Francois Goudal2017-03-017-0/+142
| | | | | | | | | | | | | | | | | | | | | | This device features both a 2.4 and 5Ghz radio, and supports 802.11a/b/g/n/ac modes. It has 5 Gb-Ethernet ports and a USB 3.0 host port. It is powered by the Mediatek MT7621 SoC, and the MT7602E and MT7612E wifi chipsets, together with 128MB of RAM and 16 MB of SPI Flash. The stock firmware is in fact based on some openwrt barrier breaker, with a mediatek SDK kernel, and an afoundry custom made web interface (not LuCI based). Firmware update page on the stock web interface can not accept sysupgrade images, it bricks the device. At this point, the only working solution I found was to connect to the serial console port (available on J4 header) and to use opkg to install dropbear. Then scp the sysupgrade file in the device's /tmp and run sysupgrade from console without preserving configuration files. Signed-off-by: Francois Goudal <francois@goudal.net>
* ramips: add support for HiWiFi HC5962ZengFei Zhang2017-02-286-1/+176
| | | | | | | | | | | | | | | | | | | | | | | | | This patch adds supports for the HiWiFi HC5962(gee4) http://www.hiwifi.com Short specification: - MT7621AT + MT7612EN + 7603EN - 256MB DDR3 RAM - 128MB NAND flash - 1+3 x 1000M Ethernet - 1x USB 2.0 port. 1x USB 3.0 port. - reset button - UART pad on PCB (JP3: TX, RX, GND, 3.3V) Flash instruction: 1, Download lede-ramips-mt7621-hc5962-squashfs-factory.bin 2, Login as root via SSH on 192.168.199.1 and then copy factory.bin(using wget or nc or...) to /tmp/ 3, use the following commands: $ mtd write /tmp/lede-ramips-mt7621-hc5962-squashfs-factory.bin firmware $ mtd erase firmware_backup && reboot After reboot you should be able to login as root via SSH on 192.168.1.1 Signed-off-by: ZengFei Zhang <zhangzengfei@kunteng.org>
* ramips: add support for HiWiFi HC5661AWang JiaWei2017-02-277-2/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HC5661A is almost the same as HC5661 but MT7628AN is used instead of MT7620A. - MT7628AN - 128 MiB DDR2 RAM (W971GG6KB-25) - 16 MiB SPI NOR flash (W25Q128) - SD slot (not work yet) - 1+4 x 100M Ethernet - 802.11 b/g/n Wi-Fi - 3 x LED - 1 x button - UART pad on PCB (JP1: TX, RX, GND, 3.3V) The factory flash layout seems different from HC5661. "hwf_config" is renamed to "oem" and its size changes to 0x20000. It is modified accordingly in the dts file. 0x000000000000-0x000000030000 : "u-boot" 0x000000030000-0x000000040000 : "hw_panic" 0x000000040000-0x000000050000 : "Factory" 0x000000050000-0x000000160000 : "kernel" 0x000000160000-0x000000fc0000 : "rootfs" 0x000000bb0000-0x000000fc0000 : "rootfs_data" 0x000000fc0000-0x000000fe0000 : "oem" 0x000000fe0000-0x000000ff0000 : "bdinfo" 0x000000ff0000-0x000001000000 : "backup" 0x000000050000-0x000000fc0000 : "firmware" To install LEDE, enabled the "developer mode", which will *void your warranty* and open the SSH server at port 1022. sysupgrade -n -F lede-ramips-mt7628-hc5661a-squashfs-sysupgrade.bin SD slot: - Tried to add modules kmod-sdhci kmod-sdhci-mt7620, and corresponding dts block. - It will block WAN + 3xLAN ports, only one LAN works. - I'm not sure why, everything else works fine. Signed-off-by: Wang JiaWei <buaawjw@gmail.com>
* ramips: include only kmod-mt76-core in EX2700 imageJoseph C. Lehner2017-02-261-0/+1
| | | | | | | This patch frees up flash space on the EX2700, by removing unused mt76 drivers and firmware. Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: fix the number of uarts for MT7688Furong Xu2017-02-162-4/+4
| | | | | | Same as MT7621 and MT7628, MT7688 allows up to 3 uarts Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix PWM pin mux conflict in dtsiFurong Xu2017-02-161-4/+0
| | | | | | | | | | | | | GPIO18 and GPIO19 on OMEGA2(+) should be GPIO mode, enable PWM lead to a conflict [ 0.290633] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm [ 0.299722] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22 [ 0.305729] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0 on device rt2880-pinmux [ 0.315131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back Keep PWM disabled. Signed-off-by: Furong Xu <xfr@outlook.com>
* kernel: update kernel 4.9 to version 4.9.10Hauke Mehrtens2017-02-164-7/+7
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: replace remaining instances of ralink, port-mapDaniel Golle2017-02-1511-11/+11
| | | | | | | | | | | | Some boards were apparently forgotten when ralink,portmap was renamed to mediatek,portmap -- probably because they used the long obsolete ralink,port-map attribute. If this commit breaks ethernet wan/lan assignment, this is because the port-map attribute wasn't actually parsed, you'll have to replace "wllll" by "llllw" in the dts file belonging to that board (and send a patch doing that!) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: fix mt7621 ethernet support for v4.9John Crispin2017-02-152-1/+8
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ramips: export slic IRQ line in dwr-512Giuseppe Lippolis2017-02-151-0/+4
| | | | | | | | The DWR-512 embeds the hw slic device si3210. This device have the IRQ line attached to the gpio1. This patch export the gpio1 with proper name and parameters to the sysfs. Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>