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>
9 model = "Motorola MWR03";
10 compatible = "motorola,mwr03", "mediatek,mt7628an-soc";
13 led-boot = &led_status_orange;
14 led-failsafe = &led_status_orange;
15 led-running = &led_status_white;
16 led-upgrade = &led_status_orange;
20 compatible = "gpio-keys";
24 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
32 led_status_orange: status_orange {
33 label = "orange:status";
34 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
37 led_status_white: status_white {
38 label = "white:status";
39 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
48 compatible = "jedec,spi-nor";
50 spi-max-frequency = <80000000>;
54 compatible = "fixed-partitions";
66 reg = <0x30000 0x10000>;
70 factory: partition@40000 {
71 compatible = "nvmem-cells";
73 reg = <0x40000 0x10000>;
78 eeprom_factory_0: eeprom@0 {
82 eeprom_factory_8000: eeprom@8000 {
86 macaddr_factory_4: macaddr@4 {
92 compatible = "denx,uimage";
94 reg = <0x50000 0x7b0000>;
102 groups = "i2c", "i2s";
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
122 mac-address-increment = <(-1)>;
126 mediatek,portmap = <0x3e>;
127 mediatek,portdisable = <0x30>;
136 reg = <0x0000 0 0 0 0>;
137 nvmem-cells = <&eeprom_factory_8000>;
138 nvmem-cell-names = "eeprom";
139 ieee80211-freq-limit = <5000000 6000000>;
146 nvmem-cells = <&eeprom_factory_0>;
147 nvmem-cell-names = "eeprom";