1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
13 label-mac-device = &gmac0;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
22 stdout-path = "serial0:115200n1";
23 bootargs = "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";
59 gpios = <&pio 79 GPIO_ACTIVE_LOW>;
64 gpios = <&pio 82 GPIO_ACTIVE_LOW>;
67 led_system: system_blue {
68 label = "blue:system";
69 gpios = <&pio 81 GPIO_ACTIVE_LOW>;
75 reg = <0 0x40000000 0 0x40000000>;
82 pinctrl-names = "default";
83 pinctrl-0 = <ð_pins>;
86 compatible = "mediatek,eth-mac";
88 phy-connection-type = "2500base-x";
101 compatible = "mediatek,mt7531";
103 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
104 interrupt-controller;
105 #interrupt-cells = <2>;
106 interrupt-parent = <&pio>;
107 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
110 #address-cells = <1>;
141 phy-mode = "2500base-x";
157 pinctrl-names = "default";
158 pinctrl-0 = <&pcie0_pins>;
162 epa_elna_pins: epa-elna-pins {
165 groups = "antsel0", "antsel1", "antsel2", "antsel3",
166 "antsel4", "antsel5", "antsel6", "antsel7",
167 "antsel8", "antsel9", "antsel12", "antsel13",
168 "antsel14", "antsel15", "antsel16", "antsel17";
175 groups = "mdc_mdio", "rgmii_via_gmac2";
179 pcie0_pins: pcie0-pins {
182 groups = "pcie0_pad_perst",
188 pmic_bus_pins: pmic-bus-pins {
195 spi_nor_pins: spi-nor-pins {
202 uart0_pins: uart0-pins {
205 groups = "uart0_0_tx_rx";
209 watchdog_pins: watchdog-pins {
211 function = "watchdog";
220 pinctrl-names = "default";
221 pinctrl-0 = <&pmic_bus_pins>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&uart0_pins>;
238 pinctrl-names = "default";
239 pinctrl-0 = <&watchdog_pins>;