[OpenWrt-Devel] [PATCH v3] bcm53xx: add support for Huawei WS880

Hauke Mehrtens hauke at hauke-m.de
Wed Dec 2 15:25:57 EST 2015


On 12/02/2015 03:48 PM, Sergey Shatunov wrote:
> From: Prototik <me at prok.pw>
> 
> Changes since v2:
> LED default state modified
> 
> Signed-off-by: Sergey Shatunov <me at prok.pw>
> ---
>  target/linux/bcm53xx/image/Makefile                |  14 +++
>  .../910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch | 115 +++++++++++++++++++++
>  .../910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch | 115 +++++++++++++++++++++
>  3 files changed, 244 insertions(+)
>  create mode 100644 target/linux/bcm53xx/patches-4.1/910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch
>  create mode 100644 target/linux/bcm53xx/patches-4.3/910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch
> 
The new patch looks good.

...

> ++
> ++	leds {
> ++		compatible = "gpio-leds";
> ++
> ++		wlan {
> ++			label = "bcm53xx:white:wlan";
> ++			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
> ++			linux,default-trigger = "default-off";
> ++		};
> ++
> ++		lan {
> ++			label = "bcm53xx:white:lan";
> ++			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
> ++			linux,default-trigger = "default-on";
> ++		};

When is this lan led activated and when deactivated?

> ++
> ++		wps {
> ++			label = "bcm53xx:white:wps";
> ++			gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
> ++			linux,default-trigger = "default-off";
> ++		};
> ++
> ++		internet {
> ++			label = "bcm53xx:white:internet";
> ++			gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
> ++			linux,default-trigger = "default-on";
> ++		};
> ++
> ++		usb {
> ++			label = "bcm53xx:white:usb";
> ++			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
> ++			linux,default-trigger = "default-off";
> ++		};
> ++	};
> ++
> ++	gpio-keys {
> ++		compatible = "gpio-keys";
> ++		#address-cells = <1>;
> ++		#size-cells = <0>;
> ++
> ++		restart {
> ++			label = "Reset";
> ++			linux,code = <KEY_RESTART>;
> ++			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
> ++		};
> ++
> ++		wps {
> ++			label = "WPS";
> ++			linux,code = <KEY_WPS_BUTTON>;
> ++			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
> ++		};
> ++
> ++		power {
> ++			label = "Power";
> ++			linux,code = <KEY_POWER>;
> ++			gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
> ++		};
> ++	};
> ++	
> ++	nand at 18028000 {
> ++		nandcs at 0 {
> ++			nand-ecc-strength = <4>;
> ++		};
> ++	};
> ++};
> ++
> ++&uart0 {
> ++	status = "okay";
> ++};
> 
_______________________________________________
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