bcm53xx: backport BCM5301X patches
authorRafał Miłecki <rafal@milecki.pl>
Sat, 18 Mar 2017 17:31:36 +0000 (18:31 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Sat, 18 Mar 2017 17:32:53 +0000 (18:32 +0100)
This fixes GIC interrupts (required before switching to 4.9), adds few
new entires & introduces DTS for Archer C5.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 files changed:
target/linux/bcm53xx/patches-4.4/047-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/047-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.4/301-ARM-BCM5301X-Add-DT-for-Netgear-R7900.patch
target/linux/bcm53xx/patches-4.4/332-ARM-BCM5301X-Add-power-button-for-Buffalo-WZR-1750DHP.patch
target/linux/bcm53xx/patches-4.9/033-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/033-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-4.9/310-ARM-BCM5301X-Add-DT-for-Netgear-R7900.patch
target/linux/bcm53xx/patches-4.9/311-ARM-BCM5301X-Add-power-button-for-Buffalo-WZR-1750DHP.patch

diff --git a/target/linux/bcm53xx/patches-4.4/047-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch b/target/linux/bcm53xx/patches-4.4/047-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch
new file mode 100644 (file)
index 0000000..ce74ff3
--- /dev/null
@@ -0,0 +1,50 @@
+From 820a3e952b266d4355e89ed91c9b11945030321e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Wed, 8 Mar 2017 07:41:04 +0100
+Subject: [PATCH] ARM: dts: BCM53573: Don't use nonexistent "default-off" LED
+ trigger
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Such a trigger doesn't exist in Linux and is not needed as LED is being
+turned off by default. This could cause errors in LEDs core code when
+trying to set default trigger.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Acked-by: Pavel Machek <pavel@ucw.cz>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 4 ----
+ 1 file changed, 4 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
++++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
+@@ -26,19 +26,16 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:blue:5ghz";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               system {
+@@ -54,7 +51,6 @@
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
diff --git a/target/linux/bcm53xx/patches-4.4/047-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch b/target/linux/bcm53xx/patches-4.4/047-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch
new file mode 100644 (file)
index 0000000..cecae0b
--- /dev/null
@@ -0,0 +1,651 @@
+From 0b660259e927177dc0c6eb3b1c39f23c6a011c5f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Wed, 8 Mar 2017 07:41:05 +0100
+Subject: [PATCH] ARM: dts: BCM5301X: Don't use nonexistent "default-off" LED
+ trigger
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Such a trigger doesn't exist in Linux and is not needed as LED is being
+turned off by default. This could cause errors in LEDs core code when
+trying to set default trigger.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts        |  5 -----
+ arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts        |  2 --
+ arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts  |  5 -----
+ arch/arm/boot/dts/bcm4708-netgear-r6250.dts        |  3 ---
+ arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts     |  3 ---
+ arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts      | 10 ----------
+ arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts        |  2 --
+ arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts |  4 ----
+ arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts        |  2 --
+ arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts  |  8 --------
+ arch/arm/boot/dts/bcm4709-netgear-r7000.dts        |  7 -------
+ arch/arm/boot/dts/bcm4709-netgear-r8000.dts        |  9 ---------
+ arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts  |  8 --------
+ arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts      |  6 ------
+ arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts      |  8 --------
+ arch/arm/boot/dts/bcm47094-netgear-r8500.dts       |  6 ------
+ 16 files changed, 88 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
+@@ -41,19 +41,16 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+                       label = "bcm53xx:blue:wan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan {
+                       label = "bcm53xx:blue:lan";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -71,14 +68,12 @@
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
+@@ -41,7 +41,6 @@
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -59,7 +58,6 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
++++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
+@@ -52,13 +52,11 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power0 {
+                       label = "bcm53xx:red:power";
+                       gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power1 {
+@@ -76,7 +74,6 @@
+               router1 {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -88,13 +85,11 @@
+               wireless0 {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless1 {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
+@@ -43,19 +43,16 @@
+               power1 {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+@@ -47,7 +47,6 @@
+               power0 {
+                       label = "bcm53xx:green:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power1 {
+@@ -59,13 +58,11 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
++++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+@@ -37,61 +37,51 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-white {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-green {
+                       label = "bcm53xx:green:usb3";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-red {
+                       label = "bcm53xx:red:status";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-green {
+                       label = "bcm53xx:green:status";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-blue {
+                       label = "bcm53xx:blue:status";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-red {
+                       label = "bcm53xx:red:wan";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
++++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
+@@ -47,7 +47,6 @@
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -65,7 +64,6 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
++++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
+@@ -68,7 +68,6 @@
+               power1 {
+                       label = "bcm53xx:red:power";
+                       gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               router0 {
+@@ -80,7 +79,6 @@
+               router1 {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -92,13 +90,11 @@
+               wireless0 {
+                       label = "bcm53xx:green:wireless";
+                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless1 {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
++++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
+@@ -41,7 +41,6 @@
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -53,7 +52,6 @@
+               wan {
+                       label = "bcm53xx:red:wan";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
++++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
+@@ -31,13 +31,11 @@
+               usb {
+                       label = "bcm53xx:green:usb";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-white {
+@@ -49,37 +47,31 @@
+               router-amber {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               router-white {
+                       label = "bcm53xx:white:router";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless-amber {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless-white {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
+@@ -47,43 +47,36 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:white:5ghz";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
+@@ -47,7 +47,6 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+@@ -59,49 +58,41 @@
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-1 {
+                       label = "bcm53xx:white:5ghz-1";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-2 {
+                       label = "bcm53xx:white:5ghz-2";
+                       gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
++++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
+@@ -26,49 +26,41 @@
+               lan {
+                       label = "bcm53xx:blue:lan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:blue:5ghz";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-blue {
+                       label = "bcm53xx:blue:wan";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+--- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
++++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
+@@ -56,37 +56,31 @@
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-white {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:white:5ghz";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
++++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
+@@ -34,37 +34,31 @@
+               lan3    {
+                       label = "bcm53xx:green:lan3";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan4    {
+                       label = "bcm53xx:green:lan4";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan     {
+                       label = "bcm53xx:green:wan";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan1    {
+                       label = "bcm53xx:green:lan1";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan2    {
+                       label = "bcm53xx:green:lan2";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3    {
+                       label = "bcm53xx:green:usb3";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               status  {
+@@ -76,13 +70,11 @@
+               2ghz {
+                       label = "bcm53xx:green:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:green:5ghz";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
++++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
+@@ -34,37 +34,31 @@
+               power1 {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-1 {
+                       label = "bcm53xx:white:5ghz-1";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-2 {
+                       label = "bcm53xx:white:5ghz-2";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
diff --git a/target/linux/bcm53xx/patches-4.4/047-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch b/target/linux/bcm53xx/patches-4.4/047-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch
new file mode 100644 (file)
index 0000000..70df201
--- /dev/null
@@ -0,0 +1,41 @@
+From 0e34079cd1f674449749aafe4be07336177de90d Mon Sep 17 00:00:00 2001
+From: Jon Mason <jon.mason@broadcom.com>
+Date: Thu, 2 Mar 2017 19:21:32 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GIC_PPI flags were misconfigured for the timers, resulting in errors
+like:
+[    0.000000] GIC: PPI11 is secure or misconfigured
+
+Changing them to being edge triggered corrects the issue
+
+Suggested-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Jon Mason <jon.mason@broadcom.com>
+Fixes: d27509f1 ("ARM: BCM5301X: add dts files for BCM4708 SoC")
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -66,14 +66,14 @@
+               timer@20200 {
+                       compatible = "arm,cortex-a9-global-timer";
+                       reg = <0x20200 0x100>;
+-                      interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
++                      interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
+                       clocks = <&periph_clk>;
+               };
+               local-timer@20600 {
+                       compatible = "arm,cortex-a9-twd-timer";
+                       reg = <0x20600 0x100>;
+-                      interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
++                      interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
+                       clocks = <&periph_clk>;
+               };
diff --git a/target/linux/bcm53xx/patches-4.4/047-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch b/target/linux/bcm53xx/patches-4.4/047-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch
new file mode 100644 (file)
index 0000000..b112cba
--- /dev/null
@@ -0,0 +1,40 @@
+From f22c635e585471d01a38b829c0753c1467b5058e Mon Sep 17 00:00:00 2001
+From: Jon Mason <jonmason@broadcom.com>
+Date: Mon, 6 Mar 2017 11:24:44 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Add TWD WD Support to DT
+
+Add support for the ARM TWD Watchdog to the bcm5301x device tree.  The
+ARM TWD timer allocated the register space for the WDT, so this patch
+necessitated shrinking that.  Also, the GIC masks were added for these.
+
+Signed-off-by: Jon Mason <jonmason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -70,10 +70,19 @@
+                       clocks = <&periph_clk>;
+               };
+-              local-timer@20600 {
++              timer@20600 {
+                       compatible = "arm,cortex-a9-twd-timer";
+-                      reg = <0x20600 0x100>;
+-                      interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
++                      reg = <0x20600 0x20>;
++                      interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
++                                                IRQ_TYPE_EDGE_RISING)>;
++                      clocks = <&periph_clk>;
++              };
++
++              watchdog@20620 {
++                      compatible = "arm,cortex-a9-twd-wdt";
++                      reg = <0x20620 0x20>;
++                      interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
++                                                IRQ_TYPE_EDGE_RISING)>;
+                       clocks = <&periph_clk>;
+               };
diff --git a/target/linux/bcm53xx/patches-4.4/047-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch b/target/linux/bcm53xx/patches-4.4/047-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch
new file mode 100644 (file)
index 0000000..d233e06
--- /dev/null
@@ -0,0 +1,34 @@
+From bb097e3e00457bd69ad3a767f6b99424e2e06411 Mon Sep 17 00:00:00 2001
+From: Jon Mason <jonmason@broadcom.com>
+Date: Mon, 6 Mar 2017 11:24:45 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Add I2C support to the DT
+
+Add I2C support to the bcm5301x Device Tree.  Since no driver changes
+are needed to enable this hardware, only the device tree changes are
+required to make this functional.
+
+Signed-off-by: Jon Mason <jonmason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -338,6 +338,16 @@
+               };
+       };
++      i2c0: i2c@18009000 {
++              compatible = "brcm,iproc-i2c";
++              reg = <0x18009000 0x50>;
++              interrupts = <GIC_SPI 121 IRQ_TYPE_NONE>;
++              #address-cells = <1>;
++              #size-cells = <0>;
++              clock-frequency = <100000>;
++              status = "disabled";
++      };
++
+       lcpll0: lcpll0@1800c100 {
+               #clock-cells = <1>;
+               compatible = "brcm,nsp-lcpll0";
diff --git a/target/linux/bcm53xx/patches-4.4/047-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch b/target/linux/bcm53xx/patches-4.4/047-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch
new file mode 100644 (file)
index 0000000..db8fdb5
--- /dev/null
@@ -0,0 +1,130 @@
+From d6661da842bbeec2082b7263c9e682792e7951a9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Tue, 14 Mar 2017 11:39:41 +0100
+Subject: [PATCH] ARM: dts: BCM5301X: Add support for TP-LINK Archer C5 V2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This is BCM47081A0 based home router with BCM43217 and BCM4352 wireless
+chipsets.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/Makefile                         |  1 +
+ arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 98 ++++++++++++++++++++++
+ 2 files changed, 99 insertions(+)
+ create mode 100644 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+
+--- a/arch/arm/boot/dts/Makefile
++++ b/arch/arm/boot/dts/Makefile
+@@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
+       bcm47081-buffalo-wzr-900dhp.dtb \
+       bcm47081-luxul-xap-1410.dtb \
+       bcm47081-luxul-xwr-1200.dtb \
++      bcm47081-tplink-archer-c5-v2.dtb \
+       bcm4709-asus-rt-ac87u.dtb \
+       bcm4709-buffalo-wxr-1900dhp.dtb \
+       bcm4709-linksys-ea9200.dtb \
+--- /dev/null
++++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+@@ -0,0 +1,98 @@
++/*
++ * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
++ *
++ * Licensed under the ISC license.
++ */
++
++/dts-v1/;
++
++#include "bcm47081.dtsi"
++
++/ {
++      compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
++      model = "TP-LINK Archer C5 V2";
++
++      chosen {
++              bootargs = "earlycon";
++      };
++
++      memory {
++              reg = <0x00000000 0x08000000>;
++      };
++
++      leds {
++              compatible = "gpio-leds";
++
++              2ghz {
++                      label = "bcm53xx:green:2ghz";
++                      gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
++              };
++
++              lan {
++                      label = "bcm53xx:green:lan";
++                      gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
++              };
++
++              usb2-port1 {
++                      label = "bcm53xx:green:usb2-port1";
++                      gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
++              };
++
++              power {
++                      label = "bcm53xx:green:power";
++                      gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
++                      linux,default-trigger = "default-on";
++              };
++
++              wan-green {
++                      label = "bcm53xx:green:wan";
++                      gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
++              };
++
++              wps {
++                      label = "bcm53xx:green:wps";
++                      gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
++              };
++
++              wan-amber {
++                      label = "bcm53xx:amber:wan";
++                      gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
++              };
++
++              5ghz {
++                      label = "bcm53xx:green:5ghz";
++                      gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
++              };
++
++              usb2-port2 {
++                      label = "bcm53xx:green:usb2-port2";
++                      gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
++              };
++      };
++
++      gpio-keys {
++              compatible = "gpio-keys";
++              #address-cells = <1>;
++              #size-cells = <0>;
++
++              rfkill {
++                      label = "WiFi";
++                      linux,code = <KEY_RFKILL>;
++                      gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
++              };
++
++              restart {
++                      label = "Reset";
++                      linux,code = <KEY_RESTART>;
++                      gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
++              };
++      };
++};
++
++&spi_nor {
++      status = "okay";
++};
++
++&usb2 {
++      vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
++};
diff --git a/target/linux/bcm53xx/patches-4.4/047-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch b/target/linux/bcm53xx/patches-4.4/047-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch
new file mode 100644 (file)
index 0000000..781af7a
--- /dev/null
@@ -0,0 +1,27 @@
+From a7996761d1dacbac10c892c16faa90dfe46affcd Mon Sep 17 00:00:00 2001
+From: Steve Lin <steven.lin1@broadcom.com>
+Date: Wed, 15 Mar 2017 16:59:35 -0400
+Subject: [PATCH] ARM: dts: BCM953012HR: Add ethernet aliases
+
+Adding ethernet aliases.  These are used, for example, by bootloaders,
+to modify the MAC addresses in the device tree.
+
+Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
+Acked-by: Jon Mason <jon.mason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm953012hr.dts | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm953012hr.dts
++++ b/arch/arm/boot/dts/bcm953012hr.dts
+@@ -41,6 +41,9 @@
+       aliases {
+               serial0 = &uart0;
++              ethernet0 = &gmac0;
++              ethernet1 = &gmac1;
++              ethernet2 = &gmac2;
+       };
+       chosen {
index 859985c5f29dd983f2fdf7bc765c9f05ab703c34..c780e22d6ec7323d6d2dacab1216e8cc6e6034a0 100644 (file)
@@ -9,7 +9,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 
 --- a/arch/arm/boot/dts/Makefile
 +++ b/arch/arm/boot/dts/Makefile
-@@ -80,6 +80,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
+@@ -81,6 +81,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
        bcm4709-buffalo-wxr-1900dhp.dtb \
        bcm4709-linksys-ea9200.dtb \
        bcm4709-netgear-r7000.dtb \
index e7262cb9097a52f8d7d0327b184b25bcf4368e35..425c420da72bb6983a8d048c23ebc2686e433aff 100644 (file)
@@ -5,7 +5,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 ---
 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
-@@ -103,6 +103,12 @@
+@@ -98,6 +98,12 @@
                #address-cells = <1>;
                #size-cells = <0>;
  
diff --git a/target/linux/bcm53xx/patches-4.9/033-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch b/target/linux/bcm53xx/patches-4.9/033-0011-ARM-dts-BCM53573-Don-t-use-nonexistent-default-off-L.patch
new file mode 100644 (file)
index 0000000..ce74ff3
--- /dev/null
@@ -0,0 +1,50 @@
+From 820a3e952b266d4355e89ed91c9b11945030321e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Wed, 8 Mar 2017 07:41:04 +0100
+Subject: [PATCH] ARM: dts: BCM53573: Don't use nonexistent "default-off" LED
+ trigger
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Such a trigger doesn't exist in Linux and is not needed as LED is being
+turned off by default. This could cause errors in LEDs core code when
+trying to set default trigger.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Acked-by: Pavel Machek <pavel@ucw.cz>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 4 ----
+ 1 file changed, 4 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
++++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
+@@ -26,19 +26,16 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:blue:5ghz";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               system {
+@@ -54,7 +51,6 @@
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
diff --git a/target/linux/bcm53xx/patches-4.9/033-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch b/target/linux/bcm53xx/patches-4.9/033-0012-ARM-dts-BCM5301X-Don-t-use-nonexistent-default-off-L.patch
new file mode 100644 (file)
index 0000000..cecae0b
--- /dev/null
@@ -0,0 +1,651 @@
+From 0b660259e927177dc0c6eb3b1c39f23c6a011c5f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Wed, 8 Mar 2017 07:41:05 +0100
+Subject: [PATCH] ARM: dts: BCM5301X: Don't use nonexistent "default-off" LED
+ trigger
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Such a trigger doesn't exist in Linux and is not needed as LED is being
+turned off by default. This could cause errors in LEDs core code when
+trying to set default trigger.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts        |  5 -----
+ arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts        |  2 --
+ arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts  |  5 -----
+ arch/arm/boot/dts/bcm4708-netgear-r6250.dts        |  3 ---
+ arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts     |  3 ---
+ arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts      | 10 ----------
+ arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts        |  2 --
+ arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts |  4 ----
+ arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts        |  2 --
+ arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts  |  8 --------
+ arch/arm/boot/dts/bcm4709-netgear-r7000.dts        |  7 -------
+ arch/arm/boot/dts/bcm4709-netgear-r8000.dts        |  9 ---------
+ arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts  |  8 --------
+ arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts      |  6 ------
+ arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts      |  8 --------
+ arch/arm/boot/dts/bcm47094-netgear-r8500.dts       |  6 ------
+ 16 files changed, 88 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
+@@ -41,19 +41,16 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+                       label = "bcm53xx:blue:wan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan {
+                       label = "bcm53xx:blue:lan";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -71,14 +68,12 @@
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
++++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
+@@ -41,7 +41,6 @@
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -59,7 +58,6 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
++++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
+@@ -52,13 +52,11 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power0 {
+                       label = "bcm53xx:red:power";
+                       gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power1 {
+@@ -76,7 +74,6 @@
+               router1 {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -88,13 +85,11 @@
+               wireless0 {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless1 {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
+@@ -43,19 +43,16 @@
+               power1 {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
++++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+@@ -47,7 +47,6 @@
+               power0 {
+                       label = "bcm53xx:green:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power1 {
+@@ -59,13 +58,11 @@
+               usb {
+                       label = "bcm53xx:blue:usb";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:blue:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
++++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+@@ -37,61 +37,51 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-white {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-green {
+                       label = "bcm53xx:green:usb3";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-red {
+                       label = "bcm53xx:red:status";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-green {
+                       label = "bcm53xx:green:status";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               status-blue {
+                       label = "bcm53xx:blue:status";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-red {
+                       label = "bcm53xx:red:wan";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
++++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
+@@ -47,7 +47,6 @@
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -65,7 +64,6 @@
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
++++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
+@@ -68,7 +68,6 @@
+               power1 {
+                       label = "bcm53xx:red:power";
+                       gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               router0 {
+@@ -80,7 +79,6 @@
+               router1 {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan {
+@@ -92,13 +90,11 @@
+               wireless0 {
+                       label = "bcm53xx:green:wireless";
+                       gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless1 {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
++++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
+@@ -41,7 +41,6 @@
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+@@ -53,7 +52,6 @@
+               wan {
+                       label = "bcm53xx:red:wan";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
++++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
+@@ -31,13 +31,11 @@
+               usb {
+                       label = "bcm53xx:green:usb";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-white {
+@@ -49,37 +47,31 @@
+               router-amber {
+                       label = "bcm53xx:amber:router";
+                       gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               router-white {
+                       label = "bcm53xx:white:router";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless-amber {
+                       label = "bcm53xx:amber:wireless";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless-white {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
+@@ -47,43 +47,36 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:white:5ghz";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
++++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
+@@ -47,7 +47,6 @@
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-white {
+@@ -59,49 +58,41 @@
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-1 {
+                       label = "bcm53xx:white:5ghz-1";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wireless {
+                       label = "bcm53xx:white:wireless";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:white:wps";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-2 {
+                       label = "bcm53xx:white:5ghz-2";
+                       gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
++++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
+@@ -26,49 +26,41 @@
+               lan {
+                       label = "bcm53xx:blue:lan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wps {
+                       label = "bcm53xx:blue:wps";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:blue:2ghz";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:blue:5ghz";
+                       gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:blue:usb3";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:blue:usb2";
+                       gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-blue {
+                       label = "bcm53xx:blue:wan";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
+-                      linux,default-trigger = "default-off";
+               };
+               power {
+--- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
++++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
+@@ -56,37 +56,31 @@
+               wan-white {
+                       label = "bcm53xx:white:wan";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               power-amber {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan-amber {
+                       label = "bcm53xx:amber:wan";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3-white {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:white:5ghz";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
++++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
+@@ -34,37 +34,31 @@
+               lan3    {
+                       label = "bcm53xx:green:lan3";
+                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan4    {
+                       label = "bcm53xx:green:lan4";
+                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               wan     {
+                       label = "bcm53xx:green:wan";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan1    {
+                       label = "bcm53xx:green:lan1";
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               lan2    {
+                       label = "bcm53xx:green:lan2";
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3    {
+                       label = "bcm53xx:green:usb3";
+                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               status  {
+@@ -76,13 +70,11 @@
+               2ghz {
+                       label = "bcm53xx:green:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz {
+                       label = "bcm53xx:green:5ghz";
+                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
+--- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
++++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
+@@ -34,37 +34,31 @@
+               power1 {
+                       label = "bcm53xx:amber:power";
+                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-1 {
+                       label = "bcm53xx:white:5ghz-1";
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               5ghz-2 {
+                       label = "bcm53xx:white:5ghz-2";
+                       gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               2ghz {
+                       label = "bcm53xx:white:2ghz";
+                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb2 {
+                       label = "bcm53xx:white:usb2";
+                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+               usb3 {
+                       label = "bcm53xx:white:usb3";
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+-                      linux,default-trigger = "default-off";
+               };
+       };
diff --git a/target/linux/bcm53xx/patches-4.9/033-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch b/target/linux/bcm53xx/patches-4.9/033-0013-ARM-dts-BCM5301X-Correct-GIC_PPI-interrupt-flags.patch
new file mode 100644 (file)
index 0000000..70df201
--- /dev/null
@@ -0,0 +1,41 @@
+From 0e34079cd1f674449749aafe4be07336177de90d Mon Sep 17 00:00:00 2001
+From: Jon Mason <jon.mason@broadcom.com>
+Date: Thu, 2 Mar 2017 19:21:32 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GIC_PPI flags were misconfigured for the timers, resulting in errors
+like:
+[    0.000000] GIC: PPI11 is secure or misconfigured
+
+Changing them to being edge triggered corrects the issue
+
+Suggested-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Jon Mason <jon.mason@broadcom.com>
+Fixes: d27509f1 ("ARM: BCM5301X: add dts files for BCM4708 SoC")
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -66,14 +66,14 @@
+               timer@20200 {
+                       compatible = "arm,cortex-a9-global-timer";
+                       reg = <0x20200 0x100>;
+-                      interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
++                      interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
+                       clocks = <&periph_clk>;
+               };
+               local-timer@20600 {
+                       compatible = "arm,cortex-a9-twd-timer";
+                       reg = <0x20600 0x100>;
+-                      interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
++                      interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
+                       clocks = <&periph_clk>;
+               };
diff --git a/target/linux/bcm53xx/patches-4.9/033-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch b/target/linux/bcm53xx/patches-4.9/033-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch
new file mode 100644 (file)
index 0000000..b112cba
--- /dev/null
@@ -0,0 +1,40 @@
+From f22c635e585471d01a38b829c0753c1467b5058e Mon Sep 17 00:00:00 2001
+From: Jon Mason <jonmason@broadcom.com>
+Date: Mon, 6 Mar 2017 11:24:44 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Add TWD WD Support to DT
+
+Add support for the ARM TWD Watchdog to the bcm5301x device tree.  The
+ARM TWD timer allocated the register space for the WDT, so this patch
+necessitated shrinking that.  Also, the GIC masks were added for these.
+
+Signed-off-by: Jon Mason <jonmason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -70,10 +70,19 @@
+                       clocks = <&periph_clk>;
+               };
+-              local-timer@20600 {
++              timer@20600 {
+                       compatible = "arm,cortex-a9-twd-timer";
+-                      reg = <0x20600 0x100>;
+-                      interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
++                      reg = <0x20600 0x20>;
++                      interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
++                                                IRQ_TYPE_EDGE_RISING)>;
++                      clocks = <&periph_clk>;
++              };
++
++              watchdog@20620 {
++                      compatible = "arm,cortex-a9-twd-wdt";
++                      reg = <0x20620 0x20>;
++                      interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
++                                                IRQ_TYPE_EDGE_RISING)>;
+                       clocks = <&periph_clk>;
+               };
diff --git a/target/linux/bcm53xx/patches-4.9/033-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch b/target/linux/bcm53xx/patches-4.9/033-0015-ARM-dts-BCM5301X-Add-I2C-support-to-the-DT.patch
new file mode 100644 (file)
index 0000000..d233e06
--- /dev/null
@@ -0,0 +1,34 @@
+From bb097e3e00457bd69ad3a767f6b99424e2e06411 Mon Sep 17 00:00:00 2001
+From: Jon Mason <jonmason@broadcom.com>
+Date: Mon, 6 Mar 2017 11:24:45 -0500
+Subject: [PATCH] ARM: dts: BCM5301X: Add I2C support to the DT
+
+Add I2C support to the bcm5301x Device Tree.  Since no driver changes
+are needed to enable this hardware, only the device tree changes are
+required to make this functional.
+
+Signed-off-by: Jon Mason <jonmason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm5301x.dtsi | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -338,6 +338,16 @@
+               };
+       };
++      i2c0: i2c@18009000 {
++              compatible = "brcm,iproc-i2c";
++              reg = <0x18009000 0x50>;
++              interrupts = <GIC_SPI 121 IRQ_TYPE_NONE>;
++              #address-cells = <1>;
++              #size-cells = <0>;
++              clock-frequency = <100000>;
++              status = "disabled";
++      };
++
+       lcpll0: lcpll0@1800c100 {
+               #clock-cells = <1>;
+               compatible = "brcm,nsp-lcpll0";
diff --git a/target/linux/bcm53xx/patches-4.9/033-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch b/target/linux/bcm53xx/patches-4.9/033-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch
new file mode 100644 (file)
index 0000000..9584d4e
--- /dev/null
@@ -0,0 +1,130 @@
+From d6661da842bbeec2082b7263c9e682792e7951a9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Tue, 14 Mar 2017 11:39:41 +0100
+Subject: [PATCH] ARM: dts: BCM5301X: Add support for TP-LINK Archer C5 V2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This is BCM47081A0 based home router with BCM43217 and BCM4352 wireless
+chipsets.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/Makefile                         |  1 +
+ arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 98 ++++++++++++++++++++++
+ 2 files changed, 99 insertions(+)
+ create mode 100644 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+
+--- a/arch/arm/boot/dts/Makefile
++++ b/arch/arm/boot/dts/Makefile
+@@ -86,6 +86,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
+       bcm47081-buffalo-wzr-900dhp.dtb \
+       bcm47081-luxul-xap-1410.dtb \
+       bcm47081-luxul-xwr-1200.dtb \
++      bcm47081-tplink-archer-c5-v2.dtb \
+       bcm4709-asus-rt-ac87u.dtb \
+       bcm4709-buffalo-wxr-1900dhp.dtb \
+       bcm4709-linksys-ea9200.dtb \
+--- /dev/null
++++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
+@@ -0,0 +1,98 @@
++/*
++ * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
++ *
++ * Licensed under the ISC license.
++ */
++
++/dts-v1/;
++
++#include "bcm47081.dtsi"
++
++/ {
++      compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
++      model = "TP-LINK Archer C5 V2";
++
++      chosen {
++              bootargs = "earlycon";
++      };
++
++      memory {
++              reg = <0x00000000 0x08000000>;
++      };
++
++      leds {
++              compatible = "gpio-leds";
++
++              2ghz {
++                      label = "bcm53xx:green:2ghz";
++                      gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
++              };
++
++              lan {
++                      label = "bcm53xx:green:lan";
++                      gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
++              };
++
++              usb2-port1 {
++                      label = "bcm53xx:green:usb2-port1";
++                      gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
++              };
++
++              power {
++                      label = "bcm53xx:green:power";
++                      gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
++                      linux,default-trigger = "default-on";
++              };
++
++              wan-green {
++                      label = "bcm53xx:green:wan";
++                      gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
++              };
++
++              wps {
++                      label = "bcm53xx:green:wps";
++                      gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
++              };
++
++              wan-amber {
++                      label = "bcm53xx:amber:wan";
++                      gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
++              };
++
++              5ghz {
++                      label = "bcm53xx:green:5ghz";
++                      gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
++              };
++
++              usb2-port2 {
++                      label = "bcm53xx:green:usb2-port2";
++                      gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
++              };
++      };
++
++      gpio-keys {
++              compatible = "gpio-keys";
++              #address-cells = <1>;
++              #size-cells = <0>;
++
++              rfkill {
++                      label = "WiFi";
++                      linux,code = <KEY_RFKILL>;
++                      gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
++              };
++
++              restart {
++                      label = "Reset";
++                      linux,code = <KEY_RESTART>;
++                      gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
++              };
++      };
++};
++
++&spi_nor {
++      status = "okay";
++};
++
++&usb2 {
++      vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
++};
diff --git a/target/linux/bcm53xx/patches-4.9/033-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch b/target/linux/bcm53xx/patches-4.9/033-0017-ARM-dts-BCM953012HR-Add-ethernet-aliases.patch
new file mode 100644 (file)
index 0000000..781af7a
--- /dev/null
@@ -0,0 +1,27 @@
+From a7996761d1dacbac10c892c16faa90dfe46affcd Mon Sep 17 00:00:00 2001
+From: Steve Lin <steven.lin1@broadcom.com>
+Date: Wed, 15 Mar 2017 16:59:35 -0400
+Subject: [PATCH] ARM: dts: BCM953012HR: Add ethernet aliases
+
+Adding ethernet aliases.  These are used, for example, by bootloaders,
+to modify the MAC addresses in the device tree.
+
+Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
+Acked-by: Jon Mason <jon.mason@broadcom.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ arch/arm/boot/dts/bcm953012hr.dts | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm953012hr.dts
++++ b/arch/arm/boot/dts/bcm953012hr.dts
+@@ -41,6 +41,9 @@
+       aliases {
+               serial0 = &uart0;
++              ethernet0 = &gmac0;
++              ethernet1 = &gmac1;
++              ethernet2 = &gmac2;
+       };
+       chosen {
index 80bffb9af60ad960967d1961f3d152eeefdc09e7..a907c8921e178c79fe56317da395a525b44f9b06 100644 (file)
@@ -9,7 +9,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 
 --- a/arch/arm/boot/dts/Makefile
 +++ b/arch/arm/boot/dts/Makefile
-@@ -90,6 +90,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
+@@ -91,6 +91,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
        bcm4709-buffalo-wxr-1900dhp.dtb \
        bcm4709-linksys-ea9200.dtb \
        bcm4709-netgear-r7000.dtb \
index e7262cb9097a52f8d7d0327b184b25bcf4368e35..425c420da72bb6983a8d048c23ebc2686e433aff 100644 (file)
@@ -5,7 +5,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 ---
 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
-@@ -103,6 +103,12 @@
+@@ -98,6 +98,12 @@
                #address-cells = <1>;
                #size-cells = <0>;