Commit graph

960 commits

Author SHA1 Message Date
Jonas Gorski
4981c7da0d brcm63xx: make use of dt-includes
Now that we have a dtc command that invokes the preprocessor, make use
of it and replace the magic numbers with KEY_* defines.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46391
2015-07-16 11:15:02 +00:00
Jonas Gorski
71e0bd0165 brcm63xx: make use of the new BuildDTB command
Now that we have a BuildDTB command, make use of it instead of calling
dtc directly.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46390
2015-07-16 11:13:47 +00:00
Jonas Gorski
491cfb06d0 brcm63xx: HG553 buttons support
This patch adds buttons support for Huawei EchoLife HG553.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46388
2015-07-16 11:12:41 +00:00
Jonas Gorski
730f06410e brcm63xx: switch to 4.1
Switch brcm63xx to 4.1 to give it some initial testing, but keep 3.18
at least until CC-final is out.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46386
2015-07-15 14:42:04 +00:00
John Crispin
096b3759a9 build: Prevent more gzip timestamps
To improve reproducibility, prevent the inclusion of timestamps
in the gzip header.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>

SVN-Revision: 46361
2015-07-14 09:57:45 +00:00
Jonas Gorski
1e8c3d2769 brcm63xx: use IRQCHIP_DECLARE instead of self-baked version
Backport a commit from 4.2 making IRQCHIP_DECLARE available outside of
drivers/irqchip and use it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46183
2015-07-05 21:31:52 +00:00
Jonas Gorski
761fc3f035 brcm63xx: 4.1: switch to upstream UHI interface
Replace the appended dtb patch with the upstream accepted version and
update the code to work with the changed interface.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46181
2015-07-05 11:28:46 +00:00
Jonas Gorski
ad80d3869d brcm63xx: swap a4001n power leds again
This partially reverts r44577 ("brcm63xx: fix DTS LEDs and buttons").

Fixes #19858.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46149
2015-06-30 23:26:05 +00:00
Jonas Gorski
3a9e4ba896 brcm63xx: unbreak board_probe_switch again
Also move it to an earlier place so new boards added are less likely
to confuse quilt.

Fixes #19965.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46148
2015-06-30 23:26:02 +00:00
Jonas Gorski
bd398e1765 brcm63xx: add kernel 4.1 support
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46113
2015-06-22 12:28:46 +00:00
Jonas Gorski
9a59b350b7 kernel: update 3.18 to 3.18.16
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46011
2015-06-17 09:54:55 +00:00
Jonas Gorski
84bfed7bd3 brcm63xx: fix A4001N image padding size
When r42245 moved A4001N to DT based detection the image padding size
was accidentally increased from 4 to 8 MiB. This made images unflashable
on these devices.

Fixes #19836.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45945
2015-06-11 12:10:43 +00:00
Jonas Gorski
6d07290de3 brcm63xx: fix livebox image generation
Livebox does need the uncompressed kernel, so just create it during
image generation.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45875
2015-06-02 10:23:45 +00:00
Jonas Gorski
9c6945d7a1 brcm63xx: delete uncompressed kernels after use
Delete the dtb appended, uncompressed kernels after having compressed
them, so they don't end in the image builder.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45869
2015-06-01 12:37:34 +00:00
Jo-Philipp Wich
957534693c brcm63xx: use common image prefix
Also remove "redbootscript" and "redbootscript.padded" junk files.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Acked-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45780
2015-05-27 15:18:21 +00:00
Jonas Gorski
76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45711
2015-05-21 19:32:46 +00:00
Jonas Gorski
4bb7b2186e brcm63xx: fix failsafe lan and status led for DSL-274xB rev. F1
Add it to the appropriate places so the power led properly works
and ethernet is properly configured for failsafe.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45709
2015-05-21 19:32:00 +00:00
Jonas Gorski
509c3211d6 brcm63xx: Add Huawei HG655b support
This patch adds support for the Huawei HG655b.

Nothing much special in this router, it's just another BCM6368 with
a Ralink RT3062 wifi chip and the calibration data embedded in the
main flash chip at offset 0x7c0000. There is also configuration data
used by the OEM firmware before the cal_data partition, this area is
protected by the board_data partition in this patch.

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45708
2015-05-21 19:31:54 +00:00
Jonas Gorski
9feb1361c4 brcm63xx: fix bcm6348 ext irqc compatible name
This was a remnant of an old version.

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45583
2015-04-27 11:06:05 +00:00
Jonas Gorski
5e7f4ab632 brcm63xx: fix bcm3368.dtsi typo.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45582
2015-04-27 11:06:00 +00:00
Jonas Gorski
16127b3429 brcm63xx: fix leds bcm963269bhr
Fix the led naming and gpios.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45558
2015-04-21 17:00:39 +00:00
Jonas Gorski
5e8eedb897 brcm63xx: add missing bcm96329bhr profile and dts
Hopefully the last missing board.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45557
2015-04-21 16:43:46 +00:00
Jonas Gorski
681eb8c3de brcm63xx: fix bcm63268 rgmii port rgmii configuration
This should rather be done by passing appropriate platform_data/OF, but
should suffice for now.

Fixes e.g. GbE ports on BCM963268BU_P300.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45505
2015-04-19 11:38:42 +00:00
Jonas Gorski
440124dcbb brcm63xx: allow using all four rgmii ports on bcm6316x
At least the third rgmii port is available on 63169, so assume all are
available. Simplifies cpu vs. variant handling.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45504
2015-04-19 11:38:24 +00:00
Jonas Gorski
c1ea714d43 brcm63xx: BCM963268BU_P300 reference board fixes
- Fix profile name.
- Rremove whitespace on board patch.
- Refresh patches.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45499
2015-04-18 22:33:50 +00:00
Jonas Gorski
6232e845da brcm63xx: fix bcm96318ref_p300 profile name
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45486
2015-04-18 09:34:17 +00:00
Felix Fietkau
e8126cbfbd kernel: remove kernel module checks/dependencies for 3.14
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45377
2015-04-11 10:43:46 +00:00
Jonas Gorski
a709beb4ae brcm63xx: fix zyxel kernel name
Accidentally left over development artifact.

