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>
9 compatible = "jcg,q20", "mediatek,mt7621-soc";
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_blue;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 led_status_red: status_red {
29 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
32 led_status_blue: status_blue {
33 label = "blue:status";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 compatible = "mtd-concat";
56 devices = <&ubiconcat0 &ubiconcat1>;
59 compatible = "fixed-partitions";
65 reg = <0x0 0x5900000>;
75 compatible = "fixed-partitions";
87 reg = <0x80000 0x80000>;
90 factory: partition@100000 {
92 reg = <0x100000 0x80000>;
98 reg = <0x180000 0x400000>;
101 ubiconcat0: partition@580000 {
102 label = "ubiconcat0";
103 reg = <0x580000 0x1c00000>;
107 label = "firmware_backup";
108 reg = <0x2180000 0x2000000>;
112 label = "rootfs_data_back";
113 reg = <0x4180000 0x80000>;
118 label = "nvram_config";
119 reg = <0x4200000 0x80000>;
123 ubiconcat1: partition@4280000 {
124 label = "ubiconcat1";
125 reg = <0x4280000 0x3d00000>;
129 * last 512 KiB are for the bad block table
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 mediatek,mtd-eeprom = <&factory 0x0>;
147 nvmem-cells = <&macaddr_factory_3fff4>;
148 nvmem-cell-names = "mac-address";
156 nvmem-cells = <&macaddr_factory_3fffa>;
157 nvmem-cell-names = "mac-address";
174 groups = "jtag", "wdt";
180 compatible = "nvmem-cells";
181 #address-cells = <1>;
184 macaddr_factory_3fff4: macaddr@3fff4 {
188 macaddr_factory_3fffa: macaddr@3fffa {