1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 model = "GL.iNet GL-MT2500";
8 compatible = "glinet,gl-mt2500", "mediatek,mt7981";
11 label-mac-device = &gmac0;
12 led-boot = &led_sys_white;
13 led-failsafe = &led_sys_blue;
14 led-running = &led_sys_white;
15 led-upgrade = &led_sys_blue;
20 stdout-path = "serial0:115200n8";
21 bootargs-append = " root=PARTLABEL=rootfs rootwait";
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
35 compatible = "gpio-leds";
39 gpios = <&pio 31 GPIO_ACTIVE_LOW>;
42 led_sys_white: led-system-white {
43 label = "white:system";
44 gpios = <&pio 30 GPIO_ACTIVE_LOW>;
47 led_sys_blue: led-system-blue {
48 label = "blue:system";
49 gpios = <&pio 29 GPIO_ACTIVE_LOW>;
53 usb_vbus: regulstor-usb {
54 compatible = "regulator-fixed";
56 regulator-name = "usb-vbus";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
60 gpio = <&pio 12 GPIO_ACTIVE_HIGH>;
65 reg_3p3v: regulator-3p3v {
66 compatible = "regulator-fixed";
67 regulator-name = "fixed-3.3V";
68 regulator-min-microvolt = <3300000>;
69 regulator-max-microvolt = <3300000>;
76 mmc0_pins_default: mmc0-pins-default {
82 mmc0_pins_uhs: mmc0-pins-uhs {
101 pinctrl-names = "default";
102 pinctrl-0 = <&mdio_pins>;
105 compatible = "mediatek,eth-mac";
106 nvmem-cells = <&macaddr_boot1_a 0>;
107 nvmem-cell-names = "mac-address";
110 phy-mode = "2500base-x";
111 phy-handle = <&phy5>;
115 compatible = "mediatek,eth-mac";
116 nvmem-cells = <&macaddr_boot1_a 1>;
117 nvmem-cell-names = "mac-address";
120 phy-handle = <&int_gbe_phy>;
125 reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
126 reset-delay-us = <600>;
127 reset-post-delay-us = <20000>;
129 phy5: ethernet-phy@5 {
131 compatible = "ethernet-phy-ieee802.3-c45";
141 vbus-supply = <&usb_vbus>;
147 pinctrl-names = "default", "state_uhs";
148 pinctrl-0 = <&mmc0_pins_default>;
149 pinctrl-1 = <&mmc0_pins_uhs>;
151 max-frequency = <52000000>;
152 vmmc-supply = <®_3p3v>;
157 compatible = "mmc-card";
161 compatible = "block-device";
164 block-partition-u-boot-env {
165 partname = "u-boot-env";
167 compatible = "u-boot,env-layout";
174 compatible = "block-device";
177 compatible = "fixed-layout";
178 #address-cells = <1>;
181 macaddr_boot1_a: macaddr@a {
182 compatible = "mac-base";
184 #nvmem-cell-cells = <1>;