blob: f0022d10c7159d2d1f1102dfcee844fdc040d931 [file] [log] [blame]
Gregory CLEMENT69f56892018-03-15 14:40:56 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +01002/*
3 * Device Tree Include file for Marvell Armada 385 SoC.
4 *
5 * Copyright (C) 2014 Marvell
6 *
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010010 */
11
12#include "armada-38x.dtsi"
13
14/ {
15 model = "Marvell Armada 385 family SoC";
Gregory CLEMENT8dbdb8e2014-06-23 16:16:51 +020016 compatible = "marvell,armada385", "marvell,armada380";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010017
18 cpus {
19 #address-cells = <1>;
20 #size-cells = <0>;
Thomas Petazzoni19b06d72014-04-14 15:54:08 +020021 enable-method = "marvell,armada-380-smp";
22
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010023 cpu@0 {
24 device_type = "cpu";
25 compatible = "arm,cortex-a9";
26 reg = <0>;
27 };
28 cpu@1 {
29 device_type = "cpu";
30 compatible = "arm,cortex-a9";
31 reg = <1>;
32 };
33 };
34
35 soc {
Rob Herring28fbb9c2017-07-26 16:09:37 -050036 pciec: pcie {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010037 compatible = "marvell,armada-370-pcie";
38 status = "disabled";
39 device_type = "pci";
40
41 #address-cells = <3>;
42 #size-cells = <2>;
43
44 msi-parent = <&mpic>;
45 bus-range = <0x00 0xff>;
46
47 ranges =
48 <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
49 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
50 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
51 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
52 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
53 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */
54 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
55 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */
56 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
57 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */
58 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
59 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>;
60
61 /*
62 * This port can be either x4 or x1. When
63 * configured in x4 by the bootloader, then
64 * pcie@4,0 is not available.
65 */
Chris Packhama126de72017-02-01 22:02:59 +130066 pcie1: pcie@1,0 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010067 device_type = "pci";
68 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
69 reg = <0x0800 0 0 0 0>;
70 #address-cells = <3>;
71 #size-cells = <2>;
72 #interrupt-cells = <1>;
73 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
74 0x81000000 0 0 0x81000000 0x1 0 1 0>;
Rob Herring28fbb9c2017-07-26 16:09:37 -050075 bus-range = <0x00 0xff>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010076 interrupt-map-mask = <0 0 0 0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +010077 interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010078 marvell,pcie-port = <0>;
79 marvell,pcie-lane = <0>;
80 clocks = <&gateclk 8>;
81 status = "disabled";
82 };
83
84 /* x1 port */
Chris Packhama126de72017-02-01 22:02:59 +130085 pcie2: pcie@2,0 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010086 device_type = "pci";
87 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
88 reg = <0x1000 0 0 0 0>;
89 #address-cells = <3>;
90 #size-cells = <2>;
91 #interrupt-cells = <1>;
92 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
93 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Rob Herring28fbb9c2017-07-26 16:09:37 -050094 bus-range = <0x00 0xff>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010095 interrupt-map-mask = <0 0 0 0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +010096 interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010097 marvell,pcie-port = <1>;
98 marvell,pcie-lane = <0>;
99 clocks = <&gateclk 5>;
100 status = "disabled";
101 };
102
103 /* x1 port */
Chris Packhama126de72017-02-01 22:02:59 +1300104 pcie3: pcie@3,0 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100105 device_type = "pci";
106 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
Thomas Petazzonic2a3dd92014-05-20 16:43:28 +0200107 reg = <0x1800 0 0 0 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100108 #address-cells = <3>;
109 #size-cells = <2>;
110 #interrupt-cells = <1>;
111 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
112 0x81000000 0 0 0x81000000 0x3 0 1 0>;
Rob Herring28fbb9c2017-07-26 16:09:37 -0500113 bus-range = <0x00 0xff>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100114 interrupt-map-mask = <0 0 0 0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100115 interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100116 marvell,pcie-port = <2>;
117 marvell,pcie-lane = <0>;
118 clocks = <&gateclk 6>;
119 status = "disabled";
120 };
121
122 /*
123 * x1 port only available when pcie@1,0 is
124 * configured as a x1 port
125 */
Chris Packhama126de72017-02-01 22:02:59 +1300126 pcie4: pcie@4,0 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100127 device_type = "pci";
128 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
Thomas Petazzonic2a3dd92014-05-20 16:43:28 +0200129 reg = <0x2000 0 0 0 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100130 #address-cells = <3>;
131 #size-cells = <2>;
132 #interrupt-cells = <1>;
133 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
134 0x81000000 0 0 0x81000000 0x4 0 1 0>;
Rob Herring28fbb9c2017-07-26 16:09:37 -0500135 bus-range = <0x00 0xff>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100136 interrupt-map-mask = <0 0 0 0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100137 interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100138 marvell,pcie-port = <3>;
139 marvell,pcie-lane = <0>;
140 clocks = <&gateclk 7>;
141 status = "disabled";
142 };
143 };
144 };
145};
Chris Packhama126de72017-02-01 22:02:59 +1300146
147&pinctrl {
148 compatible = "marvell,mv88f6820-pinctrl";
149};