blob: 75a22deb4a73456265d2b50abdd8368684883326 [file] [log] [blame]
Stefan Roese850db822016-05-17 14:03:25 +02001/*
2 * Device Tree Include file for Marvell Armada 37xx family of SoCs.
3 *
4 * Copyright (C) 2016 Marvell
5 *
6 * Gregory CLEMENT <gregory.clement@free-electrons.com>
7 *
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
11 * whole.
12 *
13 * a) This file is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
17 *
18 * This file is distributed in the hope that it will be useful
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * Or, alternatively
24 *
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
32 * conditions:
33 *
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
36 *
37 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
45 */
46
47#include <dt-bindings/interrupt-controller/arm-gic.h>
Stefan Roese56d53952016-08-26 13:10:45 +020048#include <dt-bindings/comphy/comphy_data.h>
Ken Mad13d8ba2018-03-26 15:55:55 +080049#include <dt-bindings/gpio/gpio.h>
Stefan Roese850db822016-05-17 14:03:25 +020050
51/ {
52 model = "Marvell Armada 37xx SoC";
53 compatible = "marvell,armada3700";
54 interrupt-parent = <&gic>;
55 #address-cells = <2>;
56 #size-cells = <2>;
57
58 aliases {
59 serial0 = &uart0;
60 };
61
62 cpus {
63 #address-cells = <1>;
64 #size-cells = <0>;
65 cpu@0 {
66 device_type = "cpu";
67 compatible = "arm,cortex-a53", "arm,armv8";
68 reg = <0>;
69 enable-method = "psci";
70 };
71 };
72
73 psci {
74 compatible = "arm,psci-0.2";
75 method = "smc";
76 };
77
78 timer {
79 compatible = "arm,armv8-timer";
80 interrupts = <GIC_PPI 13
81 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
82 <GIC_PPI 14
83 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
84 <GIC_PPI 11
85 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
86 <GIC_PPI 10
87 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
88 };
89
90 soc {
91 compatible = "simple-bus";
92 #address-cells = <2>;
93 #size-cells = <2>;
94 ranges;
95
96 internal-regs {
97 #address-cells = <1>;
98 #size-cells = <1>;
99 compatible = "simple-bus";
100 /* 32M internal register @ 0xd000_0000 */
101 ranges = <0x0 0x0 0xd0000000 0x2000000>;
102
103 uart0: serial@12000 {
104 compatible = "marvell,armada-3700-uart";
105 reg = <0x12000 0x400>;
106 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
107 status = "disabled";
108 };
109
Gregory CLEMENT5cb7b792017-05-09 13:35:32 +0200110 pinctrl_nb: pinctrl-nb@13800 {
111 compatible = "marvell,armada3710-nb-pinctrl",
112 "syscon", "simple-mfd";
113 reg = <0x13800 0x100>, <0x13C00 0x20>;
114 gpionb: gpionb {
115 #gpio-cells = <2>;
116 gpio-ranges = <&pinctrl_nb 0 0 36>;
117 gpio-controller;
118 interrupts =
119 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
120 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
121 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
122 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
123 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
124 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
125 <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
126 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
127 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
128 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
129 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
130 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
131
132 };
Gregory CLEMENT045504b2017-05-09 13:35:22 +0200133
134 spi_quad_pins: spi-quad-pins {
135 groups = "spi_quad";
136 function = "spi";
137 };
138
139 i2c1_pins: i2c1-pins {
140 groups = "i2c1";
141 function = "i2c";
142 };
143
144 i2c2_pins: i2c2-pins {
145 groups = "i2c2";
146 function = "i2c";
147 };
148
149 uart1_pins: uart1-pins {
150 groups = "uart1";
151 function = "uart";
152 };
153
154 uart2_pins: uart2-pins {
155 groups = "uart2";
156 function = "uart";
157 };
Gregory CLEMENT5cb7b792017-05-09 13:35:32 +0200158 };
159
160 pinctrl_sb: pinctrl-sb@18800 {
161 compatible = "marvell,armada3710-sb-pinctrl",
162 "syscon", "simple-mfd";
163 reg = <0x18800 0x100>, <0x18C00 0x20>;
164 gpiosb: gpiosb {
165 #gpio-cells = <2>;
166 gpio-ranges = <&pinctrl_sb 0 0 29>;
167 gpio-controller;
168 interrupts =
169 <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
170 <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
172 <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
173 <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
174 };
Gregory CLEMENT045504b2017-05-09 13:35:22 +0200175
176 rgmii_pins: mii-pins {
177 groups = "rgmii";
178 function = "mii";
179 };
180
Gregory CLEMENT5cb7b792017-05-09 13:35:32 +0200181 };
182
Stefan Roese850db822016-05-17 14:03:25 +0200183 usb3: usb@58000 {
184 compatible = "marvell,armada3700-xhci",
185 "generic-xhci";
186 reg = <0x58000 0x4000>;
187 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
188 status = "disabled";
189 };
190
Stefan Roesef7332282016-08-26 13:50:41 +0200191 usb2: usb@5e000 {
192 compatible = "marvell,armada3700-ehci";
193 reg = <0x5e000 0x450>;
194 status = "disabled";
195 };
196
Stefan Roese850db822016-05-17 14:03:25 +0200197 xor@60900 {
198 compatible = "marvell,armada-3700-xor";
199 reg = <0x60900 0x100
200 0x60b00 0x100>;
201
202 xor10 {
203 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
204 };
205 xor11 {
206 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
207 };
208 };
209
Stefan Roesecbe0ece2016-12-09 15:10:31 +0100210 sdhci0: sdhci@d0000 {
211 compatible = "marvell,armada-3700-sdhci",
212 "marvell,sdhci-xenon";
213 reg = <0xd0000 0x300
214 0x1e808 0x4>;
215 status = "disabled";
216 };
217
218 sdhci1: sdhci@d8000 {
219 compatible = "marvell,armada-3700-sdhci",
220 "marvell,sdhci-xenon";
221 reg = <0xd8000 0x300
222 0x17808 0x4>;
223 status = "disabled";
224 };
225
Stefan Roese850db822016-05-17 14:03:25 +0200226 sata: sata@e0000 {
227 compatible = "marvell,armada-3700-ahci";
228 reg = <0xe0000 0x2000>;
229 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
230 status = "disabled";
231 };
232
233 gic: interrupt-controller@1d00000 {
234 compatible = "arm,gic-v3";
235 #interrupt-cells = <3>;
236 interrupt-controller;
237 reg = <0x1d00000 0x10000>, /* GICD */
238 <0x1d40000 0x40000>; /* GICR */
239 };
Stefan Roesecdccf9c2016-05-19 10:41:01 +0200240
Stefan Roese3f84e2e2016-05-19 17:45:20 +0200241 eth0: neta@30000 {
242 compatible = "marvell,armada-3700-neta";
243 reg = <0x30000 0x20>;
244 status = "disabled";
245 };
246
247 eth1: neta@40000 {
248 compatible = "marvell,armada-3700-neta";
249 reg = <0x40000 0x20>;
250 status = "disabled";
251 };
252
Stefan Roese9e9e63c2016-07-21 11:34:32 +0200253 i2c0: i2c@11000 {
254 compatible = "marvell,armada-3700-i2c";
255 reg = <0x11000 0x100>;
256 status = "disabled";
257 };
258
Stefan Roesecdccf9c2016-05-19 10:41:01 +0200259 spi0: spi@10600 {
260 compatible = "marvell,armada-3700-spi";
261 reg = <0x10600 0x50>;
262 #address-cells = <1>;
263 #size-cells = <0>;
264 #clock-cells = <0>;
265 clock-frequency = <160000>;
266 spi-max-frequency = <40000>;
267 status = "disabled";
268 };
Stefan Roese56d53952016-08-26 13:10:45 +0200269
Konstantin Porotchkinf7cab0f2017-02-16 13:52:25 +0200270 pinctl0: pinctl@13830 { /* north bridge */
271 compatible = "marvell,armada-3700-pinctl";
272 bank-name = "armada-3700-nb";
273 reg = <0x13830 0x4>;
274 pin-count = <36>;
275 };
276
277 pinctl1: pinctl@18830 { /* south bridge */
278 compatible = "marvell,armada-3700-pinctl";
279 bank-name = "armada-3700-sb";
280 reg = <0x18830 0x4>;
281 pin-count = <30>;
282 };
283
Stefan Roese56d53952016-08-26 13:10:45 +0200284 comphy: comphy@18300 {
285 compatible = "marvell,mvebu-comphy", "marvell,comphy-armada-3700";
286 reg = <0x18300 0x28>,
287 <0x1f300 0x3d000>;
288 mux-bitcount = <1>;
289 max-lanes = <2>;
290 };
Stefan Roese850db822016-05-17 14:03:25 +0200291 };
292 };
293};