aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
Commit message (Collapse)AuthorAgeFilesLines
* lantiq: remove device specific sysupgrade image checksFelix Fietkau2016-11-201-22/+1
| | | | | | Replaced by image metadata Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: run append-metadata before check-size to fix build errorsFelix Fietkau2016-11-191-4/+4
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: append metadata to imagesFelix Fietkau2016-11-192-5/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: update kernel 4.4 to version 4.4.32Stijn Tintel2016-11-161-1/+1
| | | | | | | | Refresh patches for all targets that support kernel 4.4. Compile-tested on all targets that use kernel 4.4 and aren't marked broken. Runtime-tested on ar71xx, octeon. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* lantiq: add tapi/vmmc to VGV7519 defaultsdpeddi2016-11-161-2/+2
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: enable VMMC for VGV7519dpeddi2016-11-161-1/+10
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: add tapi/vmmc to VGV7510KW22 defaultsEddi De Pieri2016-11-161-2/+2
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: enable VMMC for VGV7510KW22Eddi De Pieri2016-11-161-1/+10
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: fix port indexing for WBMR-300Felix Fietkau2016-11-141-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: dts: use keycode defines from input dt-bindingMathias Kresin2016-11-1339-4/+70
| | | | | | | | | | | | | | | | | | | | | All compiled device tree files not mentioned are binary identical to the former ones. Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts. Due to the include of the input binding header, the BTN_* node names in: - ramips/GL-MT300A.dts - ramips/GL-MT300N.dts - ramips/GL-MT750.dts - ramips/Timecloud.dts will be changed by the compiler to the numerical equivalent. Move the binding include of lantiq boards to the file where they are used the first time to hint the user where the values do come from. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix pci issue if mem kernel parameter is usedEddi De Pieri2016-11-121-0/+22
| | | | | | | | | | | | | | | | | | | | As specified by e0229a16b0001c08e6c2611fa0bb9814507fced4 if the VR9 based router provides FXS ports and they should enabled then the following must added to the kernel command line: mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M By adding mem= parameter a pci device stop working correctly. The pci-lantiq.c module use get_num_physpages() to compute dynamically the memory amount of the board. The mem= make the module to compute in the wrong way the BAR11MASK, so in this situation the mask is misaligned with the dma area that the hardware expects. This patch is a port of what legacy ifxmips_pci.c does. Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: drop ralink eeprom handling functionMathias Kresin2016-11-091-73/+9
| | | | | | | The eeprom handling function from the rt2x00 driver is used and this code is obsolete. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use the device tree bindings from rt2x00 driverMathias Kresin2016-11-0911-170/+136
| | | | | | | | | | | | | Set a device specific wireless mac address for ARV7506PW11, VGV7519 and VGV7510KW22. The one from the EEPROM is a generic one and the same on all boards. Use the wifi@0,0 label and the pci0,0 compatible string for the ARV7519PW and ARV7525PW since the pci vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix VGV7519 and VGV7510KW22 mac addressesMathias Kresin2016-11-093-4/+5
| | | | | | | | | | | | | | | | | The VGV7510KW22 stock firmware uses the following mac-addresses: lan (ifno 1): AA:BB:CC:DD:EE:60 wlan (ifno 2): AA:BB:CC:DD:EE:61 atm0 (ifno 3): AA:BB:CC:DD:EE:62 atm1/wan (ifno 4): AA:BB:CC:DD:EE:63 The VGV7519 stock firmware uses the following mac-addresses: lan: AA:BB:CC:DD:EE:EF wlan: AA:BB:CC:DD:EE:EF wan: AA:BB:CC:DD:EE:EE Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use external pci clock on ARV7506PW11Mathias Kresin2016-11-031-0/+1
| | | | | | | Fixes a ralink wireless driver related kernel crash as soon as a lot of data is tranfered via wireless. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: cleanup dts filesMathias Kresin2016-11-0333-312/+35
| | | | | | | | | | | | | | - remove not existing properties - remove properties having the same values as the included dtsi - remove nodes which are disabled in the included dtsi and not enabled in dts - replace the deprecated pinctrl-* compatible strings - use the same labels for nodes as the included dtsi - move common used vr9 pci properties to vr9.dtsi - remove the unused stp node from HomeHub 2B devcie tree source file - fix spaces vs. tabs and remove superfluous linebreaks Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to version 4.4.30Stijn Segers2016-11-022-2/+1
| | | | | | | | | | This patch bumps the 4.4 kernel from .28 to .30 and refreshes the patches. Compile-tested on ar71xx, x86/64, ramips/mt7621, brcm47xx and kirkwood. Run-tested on ar71xx & ramips/mt7621, brcm47xx and kirkwood (last two confirmed by P. Wassi). Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
* lantiq: add vpe/watchdog modules to kernelStefan Koch2016-10-311-0/+6
| | | | | | | | | (required not-distributable firmware blob - dump it by yourself from original firmware) Signed-off-by: Eddi De Pieri <eddi@depieri.net> (cherry picked from commit 064f467264c5c9b6eca0bb96b587f9412b770cc5) Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: vpe softdogStefan Koch2016-10-311-0/+171
| | | | | | | | | | | | | (required not-distributable firmware blob - dump it by yourself from original firmware) Signed-off-by: Eddi De Pieri <eddi@depieri.net> (cherry picked from commit eb0ce57270d0b5b81b224b9336cf54707497eede) Modified after cherry-pick: obj in Makefile Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: added support for VPE1Stefan Koch2016-10-311-0/+208
| | | | | | | | | | | | | | | | | | Created minimal patchset based on BB rev 43158 by Eddi De Pieri 14.07/openwrt.git 79472c025449efae9310defad0d3a73cff14d756 If the VR9 based router provides FXS ports and they shoud enabled then the following must added to the kernel command line: mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M maxvpes=1 maxtcs=1 To use FXS 2M of RAM are needed for the VPE firmware. The size is set by vpe1_mem. The available RAM must be reduced by this size using the mem argument. A correct load address (example 0x83e00000) for the firmware must be given, too. Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: modify vr9.dts to support vmmcStefan Koch2016-10-311-0/+8
| | | | | | | | | | | | | (required not-distributable firmware blob - dump it by yourself from original firmware) Signed-off-by: Eddi De Pieri <eddi@depieri.net> (cherry picked from commit 8d924d43c0ea6839a3a33e54982e8da48b736001) Modified after cherry-pick: compatible attribute Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: danube fxs bugfix: changed compatible attribute of vmmcStefan Koch2016-10-261-1/+1
| | | | | | | | This bugfix enables FXS support on dabube based devices. Changed "compatible" attribute from "vmmc" to "vmmc-xway". The vmmc driver uses "vmmc-xway". Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
* lantiq: enable cpu temp driver for all vr9 boardsMathias Kresin2016-10-196-20/+4
| | | | | | | Only present on v1.2 vr9 SoCs but the driver takes care to not load on boards having a v1.1 SoC. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix thermal sensors driverMathias Kresin2016-10-191-5/+21
| | | | | | | | | | | | | | | | | | | | Read the temperature including the decimale place from the CGU_GPHY1_CR register. Decrement the temperature read from the register by 38.0 degree celsius. The temperature range of the sensor is -38.0 to +154 °C and the register value 0 is equal to -38.0 °C. This fixes the report of unrealistic temperatures as seen on all tested boards. Give the SoC a few milliseconds to get the first temperature value. On some rare occasions there is no temperature value in the register when read the first time after activation. This leads to a reported temperature of -38.0 °C on boot. Only version 1.2 of the vr9 SoC has a temperature sensor. Add a check to make sure the driver doesn't load on v1.1 vr9 SoCs. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: Sanitize device tree filesAndreas Eberlein2016-10-1956-656/+668
| | | | | | | | | | The device tree file of ARV752DPW uses numbers/hex values for gpio states and input event codes. This cleans it up and uses the available macros from header files. This way the functions are easier to read and comprehend. Signed-off-by: Andreas Eberlein <foodeas@aeberlein.de> [sanitize all device tree files] Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: Fix buttons for ARV752DPWAndreas Eberlein2016-10-191-5/+5
| | | | | | | | The GPIO for reset switch is wrong in definition. Further the key codes for the two additional buttons are ineffective. Both is fixed here. Signed-off-by: Andreas Eberlein <foodeas@aeberlein.de>
* lantiq: use new build code for DGN3500Mathias Kresin2016-10-191-99/+36
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: drop lzma-loaderMathias Kresin2016-10-1924-2792/+0
| | | | | | It isn't used any more. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: rework VG3503J imageMathias Kresin2016-10-193-79/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the new image build code and remove the lzma loader. The lzma loader was used to cheat the signature validation of the bootloader and I found another way to do this. To migrate boards already using LEDE/OpenWrt to the new image the following steps need to be done once: VR9 # run reset_uboot_config VR9 # reset VR9 # setenv ethaddr AA:BB:CC:DD:EE:FF VR9 # setenv preboot ping 1.1.1.1\;bootm 0xb001f000 VR9 # saveenv VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin VR9 # erase 0xb0020000 $(filesize) VR9 # cp.b 0x81000000 0xb0020000 $(filesize) The mac address is printed on the label at the bottom of the case. The following steps are need to be done during first install: VR9 # setenv preboot ping 1.1.1.1\;bootm 0xb001f000 VR9 # saveenv VR9 # tftp 0x81000000 lede-lantiq-xrx200-VG3503J-squashfs-sysupgrade.bin VR9 # erase 0xb0020000 $(filesize) VR9 # cp.b 0x81000000 0xb0020000 $(filesize) The image uses the uImage firmware splitter now instead of hardcoded kernel and rootfs partitions. The firmware partition size was extended to use flash space that was reserved for partitions required only by the ECI firmware. Due to the changes an upgrade to a later LEDE revision from a running LEDE is supported now. A default switch config was added and the device uses the same MAC addresses as the ECI firmware now instead of the same for all VG3503J. Signed-off-by: Mathias Kresin <dev@kresin.me>
* switch to the new usbport LED triggerRafał Miłecki2016-10-192-21/+21
| | | | | | | 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>
* lantiq: use wpad-mini for WBMR boardsMathias Kresin2016-10-152-20/+2
| | | | | | | | | | The WBMR boards are the only ones in the whole tree selecting the wpad and hostapd-utils package by default. Remove the wps uci-default script as well, there is no obvious reason why the wps config need to be set only for this board. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix ARV452CQW keysMathias Kresin2016-10-151-1/+1
| | | | | | Fix the typo in the gpio-keys-polled compatible string. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix lantiq-dsl output spamMathias Kresin2016-10-111-1/+1
| | | | | | | | | | | | | | | | | In case the adsl/vdsl service is disabled intentional, the output is cluttered with the following message multiple times if the status of the dsl line is queried: killall: vdsl_cpe_control: no process killed If the dsl line status is queried by LuCI, the logfile is spammed with the message. Fix the issue by using killall in quite mode. In quite mode killall still returns a non-zero value if the to be killed process can not be found so that existing logic based on the return value still works. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix BTHOMEHUBV2B default packagesMathias Kresin2016-10-061-1/+1
| | | | | | | | | | Due to the introduced double whitespace the default package selection isn't applied. This leads to errors like a not working networking because of a missing swconfig binary. Fixes FS#208. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fixup last commitsMathias Kresin2016-10-055-9/+9
| | | | | | | Revert the rename of unrelated device tree nodes. Rename the missed leds of the Speedport W 504V Typ A. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix usb leds/triggerMathias Kresin2016-10-054-8/+11
| | | | | | | | | | | Add USB led aliases to boards having an led which is meant to be used as USB led according to the manuals. Remove the kmod-ledtrig-usbdev from the default package selection for boards not having an USB led. Add the kmod-ledtrig-usbdev to boards where it is missing. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use aliases device tree node for ledsMathias Kresin2016-10-0536-285/+277
| | | | | | The chosen node is clearly the wrong place for aliases. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: cleanup led handling functionsMathias Kresin2016-10-053-19/+22
| | | | | | | | | Use a more generic name for the lantiq_get_dt_led_chosen function. Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led function can be used to achieve the same. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: board.d: apply alphabetical order to led fileMathias Kresin2016-10-051-12/+12
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ntiq: make i2c-lantiqi driver compile againHauke Mehrtens2016-10-031-9/+9
| | | | | | | It missed some changes needed for kernel 4.4. This is only used by the Falcon SoC and not for the xRX SoCs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update to v4.4.23Álvaro Fernández Rojas2016-09-301-3/+3
| | | | | | | Refresh patches for all targets that support kernel 4.4. compile/run-tested on brcm2708/bcm2710 only. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* treewide: remove bad local shell variable declarationsJo-Philipp Wich2016-09-241-6/+1
| | | | | | | Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* lantiq: do not "local" variables outside of a functionMartin Blumenstingl2016-09-242-5/+5
| | | | | | | | | Older busybox versions allowed using the local keyword outside of functions, whereas 1.25.0 (which was introduced in 06fa1c46fc32) do not allow this anymore (leading to the following error when executing the script: "file: local: line nn: not in a function"). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* kernel: update kernel 4.4 to version 4.4.20Álvaro Fernández Rojas2016-09-151-1/+1
| | | | | | | Refresh patches for all targets that support kernel 4.4. Compile-tested on brcm2708 only. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: Backport pending appended DTB handling patchesDaniel Gimpelevich2016-09-121-0/+49
| | | | | | | | | | Backport patches from upstream Linux kernel which are making the kernel stores the appended dtb not in the same resisters as defined in the UHI specification, use a separate variable on MIPS. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [some modifications] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* cleanup ucidef_set_interface* usageMathias Kresin2016-09-101-2/+2
| | | | | | | | - quote the interface name - remove call of not existing function - remove the proto if it's the default proto Signed-off-by: Mathias Kresin <dev@kresin.me>
* use immediate set in target MakefilesMathias Kresin2016-09-101-1/+1
| | | | | | | | No functional change, it's just to have the same style everywhere. This way I don't need to use any regex magic to extract all subtargets for compile tests. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: board.d: apply alphabetical orderMathias Kresin2016-09-101-43/+43
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: board.d: cleanup default switch configMathias Kresin2016-09-101-32/+19
| | | | | | | | | | | | | | | | Add or fix the physical port number of switch ports to allow LuCI to display the ports in physical order. Remove the physical port number in case bridge port and physical port order are the same. Reorder the ucidef_add_switch parameter to be aligned with the switch port number. Remove board settings which are covered by the default case and remove comments. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: enable cpu temp driver for more tested boardsMathias Kresin2016-09-102-1/+9
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>