* [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3
@ 2023-02-08 7:03 Rafał Miłecki
2023-02-08 17:08 ` Florian Fainelli
2023-02-09 12:07 ` Thomas Bogendoerfer
0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2023-02-08 7:03 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: Hauke Mehrtens, Florian Fainelli, linux-mips,
bcm-kernel-feedback-list, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
It's a BCM5358 based home WiFi router. 16 MiB flash, 64 MiB RAM, BCM5325
switch, on-SoC 802.11n radio.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
arch/mips/bcm47xx/board.c | 1 +
arch/mips/bcm47xx/buttons.c | 9 +++++++++
arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | 1 +
3 files changed, 11 insertions(+)
diff --git a/arch/mips/bcm47xx/board.c b/arch/mips/bcm47xx/board.c
index 8ef002471b9c..90fb48b046c0 100644
--- a/arch/mips/bcm47xx/board.c
+++ b/arch/mips/bcm47xx/board.c
@@ -130,6 +130,7 @@ struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = {
{{BCM47XX_BOARD_LINKSYS_E1000V21, "Linksys E1000 V2.1"}, "E1000", "2.1"},
{{BCM47XX_BOARD_LINKSYS_E1200V2, "Linksys E1200 V2"}, "E1200", "2.0"},
{{BCM47XX_BOARD_LINKSYS_E2000V1, "Linksys E2000 V1"}, "Linksys E2000", "1.0"},
+ {{BCM47XX_BOARD_LINKSYS_E2500V3, "Linksys E2500 V3"}, "E2500", "1.0"},
/* like WRT610N v2.0 */
{{BCM47XX_BOARD_LINKSYS_E3000V1, "Linksys E3000 V1"}, "E300", "1.0"},
{{BCM47XX_BOARD_LINKSYS_E3200V1, "Linksys E3200 V1"}, "E3200", "1.0"},
diff --git a/arch/mips/bcm47xx/buttons.c b/arch/mips/bcm47xx/buttons.c
index 38e4a9cbcf4e..437a737c01dd 100644
--- a/arch/mips/bcm47xx/buttons.c
+++ b/arch/mips/bcm47xx/buttons.c
@@ -222,6 +222,12 @@ bcm47xx_buttons_linksys_e2000v1[] __initconst = {
BCM47XX_GPIO_KEY(8, KEY_RESTART),
};
+static const struct gpio_keys_button
+bcm47xx_buttons_linksys_e2500v3[] __initconst = {
+ BCM47XX_GPIO_KEY(9, KEY_WPS_BUTTON),
+ BCM47XX_GPIO_KEY(10, KEY_RESTART),
+};
+
static const struct gpio_keys_button
bcm47xx_buttons_linksys_e3000v1[] __initconst = {
BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON),
@@ -617,6 +623,9 @@ int __init bcm47xx_buttons_register(void)
case BCM47XX_BOARD_LINKSYS_E2000V1:
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2000v1);
break;
+ case BCM47XX_BOARD_LINKSYS_E2500V3:
+ err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2500v3);
+ break;
case BCM47XX_BOARD_LINKSYS_E3000V1:
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e3000v1);
break;
diff --git a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
index 30f4114ab872..3c401f11655e 100644
--- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
+++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
@@ -61,6 +61,7 @@ enum bcm47xx_board {
BCM47XX_BOARD_LINKSYS_E1000V21,
BCM47XX_BOARD_LINKSYS_E1200V2,
BCM47XX_BOARD_LINKSYS_E2000V1,
+ BCM47XX_BOARD_LINKSYS_E2500V3,
BCM47XX_BOARD_LINKSYS_E3000V1,
BCM47XX_BOARD_LINKSYS_E3200V1,
BCM47XX_BOARD_LINKSYS_E4200V1,
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3
2023-02-08 7:03 [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3 Rafał Miłecki
@ 2023-02-08 17:08 ` Florian Fainelli
2023-02-09 12:07 ` Thomas Bogendoerfer
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2023-02-08 17:08 UTC (permalink / raw)
To: Rafał Miłecki, Thomas Bogendoerfer
Cc: Hauke Mehrtens, linux-mips, bcm-kernel-feedback-list,
Rafał Miłecki
On 2/7/23 23:03, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> It's a BCM5358 based home WiFi router. 16 MiB flash, 64 MiB RAM, BCM5325
> switch, on-SoC 802.11n radio.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3
2023-02-08 7:03 [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3 Rafał Miłecki
2023-02-08 17:08 ` Florian Fainelli
@ 2023-02-09 12:07 ` Thomas Bogendoerfer
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2023-02-09 12:07 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Hauke Mehrtens, Florian Fainelli, linux-mips,
bcm-kernel-feedback-list, Rafał Miłecki
On Wed, Feb 08, 2023 at 08:03:01AM +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> It's a BCM5358 based home WiFi router. 16 MiB flash, 64 MiB RAM, BCM5325
> switch, on-SoC 802.11n radio.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> ---
> arch/mips/bcm47xx/board.c | 1 +
> arch/mips/bcm47xx/buttons.c | 9 +++++++++
> arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | 1 +
> 3 files changed, 11 insertions(+)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-09 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 7:03 [PATCH] MIPS: BCM47XX: Add support for Linksys E2500 V3 Rafał Miłecki
2023-02-08 17:08 ` Florian Fainelli
2023-02-09 12:07 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox