blob: 3489019cc0dc1d2154923636bb145f75315fe97f [file] [log] [blame]
Lars Perssonf56454f2016-02-11 17:06:17 +01001/*
2 * Device Tree Source for the Axis ARTPEC-6 SoC
3 *
Lars Perssonb2af8e52016-02-25 10:11:56 +01004 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
Lars Perssonf56454f2016-02-11 17:06:17 +010041 */
42
43#include <dt-bindings/interrupt-controller/arm-gic.h>
Lars Perssond09ea472016-08-23 16:00:50 +020044#include <dt-bindings/clock/axis,artpec6-clkctrl.h>
Lars Perssonf56454f2016-02-11 17:06:17 +010045#include "skeleton.dtsi"
46
47/ {
48 compatible = "axis,artpec6";
49 interrupt-parent = <&intc>;
50
51 cpus {
52 #address-cells = <1>;
53 #size-cells = <0>;
54
55 cpu0: cpu@0 {
56 device_type = "cpu";
57 compatible = "arm,cortex-a9";
58 reg = <0>;
59 next-level-cache = <&pl310>;
60 };
61
62 cpu1: cpu@1 {
63 device_type = "cpu";
64 compatible = "arm,cortex-a9";
65 reg = <1>;
66 next-level-cache = <&pl310>;
67 };
68 };
69
70 syscon {
71 compatible = "axis,artpec6-syscon", "syscon";
72 reg = <0xf8000000 0x48>;
73 };
74
75 psci {
76 compatible = "arm,psci-0.2", "arm,psci";
77 method = "smc";
78 psci_version = <0x84000000>;
79 cpu_on = <0x84000003>;
80 system_reset = <0x84000009>;
81 };
82
83 scu@faf00000 {
84 compatible = "arm,cortex-a9-scu";
85 reg = <0xfaf00000 0x58>;
86 };
87
88 /* Main external clock driving CPU and peripherals */
89 ext_clk: ext_clk {
90 #clock-cells = <0>;
91 compatible = "fixed-clock";
92 clock-frequency = <50000000>;
93 };
94
Lars Persson9b61aef2016-03-14 10:01:43 +010095 eth_phy_ref_clk: eth_phy_ref_clk {
Lars Perssonf56454f2016-02-11 17:06:17 +010096 #clock-cells = <0>;
Lars Persson9b61aef2016-03-14 10:01:43 +010097 compatible = "fixed-clock";
98 clock-frequency = <125000000>;
99 };
100
101 clkctrl: clkctrl@0xf8000000 {
102 #clock-cells = <1>;
103 compatible = "axis,artpec6-clkctrl";
104 reg = <0xf8000000 0x48>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100105 clocks = <&ext_clk>;
Lars Persson9b61aef2016-03-14 10:01:43 +0100106 clock-names = "sys_refclk";
Lars Perssonf56454f2016-02-11 17:06:17 +0100107 };
108
Lars Perssonf56454f2016-02-11 17:06:17 +0100109 gtimer@faf00200 {
110 compatible = "arm,cortex-a9-global-timer";
111 reg = <0xfaf00200 0x20>;
112 interrupts = <GIC_PPI 11 0xf01>;
Lars Perssond09ea472016-08-23 16:00:50 +0200113 clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100114 };
115
116 timer@faf00600 {
117 compatible = "arm,cortex-a9-twd-timer";
118 reg = <0xfaf00600 0x20>;
119 interrupts = <GIC_PPI 13 0xf04>;
Lars Perssond09ea472016-08-23 16:00:50 +0200120 clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100121 status = "disabled";
122 };
123
124 intc: interrupt-controller@faf01000 {
125 interrupt-controller;
126 compatible = "arm,cortex-a9-gic";
127 #interrupt-cells = <3>;
128 reg = < 0xfaf01000 0x1000 >, < 0xfaf00100 0x0100 >;
129 };
130
131 pl310: cache-controller@faf10000 {
132 compatible = "arm,pl310-cache";
133 cache-unified;
134 cache-level = <2>;
135 reg = <0xfaf10000 0x1000>;
136 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
137 arm,data-latency = <1 1 1>;
138 arm,tag-latency = <1 1 1>;
139 arm,filter-ranges = <0x0 0x80000000>;
Lars Persson1b875162016-08-23 16:00:51 +0200140 arm,double-linefill = <1>;
141 arm,double-linefill-incr = <0>;
142 arm,double-linefill-wrap = <0>;
143 prefetch-data = <1>;
144 prefetch-instr = <1>;
145 arm,prefetch-offset = <0>;
146 arm,prefetch-drop = <1>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100147 };
148
149 pmu {
150 compatible = "arm,cortex-a9-pmu";
151 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Lars Persson92467a52016-08-23 16:00:52 +0200153 interrupt-affinity = <&cpu0>, <&cpu1>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100154 interrupt-parent = <&intc>;
155 };
156
157 amba@0 {
158 compatible = "simple-bus";
159 #address-cells = <0x1>;
160 #size-cells = <0x1>;
161 interrupt-parent = <&intc>;
162 ranges;
163 dma-ranges = <0x80000000 0x00000000 0x40000000>;
164 dma-coherent;
165
166 ethernet: ethernet@f8010000 {
167 clock-names = "phy_ref_clk", "apb_pclk";
Lars Persson9b61aef2016-03-14 10:01:43 +0100168 clocks = <&eth_phy_ref_clk>,
Lars Perssond09ea472016-08-23 16:00:50 +0200169 <&clkctrl ARTPEC6_CLK_ETH_ACLK>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100170 compatible = "snps,dwc-qos-ethernet-4.10";
171 interrupt-parent = <&intc>;
172 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
173 reg = <0xf8010000 0x4000>;
174
175 snps,write-requests = <2>;
176 snps,read-requests = <16>;
177 snps,txpbl = <8>;
178 snps,rxpbl = <2>;
179
180 status = "disabled";
181 };
182
183 uart0: serial@f8036000 {
184 compatible = "arm,pl011", "arm,primecell";
185 reg = <0xf8036000 0x1000>;
186 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
Lars Perssond09ea472016-08-23 16:00:50 +0200187 clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
188 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100189 clock-names = "uart_clk", "apb_pclk";
190 status = "disabled";
191 };
192 uart1: serial@f8037000 {
193 compatible = "arm,pl011", "arm,primecell";
194 reg = <0xf8037000 0x1000>;
195 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
Lars Perssond09ea472016-08-23 16:00:50 +0200196 clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
197 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100198 clock-names = "uart_clk", "apb_pclk";
199 status = "disabled";
200 };
201 uart2: serial@f8038000 {
202 compatible = "arm,pl011", "arm,primecell";
203 reg = <0xf8038000 0x1000>;
204 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Lars Perssond09ea472016-08-23 16:00:50 +0200205 clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
206 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100207 clock-names = "uart_clk", "apb_pclk";
208 status = "disabled";
209 };
210 uart3: serial@f8039000 {
211 compatible = "arm,pl011", "arm,primecell";
212 reg = <0xf8039000 0x1000>;
213 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
Lars Perssond09ea472016-08-23 16:00:50 +0200214 clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
215 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
Lars Perssonf56454f2016-02-11 17:06:17 +0100216 clock-names = "uart_clk", "apb_pclk";
217 status = "disabled";
218 };
219 };
220};