// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7621.dtsi"
led-upgrade = &power_amber;
};
- chosen {
- bootargs = "console=ttyS0,57600";
- };
-
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 {
- label = "ex6150:green:power";
+ label = "green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
wps {
- label = "ex6150:green:wps";
+ label = "green:wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rightarrow {
- label = "ex6150:blue:rightarrow";
+ label = "blue:rightarrow";
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
leftarrow {
- label = "ex6150:blue:leftarrow";
+ label = "blue:leftarrow";
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 {
- label = "ex6150:red:router";
+ label = "red:router";
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 {
- label = "ex6150:red:client";
+ label = "red:client";
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
};
};
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" */
};
};
&pcie {
status = "okay";
+
+ reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
+ <&gpio 8 GPIO_ACTIVE_LOW>;
};
&pcie0 {
};
ðernet {
- mtd-mac-address = <&factory 0x00000004>;
+ pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
+&gmac0 {
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&switch0 {
+ ports {
+ port@0 {
+ status = "okay";
+ label = "lan";
+ };
+ };
};
&state_default {
gpio {
- ralink,group = "sdhci", "rgmii2", "jtag";
- ralink,function = "gpio";
+ groups = "sdhci", "rgmii2", "jtag";
+ function = "gpio";
+ };
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
};
};