1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 model = "OpenEmbed SOM7981";
12 compatible = "openembed,som7981", "mediatek,mt7981";
15 led-boot = &wlan2g_led;
16 led-failsafe = &wlan2g_led;
17 led-upgrade = &wlan2g_led;
22 stdout-path = "serial0:115200n8";
26 reg = <0 0x40000000 0 0x40000000>;
30 compatible = "gpio-keys";
34 linux,code = <KEY_RESTART>;
35 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
49 function = LED_FUNCTION_LAN;
50 color = <LED_COLOR_ID_AMBER>;
51 gpios = <&pio 8 GPIO_ACTIVE_LOW>;
55 function = LED_FUNCTION_LAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&pio 13 GPIO_ACTIVE_LOW>;
61 function = LED_FUNCTION_WLAN_2GHZ;
62 color = <LED_COLOR_ID_RED>;
63 gpios = <&pio 34 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
68 function = LED_FUNCTION_WLAN_5GHZ;
69 color = <LED_COLOR_ID_RED>;
70 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy1tpt";
77 pinctrl-names = "default";
78 pinctrl-0 = <&mdio_pins>;
82 compatible = "mediatek,eth-mac";
84 phy-mode = "2500base-x";
86 nvmem-cells = <&macaddr_factory_a 0>;
87 nvmem-cell-names = "mac-address";
91 compatible = "mediatek,eth-mac";
94 phy-handle = <&int_gbe_phy>;
95 nvmem-cells = <&macaddr_factory_a 1>;
96 nvmem-cell-names = "mac-address";
101 phy0: ethernet-phy@5 {
103 compatible = "ethernet-phy-ieee802.3-c45";
104 phy-mode = "2500base-x";
105 reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
106 reset-assert-us = <10000>;
107 reset-deassert-us = <50000>;
108 realtek,aldps-enable;
113 pinctrl-names = "default";
114 pinctrl-0 = <&spi0_flash_pins>;
118 compatible = "spi-nand";
119 #address-cells = <1>;
123 spi-max-frequency = <52000000>;
124 spi-tx-bus-width = <4>;
125 spi-rx-bus-width = <4>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
134 reg = <0x000000 0x100000>;
139 label = "u-boot-env";
140 reg = <0x100000 0x80000>;
144 compatible = "nvmem-cells";
146 reg = <0x180000 0x100000>;
150 compatible = "fixed-layout";
151 #address-cells = <1>;
154 eeprom_factory_0: eeprom@0 {
158 macaddr_factory_a: macaddr@a {
159 compatible = "mac-base";
161 #nvmem-cell-cells = <1>;
168 reg = <0x280000 0x100000>;
174 reg = <0x380000 0x200000>;
180 reg = <0x580000 0xf880000>;
187 spi0_flash_pins: spi0-pins {
190 groups = "spi0", "spi0_wp_hold";
194 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
195 drive-strength = <8>;
196 mediatek,pull-up-adv = <0>;
200 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
201 drive-strength = <8>;
202 mediatek,pull-down-adv = <0>;
220 nvmem-cells = <&eeprom_factory_0>;
221 nvmem-cell-names = "eeprom";