tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / apm821xx / dts / meraki-mx60.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Device Tree Source for Meraki MX60/MX60W (Buckminster)
4 *
5 * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
6 *
7 * Based on Cisco Meraki DTS extracted from release wired-12-217818
8 */
9
10 /dts-v1/;
11
12 #include <dt-bindings/leds/common.h>
13 #include "apm82181.dtsi"
14
15 / {
16 model = "Meraki MX60/MX60W Security Appliance";
17 compatible = "meraki,mx60", "meraki,buckminster", "apm,bluestone";
18
19 aliases {
20 serial0 = &UART1;
21 };
22
23 chosen {
24 stdout-path = "/plb/opb/serial@ef600400";
25 };
26 };
27
28 &CRYPTO {
29 status = "okay";
30 };
31
32 &PKA {
33 status = "okay";
34 };
35
36 &TRNG {
37 status = "okay";
38 };
39
40 &USBOTG0 {
41 status = "okay";
42 dr_mode = "host";
43 };
44
45 &ndfc {
46 /* Buckminster has 1GiB of NAND */
47 status = "okay";
48
49 nand {
50 nand-is-boot-medium;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "u-boot";
59 reg = <0x00000000 0x00100000>;
60 read-only;
61 };
62
63 partition@100000 {
64 label = "u-boot-env";
65 reg = <0x00100000 0x00100000>;
66 read-only;
67 };
68
69 partition@200000 {
70 label = "oops";
71 reg = <0x00200000 0x00040000>;
72 };
73
74 partition@240000 {
75 label = "ubi";
76 reg = <0x00240000 0x3fdc0000>;
77 };
78 };
79 };
80 };
81
82 &UART1 {
83 status = "okay";
84 };
85
86 &GPIO0 {
87 status = "okay";
88 };
89
90 &IIC0 {
91 status = "okay";
92 };
93
94 &EMAC0 {
95 status = "okay";
96 phy-handle = <&phy0>;
97
98 mdio {
99 #address-cells = <1>;
100 #size-cells = <0>;
101 phy0: ethernet-phy@0 {
102 compatible = "ethernet-phy-id004d.d034";
103 reg = <0>;
104 qca,mib-poll-interval = <500>;
105
106 qca,ar8327-initvals = <
107 0x0010 0x40000000
108 0x0624 0x007f7f7f
109 0x0004 0x07a00000 /* PAD0_MODE */
110 0x000c 0x01000000 /* PAD6_MODE */
111 0x007c 0x0000007e /* PORT0_STATUS */
112 >;
113 };
114 };
115 };
116
117 &POB0 {
118 leds {
119 compatible = "gpio-leds";
120
121 led-0 {
122 color = <LED_COLOR_ID_GREEN>;
123 function = LED_FUNCTION_POWER;
124 gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
125 };
126
127 led-1 {
128 color = <LED_COLOR_ID_AMBER>;
129 function = LED_FUNCTION_FAULT;
130 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
131 panic-indicator;
132 };
133
134 led-2 {
135 color = <LED_COLOR_ID_GREEN>;
136 function = LED_FUNCTION_WAN;
137 gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
138 };
139
140 led-3 {
141 color = <LED_COLOR_ID_AMBER>;
142 function = LED_FUNCTION_WAN;
143 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
144 };
145
146 led-4 {
147 color = <LED_COLOR_ID_GREEN>;
148 function = LED_FUNCTION_LAN;
149 function-enumerator = <0>;
150 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
151 };
152
153 led-5 {
154 color = <LED_COLOR_ID_GREEN>;
155 function = LED_FUNCTION_LAN;
156 function-enumerator = <1>;
157 gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
158 };
159
160 led-6 {
161 color = <LED_COLOR_ID_GREEN>;
162 function = LED_FUNCTION_LAN;
163 function-enumerator = <2>;
164 gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
165 };
166
167 led-7 {
168 color = <LED_COLOR_ID_GREEN>;
169 function = LED_FUNCTION_LAN;
170 function-enumerator = <3>;
171 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
172 };
173 };
174
175 keys {
176 compatible = "gpio-keys";
177
178 button-restart {
179 label = "Reset button";
180 linux,code = <KEY_RESTART>;
181 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
182 interrupt-parent = <&UIC1>;
183 interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
184 debounce-interval = <60>;
185 };
186 };
187 };
188
189 &PCIE0 {
190 /* Leave this enabled as u-boot on the MX60 will disable it for us */
191 status = "okay";
192
193 /*
194 * relevant lspci topology:
195 *
196 * -+-[0000:40]---00.0-[41-7f]----00.0
197 */
198
199 bridge@64,0 {
200 reg = <0x00400000 0 0 0 0>;
201 #address-cells = <3>;
202 #size-cells = <2>;
203 ranges;
204
205 wifi0: wifi@65,0 {
206 /* Atheros AR9380 2.4/5GHz */
207 compatible = "pci168c,0030";
208 reg = <0x00410000 0 0 0 0>;
209 interrupts = <1>; /* INTA */
210 };
211 };
212 };