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 model = "Linksys E8450";
12 compatible = "linksys,e8450", "mediatek,mt7622";
16 led-boot = &led_power;
17 led-failsafe = &led_power;
18 led-running = &led_power;
19 led-upgrade = &led_power;
23 stdout-path = "serial0:115200n8";
24 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512";
29 proc-supply = <&mt6380_vcpu_reg>;
30 sram-supply = <&mt6380_vm_reg>;
34 proc-supply = <&mt6380_vcpu_reg>;
35 sram-supply = <&mt6380_vm_reg>;
40 compatible = "gpio-keys";
44 linux,code = <KEY_RESTART>;
45 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-leds";
58 led_power: power_blue {
60 gpios = <&pio 95 GPIO_ACTIVE_LOW>;
65 label = "power:orange";
66 gpios = <&pio 96 GPIO_ACTIVE_LOW>;
67 default-state = "off";
72 gpios = <&pio 97 GPIO_ACTIVE_LOW>;
73 default-state = "off";
77 label = "inet:orange";
78 gpios = <&pio 98 GPIO_ACTIVE_LOW>;
79 default-state = "off";
84 reg = <0 0x40000000 0 0x40000000>;
87 reg_1p8v: regulator-1p8v {
88 compatible = "regulator-fixed";
89 regulator-name = "fixed-1.8V";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
95 reg_3p3v: regulator-3p3v {
96 compatible = "regulator-fixed";
97 regulator-name = "fixed-3.3V";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
104 reg_5v: regulator-5v {
105 compatible = "regulator-fixed";
106 regulator-name = "fixed-5V";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&irrx_pins>;
129 pinctrl-names = "default";
130 pinctrl-0 = <ð_pins>;
134 compatible = "mediatek,eth-mac";
136 phy-mode = "2500base-x";
146 #address-cells = <1>;
150 compatible = "mediatek,mt7531";
152 reset-gpios = <&pio 54 0>;
155 #address-cells = <1>;
187 phy-mode = "2500base-x";
202 pinctrl-names = "default";
203 pinctrl-0 = <&pcie0_pins>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pcie1_pins>;
215 reg = <0x0000 0 0 0 0>;
216 mediatek,mtd-eeprom = <&factory 0x05000>;
221 /* Attention: GPIO 90 is used to switch between PCIe@1,0 and
222 * SATA functions. i.e. output-high: PCIe, output-low: SATA
226 // gpios = <90 GPIO_ACTIVE_HIGH>;
233 groups = "mdc_mdio", "rgmii_via_gmac2";
237 irrx_pins: irrx-pins {
244 irtx_pins: irtx-pins {
251 pcie0_pins: pcie0-pins {
254 groups = "pcie0_pad_perst",
260 pcie1_pins: pcie1-pins {
263 groups = "pcie1_pad_perst",
269 pmic_bus_pins: pmic-bus-pins {
276 pwm7_pins: pwm1-2-pins {
279 groups = "pwm_ch7_2";
283 wled_pins: wled-pins {
290 /* Serial NAND is shared pin with SPI-NOR */
291 serial_nand_pins: serial-nand-pins {
298 spic0_pins: spic0-pins {
305 spic1_pins: spic1-pins {
312 uart0_pins: uart0-pins {
315 groups = "uart0_0_tx_rx" ;
319 uart2_pins: uart2-pins {
322 groups = "uart2_1_tx_rx" ;
326 watchdog_pins: watchdog-pins {
328 function = "watchdog";
335 pinctrl-names = "default";
336 pinctrl-0 = <&pwm7_pins>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&pmic_bus_pins>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&serial_nand_pins>;
361 #address-cells = <1>;
363 compatible = "spi-nand";
364 spi-max-frequency = <104000000>;
368 mediatek,bmt-table-size = <0x1000>;
371 compatible = "fixed-partitions";
372 #address-cells = <1>;
377 reg = <0x00000 0x0080000>;
383 reg = <0x80000 0x0040000>;
388 reg = <0xc0000 0x0080000>;
392 label = "u-boot-env";
393 reg = <0x140000 0x0080000>;
396 factory: partition@1c0000 {
398 reg = <0x1c0000 0x0100000>;
403 reg = <0x300000 0x020000>;
408 reg = <0x320000 0x020000>;
413 reg = <0x360000 0x020000>;
418 compatible = "denx,fit";
419 openwrt,cmdline-match = "mtdparts=master";
420 reg = <0x500000 0x1E00000>;
425 compatible = "denx,fit";
426 openwrt,cmdline-match = "mtdparts=slave";
427 reg = <0x2300000 0x1E00000>;
432 reg = <0x4100000 0x1900000>;
437 reg = <0x5a00000 0x1400000>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&spic0_pins>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&spic1_pins>;
456 vusb33-supply = <®_3p3v>;
457 vbus-supply = <®_5v>;
466 pinctrl-names = "default";
467 pinctrl-0 = <&uart0_pins>;
472 pinctrl-names = "default";
473 pinctrl-0 = <&uart2_pins>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&watchdog_pins>;
484 mediatek,mtd-eeprom = <&factory 0x0000>;