aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/files
Commit message (Collapse)AuthorAgeFilesLines
* ipq806x: fixup nbg6817 internal mmc and switch configuration in DTSAndré Valentin2017-02-022-4/+1
| | | | | | | | | | | | | The setting mmc-ddr-1_8v in the platform dts leads to read errors. The device is unusable and system reboots in a loop. Because NBG6817 is the only mmc device, I removed it in base dts. The second change removes settings now present in base dts. The third change references was a wrong conversion of constants in the switch settings. Switch now initializes again. Signed-off-by: André Valentin <avalentin@marcant.net>
* ipq806x: refactor ipq8065 device treePavel Kubelun2017-01-151-1124/+2
| | | | | | | | | | | | | | | | At the moment we have 2 seperate device tree sources: 1 for ipq8064 soc located in kernel source and 1 custom in LEDE for ipq8065. ipq8064 and ipq8065 SoCs are completely identical except ipq8065 has higher cpu frequencies and adjusted corresponding power supply. This commit makes ipq8065 DTS to contain only specific for ipq8065 DT entries while pulling all the basic SoC stuff from ipq8064 DTS. It makes easier to manage ipq806x device trees and instead of committing changes into 2 seperate equal DTS we are ending up with only 1. It also enables ipq8065 devices to automatically receive changes made in upstream kernel. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: update eMMC and SDCC3 nodes in device treePavel Kubelun2017-01-151-7/+9
| | | | | | | Enable bam dma support for eMMC and SDCC3 in device tree and update nodes to reflect Qualcomm SDK. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: disable usb3 phy suspend and add usb tcsr controlPavel Kubelun2017-01-151-0/+6
| | | | | | | | | According to Qualcomm SDK usb3 phy suspend should be disabled for ipq806x. This may solve issue on some ipq806x devices that breaks usb3 storage peripherals during system boot. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* 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>
* ipq806x: add thermal sensor driverdissent12016-12-011-12/+97
| | | | | | | | Allows to check cpu temperature. Huge thanks to @hnyman for valuable assistance! Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: more dts cleanupMathias Kresin2016-11-277-91/+75
| | | | | | | | | | | | | | | | | | | | | | | 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-278-283/+532
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-241-0/+423
| | | | | | | | | | | | | | | | | | 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: switch to upstream usb driver and backport fixesPavel Kubelun2016-11-211-2/+0
| | | | | | 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: fixes for R7800 and C2600Pavel Kubelun2016-11-163-15/+112
| | | | | | | | 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-161-3/+4
| | | | | | 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-161-0/+3
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add support for RPM clock controllerdissent12016-11-161-0/+18
| | | | | | 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-161-0/+12
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix pcie reset gpiosPavel Kubelun2016-11-081-3/+3
| | | | | | 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: update DT in accordance to new drivers And add some more DT nodesPavel Kubelun2016-11-031-192/+31
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix leds, sata port for Netgear R7800 and minor fixes - renamed ↵Pavel Kubelun2016-11-031-32/+34
| | | | | | 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: 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 support for ZyXEL NBG6817André Valentin2016-10-261-0/+341
| | | | | | | | | | | | | | | | | 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>
* ipq806x: C2600: change leds colour nameHenryk Heisig2016-10-151-8/+7
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* ipq806x: add support for indicating the boot and upgrade state using four ledsHenryk Heisig2016-10-152-3/+13
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* ipq806x: update Netgear R7800 device treedissent12016-09-302-111/+306
| | | | | | | | | | | | | -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>
* ipq806x: Archer C2600: Renaming LED accordance with the standardCezary Jackiewicz2016-08-241-14/+14
| | | | Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
* ipq806x: rename R7800 device tree file, merge R7500v2 dts additionJo-Philipp Wich2016-08-241-0/+0
| | | | | | | The R7800 is an IPQ8065, so rename its dts file to reflect that fact. Also fold the R7500v2 dts addition into the existing 800-devicetree.patch. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ipq806x: Build image for Netgear Nighthawk X4 R7500v2Alexis Green2016-08-221-0/+350
| | | | | | Signed-off-by: Alexis Green <alexis@cessp.it> [Jo-Philipp Wich: add missing DEVICE_TITLE, fix model name in commit title] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ipq806x: add usb pins to r7800 dts fileJohn Crispin2016-08-221-0/+17
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ipq806x: fix MAC_POWER_SEL for Netgear R7800dissent12016-07-261-1/+1
| | | | | | | Fixes instability/corruption on the ethernet interface connected to port0 on the switch on Netgear R7800 as well. Signed-off-by: Josh Bendavid <joshbendavid@gmail.com> Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add initial support for Netgear R7800Pavel Kubelun2016-06-223-0/+1558
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix MAC_POWER_SEL switch configurationJosh Bendavid2016-06-204-4/+4
| | | | | | Fixes instability/corruption on the ethernet interface connected to port0 on the switch. Signed-off-by: Josh Bendavid <joshbendavid@gmail.com>
* ipq806x: activate ATAG DTB mangle and EA8500 rootblock in dtsAdrian Panella2016-06-171-0/+1
| | | | | | | | | | | | | | The command-line arguments provided by the boot loader will be appended to a new device tree property: bootloader-args. If there is a property "append-rootblock" in DT under /chosen and a root= option in bootloaders command line it will be parsed and added to DT bootargs with the form: <append-rootblock>XX. Only command line ATAG will be processed, the rest of the ATAGs sent by bootloader will be ignored. This is usefull in dual boot systems, to get the current root partition without afecting the rest of the system. Signed-off-by: Adrian Panella <ianchi74@outlook.com>
* ipq806x: move dts file to the files folderJohn Crispin2016-06-134-0/+1502
Signed-off-by: John Crispin <john@phrozen.org>