ramips: remove model name from LED labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_alfa-network_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 #include "mt7628an.dtsi"
34
35 #include <dt-bindings/gpio/gpio.h>
36 #include <dt-bindings/input/input.h>
37
38 / {
39 compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
40 model = "ALFA Network AWUSFREE1";
41
42 aliases {
43 led-boot = &led_system;
44 led-failsafe = &led_system;
45 led-running = &led_system;
46 led-upgrade = &led_system;
47 };
48
49 chosen {
50 bootargs = "console=ttyS0,115200";
51 };
52
53 keys {
54 compatible = "gpio-keys";
55
56 reset {
57 label = "reset";
58 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65
66 led_system: system {
67 label = "orange:system";
68 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
69 };
70
71 wlan {
72 label = "blue:wlan";
73 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
74 };
75 };
76 };
77
78 &ehci {
79 status = "disabled";
80 };
81
82 &esw {
83 mediatek,portdisable = <0x1e>;
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x2e>;
88 };
89
90 &ohci {
91 status = "disabled";
92 };
93
94 &state_default {
95 gpio {
96 groups = "p0led_an", "wdt", "wled_an";
97 function = "gpio";
98 };
99
100 ext_lna {
101 groups = "uart1";
102 function = "sw_r";
103 };
104
105 ext_pa {
106 groups = "i2s";
107 function = "antenna";
108 };
109 };
110
111 &spi0 {
112 status = "okay";
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <10000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "u-boot";
126 reg = <0x0 0x30000>;
127 read-only;
128 };
129
130 partition@30000 {
131 label = "u-boot-env";
132 reg = <0x30000 0x1000>;
133 };
134
135 partition@31000 {
136 label = "config";
137 reg = <0x31000 0xf000>;
138 read-only;
139 };
140
141 factory: partition@40000 {
142 label = "factory";
143 reg = <0x40000 0x10000>;
144 read-only;
145 };
146
147 partition@50000 {
148 compatible = "denx,uimage";
149 label = "firmware";
150 reg = <0x50000 0x7b0000>;
151 };
152 };
153 };
154 };
155
156 &wmac {
157 status = "okay";
158 };