mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
bmips: use led-sources for ath9k
Avoids having to create a custom LED for wifi. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21058 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
7f05a9af9a
commit
5ba9354fc5
3 changed files with 12 additions and 42 deletions
|
|
@ -48,17 +48,6 @@
|
||||||
linux,default-trigger = "usbport";
|
linux,default-trigger = "usbport";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ath9k-leds {
|
|
||||||
compatible = "gpio-leds";
|
|
||||||
|
|
||||||
led-8 {
|
|
||||||
function = LED_FUNCTION_WLAN;
|
|
||||||
color = <LED_COLOR_ID_GREEN>;
|
|
||||||
gpios = <&ath9k 8 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "phy0tpt";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&leds {
|
&leds {
|
||||||
|
|
@ -205,15 +194,16 @@
|
||||||
device_type = "pci";
|
device_type = "pci";
|
||||||
ranges;
|
ranges;
|
||||||
|
|
||||||
ath9k: wifi@0,0 {
|
wifi@0,0 {
|
||||||
compatible = "pci168c,002e";
|
compatible = "pci168c,002e";
|
||||||
reg = <0 0 0 0 0>;
|
reg = <0 0 0 0 0>;
|
||||||
|
|
||||||
nvmem-cells = <&macaddr_cfe_6a0 1>, <&cal_data_1000>;
|
nvmem-cells = <&macaddr_cfe_6a0 1>, <&cal_data_1000>;
|
||||||
nvmem-cell-names = "mac-address", "calibration";
|
nvmem-cell-names = "mac-address", "calibration";
|
||||||
|
|
||||||
#gpio-cells = <2>;
|
led {
|
||||||
gpio-controller;
|
led-sources = <8>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,17 +5,6 @@
|
||||||
/ {
|
/ {
|
||||||
model = "Huawei EchoLife HG556a (version A)";
|
model = "Huawei EchoLife HG556a (version A)";
|
||||||
compatible = "huawei,hg556a-a", "brcm,bcm6358";
|
compatible = "huawei,hg556a-a", "brcm,bcm6358";
|
||||||
|
|
||||||
ath9k-leds {
|
|
||||||
compatible = "gpio-leds";
|
|
||||||
|
|
||||||
led-2 {
|
|
||||||
function = LED_FUNCTION_WLAN;
|
|
||||||
color = <LED_COLOR_ID_RED>;
|
|
||||||
gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "phy0tpt";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&gpio_keys {
|
&gpio_keys {
|
||||||
|
|
@ -58,7 +47,7 @@
|
||||||
&pci {
|
&pci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
ath9k: wifi@1,0 {
|
wifi@1,0 {
|
||||||
compatible = "pci168c,ff1d";
|
compatible = "pci168c,ff1d";
|
||||||
reg = <0x0800 0 0 0 0>;
|
reg = <0x0800 0 0 0 0>;
|
||||||
|
|
||||||
|
|
@ -67,7 +56,8 @@
|
||||||
nvmem-cells = <&macaddr_cfe_6a0 1>;
|
nvmem-cells = <&macaddr_cfe_6a0 1>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
|
|
||||||
#gpio-cells = <2>;
|
led {
|
||||||
gpio-controller;
|
led-sources = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,17 +5,6 @@
|
||||||
/ {
|
/ {
|
||||||
model = "Huawei EchoLife HG556a (version B)";
|
model = "Huawei EchoLife HG556a (version B)";
|
||||||
compatible = "huawei,hg556a-b", "brcm,bcm6358";
|
compatible = "huawei,hg556a-b", "brcm,bcm6358";
|
||||||
|
|
||||||
ath9k-leds {
|
|
||||||
compatible = "gpio-leds";
|
|
||||||
|
|
||||||
led-2 {
|
|
||||||
function = LED_FUNCTION_WLAN;
|
|
||||||
color = <LED_COLOR_ID_RED>;
|
|
||||||
gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "phy0tpt";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&gpio_keys {
|
&gpio_keys {
|
||||||
|
|
@ -58,7 +47,7 @@
|
||||||
&pci {
|
&pci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
ath9k: wifi@1,0 {
|
wifi@1,0 {
|
||||||
compatible = "pci168c,0029";
|
compatible = "pci168c,0029";
|
||||||
reg = <0x0800 0 0 0 0>;
|
reg = <0x0800 0 0 0 0>;
|
||||||
|
|
||||||
|
|
@ -67,7 +56,8 @@
|
||||||
nvmem-cells = <&macaddr_cfe_6a0 1>;
|
nvmem-cells = <&macaddr_cfe_6a0 1>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
|
|
||||||
#gpio-cells = <2>;
|
led {
|
||||||
gpio-controller;
|
led-sources = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue