1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link ER605 v2";
11 compatible = "tplink,er605-v2", "mediatek,mt7621-soc";
14 bootargs = "console=ttyS0,115200 noinitrd";
15 // Override bootargs because u-boot passes wrong root parameter.
16 // Instead allow kernel determine root automatically by looking for rootfs volume
17 bootargs-override = "console=ttyS0,115200 noinitrd ubi.mtd=3,2048";
21 led-boot = &led_system;
22 led-failsafe = &led_system;
23 led-running = &led_system;
24 led-upgrade = &led_system;
25 label-mac-device = &gmac0;
29 compatible = "gpio-leds";
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
34 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 color = <LED_COLOR_ID_GREEN>;
46 function = LED_FUNCTION_STATUS;
47 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
48 default-state = "keep";
53 compatible = "gpio-keys";
56 label = "reset button";
57 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
58 linux,code = <KEY_RESTART>;
62 reg_usb_vbus: regulator-usb {
63 compatible = "regulator-fixed";
64 regulator-name = "usb_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
71 reg_3p3v: regulator-3p3v {
72 compatible = "regulator-fixed";
73 regulator-name = "fixed-3.3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
88 phy-handle = <ðphy0>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
135 label = "u-boot-env";
136 reg = <0x80000 0x80000>;
142 reg = <0x100000 0x40000>;
148 reg = <0x140000 0x7cc0000>;
153 reg = <0x7e00000 0x200000>;
160 ethphy0: ethernet-phy@0 {
167 groups = "uart2", "uart3", "pcie", "jtag";
177 vusb33-supply = <®_3p3v>;
178 vbus-supply = <®_usb_vbus>;