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>;
96 compatible = "fixed-layout";
100 eeprom_factory_0: eeprom@0 {
104 macaddr_factory_3fff4: macaddr@3fff4 {
108 macaddr_factory_3fffa: macaddr@3fffa {
116 reg = <0x180000 0x400000>;
119 ubiconcat0: partition@580000 {
120 label = "ubiconcat0";
121 reg = <0x580000 0x1c00000>;
125 label = "firmware_backup";
126 reg = <0x2180000 0x2000000>;
130 label = "rootfs_data_back";
131 reg = <0x4180000 0x80000>;
136 label = "nvram_config";
137 reg = <0x4200000 0x80000>;
141 ubiconcat1: partition@4280000 {
142 label = "ubiconcat1";
143 reg = <0x4280000 0x3d00000>;
147 * last 512 KiB are for the bad block table
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";
162 mediatek,disable-radar-background;
167 nvmem-cells = <&macaddr_factory_3fff4>;
168 nvmem-cell-names = "mac-address";
174 phy-handle = <ðphy0>;
176 nvmem-cells = <&macaddr_factory_3fffa>;
177 nvmem-cell-names = "mac-address";
181 ethphy0: ethernet-phy@0 {
202 groups = "jtag", "wdt";