diff mbox

[OpenWrt-Devel,6/6] bcm53xx: add ASUS RT-AC87U LEDs

Message ID 1431773604-11788-7-git-send-email-noltari@gmail.com
State Accepted
Delegated to: Rafał Miłecki
Headers show

Commit Message

Álvaro Fernández Rojas May 16, 2015, 10:53 a.m. UTC
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 ...322-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch | 24 +++++++++++++++++++++-
 ...01X-Enable-ChipCommon-UART-serial-console.patch |  2 +-
 2 files changed, 24 insertions(+), 2 deletions(-)

Comments

Rafał Miłecki May 16, 2015, 11:23 a.m. UTC | #1
On 16 May 2015 at 12:53, Álvaro Fernández Rojas <noltari@gmail.com> wrote:
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

This patch is simple enough to upstream it (clean code & doesn't
depend on other stuff).

Please send a patch to Florian & linux-arm-kernel mailing list based on top of:
https://github.com/Broadcom/stblinux/commits/devicetree/next

I really don't want (again) to build a huge pill of patches living in
OpenWrt only.
diff mbox

Patch

diff --git a/target/linux/bcm53xx/patches-3.18/322-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch b/target/linux/bcm53xx/patches-3.18/322-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch
index 1cb63ce..c6653f8 100644
--- a/target/linux/bcm53xx/patches-3.18/322-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch
+++ b/target/linux/bcm53xx/patches-3.18/322-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch
@@ -25,7 +25,7 @@  Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
 --- /dev/null
 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
-@@ -0,0 +1,75 @@
+@@ -0,0 +1,97 @@
 +/*
 + * Broadcom BCM470X / BCM5301X ARM platform code.
 + * DTS for Asus RT-AC87U
@@ -83,6 +83,28 @@  Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 +		};
 +	};
 +
++	leds {
++		compatible = "gpio-leds";
++
++		wps {
++			label = "bcm53xx:blue:wps";
++			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
++			linux,default-trigger = "default-off";
++		};
++
++		power {
++			label = "bcm53xx:blue:power";
++			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
++			linux,default-trigger = "default-on";
++		};
++
++		wan {
++			label = "bcm53xx:red:wan";
++			gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
++			linux,default-trigger = "default-off";
++		};
++	};
++
 +	gpio-keys {
 +		compatible = "gpio-keys";
 +		#address-cells = <1>;
diff --git a/target/linux/bcm53xx/patches-3.18/351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch b/target/linux/bcm53xx/patches-3.18/351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch
index a96104b..e637ab5 100644
--- a/target/linux/bcm53xx/patches-3.18/351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch
+++ b/target/linux/bcm53xx/patches-3.18/351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch
@@ -130,7 +130,7 @@  Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  		#address-cells = <1>;
 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
-@@ -55,6 +55,18 @@
+@@ -77,6 +77,18 @@
  		};
  	};