aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-02-27 17:40:04 +0000
committerJonas Gorski <jogo@openwrt.org>2015-02-27 17:40:04 +0000
commitb82cb155fced6a99989870c92ebff8248c435fe7 (patch)
treea81679b3673389471a37b52989ff7de497b92a86 /target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch
parenteea227c60d593c2fe5692365936703bbebdbd1ad (diff)
downloadupstream-b82cb155fced6a99989870c92ebff8248c435fe7.tar.gz
upstream-b82cb155fced6a99989870c92ebff8248c435fe7.tar.bz2
upstream-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/527-board_dva-g3810bn-tl-1.patch')
-rw-r--r--target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch47
1 files changed, 5 insertions, 42 deletions
diff --git a/target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch b/target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch
index e39e8c47ee..b83a966953 100644
--- a/target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch
+++ b/target/linux/brcm63xx/patches-3.18/527-board_dva-g3810bn-tl-1.patch
@@ -1,8 +1,8 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2301,6 +2301,73 @@ static struct board_info __initdata boar
- },
- }
+@@ -1318,6 +1318,36 @@ static struct board_info __initdata boar
+ .use_internal_phy = 1,
+ },
};
+
+/* D-Link DVA-G3810BN/TL */
@@ -33,48 +33,11 @@
+ .has_ohci0 = 1,
+ .has_pccard = 1,
+ .has_ehci0 = 1,
-+
-+ .leds = {
-+ {
-+ .name = "DVAG3810BN::voip",
-+ .gpio = 1,
-+ },
-+ {
-+ .name = "DVAG3810BN::dsl",
-+ .gpio = 22,
-+ .active_low = 1,
-+ },
-+ {
-+ .name = "DVAG3810BN::internet",
-+ .gpio = 23,
-+ .active_low = 1,
-+ },
-+ {
-+ .name = "DVAG3810BN::power",
-+ .gpio = 4,
-+ .default_trigger = "default-on",
-+ },
-+ {
-+ .name = "DVAG3810BN::stop",
-+ .gpio = 5,
-+ },
-+ },
-+
-+ .buttons = {
-+ {
-+ .desc = "reset",
-+ .gpio = 34,
-+ .active_low = 1,
-+ .type = EV_KEY,
-+ .code = KEY_RESTART,
-+ .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+ },
-+ },
+};
#endif /* CONFIG_BCM63XX_CPU_6358 */
/*
-@@ -2503,6 +2570,7 @@ static const struct board_info __initcon
+@@ -1468,6 +1498,7 @@ static const struct board_info __initcon
&board_ct6373_1,
&board_HW553,
&board_spw303v,
@@ -82,7 +45,7 @@
#endif
#ifdef CONFIG_BCM63XX_CPU_6368
-@@ -2557,6 +2625,7 @@ static struct of_device_id const bcm963x
+@@ -1522,6 +1553,7 @@ static struct of_device_id const bcm963x
{ .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },