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>
10 bootargs = "console=ttyS0,115200n8";
14 compatible = "gpio-keys";
18 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
28 compatible = "fixed-partitions";
40 reg = <0x80000 0x40000>;
45 reg = <0xc0000 0x40000>;
49 factory: partition@100000 {
51 reg = <0x100000 0x40000>;
57 reg = <0x140000 0x40000>;
61 label = "crash_syslog";
62 reg = <0x180000 0x40000>;
67 reg = <0x1c0000 0x40000>;
71 /* We keep stock xiaomi firmware (kernel0) here */
73 label = "kernel_stock";
74 reg = <0x200000 0x400000>;
79 reg = <0x600000 0x400000>;
84 reg = <0xa00000 0x7580000>;
95 compatible = "mediatek,mt76";
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 ieee80211-freq-limit = <5000000 6000000>;
104 compatible = "mediatek,mt76";
105 reg = <0x0000 0 0 0 0>;
106 mediatek,mtd-eeprom = <&factory 0x0000>;
107 ieee80211-freq-limit = <2400000 2500000>;
112 mtd-mac-address = <&factory 0xe000>;
120 mtd-mac-address = <&factory 0xe006>;
142 groups = "uart2", "uart3", "wdt";