aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorDavid Yang <mmyangfl@gmail.com>2021-07-11 23:17:43 +0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-25 01:42:17 +0200
commit38cb5005166dd49fb3d69ba68a905b97cc23f6a3 (patch)
tree761200efc5898facb71f994e06eaea7daa8a5e2a /target/linux/ramips/dts
parent5ed11012e7d990a11256917a5112f528cb983c89 (diff)
downloadupstream-38cb5005166dd49fb3d69ba68a905b97cc23f6a3.tar.gz
upstream-38cb5005166dd49fb3d69ba68a905b97cc23f6a3.tar.bz2
upstream-38cb5005166dd49fb3d69ba68a905b97cc23f6a3.zip
ramips: expose ephy leds for miwifi-mini
Give users more control by exposing ephy leds. Signed-off-by: David Yang <mmyangfl@gmail.com> [remove execute bit on 01_leds, add status for gpio2] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts24
1 files changed, 20 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
index b2e46a7a56..9f5df5dd79 100644
--- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
+++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
@@ -37,6 +37,21 @@
label = "red:status";
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 {
@@ -54,6 +69,10 @@
status = "okay";
};
+&gpio2 {
+ status = "okay";
+};
+
&spi0 {
status = "okay";
@@ -119,9 +138,6 @@
};
&ethernet {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
-
nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
@@ -148,7 +164,7 @@
&state_default {
gpio {
- groups = "i2c", "rgmii1";
+ groups = "ephy", "i2c", "rgmii1";
function = "gpio";
};
};