forked from lede-project/source
-
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 basic support for Netgear R7900
Signed-off-by: Rafał Miłecki <[email protected]> SVN-Revision: 49122
- Loading branch information
Showing
7 changed files
with
87 additions
and
13 deletions.
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
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
63 changes: 63 additions & 0 deletions
63
target/linux/bcm53xx/patches-4.4/301-ARM-BCM5301X-Add-DT-for-Netgear-R7900.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,63 @@ | ||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]> | ||
Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R7900 | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Signed-off-by: Rafał Miłecki <[email protected]> | ||
--- | ||
|
||
--- a/arch/arm/boot/dts/Makefile | ||
+++ b/arch/arm/boot/dts/Makefile | ||
@@ -75,6 +75,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ | ||
bcm4709-asus-rt-ac87u.dtb \ | ||
bcm4709-buffalo-wxr-1900dhp.dtb \ | ||
bcm4709-netgear-r7000.dtb \ | ||
+ bcm4709-netgear-r7900.dtb \ | ||
bcm4709-netgear-r8000.dtb \ | ||
bcm47094-dlink-dir-885l.dtb \ | ||
bcm94708.dtb \ | ||
--- /dev/null | ||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7900.dts | ||
@@ -0,0 +1,41 @@ | ||
+/* | ||
+ * Broadcom BCM470X / BCM5301X ARM platform code. | ||
+ * DTS for Netgear R7900 | ||
+ * | ||
+ * Copyright (C) 2016 Rafał Miłecki <[email protected]> | ||
+ * | ||
+ * Licensed under the GNU/GPL. See COPYING for details. | ||
+ */ | ||
+ | ||
+/dts-v1/; | ||
+ | ||
+#include "bcm4708.dtsi" | ||
+#include "bcm5301x-nand-cs0-bch8.dtsi" | ||
+ | ||
+/ { | ||
+ compatible = "netgear,r7900", "brcm,bcm4709", "brcm,bcm4708"; | ||
+ model = "Netgear R7900"; | ||
+ | ||
+ chosen { | ||
+ bootargs = "console=ttyS0,115200"; | ||
+ }; | ||
+ | ||
+ memory { | ||
+ reg = <0x00000000 0x08000000>; | ||
+ }; | ||
+ | ||
+ axi@18000000 { | ||
+ usb3@23000 { | ||
+ reg = <0x00023000 0x1000>; | ||
+ | ||
+ #address-cells = <1>; | ||
+ #size-cells = <1>; | ||
+ | ||
+ vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; | ||
+ }; | ||
+ }; | ||
+}; | ||
+ | ||
+&uart0 { | ||
+ status = "okay"; | ||
+}; |
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 |
---|---|---|
|
@@ -13,8 +13,8 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
|
||
--- a/arch/arm/boot/dts/Makefile | ||
+++ b/arch/arm/boot/dts/Makefile | ||
@@ -78,6 +78,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ | ||
bcm4709-netgear-r7000.dtb \ | ||
@@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ | ||
bcm4709-netgear-r7900.dtb \ | ||
bcm4709-netgear-r8000.dtb \ | ||
bcm47094-dlink-dir-885l.dtb \ | ||
+ bcm47094-netgear-r8500.dtb \ | ||
|
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 |
---|---|---|
|
@@ -195,3 +195,15 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
}; | ||
|
||
leds { | ||
--- a/arch/arm/boot/dts/bcm4709-netgear-r7900.dts | ||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7900.dts | ||
@@ -21,7 +21,8 @@ | ||
}; | ||
|
||
memory { | ||
- reg = <0x00000000 0x08000000>; | ||
+ reg = <0x00000000 0x08000000 | ||
+ 0x88000000 0x08000000>; | ||
}; | ||
|
||
axi@18000000 { |
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,12 +21,14 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
|
||
#include "b53_regs.h" | ||
#include "b53_priv.h" | ||
@@ -1370,6 +1371,20 @@ static int b53_switch_init(struct b53_de | ||
@@ -1370,6 +1371,23 @@ static int b53_switch_init(struct b53_de | ||
sw_dev->cpu_port = 5; | ||
} | ||
|
||
+ if (of_machine_is_compatible("asus,rt-ac87u")) | ||
+ sw_dev->cpu_port = 7; | ||
+ else if (of_machine_is_compatible("netgear,r7900")) | ||
+ sw_dev->cpu_port = 8; | ||
+ else if (of_machine_is_compatible("netgear,r8000")) | ||
+ sw_dev->cpu_port = 8; | ||
+ else if (of_machine_is_compatible("netgear,r8500")) | ||
|
@@ -36,7 +38,8 @@ Signed-off-by: Rafał Miłecki <[email protected]> | |
+ * Workaround for devices using port 8 (connected to the 3rd iface). | ||
+ * For some reason it doesn't work (no packets on eth2). | ||
+ */ | ||
+ if (of_machine_is_compatible("netgear,r8000")) | ||
+ if (of_machine_is_compatible("netgear,r7900") || | ||
+ of_machine_is_compatible("netgear,r8000")) | ||
+ sw_dev->cpu_port = 5; | ||
+ | ||
/* cpu port is always last */ | ||
|