forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bcm53xx: Add support for Arris SBR1900P/SBR-AC3200P
- Loading branch information
1 parent
0158109
commit 0b66843
Showing
4 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
target/linux/bcm53xx/patches-4.14/323-ARM-dts-BCM5301X-Add-DT-for-ARRIS-SBR-AC3200P.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- a/arch/arm/boot/dts/Makefile | ||
+++ b/arch/arm/boot/dts/Makefile | ||
@@ -106,6 +106,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ | ||
bcm4709-netgear-r8000.dtb \ | ||
bcm4709-tplink-archer-c9-v1.dtb \ | ||
bcm4709-arris-sbr-ac1900p.dtb \ | ||
+ bcm4709-arris-sbr-ac3200p.dtb \ | ||
bcm47094-dlink-dir-885l.dtb \ | ||
bcm47094-linksys-panamera.dtb \ | ||
bcm47094-luxul-abr-4500.dtb \ | ||
--- /dev/null | ||
+++ b/arch/arm/boot/dts/bcm4709-arris-sbr-ac3200p.dts | ||
@@ -0,0 +1,82 @@ | ||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
+/* | ||
+ * DTS for ARRIS SBR-AC3200P | ||
+ * | ||
+ * Copyright (C) 2019 lostlonger <[email protected]> | ||
+ * Copyright (C) 2019 paldier <[email protected]> | ||
+ */ | ||
+ | ||
+/dts-v1/; | ||
+ | ||
+#include "bcm4709.dtsi" | ||
+#include "bcm5301x-nand-cs0-bch4.dtsi" | ||
+ | ||
+/ { | ||
+ compatible = "arris,sbr-ac3200p", "brcm,bcm4709", "brcm,bcm4708"; | ||
+ model = "ARRIS SBR-AC3200P"; | ||
+ | ||
+ chosen { | ||
+ bootargs = "console=ttyS0,115200"; | ||
+ }; | ||
+ | ||
+ memory { | ||
+ reg = <0x00000000 0x08000000 | ||
+ 0x88000000 0x08000000>; | ||
+ }; | ||
+ | ||
+ gpio-keys { | ||
+ compatible = "gpio-keys"; | ||
+ #address-cells = <1>; | ||
+ #size-cells = <0>; | ||
+ | ||
+ restart { | ||
+ label = "Reset"; | ||
+ linux,code = <KEY_RESTART>; | ||
+ gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; | ||
+ }; | ||
+ | ||
+ wps { | ||
+ label = "WPS"; | ||
+ linux,code = <KEY_WPS_BUTTON>; | ||
+ gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; | ||
+ }; | ||
+ }; | ||
+}; | ||
+ | ||
+&usb2 { | ||
+ vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; | ||
+}; | ||
+ | ||
+&usb3 { | ||
+ vcc-gpio = <&chipcommon 21 GPIO_ACTIVE_HIGH>; | ||
+}; | ||
+ | ||
+&usb3_phy { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&nandcs { | ||
+ partitions { | ||
+ compatible = "fixed-partitions"; | ||
+ #address-cells = <1>; | ||
+ #size-cells = <1>; | ||
+ | ||
+ partition@0 { | ||
+ label = "boot"; | ||
+ reg = <0x0000000 0x0080000>; | ||
+ read-only; | ||
+ }; | ||
+ | ||
+ partition@80000 { | ||
+ label = "nvram"; | ||
+ reg = <0x0080000 0x0180000>; | ||
+ }; | ||
+ | ||
+ partition@200000 { | ||
+ label = "firmware"; | ||
+ reg = <0x0200000 0x6600000>; | ||
+ compatible = "brcm,trx"; | ||
+ }; | ||
+ | ||
+ partition@6800000 { | ||
+ label = "env"; | ||
+ reg = <0x6800000 0x0200000>; | ||
+ read-only; | ||
+ }; | ||
+ | ||
+ partition@6a00000 { | ||
+ label = "data"; | ||
+ reg = <0x6a00000 0x1600000>; | ||
+ }; | ||
+ }; | ||
+}; | ||
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
|
||
#include "b53_regs.h" | ||
#include "b53_priv.h" | ||
@@ -1579,6 +1580,28 @@ static int b53_switch_init(struct b53_de | ||
@@ -1579,6 +1580,32 @@ static int b53_switch_init(struct b53_de | ||
return ret; | ||
} | ||
|
||
|
@@ -34,6 +34,10 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
+ sw_dev->cpu_port = 8; | ||
+ else if (of_machine_is_compatible("netgear,r8500")) | ||
+ sw_dev->cpu_port = 8; | ||
+ else if (of_machine_is_compatible("arris,sbr-ac1900p")) | ||
+ sw_dev->cpu_port = 7; | ||
+ else if (of_machine_is_compatible("arris,sbr-ac3200p")) | ||
+ sw_dev->cpu_port = 7; | ||
+ | ||
+ /* Enable extra ports */ | ||
+ if (of_machine_is_compatible("tenda,ac9")) | ||
|