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

Álvaro Fernández Rojas noltari at gmail.com
Sat May 16 06:53:24 EDT 2015


Signed-off-by: Álvaro Fernández Rojas <noltari at 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(-)

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 at 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 at 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 at 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 @@
  		};
  	};
  
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list