Skip to content
Snippets Groups Projects
Commit 38cb5005 authored by David Yang's avatar David Yang Committed by Adrian Schmutzler
Browse files

ramips: expose ephy leds for miwifi-mini


Give users more control by exposing ephy leds.

Signed-off-by: default avatarDavid Yang <mmyangfl@gmail.com>
[remove execute bit on 01_leds, add status for gpio2]
Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
parent 5ed11012
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,21 @@ ...@@ -37,6 +37,21 @@
label = "red:status"; label = "red:status";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
wan {
label = "green:wan";
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "green:lan1";
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "green:lan2";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
}; };
keys { keys {
...@@ -54,6 +69,10 @@ ...@@ -54,6 +69,10 @@
status = "okay"; status = "okay";
}; };
&gpio2 {
status = "okay";
};
&spi0 { &spi0 {
status = "okay"; status = "okay";
...@@ -119,9 +138,6 @@ ...@@ -119,9 +138,6 @@
}; };
&ethernet { &ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
nvmem-cells = <&macaddr_factory_28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
...@@ -148,7 +164,7 @@ ...@@ -148,7 +164,7 @@
&state_default { &state_default {
gpio { gpio {
groups = "i2c", "rgmii1"; groups = "ephy", "i2c", "rgmii1";
function = "gpio"; function = "gpio";
}; };
}; };
......
...@@ -207,6 +207,11 @@ wavlink,wl-wn579x3) ...@@ -207,6 +207,11 @@ wavlink,wl-wn579x3)
ucidef_set_led_switch "lan" "lan" "blue:lan" "switch0" "0x20" ucidef_set_led_switch "lan" "lan" "blue:lan" "switch0" "0x20"
ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10"
;; ;;
xiaomi,miwifi-mini)
ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x02"
ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x01"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
;;
zbtlink,zbt-ape522ii) zbtlink,zbt-ape522ii)
ucidef_set_led_netdev "wlan2g4" "wlan1-link" "green:wlan2g4" "wlan1" ucidef_set_led_netdev "wlan2g4" "wlan1-link" "green:wlan2g4" "wlan1"
ucidef_set_led_netdev "sys1" "wlan1" "green:sys1" "wlan1" "tx rx" ucidef_set_led_netdev "sys1" "wlan1" "green:sys1" "wlan1" "tx rx"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment