1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Motorola MWR03";
11 compatible = "motorola,mwr03", "mediatek,mt7628an-soc";
14 led-boot = &led_status_orange;
15 led-failsafe = &led_status_orange;
16 led-running = &led_status_white;
17 led-upgrade = &led_status_orange;
21 compatible = "gpio-keys";
25 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
33 led_status_orange: status_orange {
34 function = LED_FUNCTION_STATUS;
35 color = <LED_COLOR_ID_ORANGE>;
36 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 led_status_white: status_white {
40 function = LED_FUNCTION_STATUS;
41 color = <LED_COLOR_ID_WHITE>;
42 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 compatible = "jedec,spi-nor";
53 spi-max-frequency = <80000000>;
57 compatible = "fixed-partitions";
69 reg = <0x30000 0x10000>;
75 reg = <0x40000 0x10000>;
79 compatible = "fixed-layout";
83 eeprom_factory_0: eeprom@0 {
87 eeprom_factory_8000: eeprom@8000 {
91 macaddr_factory_4: macaddr@4 {
92 compatible = "mac-base";
94 #nvmem-cell-cells = <1>;
100 compatible = "denx,uimage";
102 reg = <0x50000 0x7b0000>;
110 groups = "i2c", "i2s";
128 nvmem-cells = <&macaddr_factory_4 (-1)>;
129 nvmem-cell-names = "mac-address";
133 mediatek,portmap = <0x3e>;
134 mediatek,portdisable = <0x30>;
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&eeprom_factory_8000>;
145 nvmem-cell-names = "eeprom";
146 ieee80211-freq-limit = <5000000 6000000>;
153 nvmem-cells = <&eeprom_factory_0>;
154 nvmem-cell-names = "eeprom";