4 * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com>
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the names of the copyright holders nor the names of any
17 * contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 #include "mt7620a.dtsi"
37 #include <dt-bindings/gpio/gpio.h>
38 #include <dt-bindings/input/input.h>
41 compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
42 model = "ALFA Network AC1200RM";
46 led-failsafe = &led_wps;
50 bootargs = "console=ttyS0,115200";
54 compatible = "gpio-keys-polled";
59 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 compatible = "gpio-leds";
68 label = "ac1200rm:green:wlan2g";
69 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
73 label = "ac1200rm:green:wps";
74 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
84 mtd-mac-address = <&factory 0x28>;
85 mediatek,portmap = "llllw";
86 pinctrl-names = "default";
87 pinctrl-0 = <&ephy_pins>;
103 mediatek,port4 = "ephy";
116 reg = <0x0000 0 0 0 0>;
117 mediatek,mtd-eeprom = <&factory 0x8000>;
118 ieee80211-freq-limit = <5000000 6000000>;
128 state_default: pinctrl0 {
130 ralink,group = "nd_sd", "spi refclk", "wled";
131 ralink,function = "gpio";
140 compatible = "jedec,spi-nor";
142 spi-max-frequency = <10000000>;
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
156 label = "u-boot-env";
157 reg = <0x30000 0x1000>;
162 reg = <0x31000 0xf000>;
166 factory: partition@40000 {
168 reg = <0x40000 0x10000>;
173 compatible = "denx,uimage";
175 reg = <0x50000 0xfb0000>;
182 ralink,mtd-eeprom = <&factory 0>;