Author: blogic Date: 2016-04-26 09:51:58 +0200 (Tue, 26 Apr 2016) New Revision: 49229
Modified: branches/chaos_calmer/target/linux/lantiq/base-files/etc/uci-defaults/01_leds branches/chaos_calmer/target/linux/lantiq/dts/TDW8970.dts branches/chaos_calmer/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch Log: lantiq: Fix ath9k LED for TDW8970. Backport of r47911, r47912, r47969 to CC. All other required patches have already been backported in r48822. Signed-off-by: Vittorio Gambaletta <[email protected]> Modified: branches/chaos_calmer/target/linux/lantiq/base-files/etc/uci-defaults/01_leds =================================================================== --- branches/chaos_calmer/target/linux/lantiq/base-files/etc/uci-defaults/01_leds 2016-04-25 20:08:54 UTC (rev 49228) +++ branches/chaos_calmer/target/linux/lantiq/base-files/etc/uci-defaults/01_leds 2016-04-26 07:51:58 UTC (rev 49229) @@ -30,6 +30,9 @@ ucidef_set_led_wlan "wifi" "wifi" "soc:blue:wireless" "phy0tpt" ucidef_set_led_netdev "internet" "internet" "soc:blue:broadband" "pppoa-wan" ;; +TDW8970) + ucidef_set_led_wlan "wifi" "wifi" "ath9k-phy0" "phy0tpt" + ;; VGV7510KW22) ucidef_set_led_default "power" "power" "power" "1" ucidef_set_led_default "power2" "power2" "power2" "0" Modified: branches/chaos_calmer/target/linux/lantiq/dts/TDW8970.dts =================================================================== --- branches/chaos_calmer/target/linux/lantiq/dts/TDW8970.dts 2016-04-25 20:08:54 UTC (rev 49228) +++ branches/chaos_calmer/target/linux/lantiq/dts/TDW8970.dts 2016-04-26 07:51:58 UTC (rev 49229) @@ -202,6 +202,8 @@ ath,mac-offset = <0xf100>; ath,mac-increment; ath,led-pin = <0>; + ath,disable-5ghz; + ath,led-active-high; }; gpio-keys-polled { Modified: branches/chaos_calmer/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch =================================================================== --- branches/chaos_calmer/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch 2016-04-25 20:08:54 UTC (rev 49228) +++ branches/chaos_calmer/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch 2016-04-26 07:51:58 UTC (rev 49229) @@ -51,7 +51,7 @@ obj-$(CONFIG_XRX200_PHY_FW) += xrx200_phy_fw.o --- /dev/null +++ b/arch/mips/lantiq/xway/ath_eep.c -@@ -0,0 +1,282 @@ +@@ -0,0 +1,298 @@ +/* + * Copyright (C) 2011 Luca Olivetti <[email protected]> + * Copyright (C) 2011 John Crispin <[email protected]> @@ -58,6 +58,7 @@ + * Copyright (C) 2011 Andrej Vlašić <[email protected]> + * Copyright (C) 2013 Álvaro Fernández Rojas <[email protected]> + * Copyright (C) 2013 Daniel Gimpelevich <[email protected]> ++ * Copyright (C) 2015 Vittorio Gambaletta <[email protected]> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published @@ -192,6 +193,21 @@ + dev_info(&pdev->dev, "using led pin %d.\n", led_pin); + } + ++ if (of_property_read_bool(np, "ath,led-active-high")) { ++ ath9k_pdata.led_active_high = true; ++ dev_info(&pdev->dev, "inverted LED polarity\n"); ++ } ++ ++ if (of_property_read_bool(np, "ath,disable-2ghz")) { ++ ath9k_pdata.disable_2ghz = true; ++ dev_info(&pdev->dev, "disabled 2.4 GHz band\n"); ++ } ++ ++ if (of_property_read_bool(np, "ath,disable-5ghz")) { ++ ath9k_pdata.disable_5ghz = true; ++ dev_info(&pdev->dev, "disabled 5 GHz band\n"); ++ } ++ + dev_info(&pdev->dev, "loaded ath9k eeprom\n"); + + return 0; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
