1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "comfast,cf-wr617ac", "mediatek,mt7628an-soc";
11 model = "Comfast CF-WR617AC";
14 compatible = "gpio-keys";
17 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RESTART>;
23 compatible = "gpio-leds";
24 led_status_blue: status_blue {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_BLUE>;
27 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
29 led_status_red: status_red {
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_RED>;
32 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
37 led-boot = &led_status_red;
38 led-failsafe = &led_status_red;
39 led-running = &led_status_blue;
40 led-upgrade = &led_status_red;
45 bootargs = "console=ttyS0,115200";
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <40000000>;
59 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
77 reg = <0x40000 0x10000>;
81 compatible = "fixed-layout";
85 eeprom_factory_0: eeprom@0 {
89 eeprom_factory_8000: eeprom@8000 {
93 macaddr_factory_8004: macaddr@8004 {
94 compatible = "mac-base";
96 #nvmem-cell-cells = <1>;
99 macaddr_factory_e000: macaddr@e000 {
106 compatible = "denx,uimage";
108 reg = <0x50000 0x760000>;
120 compatible = "mediatek,mt76";
121 reg = <0x0000 0 0 0 0>;
122 ieee80211-freq-limit = <5000000 6000000>;
123 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004 2>;
124 nvmem-cell-names = "eeprom", "mac-address";
129 nvmem-cells = <&macaddr_factory_e000>;
130 nvmem-cell-names = "mac-address";
134 mediatek,portmap = <0x2f>;
139 nvmem-cells = <&eeprom_factory_0>;
140 nvmem-cell-names = "eeprom";