projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7621_iptime_a6ns-m.dts
diff --git
a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
index 92e2d9908cadcc4e54897e9abee58b684f55dad5..be8b101b78664003241c290ce6010271d752e4f1 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
+++ b/
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
@@
-15,7
+15,7
@@
led-failsafe = &led_cpu;
led-running = &led_cpu;
led-upgrade = &led_cpu;
led-failsafe = &led_cpu;
led-running = &led_cpu;
led-upgrade = &led_cpu;
- label-mac-device = &
ethernet
;
+ label-mac-device = &
gmac0
;
};
chosen {
};
chosen {
@@
-27,26
+27,26
@@
usb {
label = "a6ns-m:blue:usb";
usb {
label = "a6ns-m:blue:usb";
- gpios = <&gpio
0
7 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
wlan5g {
label = "a6ns-m:blue:wlan5g";
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
wlan5g {
label = "a6ns-m:blue:wlan5g";
- gpios = <&gpio
0
14 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
wlan2g {
label = "a6ns-m:blue:wlan2g";
linux,default-trigger = "phy0radio";
};
wlan2g {
label = "a6ns-m:blue:wlan2g";
- gpios = <&gpio
0
17 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1radio";
};
led_cpu: cpu {
label = "a6ns-m:blue:cpu";
linux,default-trigger = "phy1radio";
};
led_cpu: cpu {
label = "a6ns-m:blue:cpu";
- gpios = <&gpio
0
18 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
};
};
};
@@
-55,13
+55,13
@@
wps {
label = "wps";
wps {
label = "wps";
- gpios = <&gpio
0
3 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
- gpios = <&gpio
0
4 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
linux,code = <KEY_RESTART>;
};
};
@@
-110,15
+110,45
@@
&state_default {
gpio {
&state_default {
gpio {
-
ralink,group
= "i2c", "uart3", "jtag", "wdt";
-
ralink,
function = "gpio";
+
groups
= "i2c", "uart3", "jtag", "wdt";
+ function = "gpio";
};
};
};
};
-&
ethernet
{
+&
gmac0
{
mtd-mac-address = <&uboot 0x1fc20>;
};
mtd-mac-address = <&uboot 0x1fc20>;
};
+&switch0 {
+ ports {
+ port@0 {
+ status = "okay";
+ label = "wan";
+ mtd-mac-address = <&uboot 0x1fc40>;
+ };
+
+ port@1 {
+ status = "okay";
+ label = "lan1";
+ };
+
+ port@2 {
+ status = "okay";
+ label = "lan2";
+ };
+
+ port@3 {
+ status = "okay";
+ label = "lan3";
+ };
+
+ port@4 {
+ status = "okay";
+ label = "lan4";
+ };
+ };
+};
+
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};