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 macaddr_factory_4: macaddr@4 {
88 compatible = "denx,uimage";
90 reg = <0x50000 0x7b0000>;
98 groups = "i2c", "i2s";
116 nvmem-cells = <&macaddr_factory_4>;
117 nvmem-cell-names = "mac-address";
118 mac-address-increment = <(-1)>;
122 mediatek,portmap = <0x3e>;
123 mediatek,portdisable = <0x30>;
132 reg = <0x0000 0 0 0 0>;
133 mediatek,mtd-eeprom = <&factory 0x8000>;
134 ieee80211-freq-limit = <5000000 6000000>;
141 nvmem-cells = <&eeprom_factory_0>;
142 nvmem-cell-names = "eeprom";