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 compatible = "xiaomi,miwifi-3c", "mediatek,mt7628an-soc";
11 model = "Xiaomi MiWiFi 3C";
14 led-boot = &led_status_amber;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_amber;
18 label-mac-device = ðernet;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
28 led_status_blue: status_blue {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34 led_status_red: status_red {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_RED>;
37 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
40 led_status_amber: status_amber {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_AMBER>;
43 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
60 groups = "gpio", "refclk", "wdt", "wled_an";
74 mediatek,portmap = <0x3e>;
75 mediatek,portdisable = <0x2a>;
81 nvmem-cells = <&eeprom_factory_0>;
82 nvmem-cell-names = "eeprom";
86 nvmem-cells = <&macaddr_factory_28>;
87 nvmem-cell-names = "mac-address";
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <40000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
104 label = "Bootloader";
111 reg = <0x30000 0x10000>;
116 reg = <0x40000 0x10000>;
122 reg = <0x50000 0x10000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 eeprom_factory_0: eeprom@0 {
134 macaddr_factory_28: macaddr@28 {
142 reg = <0x60000 0x10000>;
148 reg = <0x70000 0x10000>;
154 reg = <0x80000 0xc0000>;
160 compatible = "denx,uimage";
161 reg = <0x140000 0xec0000>;