Revert some brain damage. The rx and tx LEDs on the eval board are not connected to the CPU, but to the FTDI chip instead. Therefore, they are not and cannot be under GPIO control. The LINK_0, LINK_1 LEDs are configured to be driven by the switch, and are not under GPIO control either, though they could be pinmux'd that way if needed. The WLAN LED is driven by the radio phy. Removes the completely fictitious ld1 and ld2 from AWM002.dtsi.
Renames the remaining LED to a more generic "asiarf", rather than the module name, because it is on the eval board and not on either of the AWM002 or AWM003. Renamed the "reset_wps" button to just "reset", since it does not in practice function as a WPS button. Signed-off-by: Russell Senior <russ...@personaltelco.net> --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 +++- target/linux/ramips/dts/AWM002-EVB-4M.dts | 16 ++++------------ target/linux/ramips/dts/AWM002-EVB-8M.dts | 16 ++++------------ target/linux/ramips/dts/AWM002.dtsi | 12 ------------ target/linux/ramips/dts/AWM003-EVB.dts | 16 ++++------------ 5 files changed, 15 insertions(+), 49 deletions(-) diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 01e2363..906769e 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -38,7 +38,9 @@ case $board in ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8" set_wifi_led "rt2800pci-phy0::radio" ;; - awapn2403) + awapn2403|\ + awm002-evb|\ + awm003-evb) set_wifi_led "rt2800soc-phy0::radio" ;; ar725w) diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts index 0738f04..5884779 100644 --- a/target/linux/ramips/dts/AWM002-EVB-4M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-4M.dts @@ -15,17 +15,9 @@ gpio-leds { compatible = "gpio-leds"; - tx { - label = "awm002-evb:green:tx"; - gpios = <&gpio0 15 1>; - }; - rx { - label = "awm002-evb:green:rx"; - gpios = <&gpio0 16 1>; - }; wps { - label = "awm002-evb:green:wps"; - gpios = <&gpio0 21 1>; + label = "asiarf-evb:green:wps"; + gpios = <&gpio0 21 0>; }; }; @@ -34,8 +26,8 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; - reset_wps { - label = "reset_wps"; + reset { + label = "reset"; gpios = <&gpio0 0 1>; linux,code = <0x198>; }; diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts index ebc4085..3f6b20f 100644 --- a/target/linux/ramips/dts/AWM002-EVB-8M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-8M.dts @@ -15,17 +15,9 @@ gpio-leds { compatible = "gpio-leds"; - tx { - label = "awm002-evb:green:tx"; - gpios = <&gpio0 15 1>; - }; - rx { - label = "awm002-evb:green:rx"; - gpios = <&gpio0 16 1>; - }; wps { - label = "awm002-evb:green:wps"; - gpios = <&gpio0 21 1>; + label = "asiarf-evb:green:wps"; + gpios = <&gpio0 21 0>; }; }; @@ -34,8 +26,8 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; - reset_wps { - label = "reset_wps"; + reset { + label = "reset"; gpios = <&gpio0 0 1>; linux,code = <0x198>; }; diff --git a/target/linux/ramips/dts/AWM002.dtsi b/target/linux/ramips/dts/AWM002.dtsi index e1579b5..5566d16 100644 --- a/target/linux/ramips/dts/AWM002.dtsi +++ b/target/linux/ramips/dts/AWM002.dtsi @@ -59,16 +59,4 @@ ohci@101c1000 { status = "okay"; }; - - gpio-leds { - compatible = "gpio-leds"; - ld1 { - label = "asiarf:green:ld1"; - gpios = <&gpio0 0 1>; - }; - ld2 { - label = "asiarf:green:ld2"; - gpios = <&gpio0 1 1>; - }; - }; }; diff --git a/target/linux/ramips/dts/AWM003-EVB.dts b/target/linux/ramips/dts/AWM003-EVB.dts index 35d4886..bfb91b7 100644 --- a/target/linux/ramips/dts/AWM003-EVB.dts +++ b/target/linux/ramips/dts/AWM003-EVB.dts @@ -30,17 +30,9 @@ gpio-leds { compatible = "gpio-leds"; - tx { - label = "awm002-evb:green:tx"; - gpios = <&gpio0 15 1>; - }; - rx { - label = "awm002-evb:green:rx"; - gpios = <&gpio0 16 1>; - }; wps { - label = "awm002-evb:green:wps"; - gpios = <&gpio0 21 1>; + label = "asiarf-evb:green:wps"; + gpios = <&gpio0 21 0>; }; }; @@ -49,8 +41,8 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; - reset_wps { - label = "reset_wps"; + reset { + label = "reset"; gpios = <&gpio0 0 1>; linux,code = <0x198>; }; -- 2.0.0 -- Russell Senior, President russ...@personaltelco.net _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel