aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-3.14
Commit message (Collapse)AuthorAgeFilesLines
* brcm63xx: Add DGND3700 v1 / DGND3800B supportJonas Gorski2015-03-161-0/+67
| | | | | | | | | | | | | | | | | This adds support for the Netgear DGND3700 v1 and DGND3800B. DGND3700 v1 and DGND3800B are exactly the same router, only one difference, the factory firmware. This patch produces two factory firmwares for each router. The router includes an onboard NAND flash for extra storage. NAND is currently not supported in bcm63xx, so no code added for this part. The NOR flash (32MB) is enough for storing an openwrt firmware. Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com> [jogo: Add back commit message from v1] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: brcm63xxpart: fix buffer overrun in of parserJonas Gorski2015-03-151-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never account for the added partitions from the tag parser, so allocated two partioness less than needed. This can cause issues when the memory gets reused before the mtd code can actually add the partitions. Fixes oopses like: [ 0.920000] mtd: device 2 (rootfs) set to be root filesystem [ 0.924000] 1 squashfs-split partitions found on MTD device rootfs [ 0.932000] 0x0000002e0000-0x0000003f0000 : "rootfs_data" [ 0.940000] 0x000000010000-0x0000003f0000 : "linux" [ 0.948000] CPU 0 Unable to handle kernel paging request at virtual address 00010203, epc == 8028ddf8, ra == 801ad5d4 [ 0.956000] Oops[#1]: [ 0.956000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.8 #22 [ 0.956000] task: 8181da78 ti: 8181e000 task.ti: 8181e000 [ 0.956000] $ 0 : 00000000 10008f00 00010203 81049e40 [ 0.956000] $ 4 : 00010203 000000d0 00000000 000000fd [ 0.956000] $ 8 : 00000000 80015490 00000000 80370000 [ 0.956000] $12 : 00000000 00000001 00000000 2f736269 [ 0.956000] $16 : 00010203 000000d0 8007bde0 81482000 [ 0.956000] $20 : 00000000 00000004 81481f80 803c4b78 [ 0.956000] $24 : 00000000 00000000 [ 0.956000] $28 : 8181e000 8181fbe8 80b20000 801ad5d4 [ 0.956000] Hi : 00000000 [ 0.956000] Lo : 00000000 [ 0.956000] epc : 8028ddf8 strlen+0x4/0x20 [ 0.956000] Not tainted [ 0.956000] ra : 801ad5d4 kstrdup+0x30/0x84 [ 0.956000] Status: 10008f03 KERNEL EXL IE [ 0.956000] Cause : 00800008 [ 0.956000] BadVA : 00010203 [ 0.956000] PrId : 0002a010 (Broadcom BMIPS4350) [ 0.956000] Modules linked in: [ 0.956000] Process swapper/0 (pid: 1, threadinfo=8181e000, task=8181da78, tls=00000000) [ 0.956000] Stack : 8148aa00 803c4bcc 00000000 801cd9d0 00000000 8148a400 818a1400 003f0000 81482000 8007bde0 8148aa00 800ac78c 8148aa00 00000004 8037ae30 8181fc4c 8148aa00 803bc074 803c0000 80074b84 00000000 00010000 00000004 ffffffff 8037ae30 00000004 8148aa00 00000004 803c4b80 818a1400 803c0000 00000005 81481f80 80074ce0 8181fc84 00000005 81879800 8008ece4 00000000 003f0000 ... [ 0.956000] Call Trace: [ 0.956000] [<8028ddf8>] strlen+0x4/0x20 [ 0.956000] [<801ad5d4>] kstrdup+0x30/0x84 [ 0.956000] [<8007bde0>] allocate_partition+0x58/0x93c [ 0.956000] [<80074ce0>] add_mtd_partitions+0x90/0x144 [ 0.956000] [<801cc228>] mtd_device_parse_register+0x78/0xcc [ 0.956000] [<801e7870>] of_flash_probe+0x658/0x728 [ 0.956000] [<80216ee0>] platform_drv_probe+0x24/0x60 [ 0.956000] [<801221f4>] driver_probe_device+0xcc/0x214 [ 0.956000] [<800466f8>] __driver_attach+0x7c/0xb4 [ 0.956000] [<800c38bc>] bus_for_each_dev+0x94/0xa4 [ 0.956000] [<800c35e4>] bus_add_driver+0x104/0x1ec [ 0.956000] [<80122400>] driver_register+0xac/0x100 [ 0.956000] [<80113a5c>] do_one_initcall+0x148/0x204 [ 0.956000] [<803cbd1c>] kernel_init_freeable+0x168/0x220 [ 0.956000] [<800157bc>] kernel_init+0x10/0x114 [ 0.956000] [<800108a8>] ret_from_kernel_thread+0x14/0x1c [ 0.956000] [ 0.956000] Code: 03e00008 27bd0028 00801021 <80430000> 10600003 00000000 080a377e 24420001 03e00008 [ 1.192000] ---[ end trace 9d89ccbcae27fe40 ]--- [ 1.200000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 1.200000] [ 1.200000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44787 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix ethernet breakage in 3.18Jonas Gorski2015-02-281-0/+27
| | | | | | | | | | | | Linux commit d75b1ade567ffab ("net: less interrupt masking in NAPI") chose the samantics of the napi poll return value, which caused napi to not resume interrups/polling anymore. Fix the return value to restore expected behaviour. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44576 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix BCM63268 interrupt register locations for legacy probeJonas Gorski2015-02-281-2/+2
| | | | | | | | | Legacy probe passed the IRQSTAT registers instead of the IRQMASK registers causing all register accesses to be offset by 16 bytes. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44575 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix gpio register usageJonas Gorski2015-02-282-6/+6
| | | | | | | | | | The driver expected data then dir, but both dts and legacy code passed dir then data. Fix this by making the driver expect the registers in ascending order, i.e. dir then data. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44574 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: backport and enable DT spi-gpio no CS supportJonas Gorski2015-02-271-0/+91
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: remove gpio base workaroundJonas Gorski2015-02-271-34/+0
| | | | | | | | | Now that all gpio users without named gpios use DT, we do not need to fix the gpio controller bases anymore. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44567 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: move buttons and leds to dts filesJonas Gorski2015-02-2768-2859/+545
| | | | | | | | | | | | | | Register buttons and leds through DT for all available dts, and remove them from the board files. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: remove leds/buttons from board files fix wrong led polarities for dsl-274xb-c2, cpva642, p870hw comment out spi-gpio and associated leds] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44566 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: probe gpio controllers through DTJonas Gorski2015-02-2719-40/+684
| | | | | | | | | | | | | | | | Add a generic mmio gpio controller based driver and probe it through device tree. Use aliases for base calculation until we converted all users to device tree or named gpios. Convert bcm63xx_enet's ephy-reset gpio to use a named gpio. While at it, remove the duplicate reset gpio defintion for livebox. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44565 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: convert BTV2500V to dtsJonas Gorski2015-02-2716-18/+26
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44564 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: convert RTA1320 to dtsJonas Gorski2015-02-2719-18/+26
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44563 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add dts and profile for LiveboxJonas Gorski2015-02-271-26/+41
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44559 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package: mtd: move bcm963xx_tag definition into source codeJonas Gorski2015-02-277-45/+16
| | | | | | | | | | Remove the need for the header file to be exported - we don't need most of it anyway; all we care about are the offset of the rootfs length and header crc fields. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44557 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix a few issues in irq chip driversJonas Gorski2014-12-087-198/+272
| | | | | | | | Fix locking and lock usage, making it compile for SMP. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43578 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: refresh patchesJonas Gorski2014-12-0824-35/+35
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43576 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for USR9108Jonas Gorski2014-12-081-1/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43575 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for F5D7633Jonas Gorski2014-12-082-2/+3
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43574 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for DG834GT/PNJonas Gorski2014-12-081-1/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for TD-W8900GBJonas Gorski2014-12-083-3/+4
| | | | | | | | | | | | According to the vendor tarball, the TD-w8900GB's flash has 64k erase block size, but CFE spans two blocks. So fixup the image offset accordingly but keep block size at its default (64k). Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: add commit message, add image offset, change nvram offset] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43572 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for DSL-2640BJonas Gorski2014-12-082-1/+9
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for CPVA642Jonas Gorski2014-12-082-1/+9
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: register interrupt-controllers through DT when possibleJonas Gorski2014-12-011-0/+38
| | | | | | | | | Add the required nodes for the interrupt controllers and register them through DT when a DTB is present. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43457 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: convert to irq domainJonas Gorski2014-12-0119-78/+1842
| | | | | | | | | Add irq-domain aware irqchip drivers for the irq controllers of bcm63xx and switch to use them. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43454 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: refresh patchesJonas Gorski2014-12-0122-25/+25
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43453 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for DSL-2650UJonas Gorski2014-12-014-4/+5
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43452 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for DSL-2740B/DSL-2741B rev F1Jonas Gorski2014-12-013-2/+10
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43451 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for F@ST2504nJonas Gorski2014-12-011-0/+8
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43450 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for F@ST2704V2Jonas Gorski2014-12-011-0/+8
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43449 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: add DT support for F@ST2604Jonas Gorski2014-12-011-0/+8
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43448 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: refresh patchesJonas Gorski2014-11-2419-31/+31
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43363 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for SPW303VJonas Gorski2014-11-241-0/+8
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for DV-201AMRJonas Gorski2014-11-242-2/+3
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for RG100AJonas Gorski2014-11-241-1/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43360 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for A226G/MJonas Gorski2014-11-241-1/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43359 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: move board compatible strings into a tableJonas Gorski2014-11-2262-398/+490
| | | | | | | | | | Move compatible strings from board structs into separate table. This allows for several board compatibles to match to the same board in case e.g. only the flash size / partitions differ. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43341 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix wrong fixups pointerJonas Gorski2014-10-031-1/+1
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42756 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: update spw500v sprom to values from gpl tarballJonas Gorski2014-10-0245-71/+81
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42740 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: reorder some patches according to their upstream stateJonas Gorski2014-10-0218-0/+0
| | | | | | | | The irq rewrite was accepted upstream. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42739 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for 96368MVWGJonas Gorski2014-10-0230-39/+40
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42738 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for 96368MVNgrJonas Gorski2014-10-0229-37/+38
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42737 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for 96338WJonas Gorski2014-10-021-1/+1
| | | | | | | | | Renamed of_board_id to convention. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42734 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for 963281TANJonas Gorski2014-10-0233-69/+70
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42727 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: fix brcm63xx fallback typoJonas Gorski2014-10-021-1/+1
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42726 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for P870HW-51aJonas Gorski2014-08-214-5/+6
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: fix nvram partition offset] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42248 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for HG553Jonas Gorski2014-08-2138-56/+57
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: fix linux partition length] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42247 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for HG520vJonas Gorski2014-08-213-4/+5
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: fix nvram partition offset] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42246 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for A4001NJonas Gorski2014-08-212-4/+5
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42245 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for A4001N1Jonas Gorski2014-08-2126-54/+55
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42244 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for WAP-5813nJonas Gorski2014-08-217-8/+9
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: make linux partition writable] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42243 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: Add DT support for VR-3025unJonas Gorski2014-08-215-6/+7
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> [jogo: make linux partition writable] Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42242 3c298f89-4303-0410-b956-a3cf2f4a3e73