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 compatible = "xiaomi,miwifi-3c", "mediatek,mt7628an-soc";
10 model = "Xiaomi MiWiFi 3C";
13 led-boot = &led_status_amber;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_amber;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 led_status_blue: status_blue {
28 label = "blue:status";
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 led_status_red: status_red {
34 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
37 led_status_amber: status_amber {
38 label = "amber:status";
39 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys";
48 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
56 groups = "gpio", "refclk", "wdt", "wled_an";
70 mediatek,portmap = <0x3e>;
71 mediatek,portdisable = <0x2a>;
77 nvmem-cells = <&eeprom_factory_0>;
78 nvmem-cell-names = "eeprom";
82 nvmem-cells = <&macaddr_factory_28>;
83 nvmem-cell-names = "mac-address";
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <40000000>;
95 compatible = "fixed-partitions";
100 label = "Bootloader";
107 reg = <0x30000 0x10000>;
112 reg = <0x40000 0x10000>;
116 factory: partition@50000 {
117 compatible = "nvmem-cells";
119 reg = <0x50000 0x10000>;
120 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 macaddr_factory_28: macaddr@28 {
135 reg = <0x60000 0x10000>;
141 reg = <0x70000 0x10000>;
147 reg = <0x80000 0xc0000>;
153 compatible = "denx,uimage";
154 reg = <0x140000 0xec0000>;