1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca955x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
compatible = "meraki,mr18", "qca,qca9558";
model = "Meraki MR18";
aliases {
label-mac-device = ð0;
led-boot = &white;
led-failsafe = &orange;
led-running = &green;
led-upgrade = &white;
};
leds {
compatible = "gpio-leds";
white: white {
label = "white:power";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
orange: orange {
label = "orange:power";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
};
uleds {
compatible = "virtual-leds";
#if 0
/*
* RGB leds are not supported by uleds driver.
* but this is what the definitions for a as
* of yet unwritten leds_nu801 would look like.
*/
rgbled-0 {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RGB>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
};
green: led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
};
};
#else
red {
label = "red:tricolor";
color = <LED_COLOR_ID_RED>;
};
green: green {
label = "green:tricolor";
color = <LED_COLOR_ID_GREEN>;
};
blue {
label = "blue:tricolor";
color = <LED_COLOR_ID_BLUE>;
};
#endif
};
button {
compatible = "gpio-keys";
reset {
label = "Reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
};
&nand {
status = "okay";
nand-ecc-mode = "soft";
nand-ecc-algo = "bch";
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
nand-is-boot-medium;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "nandloader";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "kernel";
reg = <0x80000 0x800000>;
};
partition@880000 {
label = "recovery";
reg = <0x880000 0x800000>;
};
partition@1080000 {
label = "ubi";
reg = <0x1080000 0x6f00000>;
};
partition@7fe0000 {
/*
* This is not always present. And if
* it is, then Meraki (or contractor)
* used a different ecc method than
* the one we need for the UBI partition.
* Reading this causes various reading
* errors.
*
* As a result: Please don't convert
* this to nvmem-cells. Instead there's
* a ubi-volume "caldata" that has the
* necessary data.
*/
label = "odm-caldata";
reg = <0x7fe0000 0x20000>;
read-only;
};
};
};
&pcie0 {
status = "okay";
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
};
};
&pcie1 {
status = "okay";
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
};
};
&uart {
status = "okay";
};
&mdio0 {
status = "okay";
phy: ethernet-phy@3 {
reg = <3>;
};
};
ð0 {
status = "okay";
pll-data = <0xa6000000 0xa0000101 0x80001313>;
phy-handle = <&phy>;
gmac-config {
device = <&gmac>;
rgmii-enabled = <1>;
rxd-delay = <3>;
rxdv-delay = <3>;
};
};
&wmac {
status = "okay";
qca,no-eeprom;
};
|