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 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
99 groups = "nd_sd", "spi refclk", "wled";
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <10000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
124 label = "u-boot-env";
125 reg = <0x30000 0x1000>;
130 reg = <0x31000 0xf000>;
134 factory: partition@40000 {
136 reg = <0x40000 0x10000>;
141 compatible = "denx,uimage";
143 reg = <0x50000 0xfb0000>;
150 ralink,mtd-eeprom = <&factory 0x0>;
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
158 macaddr_factory_28: macaddr@28 {