Reported-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45179
2015-03-31 09:54:15 +00:00
Jonas Gorski
a54b8303d2 brcm63xx: don't build non-dtb kernels anymore
Now that all supported boards have an dts there is no need for a
dtb free kernel anymore.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45169
2015-03-30 20:21:24 +00:00
Jonas Gorski
0f08442ded brcm63xx: move DSL-275XB to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45168
2015-03-30 20:21:15 +00:00
Jonas Gorski
f77b446051 brcm63xx: move bcm6318 reference boards to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45167
2015-03-30 20:21:07 +00:00
Jonas Gorski
f644c1581a brcm63xx: move VG50 to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45166
2015-03-30 20:21:01 +00:00
Jonas Gorski
f973580488 brcm63xx: move V2110 to DT
Also readd image generation which was accidentally dropped in r43364.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45165
2015-03-30 20:20:49 +00:00
Jonas Gorski
d8ba40cfcd brcm63xx: use relocate to move the kernel back to start of ram
Appearently the kernel only uses kernel above it, so moving it to an
higher address causes a lot of unavailable memory (#19327).

Also move the on-flash kernel to 0x80a0000, as newer CFEs don't like
uncompressing there (net-booting an ELF kernel is fine, though).

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45164
2015-03-30 20:20:15 +00:00
Felix Fietkau
693e5aae41 brcm63xx: remove linux 3.14 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45089
2015-03-28 13:21:09 +00:00
Jonas Gorski
8ffc831bef brcm63xx: use a lookup for bcmcia's ready gpio
Should fix pcmcia on BCM6348 and BCM6358 after switching to DT-probed
gpio controllers.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44995
2015-03-25 15:37:38 +00:00
Jonas Gorski
1e07f8c7ff brcm63xx: fix bcm96328avng board name
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44994
2015-03-25 15:36:26 +00:00
Jonas Gorski
4dc169f9a2 brcm63xx: fix bt v2500v dts based detection
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44993
2015-03-25 15:36:15 +00:00
Jonas Gorski
10cdfd04e6 brcm63xx: move RTA770(B)W to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44992
2015-03-25 15:36:12 +00:00
Jonas Gorski
0e4c1ba284 brcm63xx: move MAGIC to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44991
2015-03-25 15:36:05 +00:00
Jonas Gorski
582dfc52f5 brcm63xx: move CPVA502+ to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44990
2015-03-25 15:35:57 +00:00
Jonas Gorski
46b4d4d1d5 brcm63xx: move dg834g v4 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44989
2015-03-25 15:35:43 +00:00
Jonas Gorski
30a579c674 brcm63xx: move dsl-2640u to dts
Also build image again(?).

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44988
2015-03-25 15:35:37 +00:00
Jonas Gorski
16ea19053a brcm63xx: move bcm963268bu_p300 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44987
2015-03-25 15:35:24 +00:00
Jonas Gorski
ad218d3033 brcm63xx: fix compilation on 3.14
Fixes the following issue:

drivers/gpio/gpio-bcm63xx.c: In function 'bcm63xx_gpio_probe':
drivers/gpio/gpio-bcm63xx.c:80:4: error: implicit declaration of function 'devm_kasprintf' [-Werror=implicit-function-declaration]

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44986
2015-03-25 15:35:15 +00:00
Jonas Gorski
2d3371cd0f brcm63xx: Add BT Home Hub 2A support.
Support for the BT HomeHub 2.0 Type A.

This router was manufactured by Thomson, and it's BCM6358 based.
The leds are controled by two chained HC594, all working ok. The BCM5325
switch has the RESET# pin wired to the GPIO15, but currently there is no
way to tell the b53 driver how to get this gpio number in brcm63xx,
therefore swconfig won't use it when performing a switch reset.

The patch was tested with several firmwares, and all except unsupported
stuff (i.e xDSL) works pretty well.

Tested-by: Tahir <tahir00ali@gmail.com>
Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>

SVN-Revision: 44985
2015-03-25 15:35:12 +00:00
Jonas Gorski
065d6e9047 brcm63xx: move kernel load address to 8MiB
Fixes boot when uncompressed kernel is > 4 MiB (#19251).

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44984
2015-03-25 15:34:59 +00:00
Jonas Gorski
ee0140a678 brcm63xx: hcsimage: respect load address
Respect the vmlinux load address when generating images.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44983
2015-03-25 15:34:45 +00:00
Jonas Gorski
d84fafb9f3 brcm63xx: add Livebox 1 firmware image generation
Currently there isn't images ready for flashing liveboxes boards. This
patch adds a script and the code to call it in the  bcm63xx images
builder makefile to generate the livebox 1 firmware.

I removed some lines to avoid generating unneded files in the bin/ dir
for this board. And added code to generate a squashed rootfs aligned to
64 kB since the current one in the /bin dir is 128 kB aligned and
doesn't work. Still no sysupgrade support for this board. Upgrading from
within openwrt can be done writing with mtd the kernel, and then the 64k
aligned rootfs.

Regards

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: use sed instead of a separate shell script for the boot script, make it
 respect the load address]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44982
2015-03-25 15:34:40 +00:00
Jonas Gorski
77e3d442b0 brcm63xx: add a dummy image recipe for boards missing proper images
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44981
2015-03-25 15:34:26 +00:00