1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
11 bootargs = "console=ttyS0,115200n8";
15 compatible = "gpio-keys";
19 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
29 compatible = "fixed-partitions";
41 reg = <0x80000 0x40000>;
46 reg = <0xc0000 0x40000>;
50 factory: partition@100000 {
52 reg = <0x100000 0x40000>;
58 reg = <0x140000 0x40000>;
62 label = "crash_syslog";
63 reg = <0x180000 0x40000>;
68 reg = <0x1c0000 0x40000>;
72 /* We keep stock xiaomi firmware (kernel0) here */
74 label = "kernel_stock";
75 reg = <0x200000 0x400000>;
80 reg = <0x600000 0x400000>;
85 reg = <0xa00000 0x7580000>;
96 compatible = "mediatek,mt76";
97 reg = <0x0000 0 0 0 0>;
98 mediatek,mtd-eeprom = <&factory 0x8000>;
99 ieee80211-freq-limit = <5000000 6000000>;
105 compatible = "mediatek,mt76";
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x0000>;
108 ieee80211-freq-limit = <2400000 2500000>;
113 mtd-mac-address = <&factory 0xe000>;
121 mtd-mac-address = <&factory 0xe006>;
143 groups = "uart2", "uart3", "wdt";