projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: add wan2 support for MQmaker WiTi
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7621_netgear_ex6150.dts
diff --git
a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts
b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts
index 1b0b9e29e95884d4bfb2eef078c1dbf6d79e8f34..1695e9c845cc366b979a7f04d561afce2a6e5251 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
+++ b/
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
@@
-1,5
+1,4
@@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7621.dtsi"
#include "mt7621.dtsi"
@@
-17,57
+16,53
@@
led-upgrade = &power_amber;
};
led-upgrade = &power_amber;
};
- chosen {
- bootargs = "console=ttyS0,57600";
- };
-
leds {
compatible = "gpio-leds";
power_amber: power_amber {
leds {
compatible = "gpio-leds";
power_amber: power_amber {
- label = "
ex6150:
amber:power";
+ label = "amber:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
- label = "
ex6150:
green:power";
+ label = "green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
wps {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
wps {
- label = "
ex6150:
green:wps";
+ label = "green:wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rightarrow {
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rightarrow {
- label = "
ex6150:
blue:rightarrow";
+ label = "blue:rightarrow";
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
leftarrow {
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
leftarrow {
- label = "
ex6150:
blue:leftarrow";
+ label = "blue:leftarrow";
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
};
router_green {
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
};
router_green {
- label = "
ex6150:
green:router";
+ label = "green:router";
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
router_red {
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
router_red {
- label = "
ex6150:
red:router";
+ label = "red:router";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
client_green {
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
client_green {
- label = "
ex6150:
green:client";
+ label = "green:client";
gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
client_red {
gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
client_red {
- label = "
ex6150:
red:client";
+ label = "red:client";
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
};
};
@@
-91,6
+86,7
@@
label = "AP/Extender toggle";
gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
label = "AP/Extender toggle";
gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
/* Active when switch is set to "Access Point" */
};
};
/* Active when switch is set to "Access Point" */
};
};
@@
-210,6
+206,9
@@
&pcie {
status = "okay";
&pcie {
status = "okay";
+
+ reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
+ <&gpio 8 GPIO_ACTIVE_LOW>;
};
&pcie0 {
};
&pcie0 {
@@
-228,8
+227,13
@@
};
};
};
};
+ðernet {
+ pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
&gmac0 {
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-247,3
+251,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};