Commit Graph

11 Commits (2a2b16210bbc8c5881286d2ff742f3bdf1a7fd9c)

Author SHA1 Message Date
Jonas Gorski dd7079e79a brcm63xx: implement gpio_to_irq for bcm63xx-gpio
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>
7 years ago
Jonas Gorski 80403e4558 brcm63xx: use upstreamed compatible name for the periph intc
This makes the eventual migration to bmips easier, as dts files
will require less changes.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years ago
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
9 years ago
Jonas Gorski eea227c60d brcm63xx: probe gpio controllers through DT
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>

SVN-Revision: 44565
9 years ago
Jonas Gorski bdb1ee51f8 brcm63xx: fix a few issues in irq chip drivers
Fix locking and lock usage, making it compile for SMP.

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

SVN-Revision: 43578
10 years ago
Jonas Gorski e8068f0b1b brcm63xx: register interrupt-controllers through DT when possible
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>

SVN-Revision: 43457
10 years ago
Jonas Gorski 443d730da8 brcm63xx: dtsi: add missing ranges properity to ubus nodes
Allows nodes behind it to be mapped.

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

SVN-Revision: 43456
10 years ago
Jonas Gorski d9a2c55806 brcm63xx: dtsi: add missing properties to cpu nodes
Mark them as cpu nodes and add the addresses.

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

SVN-Revision: 43455
10 years ago
Jonas Gorski 84001352fd brcm63xx: dts: fix spelling of "bank-width"
Fixes pflash registration through DT for 6338/6345/6348.

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

SVN-Revision: 42235
10 years ago
Jonas Gorski 9c6287d6a1 brcm63xx: add support for registering parallel flash through dtb
Add the required nodes to the dtsi files and code to prevent double
registration from the board support code.

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

SVN-Revision: 42123
10 years ago
Jonas Gorski 0343c0288e brcm63xx: add empty dtsi files for each of the supported SoCs
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42120
10 years ago