aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
Commit message (Collapse)AuthorAgeFilesLines
* kernel: remove DEVMEM/DEVKMEM platform overridesFelix Fietkau2017-01-101-1/+0
| | | | | | Those options are handled via top-level menuconfig instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: fix pvs1_bin voltage in ipq8065 DTPavel Kubelun2017-01-101-7/+7
| | | | | | | | | | | | | | Fixing pvs1 bin voltage as found in GPL tarball and Qualcomm SDK. Also adjusting smb208_s2a/b minimum voltage to reflect lowest value in pvs table. Current ipq8065 devices in LEDE choose (based on eFuse data) pvs bin n4, that has correct values in DT, but in future a new device may choose n1 or n6. Without this change n1 is semi-correct and n6 is not available, because OPP driver disregards bins with voltage values that regulator cannot supply. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* kernel: remove ubifs xz decompression supportFelix Fietkau2017-01-091-2/+0
| | | | | | | It has been unused, and less useful than squashfs for cases where flash space usage matters. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: EA8500 fix sysupgrade over stock firmwareAdrian Panella2016-12-201-4/+26
| | | | | | | | | | When running sysupgrade for the first time over the second partition (that still had stock firmware) the rootfs wasn't flashed as there wasn't enough space. This happend because stock also uses UBI, but the volume name wasn't recognised and wasn't deleted before flashing. Signed-off-by: Adrian Panella <ianchi74@outlook.com>
* ipq806x: add thermal sensor driverdissent12016-12-0116-13/+2293
| | | | | | | | Allows to check cpu temperature. Huge thanks to @hnyman for valuable assistance! Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: increase coherent dma pool sizePavel Kubelun2016-12-011-0/+52
| | | | | | | Cherry-picked and rebased from https://source.codeaurora.org/quic/qsdk/system/openwrt/tree/?h=korg/linux-3.4.y/release/arugula_bb_cs Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add enable reg and masks for PRNGPavel Kubelun2016-12-011-0/+25
| | | | | | Cherry-picked from https://source.codeaurora.org/quic/qsdk/system/openwrt/tree/?h=korg/linux-3.4.y/release/arugula_bb_cs Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: refactor rpm clock controller patchesPavel Kubelun2016-12-018-87/+250
| | | | | | | | | | | | RPM clock controller driver had made its way upstream and previous approach of directly redoing a driver to support ipq806x is a no go anymore. Thus reverting mentioned patches to upstream state and renaming in correct patch numbering accordance. To make the driver work on ipq806x boards we introduce a custom patch. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* kernel: bump to 4.4.35Kevin Darbyshire-Bryant2016-11-2916-131/+68
| | | | | | | | | | | Refresh patches on all 4.4 supported platforms. 077-0005-bgmac-stop-clearing-DMA-receive-control-register-rig.patch removed as now upstream. Compile & run tested: ar71xx - Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* ipq806x: more dts cleanupMathias Kresin2016-11-278-110/+80
| | | | | | | | | | | | | | | | | | | | | | | Remove the wifi5g LED from the the d7800, r7500 and r7800. Albeit this GPIO is mentioned in the GPL tarball, it doesn't do anything. The 2.4/5 GHz LEDs are connected to the wifi chips and not be controlled from the the userspace. Use the LEDs names/colours as they are used in the board manuals. Merge redundant LED configurations. Use the phy[0|1]tpt trigger for the wireless LEDs. Remove the workarounds for the not controllable wireless LEDs. Fix spi compatible strings and remove superfluous spi-max-frequency parameters. If there are two power leds, use one for indicating normal operation and one for failsafe/upgrade. Keep the on/off state of the main power led during boot. Use the usb pinmux settings from the nbg6817 gpl sources. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ipq806x: clean up dts filesHenryk Heisig2016-11-279-284/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the pinmux to the values found in the GPL tarballs of the boards. Remove pinmux which are is not used (like nand pinmux for spi flash boards). This allows to use the wan orange led of the C2600 which had a wrong pinmux before. Might fix buttons or leds of other boards as well. Fix the LED color and the ledswitch key code of the C2600. Rename the ledgnr to ledswitch. Add support for indication the boot state using LEDs to the D7800, NBG6817, R7500 and R7500v2. Change GPIO active to readable values in D7800, EA8500, R7500, R7500v2 and R7800. Change gpioexport to gpio pinmux. Add proper "drive strenght" to i2c4_pins and use it for RPM on C2600, D7800, EA8500, R7500, R7500v2. Remove pcie pinmux from D7800. Move pinctrl to correct place in NBG6817 and R7800. Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x: add support for TP-Link Archer VR2600vSebastian Quilitz2016-11-248-2/+467
| | | | | | | | | | | | | | | | | | This router is similar to the C2600. Ethernet on WAN + LAN, switch, sysupgrade, LEDs, buttons and WiFi on 2G + 5G do work. The xDSL modem and the POTS/DECT interface are not supported yet. It is not possible to flash LEDE via the TP-Link webinterface. The image need to be signed. The first 0x200 bytes of the image is the TP-Link header including the signature. The signature is not validated by the bootloader. The LEDE image is zeroed in this area. To install LEDE it is necessary to solder a four pin header to JP2. Connect a serial interface to this header and interrupt the autostart of kernel. Transfer the sysupgrade image via TFTP and write it to the serial flash at 0x320000. Signed-off-by: Sebastian Quilitz <zeraphim@x-pantion.de>
* ipq806x: c2600: change wan and lan led trigger to swconfig portHenryk Heisig2016-11-211-2/+2
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x: enable swconfig LED supportHenryk Heisig2016-11-211-0/+1
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x: switch to upstream usb driver and backport fixesPavel Kubelun2016-11-2118-23/+1094
| | | | | | Also removing fifo-resize property drom DT as it has been removed from the driver. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: remove device specific sysupgrade image checksFelix Fietkau2016-11-201-24/+1
| | | | | | Replaced by image metadata Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: fix build errorsPavel Kubelun2016-11-193-0/+262
| | | | | | Add missing patches that broke LEDE builder while updating WDT driver Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: append metadata to imagesFelix Fietkau2016-11-192-6/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: refresh patchesHannu Nyman2016-11-1714-50/+25
| | | | | | | | | | This patch refreshes the ipq806x kernel patches. There was a large PR for ipq806x in the queue when the kernel patches were refreshed for 4.4.32, so currently there is quite much fuzz for ipq806x. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* ipq806x: fixes for R7800 and C2600Pavel Kubelun2016-11-164-18/+115
| | | | | | | | Updating spi pins configuration in R7800 and C2600 DTs Adding more usb power pin export and gsbi6 in R7800 DT Updating and fixing leds Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix Netgear R7500v2 memoryPavel Kubelun2016-11-161-1/+6
| | | | | | Netgear R7500v2 has 512MB of RAM with 2MB reserved block in the end of memory region. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix pci pinsPavel Kubelun2016-11-162-7/+9
| | | | | | Fix pci pins drive-strength according to oem sources. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add vlans during switch init into R7800 DTPavel Kubelun2016-11-161-0/+4
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add support for RPM message RAMPavel Kubelun2016-11-164-0/+150
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add support for RPM clock controllerdissent12016-11-167-0/+1645
| | | | | | The patch #179 for RPM has initially been made for apq806x board. It has been modified to support ipq806x instead of apq8064. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add CPU idle statesPavel Kubelun2016-11-165-0/+102
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: backport upstream wdt driverPavel Kubelun2016-11-1616-38/+2567
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix pcie reset gpiosPavel Kubelun2016-11-082-6/+6
| | | | | | Fix perst-gpios property in accordance to the driver, so it stops spamming that it can't parse it. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix zyxel image build errorFelix Fietkau2016-11-041-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: clean up the kernel config and reduce kernel image size by ↵Felix Fietkau2016-11-041-50/+7
| | | | | | disabling some unnecessary code Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: fix a kconfig issueFelix Fietkau2016-11-041-0/+30
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: update DT in accordance to new drivers And add some more DT nodesPavel Kubelun2016-11-037-214/+90
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: switch to generic cpufreq driver cpufreq-dtPavel Kubelun2016-11-035-466/+383
| | | | | | | | This fixes ondemand frequency scaling and moves ipq806x onto upstream driver Also switching to ondemand frequency scaling as it is fixed now Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add opp patches for voltage scalingPavel Kubelun2016-11-032-0/+259
| | | | | | Preparing for cpufreq driver switch to generic cpufreq-dt Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: update clk-qcom patchesPavel Kubelun2016-11-035-6/+563
| | | | | | Preparing for cpufreq driver switch to generic cpufreq-dt Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix leds, sata port for Netgear R7800 and minor fixes - renamed ↵Pavel Kubelun2016-11-032-34/+43
| | | | | | leds in correct color accordance - blink power led with white during boot and with amber when flashing firmware - fixed usb leds - enabled unused wps and rfkill leds as wlan leds. Now rfkill led is for 2.4GHz and wps - 5GHz WIFI - removed unneeded bootargs - removed unneeded pci pins from R7800 DT (driver already handles it in proper way) and add tx offsetting - nand ecc step size - fixed sata ports Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: TP-Link Archer C2600: convert old usbdev trigger to new usbportCezary Jackiewicz2016-11-031-2/+2
| | | | Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ipq806x: add reserved memory node in Netgear R7800Pavel Kubelun2016-10-311-0/+5
| | | | | | KERNEL BUG: BAD_PAGE_STATE in process appears here and there during intensive memory usage. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: ArcherC2600: export usb power pinsHenryk Heisig2016-10-311-0/+16
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x: ArcherC2600: devictree cleanupHenryk Heisig2016-10-311-13/+44
| | | | | | add blank lines and use macros for GPIOs Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x/nbg6817: add sysupgrade supportAndré Valentin2016-10-262-0/+99
| | | | | | Add new way of flashing to mmc devices based on rootfs split with loop devices. Signed-off-by: André Valentin <avalentin@marcant.net>
* ipq806x/nbg6817: add support for ZyXEL NBG6817André Valentin2016-10-268-8/+400
| | | | | | | | | | | | | | | | | CPU: 2x1.8GHz ARM, RAM: 512MiB Storage: 4MiB serial Flash, 3.9GiB MMC NIC: 2x1GBit/s, Switch with 5 external and 2 internal ports WiFi: Dualband, ath10k 2.4GHz, 5GHz MU-MIMO For installation copy xx-mmcblk0p4-kernel.bin and xx-mmcblk0p5-rootfs-full.bin to device. Then run: cat xx-mmcblk0p4-kernel.bin > /dev/mmc0blk0p4 cat xx-mmcblk0p5-rootfs-full.bin > /dev/mmc0blk0p5 reboot -f For debugging serial console is easily visible on board, no soldering needed. Signed-off-by: André Valentin <avalentin@marcant.net>
* switch to the new usbport LED triggerRafał Miłecki2016-10-191-1/+1
| | | | | | | This makes init.d script handle existing UCI entries using the new trigger. It also switches all targets to use its package. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq806x: add back end-of-UBI marker for a few factory images (FS#228)Felix Fietkau2016-10-181-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq806x: C2600: change leds colour nameHenryk Heisig2016-10-152-13/+12
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* ipq806x: add support for indicating the boot and upgrade state using four ledsHenryk Heisig2016-10-155-15/+54
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* ipq806x: fix wlan mac for Netgear R7800Pavel Kubelun2016-10-061-0/+3
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: update Netgear R7800 device treedissent12016-09-304-181/+308
| | | | | | | | | | | | | -add spi pins -move mdio and rgmii pinctrl from gmac and mdio into pinmux node -add i2c4 pinctrl into rpm node -add pin details into several nodes -update gmac1 and gmac2 parameters -update mdio phy0 and phy4 registers by ddwrt devs findings -fix i2c4 pin drive-strengh -remove pcie pins as it's already present in ipq8065 DT Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* image: add KERNEL_SIZE to the default device varsMathias Kresin2016-09-131-1/+0
| | | | | This reverts commit ec37a565878fd79d4127cbb843c17ce3b8dc97c0 and fixes the underlying issue.
* ramips: improve Linksys EA8500 build codeMathias Kresin2016-09-111-2/+2
| | | | | | Use of the kernel size variable. Signed-off-by: Mathias Kresin <dev@kresin.me>