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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "jcg,q20", "mediatek,mt7621-soc";
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_blue;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
28 led_status_red: status_red {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
34 led_status_blue: status_blue {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 compatible = "mtd-concat";
59 devices = <&ubiconcat0 &ubiconcat1>;
62 compatible = "fixed-partitions";
68 reg = <0x0 0x5900000>;
78 compatible = "fixed-partitions";
90 reg = <0x80000 0x80000>;
95 reg = <0x100000 0x80000>;
99 compatible = "fixed-layout";
100 #address-cells = <1>;
103 eeprom_factory_0: eeprom@0 {
107 macaddr_factory_3fff4: macaddr@3fff4 {
111 macaddr_factory_3fffa: macaddr@3fffa {
119 reg = <0x180000 0x400000>;
122 ubiconcat0: partition@580000 {
123 label = "ubiconcat0";
124 reg = <0x580000 0x1c00000>;
128 label = "firmware_backup";
129 reg = <0x2180000 0x2000000>;
133 label = "rootfs_data_back";
134 reg = <0x4180000 0x80000>;
139 label = "nvram_config";
140 reg = <0x4200000 0x80000>;
144 ubiconcat1: partition@4280000 {
145 label = "ubiconcat1";
146 reg = <0x4280000 0x3d00000>;
150 * last 512 KiB are for the bad block table
161 compatible = "mediatek,mt76";
162 reg = <0x0000 0 0 0 0>;
163 nvmem-cells = <&eeprom_factory_0>;
164 nvmem-cell-names = "eeprom";
165 mediatek,disable-radar-background;
170 nvmem-cells = <&macaddr_factory_3fff4>;
171 nvmem-cell-names = "mac-address";
177 phy-handle = <ðphy0>;
179 nvmem-cells = <&macaddr_factory_3fffa>;
180 nvmem-cell-names = "mac-address";
184 ethphy0: ethernet-phy@0 {
205 groups = "jtag", "wdt";