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";
33 color = <LED_COLOR_ID_GREEN>;
34 function = LED_FUNCTION_STATUS;
35 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
39 label = "green:power";
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_STATUS;
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 label = "green:system";
48 color = <LED_COLOR_ID_GREEN>;
49 function = LED_FUNCTION_STATUS;
50 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51 default-state = "keep";
56 compatible = "gpio-keys";
59 label = "reset button";
60 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
61 linux,code = <KEY_RESTART>;
65 reg_usb_vbus: regulator-usb {
66 compatible = "regulator-fixed";
67 regulator-name = "usb_vbus";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
70 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
74 reg_3p3v: regulator-3p3v {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
91 phy-handle = <ðphy0>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 label = "u-boot-env";
139 reg = <0x80000 0x80000>;
143 factory: partition@100000 {
145 reg = <0x100000 0x40000>;
151 reg = <0x140000 0x7cc0000>;
156 reg = <0x7e00000 0x200000>;
163 ethphy0: ethernet-phy@0 {
170 groups = "uart2", "uart3", "pcie", "jtag";
180 vusb33-supply = <®_3p3v>;
181 vbus-supply = <®_usb_vbus>;