aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
Commit message (Collapse)AuthorAgeFilesLines
* kernel: update 4.4 to 4.4.86Kevin Darbyshire-Bryant2017-09-051-1/+1
| | | | | | | | Refresh patches Compile & run tested: ar71xx - Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* brcm63xx: Add Comtrend AR-5315u supportDaniel Gonzalez Cabanelas2017-08-268-0/+217
| | | | | | | | | | | | Add support for the Comtrend AR-5315u router This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash, with an onboard BCM43217 wifi, 4 ethernet ports and 1 USB host port Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> [jonas.gorski: refreshed patch] Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add NULL clock fix send upstreamMathias Kresin2017-07-295-5/+53
| | | | | | | | | | Make the behaviour of clk_get_rate consistent with common clk's clk_get_rate by accepting NULL clocks as parameter. Some device drivers rely on this, and will cause an OOPS otherwise. Fixes: FS#735 Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to version 4.4.79Hauke Mehrtens2017-07-283-3/+3
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* brcm63xx: DTS: fix AV4202N flash layoutPaul Wassi2017-07-271-1/+1
| | | | | | | | Fix incorrect offset and size of linux partition. Fixes: 97b36aca09da ("brcm63xx: add pflash for remaining pflash equipped boards") Signed-off-by: Paul Wassi <p.wassi@gmx.at> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* treewide: drop target board_name functionsMathias Kresin2017-07-151-9/+0
| | | | | | They are not used any longer. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: use the generic board_name functionMathias Kresin2017-07-155-12/+8
| | | | | | Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: populate boardname and model earlierMathias Kresin2017-07-151-0/+0
| | | | | | | | | | | | | For targets using the generic board detection and board specific settings in diag.sh, the board name is still unset at the time the set_state() provided by diag.sh is called by 10_indicate_preinit. Change the execution order to ensure the boardname is populated before required the first time. Do the target specific board detection as early as possible, directly followed by the generic one to allow a seamless switch to the generic function for populating /tmp/sysinfo/. Signed-off-by: Mathias Kresin <dev@kresin.me>
* brcm63xx: remove misleading warning about partial SPI NOR writesJonas Gorski2017-07-051-0/+33
| | | | | | | | The warning will be triggered by jffs2 or UBI, and partial writes are no issue for most flash chips. Fixes: 2a2b16210bbc ("brcm63xx: backport upstream solution for SPI message size limits") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: refresh smp configJonas Gorski2017-06-301-3/+8
| | | | Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: enable KEXEC for SMP againJonas Gorski2017-06-301-1/+0
| | | | | | It seems it compiles again, so there is no reason to keep it disabled. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: disable commandline parts parserJonas Gorski2017-06-301-1/+0
| | | | | | We don't use it, so no need to have it enabled. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add support for the Actiontec R1000H gatewayAnthony Sepa2017-06-308-0/+170
| | | | | | | | | | | | | | | | | | | | | | | SOC: Broadcom BCM6368 (2 * Broadcom BMIPS4350 V3.1 / 400 MHz) Flash size: 32MB (split 16/16 dual boot) RAM size: 64MB Wireless: BCM432x 802.11a/b/g/n(pci) Ethernet: Broadcom BCM53115 USB: 1 x USB 2.0 Known issues: - Unable to detect 53115 switch attached to MDIO. Not supported - No support for the cable port More info on the device and the research can be found at: http://www.actiontec.com/212.html Same FCC ID as: https://wikidevi.com/wiki/Actiontec_V1000H_(Telus) Signed-off-by: Anthony Sepa <anthonysepa@yahoo.ca> [jonas.gorski: fix commit subject/message] Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix bcm6328 pinmux other registerJonas Gorski2017-06-301-1/+1
| | | | | | | The pinmux register is at relative offset 0x8, not 0xc. Fixes hang when trying to modify pins >= 32. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: cleanup CONFIG_SCHED_HRTICKStijn Tintel2017-06-291-1/+0
| | | | | | | Remove CONFIG_SCHED_HRTICK from target configs, as it was added to the generic config in b47fd7656336162360ebf66147326763ddae3f8d. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* brcm63xx: probe SPI connected switches through DTJonas Gorski2017-06-1039-164/+198
| | | | | | Now that we can configure the switches through DT, do so. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: switch to hardware led controllersJonas Gorski2017-06-1011-195/+238
| | | | | | | Instead of bit banging SPI to talk to the GPIO chip, use the hardware led controllers intended for controlling the LEDs. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: leds-bcm6328: fix signal assignments for leds 4~7Jonas Gorski2017-06-101-0/+34
| | | | | | Properly use modulus for bit calculation for LEDs 4 to 7. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: dsl-275xb-d: configure switch ledsJonas Gorski2017-06-101-0/+7
| | | | | | Add pinctrl configuration to configure the switch leds on DSL-275XB. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add pinctrl supportJonas Gorski2017-06-10112-682/+6728
| | | | | | | Add and enable pincontrol drivers, and update dts(i) files with appropriate hogs. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: backport upstream generic gpio changesJonas Gorski2017-06-105-19/+2727
| | | | | | Backport patches that add a data pointer to gpio_chip. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: drop support for specifying SPI flash part parsersJonas Gorski2017-06-045-85/+9
| | | | | | No need to keep this since we set them from device-tree. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: drop support for caldata in brcm63xxpartJonas Gorski2017-06-0410-369/+22
| | | | | | | Now that we always provide these partitions through DT, we don't need to pass their data through parser data from board files anymore. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: probe SPI flash through DTJonas Gorski2017-06-0418-0/+487
| | | | | | | Now that we support problem the SPI controllers through DT, we can also probe flash through DT. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add pflash for remaining pflash equipped boardsJonas Gorski2017-06-0419-0/+210
| | | | Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: do not require fixed partitions when probing from DTJonas Gorski2017-06-041-1/+1
| | | | | | | | Allow the parser to be invoked from DT without fixed cfe/linux/nvram partitions. This allows flash to be probed from DT also for multi flash-size images. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: register SPI controllers through DTJonas Gorski2017-06-0426-41/+539
| | | | | | | Register SPI controllers through device tree. We will wire up the clocks at a later stage. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: backport upstream solution for SPI message size limitsJonas Gorski2017-06-0418-102/+1135
| | | | | | | Backport upstream solution for working around SPI controller maximum message sizes. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: update flash of_node patches to full patch setJonas Gorski2017-06-0410-2/+920
| | | | | | Fixes missing of_node for SPI flash probed through devicetree. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: refresh kernel configJonas Gorski2017-06-041-6/+7
| | | | | | Ensure the config is ordered and has all recent symbols. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix invalid Asmax AR 1004g DTS referenceMarcin Jurkowski2017-05-051-1/+1
| | | | | | | Build profile for Asmax AR 1004g refers to an invalid DTS "rg100a". The correct DTS for this device is "ar1004g". Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
* brcm63xx: diag.sh: use common status_led_blink_* functionsPiotr Dymacz2017-03-151-3/+3
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* 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>
* brcm63xx: Add Observa VH4032N supportDaniel Gonzalez Cabanelas2017-02-097-0/+193
| | | | | | | | | | | | | Add support for the Observa Telecom VH4032N router. This is another BCM6368 router, 128 MB RAM, 32MB flash and 3 USB host ports. The wifi chip is an onboard Broadcom BCM43222. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> [jonas.gorski: use gpio-hog instead of abusing ephy-reset] Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: Neufbox 6: fix switch by probing through DTJonas Gorski2017-02-0944-208/+136
| | | | | | | | | | | | Probe the switch through DT instead of a platform device. This fixes probe, as GPIO offsets are now properly accounted for. Fixes the following issue: [ 0.802953] 8021q: 802.1Q VLAN Support v1.8 [ 0.810518] rtl8366_smi: gpio_request failed for 18, err=-517 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix lzma loader for BCM6362Jonas Gorski2017-02-091-1/+1
| | | | | | | | BCM6362 and BCM3380 seem to share the same PRID. Disable serial output for them until we can find a way to tell them apart reliably. Fixes: 8f3cfe4ba2 ("brcm63xx: lzma-loader: add BCM3380 support") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add support for Pirelli/ADB P.DG AV4202NPaul Wassi2017-02-097-0/+161
| | | | | | | This patch adds support for the ADB P.DG AV4202N aka Pirelli PRG AV4202N. Signed-off-by: Paul Wassi <p.wassi@gmx.at> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: setup internal switch leds for bcm6368Jonas Gorski2017-02-0911-71/+34
| | | | | | Setup the GPIO_MODE register bits for used internal switch port leds. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: do a full reset phy cycleJonas Gorski2017-02-091-0/+28
| | | | | | Make sure we do a proper reset of the phy, if the phy reset is defined. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: implement gpio_to_irq for bcm63xx-gpioJonas Gorski2017-02-098-1/+53
| | | | | | | | | Add support for mapping some GPIO lines to IRQs. GPIO to IRQ mappings were found out through experimentation, helped by having the GPIO as output still toggling the IRQ input. Based-on: http://patchwork.ozlabs.org/patch/660534/ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix external interrupts on BCM6318Jonas Gorski2017-02-092-8/+21
| | | | | | | | Setting the clear bit for an interrupt seems to cause interrupts to be deasserted again immediately. So unset the bit for BCM6318 to allow subsequent interrupts to still work. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: board.d: request untagged switch config where applicableJo-Philipp Wich2017-02-021-2/+2
| | | | | | | | In order to prepare support for generating tagged switch configurations by default, explicitely request untagged configs for boards which do not already request tagging to retain default behaviour. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: backport MIPS changes introducing a separate IRQ stackFelix Fietkau2017-01-151-1/+1
| | | | | | | | Prevents crashes when IRQs arrive when the current kernel stack context already contains deeply nested function calls, e.g. when stacking lots of network devices on top of each other Signed-off-by: Felix Fietkau <nbd@nbd.name>
* generic: mtd: backport SPI_NOR_HAS_LOCKVictor Shyba2017-01-031-1/+1
| | | | | | | | | This flag was added to 4.9 with upstream commit 76a4707de5e18dc32d9cb4e990686140c5664a15. Signed-off-by: Victor Shyba <victor1984@riseup.net> [refresh and adjust platform patches, fix commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
* brcm63xx: image: trim revision code used for --rsa-signatureJo-Philipp Wich2016-12-141-3/+3
| | | | | | | | | | | | | | | | | The imagetag RSA signature field may not exceed 20 characters, so trim the Git hash portion from the REVISION variable in order to ensure that the resulting string fits within this field. The current revision values may be longer than 20 chars, especially when building within a dirty tree. In this case, the revision will look like "r2435+75-b4aa3c8" which, combined with the "LEDE-" prefix, is 21 chars long. Fixes the following error spotted by the buildbots: Error: RSA Signature (rsa_signature,r) too long. make[4]: *** [.../lede-brcm63xx-generic-NEUFBOX6-squashfs-cfe.bin] Error 1 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* brcm63xx: Livebox 1: add userspace board supportDaniel Gonzalez Cabanelas2016-11-213-0/+12
| | | | | | | | | | Fix configuration files for the Livebox 1 routers. - Add status led - Set eth0 as the LAN port, for coherence with RedBoot and comfortability. - Add led triggers Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>