1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com>
7 #include "mt7620a.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
14 model = "ALFA Network AC1200RM";
18 led-failsafe = &led_wps;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "green:wlan2g";
40 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
55 pinctrl-names = "default";
56 pinctrl-0 = <&ephy_pins>;
58 nvmem-cells = <&macaddr_factory_28>;
59 nvmem-cell-names = "mac-address";
61 mediatek,portmap = "llllw";
86 reg = <0x0000 0 0 0 0>;
87 nvmem-cells = <&eeprom_factory_8000>;
88 nvmem-cell-names = "eeprom";
89 ieee80211-freq-limit = <5000000 6000000>;
100 groups = "nd_sd", "spi refclk", "wled";
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <10000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
125 label = "u-boot-env";
126 reg = <0x30000 0x1000>;
131 reg = <0x31000 0xf000>;
135 factory: partition@40000 {
137 reg = <0x40000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 eeprom_factory_0: eeprom@0 {
149 eeprom_factory_8000: eeprom@8000 {
150 reg = <0x8000 0x200>;
153 macaddr_factory_28: macaddr@28 {
160 compatible = "denx,uimage";
162 reg = <0x50000 0xfb0000>;
169 nvmem-cells = <&eeprom_factory_0>;
170 nvmem-cell-names = "eeprom";