diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:40:04 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:40:04 +0000 |
commit | b82cb155fced6a99989870c92ebff8248c435fe7 (patch) | |
tree | a81679b3673389471a37b52989ff7de497b92a86 /target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch | |
parent | eea227c60d593c2fe5692365936703bbebdbd1ad (diff) | |
download | master-31e0f0ae-b82cb155fced6a99989870c92ebff8248c435fe7.tar.gz master-31e0f0ae-b82cb155fced6a99989870c92ebff8248c435fe7.tar.bz2 master-31e0f0ae-b82cb155fced6a99989870c92ebff8248c435fe7.zip |
brcm63xx: move buttons and leds to dts files
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>
SVN-Revision: 44566
Diffstat (limited to 'target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch | 46 |
1 files changed, 4 insertions, 42 deletions
diff --git a/target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch b/target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch index ad5ebd4cab..99a684e281 100644 --- a/target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch +++ b/target/linux/brcm63xx/patches-3.18/511-board_V2500V.patch @@ -1,6 +1,6 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -935,6 +935,65 @@ static struct board_info __initdata boar +@@ -760,6 +760,27 @@ static struct board_info __initdata boar }, }, }; @@ -24,49 +24,11 @@ + .force_speed_100 = 1, + .force_duplex_full = 1, + }, -+ -+ .leds = { -+ { -+ .name = "V2500V_BB:green:power", -+ .gpio = 0, -+ .active_low = 1, -+ .default_trigger = "default-on", -+ }, -+ { -+ .name = "V2500V_BB:red:power", -+ .gpio = 1, -+ .active_low = 1, -+ }, -+ { -+ .name = "V2500V_BB:green:adsl", -+ .gpio = 2, -+ .active_low = 1, -+ }, -+ { .name = "V2500V_BB:green:ppp", -+ .gpio = 3, -+ .active_low = 1, -+ }, -+ { -+ .name = "V2500V_BB:green:wireless", -+ .gpio = 6, -+ .active_low = 1, -+ }, -+ }, -+ .buttons = { -+ { -+ .desc = "reset", -+ .gpio = 31, -+ .active_low = 1, -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL, -+ }, -+ }, +}; #endif /* CONFIG_BCM63XX_CPU_6348 */ /* -@@ -1675,6 +1734,7 @@ static const struct board_info __initcon +@@ -1084,6 +1105,7 @@ static const struct board_info __initcon &board_96348_D4PW, &board_spw500v, &board_96348sv, @@ -74,7 +36,7 @@ #endif #ifdef CONFIG_BCM63XX_CPU_6358 -@@ -1713,6 +1773,7 @@ static struct of_device_id const bcm963x +@@ -1122,6 +1144,7 @@ static struct of_device_id const bcm963x { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, }, { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, }, { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, }, @@ -82,7 +44,7 @@ { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, }, { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, }, { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, }, -@@ -1772,6 +1833,22 @@ void __init board_bcm963xx_init(void) +@@ -1181,6 +1204,22 @@ void __init board_bcm963xx_init(void) val &= MPI_CSBASE_BASE_MASK; } boot_addr = (u8 *)KSEG1ADDR(val); |