1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
11 compatible = "linksys,e8450", "mediatek,mt7622";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 stdout-path = "serial0:115200n8";
23 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512";
28 proc-supply = <&mt6380_vcpu_reg>;
29 sram-supply = <&mt6380_vm_reg>;
33 proc-supply = <&mt6380_vcpu_reg>;
34 sram-supply = <&mt6380_vm_reg>;
39 compatible = "gpio-keys";
43 linux,code = <KEY_RESTART>;
44 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-leds";
57 led_power: power_blue {
59 gpios = <&pio 95 GPIO_ACTIVE_LOW>;
64 label = "power:orange";
65 gpios = <&pio 96 GPIO_ACTIVE_LOW>;
66 default-state = "off";
71 gpios = <&pio 97 GPIO_ACTIVE_LOW>;
72 default-state = "off";
76 label = "inet:orange";
77 gpios = <&pio 98 GPIO_ACTIVE_LOW>;
78 default-state = "off";
83 reg = <0 0x40000000 0 0x40000000>;
86 reg_1p8v: regulator-1p8v {
87 compatible = "regulator-fixed";
88 regulator-name = "fixed-1.8V";
89 regulator-min-microvolt = <1800000>;
90 regulator-max-microvolt = <1800000>;
94 reg_3p3v: regulator-3p3v {
95 compatible = "regulator-fixed";
96 regulator-name = "fixed-3.3V";
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
103 reg_5v: regulator-5v {
104 compatible = "regulator-fixed";
105 regulator-name = "fixed-5V";
106 regulator-min-microvolt = <5000000>;
107 regulator-max-microvolt = <5000000>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&irrx_pins>;
128 pinctrl-names = "default";
129 pinctrl-0 = <ð_pins>;
133 compatible = "mediatek,eth-mac";
135 phy-mode = "2500base-x";
145 #address-cells = <1>;
149 compatible = "mediatek,mt7531";
151 reset-gpios = <&pio 54 0>;
154 #address-cells = <1>;
186 phy-mode = "2500base-x";
201 pinctrl-names = "default";
202 pinctrl-0 = <&pcie0_pins>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&pcie1_pins>;
213 /* Attention: GPIO 90 is used to switch between PCIe@1,0 and
214 * SATA functions. i.e. output-high: PCIe, output-low: SATA
218 // gpios = <90 GPIO_ACTIVE_HIGH>;
225 groups = "mdc_mdio", "rgmii_via_gmac2";
229 irrx_pins: irrx-pins {
236 irtx_pins: irtx-pins {
243 pcie0_pins: pcie0-pins {
246 groups = "pcie0_pad_perst",
252 pcie1_pins: pcie1-pins {
255 groups = "pcie1_pad_perst",
261 pmic_bus_pins: pmic-bus-pins {
268 pwm7_pins: pwm1-2-pins {
271 groups = "pwm_ch7_2";
275 wled_pins: wled-pins {
282 /* Serial NAND is shared pin with SPI-NOR */
283 serial_nand_pins: serial-nand-pins {
290 spic0_pins: spic0-pins {
297 spic1_pins: spic1-pins {
304 uart0_pins: uart0-pins {
307 groups = "uart0_0_tx_rx" ;
311 uart2_pins: uart2-pins {
314 groups = "uart2_1_tx_rx" ;
318 watchdog_pins: watchdog-pins {
320 function = "watchdog";
327 pinctrl-names = "default";
328 pinctrl-0 = <&pwm7_pins>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&pmic_bus_pins>;
349 reg = <0x0000 0 0 0 0>;
350 ieee80211-freq-limit = <5000000 6000000>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&serial_nand_pins>;
360 #address-cells = <1>;
362 compatible = "spi-nand";
363 spi-max-frequency = <104000000>;
369 pinctrl-names = "default";
370 pinctrl-0 = <&spic0_pins>;
375 pinctrl-names = "default";
376 pinctrl-0 = <&spic1_pins>;
381 vusb33-supply = <®_3p3v>;
382 vbus-supply = <®_5v>;
391 pinctrl-names = "default";
392 pinctrl-0 = <&uart0_pins>;
397 pinctrl-names = "default";
398 pinctrl-0 = <&uart2_pins>;
407 pinctrl-names = "default";
408 pinctrl-0 = <&watchdog_pins>;