ramips: drop m25p,chunked-io from dts
[openwrt/openwrt.git] / target / linux / ramips / dts / AWUSFREE1.dts
1 /*
2 * BSD LICENSE
3 *
4 * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
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.
19 *
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.
31 */
32
33 /dts-v1/;
34
35 #include "mt7628an.dtsi"
36
37 #include <dt-bindings/gpio/gpio.h>
38 #include <dt-bindings/input/input.h>
39
40 / {
41 compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
42 model = "ALFA Network AWUSFREE1";
43
44 aliases {
45 led-boot = &led_system;
46 led-failsafe = &led_system;
47 led-running = &led_system;
48 led-upgrade = &led_system;
49 };
50
51 chosen {
52 bootargs = "console=ttyS0,115200";
53 };
54
55 keys {
56 compatible = "gpio-keys-polled";
57 poll-interval = <20>;
58
59 reset {
60 label = "reset";
61 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
63 };
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 led_system: system {
70 label = "awusfree1:orange:system";
71 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
72 };
73
74 wlan {
75 label = "awusfree1:blue:wlan";
76 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
77 };
78 };
79
80 memory@0 {
81 device_type = "memory";
82 reg = <0x0 0x4000000>;
83 };
84 };
85
86 &ehci {
87 status = "disabled";
88 };
89
90 &esw {
91 mediatek,portdisable = <0x1e>;
92 };
93
94 &ethernet {
95 mtd-mac-address = <&factory 0x2e>;
96 };
97
98 &gpio1 {
99 status = "okay";
100 };
101
102 &ohci {
103 status = "disabled";
104 };
105
106 &pinctrl {
107 state_default: pinctrl0 {
108 gpio {
109 ralink,group = "p0led_an", "wdt", "wled_an";
110 ralink,function = "gpio";
111 };
112
113 ext_lna {
114 ralink,group = "uart1";
115 ralink,function = "sw_r";
116 };
117
118 ext_pa {
119 ralink,group = "i2s";
120 ralink,function = "antenna";
121 };
122 };
123 };
124
125 &spi0 {
126 status = "okay";
127
128 m25p80@0 {
129 compatible = "jedec,spi-nor";
130 reg = <0>;
131 spi-max-frequency = <10000000>;
132
133 partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partition@0 {
139 label = "u-boot";
140 reg = <0x0 0x30000>;
141 read-only;
142 };
143
144 partition@30000 {
145 label = "u-boot-env";
146 reg = <0x30000 0x1000>;
147 };
148
149 partition@31000 {
150 label = "config";
151 reg = <0x31000 0xf000>;
152 read-only;
153 };
154
155 factory: partition@40000 {
156 label = "factory";
157 reg = <0x40000 0x10000>;
158 read-only;
159 };
160
161 partition@50000 {
162 compatible = "denx,uimage";
163 label = "firmware";
164 reg = <0x50000 0x7b0000>;
165 };
166 };
167 };
168 };
169
170 &wmac {
171 status = "okay";
172 mediatek,mtd-eeprom = <&factory 0x0>;
173 };