treewide: replace 'linux, stdout-path' with 'stdout-path'
[openwrt/openwrt.git] / target / linux / apm821xx / dts / meraki-mx60.dts
1 /*
2 * Device Tree Source for Meraki MX60/MX60W (Buckminster)
3 *
4 * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
5 *
6 * Based on Cisco Meraki DTS extracted from release wired-12-217818
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without
10 * any warranty of any kind, whether express or implied.
11 */
12
13 /dts-v1/;
14
15 #include "apm82181.dtsi"
16
17 / {
18 model = "Meraki MX60/MX60W Security Appliance";
19 compatible = "meraki,mx60", "meraki,buckminster", "apm,bluestone";
20
21 aliases {
22 serial0 = &UART1;
23 led-boot = &status;
24 led-failsafe = &failsafe;
25 led-running = &status;
26 led-upgrade = &status;
27 };
28
29 chosen {
30 stdout-path = "/plb/opb/serial@ef600400";
31 };
32 };
33
34 &CRYPTO {
35 status = "okay";
36 };
37
38 &PKA {
39 status = "okay";
40 };
41
42 &TRNG {
43 status = "okay";
44 };
45
46 &USBOTG0 {
47 status = "okay";
48 dr_mode = "host";
49 };
50
51 &EBC0 {
52 /* Buckminster has 1GiB of NAND */
53 ndfc@1,0 {
54 status = "okay";
55 nand {
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x00000000 0x00100000>;
62 read-only;
63 };
64
65 partition@100000 {
66 label = "u-boot-env";
67 reg = <0x00100000 0x00100000>;
68 read-only;
69 };
70
71 partition@200000 {
72 label = "oops";
73 reg = <0x00200000 0x00040000>;
74 };
75
76 partition@240000 {
77 label = "ubi";
78 reg = <0x00240000 0x3fdc0000>;
79 };
80
81 all {
82 label = "all";
83 reg = <0x00000000 0x40000000>;
84 };
85 };
86 };
87 };
88
89 &UART1 {
90 status = "okay";
91 };
92
93 &GPIO0 {
94 status = "okay";
95 };
96
97 &IIC0 {
98 status = "okay";
99 };
100
101 &EMAC0 {
102 status = "okay";
103 phy-handle = <&phy0>;
104
105 mdio {
106 #address-cells = <1>;
107 #size-cells = <0>;
108 phy0: ethernet-phy@0 {
109 compatible = "ethernet-phy-id004d.d034";
110 reg = <0>;
111 qca,ar8327-initvals = <
112 0x0010 0x40000000
113 0x0624 0x007f7f7f
114 0x0004 0x07a00000 /* PAD0_MODE */
115 0x000c 0x01000000 /* PAD6_MODE */
116 0x007c 0x0000007e /* PORT0_STATUS */
117 >;
118 };
119 };
120 };
121
122 &POB0 {
123 gpio-leds {
124 compatible = "gpio-leds";
125
126 status: power-green {
127 label = "mx60:green:power";
128 gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
129 };
130
131 failsafe: power-orange {
132 label = "mx60:orange:power";
133 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
134 };
135
136 wan-green {
137 label = "mx60:green:wan";
138 gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
139 };
140
141 wan-orange {
142 label = "mx60:orange:wan";
143 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
144 };
145
146 lan1 {
147 label = "mx60:green:lan1";
148 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
149 };
150
151 lan2 {
152 label = "mx60:green:lan2";
153 gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
154 };
155
156 lan3 {
157 label = "mx60:green:lan3";
158 gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
159 };
160
161 lan4 {
162 label = "mx60:green:lan4";
163 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
164 };
165 };
166
167 gpio_keys_polled {
168 compatible = "gpio-keys-polled";
169 #address-cells = <1>;
170 #size-cells = <0>;
171 poll-interval = <60>; /* 3 * 20 = 60ms */
172 autorepeat;
173
174 button@1 {
175 label = "Reset button";
176 linux,code = <KEY_RESTART>;
177 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
178 };
179 };
180 };
181
182 &PCIE0 {
183 /* Leave this enabled as u-boot on the MX60 will disable it for us */
184 status = "okay";
185 };
186
187 &MSI {
188 status = "okay";
189 };