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 {
91 compatible = "nvmem-cells";
93 reg = <0x100000 0x80000>;
98 eeprom_factory_0: eeprom@0 {
102 macaddr_factory_3fff4: macaddr@3fff4 {
106 macaddr_factory_3fffa: macaddr@3fffa {
113 reg = <0x180000 0x400000>;
116 ubiconcat0: partition@580000 {
117 label = "ubiconcat0";
118 reg = <0x580000 0x1c00000>;
122 label = "firmware_backup";
123 reg = <0x2180000 0x2000000>;
127 label = "rootfs_data_back";
128 reg = <0x4180000 0x80000>;
133 label = "nvram_config";
134 reg = <0x4200000 0x80000>;
138 ubiconcat1: partition@4280000 {
139 label = "ubiconcat1";
140 reg = <0x4280000 0x3d00000>;
144 * last 512 KiB are for the bad block table
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
159 mediatek,disable-radar-background;
164 nvmem-cells = <&macaddr_factory_3fff4>;
165 nvmem-cell-names = "mac-address";
171 phy-handle = <ðphy0>;
173 nvmem-cells = <&macaddr_factory_3fffa>;
174 nvmem-cell-names = "mac-address";
178 ethphy0: ethernet-phy@0 {
199 groups = "jtag", "wdt";