apm821xx: mx60: drop nand-is-boot-medium
[openwrt/staging/jow.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 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "u-boot";
57 reg = <0x00000000 0x00100000>;
58 read-only;
59 };
60
61 partition@100000 {
62 label = "u-boot-env";
63 reg = <0x00100000 0x00100000>;
64 read-only;
65 };
66
67 partition@200000 {
68 label = "oops";
69 reg = <0x00200000 0x00040000>;
70 };
71
72 partition@240000 {
73 label = "ubi";
74 reg = <0x00240000 0x3fdc0000>;
75 };
76 };
77 };
78 };
79
80 &UART1 {
81 status = "okay";
82 };
83
84 &GPIO0 {
85 status = "okay";
86 };
87
88 &IIC0 {
89 status = "okay";
90 };
91
92 &EMAC0 {
93 status = "okay";
94 phy-handle = <&phy0>;
95
96 mdio {
97 #address-cells = <1>;
98 #size-cells = <0>;
99 phy0: ethernet-phy@0 {
100 compatible = "ethernet-phy-id004d.d034";
101 reg = <0>;
102 qca,mib-poll-interval = <500>;
103
104 qca,ar8327-initvals = <
105 0x0010 0x40000000
106 0x0624 0x007f7f7f
107 0x0004 0x07a00000 /* PAD0_MODE */
108 0x000c 0x01000000 /* PAD6_MODE */
109 0x007c 0x0000007e /* PORT0_STATUS */
110 >;
111 };
112 };
113 };
114
115 &POB0 {
116 leds {
117 compatible = "gpio-leds";
118
119 led-0 {
120 color = <LED_COLOR_ID_GREEN>;
121 function = LED_FUNCTION_POWER;
122 gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
123 };
124
125 led-1 {
126 color = <LED_COLOR_ID_AMBER>;
127 function = LED_FUNCTION_FAULT;
128 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
129 panic-indicator;
130 };
131
132 led-2 {
133 color = <LED_COLOR_ID_GREEN>;
134 function = LED_FUNCTION_WAN;
135 gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
136 };
137
138 led-3 {
139 color = <LED_COLOR_ID_AMBER>;
140 function = LED_FUNCTION_WAN;
141 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
142 };
143
144 led-4 {
145 color = <LED_COLOR_ID_GREEN>;
146 function = LED_FUNCTION_LAN;
147 function-enumerator = <0>;
148 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
149 };
150
151 led-5 {
152 color = <LED_COLOR_ID_GREEN>;
153 function = LED_FUNCTION_LAN;
154 function-enumerator = <1>;
155 gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
156 };
157
158 led-6 {
159 color = <LED_COLOR_ID_GREEN>;
160 function = LED_FUNCTION_LAN;
161 function-enumerator = <2>;
162 gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
163 };
164
165 led-7 {
166 color = <LED_COLOR_ID_GREEN>;
167 function = LED_FUNCTION_LAN;
168 function-enumerator = <3>;
169 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
170 };
171 };
172
173 keys {
174 compatible = "gpio-keys";
175
176 button-restart {
177 label = "Reset button";
178 linux,code = <KEY_RESTART>;
179 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
180 interrupt-parent = <&UIC1>;
181 interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
182 debounce-interval = <60>;
183 };
184 };
185 };
186
187 &PCIE0 {
188 /* Leave this enabled as u-boot on the MX60 will disable it for us */
189 status = "okay";
190
191 /*
192 * relevant lspci topology:
193 *
194 * -+-[0000:40]---00.0-[41-7f]----00.0
195 */
196
197 bridge@64,0 {
198 reg = <0x00400000 0 0 0 0>;
199 #address-cells = <3>;
200 #size-cells = <2>;
201 ranges;
202
203 wifi0: wifi@65,0 {
204 /* Atheros AR9380 2.4/5GHz */
205 compatible = "pci168c,0030";
206 reg = <0x00410000 0 0 0 0>;
207 interrupts = <1>; /* INTA */
208 };
209 };
210 };