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>
11 #include <dt-bindings/leds/common.h>
14 compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
15 model = "ALFA Network AC1200RM";
19 led-failsafe = &led_wps;
23 bootargs = "console=ttyS0,115200";
27 compatible = "gpio-keys";
31 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "green:wlan2g";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
45 function = LED_FUNCTION_WPS;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&ephy_pins>;
60 nvmem-cells = <&macaddr_factory_28>;
61 nvmem-cell-names = "mac-address";
63 mediatek,portmap = "llllw";
88 reg = <0x0000 0 0 0 0>;
89 nvmem-cells = <&eeprom_factory_8000>;
90 nvmem-cell-names = "eeprom";
91 ieee80211-freq-limit = <5000000 6000000>;
102 groups = "nd_sd", "spi refclk", "wled";
111 compatible = "jedec,spi-nor";
113 spi-max-frequency = <10000000>;
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
127 label = "u-boot-env";
128 reg = <0x30000 0x1000>;
133 reg = <0x31000 0xf000>;
139 reg = <0x40000 0x10000>;
143 compatible = "fixed-layout";
144 #address-cells = <1>;
147 eeprom_factory_0: eeprom@0 {
151 eeprom_factory_8000: eeprom@8000 {
152 reg = <0x8000 0x200>;
155 macaddr_factory_28: macaddr@28 {
162 compatible = "denx,uimage";
164 reg = <0x50000 0xfb0000>;
171 nvmem-cells = <&eeprom_factory_0>;
172 nvmem-cell-names = "eeprom";