aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* ar71xx: add ath10k driver and firmware for Netgear R6100 to firmware imageStijn Segers2017-03-111-1/+1
| | | | | | | | A Netgear R6100 owner reported the LEDE images lack the ath10k driver and firmware [1]. This patch adds both to the R6100 image. [1] https://forum.lede-project.org/t/netgear-r6100-5ghz-wifi-not-working-after-initial-install/2222 Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
* kernel: add another missing TPM symbolJohn Crispin2017-03-113-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* 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>
* mediatek: fix ESW EINT pinctrl defineJohn Crispin2017-03-111-2/+20
| | | | | | | This got lost while bumping the target to v4.9 causing ethernet issues on some boards. Signed-off-by: John Crispin <john@phrozen.org>
* bcm53xx: use upstream fix for iproc regressionRafał Miłecki2017-03-102-28/+131
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: fix memory corruption caused by iproc PCE controller driverRafał Miłecki2017-03-091-0/+28
| | | | | | This is a simple revert of upstream patch for now. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mvebu: add default sata triggerAnsuel Smith2017-03-083-0/+60
| | | | | | | | | | | Change dts file to add default sata trigger to sata led. Backport upstream accepted patch to add sata trigger to device tree source files already upstreamed. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [backport upstream accepted patch] Signed-off-by: Mathias Kresin <dev@kresin.me>
* mvebu: enable disk led triggerAnsuel Smith2017-03-081-0/+1
| | | | | | As we have a disk led we enable the disk trigger that work with the easata port Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* lantiq: add support for the Alpha ASL56026Alex Maclean2017-03-083-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ASL56026 is a VDSL2 router with dual 100mbit ethernet, also known as the ECI B-FOCuS V-2FUb/I. CPU: Lantiq XRX268 v1.1 at 333MHz Modem: Lantiq VRX208 RAM: 32MiB DDR2 at 167MHz Flash: 8MiB NOR, Spansion S29GL064N90TF04 UART is at JP1: Pin 1 TX Pin 2 GND Pin 3 +3.3V Pin 4 NC Pin 5 RX Boot selection pins are exposed via several resistor jumpers: boot_sel0 is at J15, on the rear of the board. Default is high. boot_sel1 is at J3, next to the flash - it is also the flash CE# pin. Default is low. boot_sel2 is at J12, directly below the SoC. Default is low. boot_sel3 is at J16, on the rear of the board. Default is low. The boot_sel pins should never be shorted, the jumper must be moved or a lower value resistor used to change the pull (existing resistors are 4k7, 1k should work) To install with the stock bootloader you must break the built in image selection process which uses at least the following vars: f_upgrade_addr, f_upgrade2_addr, loadaddr, kernel_addr, activeregion, committedregion This is done by setting loadaddr and both f_upgrade_addr vars to the same address: VR9 # setenv loadaddr 0xB0040000 VR9 # setenv f_upgrade_addr 0xB0040000 VR9 # setenv f_upgrade2_addr 0xB0040000 VR9 # saveenv Then flash the firmware image: VR9 # tftpboot 0x81000000 lede-lantiq-xrx200-ASL56026-squashfs-sysupgrade.bin VR9 # erase B0040000 +${filesize} VR9 # cp.b 0x81000000 0xB0040000 ${filesize} Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* lantiq: clarify VG3503J nameAlex Maclean2017-03-081-1/+1
| | | | | | | Append the ECI model to the device name, to avoid confusion with the older model. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* kernel: backport first bcma 4.12 patch for GPIO and of_nodeRafał Miłecki2017-03-082-0/+24
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq806x: clean up dts patchFelix Fietkau2017-03-0812-4060/+3873
| | | | | | Move dts files to files/, remove useless patch chunks Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: re-apply 300-arch-arm-force-ZRELADDR-on-arch-qcom.patch on 4.9 (FS#549)Felix Fietkau2017-03-082-1/+62
| | | | | | | Fixes memory corruption issues. See commit bdcba36442a4 for more details. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: refresh patchesFelix Fietkau2017-03-087-84/+78
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix of_node handling in LEDs core codeRafał Miłecki2017-03-086-0/+496
| | | | | | | | | This backports fixes for setting of_node and making it possible to read extra info from DT. This was partially fixed by: [PATCH] leds: leds-gpio: Set of_node for created LED devices but it didn't work during initialization. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm2708: detect Raspberry Pi Zero WStijn Tintel2017-03-083-1/+8
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* brcm2708: order boards and models alphabeticallyStijn Tintel2017-03-084-20/+24
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* 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>
* ar71xx: fix build without CONFIG_NOP_USB_XCEIV (FS#593)Felix Fietkau2017-03-071-9/+6
| | | | | | | | Open-code usb_phy_generic_register instead of calling it, since it is really trivial. Avoid pulling CONFIG_NOP_USB_XCEIV into the kernel config and add a proper dependency instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: disable deprecated CONFIG_USB_EHCI_ATH79 symbolFelix Fietkau2017-03-072-0/+2
| | | | | | USB_EHCI_HCD_PLATFORM is used instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix whiteout rename on ubifs (FS#579)Felix Fietkau2017-03-061-0/+25
| | | | | | This was apparently caused by some linux upstream merge damage Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: set status led for the gl-* boardsWojciech Jowsa2017-03-064-128/+129
| | | | Signed-off-by: Wojciech Jowsa <w.jowsa@radytek.com>
* kernel: more tpm related symbolsJohn Crispin2017-03-063-0/+5
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* malta: restore "be" subtarget from being source-onlyYousong Zhou2017-03-054-1/+4
| | | | | | | | | | The malta "be" and "le" subtargets share the arch with many devices of ar71xx and ramips. They can be handy for testing, debugging, trying both snapshot and release builds. This commit makes the "be" subtarget part of the ci and release builds Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* brcm2708: add support for the new Raspberry Pi Zero WÁlvaro Fernández Rojas2017-03-042-5/+9
| | | | | | Support is experimental since I haven't got any device to test. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm2708: update linux 4.9 patches to latest versionÁlvaro Fernández Rojas2017-03-04203-2012/+8458
| | | | | | | | | | As usual these patches were extracted and rebased from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.9.y - Remove led1 from diag.sh for RPi3 since it causes boot issues. - Fix modules.mk typos. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: update kernel 4.4 to 4.4.52Kevin Darbyshire-Bryant2017-03-0314-96/+28
| | | | | | | | | | | | Bump kernel from 4.4.50 to 4.4.52 Refresh patches Compile tested all 4.4. targets Run tested: ar71xx Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* 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>
* kernel: fix earlycon by keeping __earlycon_tableRafał Miłecki2017-03-012-1/+10
| | | | | | | | Somewhere between 4.4 and 4.9 there was a change that made OF_EARLYCON_DECLARE adding entries to the __earlycon_table instead of __earlycon_of_table. We need to keep this table as well. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: backport Broadcom's iProc QSPI driverRafał Miłecki2017-03-019-0/+2300
| | | | | | | | This driver has been added instead of improving spi-bcm53xx. It has some advantages: allows SPI speed control & hopefully doesn't have bug that was stopping us from using multiple SPI messages for writing flash data. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kirkwood: fix include in etc/board.d/02_networkAlberto Bursi2017-02-281-0/+1
| | | | | | the mtd_get_mac_ascii function called within this script requires the inclusion of /lib/functions/system.sh Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
* 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>
* bcm53xx: backport accepted BCM5301X and BCM53573 patchesRafał Miłecki2017-02-2818-0/+1378
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix MIPS memory function optimization build error in decompressorFelix Fietkau2017-02-281-10/+20
| | | | | | | | | | | | | | | | | | Fixes the following build error: CC arch/mips/boot/compressed/decompress.o OBJCOPY arch/mips/boot/compressed/vmlinux.bin XZKERN arch/mips/boot/compressed/vmlinux.bin.z OBJCOPY arch/mips/boot/compressed/piggy.o LD vmlinuz arch/mips/boot/compressed/decompress.o: In function `lzma2_lzma': /tmp2/mehrtens/linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:884: undefined reference to `memmove' make[1]: *** [vmlinuz] Error 1 make: *** [vmlinuz] Error 2 lib/decompress_unxz.c only defines its own memmove function if there is no macro with the same name. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* bcm53xx: enable CLK_BCM_NSP for kernel 4.9Rafał Miłecki2017-02-281-1/+1
| | | | | | This is required to get booting kernel. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm63xx: CPVA502+: add SPROM wifiDaniel Gonzalez Cabanelas2017-02-2842-111/+118
| | | | | | | | | | Add SPROM wifi to the kernel board data. After this fix, the wifi won't work anyway due the lack of RAM memory (16 MB). It will throw a kernel panic when loading the b43 drivers. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix userspace supportDaniel Gonzalez Cabanelas2017-02-283-2/+5
| | | | | | Fix board name typo, fix network configuration and add a led trigger. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix image generationDaniel Gonzalez Cabanelas2017-02-281-4/+3
| | | | | | Fix typo, erase pointless option and allow to build the image. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix LEDs and buttons at DTSDaniel Gonzalez Cabanelas2017-02-281-3/+17
| | | | | | Leds are wrong and a button is missing, fix them. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: fix external IRQ edge type senseDaniel Gonzalez Cabanelas2017-02-281-1/+1
| | | | | | | | | | Fix the register for configuring rising/falling edge Rising should be sense=1, and falling sense=0. The old driver used these values, but the new one have them flipped. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* kernel: sort generic configsJonas Gorski2017-02-283-62/+60
| | | | | | | Use kconfig.pl to sort the generic configs and get rid of duplicate entries. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: add another missing TPM symbolJohn Crispin2017-02-273-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* kernel: add missing TPM related config symbol for 3.18Felix Fietkau2017-02-271-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: select kmod-mt7603 instead of kmod-mt76 for WBMR-300HPDFelix Fietkau2017-02-271-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix TPM related config symbols for 4.9Felix Fietkau2017-02-271-1/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing HW_RANDOM_TPM symbolJohn Crispin2017-02-273-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.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>