blob: efb8a03cb9709de52130c29ba1fceeb4e6361225 [file] [log] [blame]
Vladimir Murzinf915ea52016-04-25 09:49:15 +01001/*
2 * Copyright (C) 2015 ARM Limited
3 *
4 * Author: Vladimir Murzin <vladimir.murzin@arm.com>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
43 */
44
Joachim Eastwood05b23eb2016-08-29 23:33:56 +020045#include "skeleton.dtsi"
Vladimir Murzinf915ea52016-04-25 09:49:15 +010046#include "armv7-m.dtsi"
47
48/ {
49 oscclk0: clk-osc0 {
50 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <50000000>;
53 };
54
55 oscclk1: clk-osc1 {
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <24576000>;
59 };
60
61 oscclk2: clk-osc2 {
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <25000000>;
65 };
66
67 cfgclk: clk-cfg {
68 compatible = "fixed-clock";
69 #clock-cells = <0>;
70 clock-frequency = <5000000>;
71 };
72
73 spicfgclk: clk-spicfg {
74 compatible = "fixed-clock";
75 #clock-cells = <0>;
76 clock-frequency = <75000000>;
77 };
78
79 sysclk: clk-sys {
80 compatible = "fixed-factor-clock";
81 clocks = <&oscclk0>;
82 #clock-cells = <0>;
83 clock-div = <2>;
84 clock-mult = <1>;
85 };
86
87 audmclk: clk-audm {
88 compatible = "fixed-factor-clock";
89 clocks = <&oscclk1>;
90 #clock-cells = <0>;
91 clock-div = <2>;
92 clock-mult = <1>;
93 };
94
95 audsclk: clk-auds {
96 compatible = "fixed-factor-clock";
97 clocks = <&oscclk1>;
98 #clock-cells = <0>;
99 clock-div = <8>;
100 clock-mult = <1>;
101 };
102
103 spiclcd: clk-cpiclcd {
104 compatible = "fixed-factor-clock";
105 clocks = <&oscclk0>;
106 #clock-cells = <0>;
107 clock-div = <2>;
108 clock-mult = <1>;
109 };
110
111 spicon: clk-spicon {
112 compatible = "fixed-factor-clock";
113 clocks = <&oscclk0>;
114 #clock-cells = <0>;
115 clock-div = <2>;
116 clock-mult = <1>;
117 };
118
119 i2cclcd: clk-i2cclcd {
120 compatible = "fixed-factor-clock";
121 clocks = <&oscclk0>;
122 #clock-cells = <0>;
123 clock-div = <2>;
124 clock-mult = <1>;
125 };
126
127 i2caud: clk-i2caud {
128 compatible = "fixed-factor-clock";
129 clocks = <&oscclk0>;
130 #clock-cells = <0>;
131 clock-div = <2>;
132 clock-mult = <1>;
133 };
134
135 soc {
136 compatible = "simple-bus";
137 ranges;
138
139 apb@40000000 {
140 compatible = "simple-bus";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 ranges = <0 0x40000000 0x10000>;
144
145 timer0: mps2-timer0@0 {
146 compatible = "arm,mps2-timer";
147 reg = <0x0 0x1000>;
148 interrupts = <8>;
149 clocks = <&sysclk>;
150 status = "disabled";
151 };
152
153 timer1: mps2-timer1@1000 {
154 compatible = "arm,mps2-timer";
155 reg = <0x1000 0x1000>;
156 interrupts = <9>;
157 clocks = <&sysclk>;
158 status = "disabled";
159 };
160
161 timer2: dual-timer@2000 {
162 compatible = "arm,sp804";
163 reg = <0x2000 0x1000>;
164 clocks = <&sysclk>;
165 interrupts = <10>;
166 status = "disabled";
167 };
168
169 uart0: serial@4000 {
170 compatible = "arm,mps2-uart";
171 reg = <0x4000 0x1000>;
172 interrupts = <0 1 12>;
173 clocks = <&sysclk>;
174 status = "disabled";
175 };
176
177 uart1: serial@5000 {
178 compatible = "arm,mps2-uart";
179 reg = <0x5000 0x1000>;
180 interrupts = <2 3 12>;
181 clocks = <&sysclk>;
182 status = "disabled";
183 };
184
185 uart2: serial@6000 {
186 compatible = "arm,mps2-uart";
187 reg = <0x6000 0x1000>;
188 interrupts = <4 5 12>;
189 clocks = <&sysclk>;
190 status = "disabled";
191 };
192
193 wdt: watchdog@8000 {
194 compatible = "arm,sp805", "arm,primecell";
195 arm,primecell-periphid = <0x00141805>;
196 reg = <0x8000 0x1000>;
197 interrupts = <0>;
198 clocks = <&sysclk>;
199 clock-names = "apb_pclk";
200 status = "disabled";
201 };
202 };
203 };
204
205 fpga@40020000 {
206 compatible = "simple-bus";
207 #address-cells = <1>;
208 #size-cells = <1>;
209 ranges = <0 0x40020000 0x10000>;
210
211 fpgaio@8000 {
212 compatible = "syscon", "simple-mfd";
213 reg = <0x8000 0x10>;
214
215 led0 {
216 compatible = "register-bit-led";
217 offset = <0x0>;
218 mask = <0x01>;
219 label = "userled:0";
220 linux,default-trigger = "heartbeat";
221 default-state = "on";
222 };
223
224 led1 {
225 compatible = "register-bit-led";
226 offset = <0x0>;
227 mask = <0x02>;
228 label = "userled:1";
229 linux,default-trigger = "usr";
230 default-state = "off";
231 };
232 };
233 };
234
235 smb {
236 compatible = "simple-bus";
237 #address-cells = <2>;
238 #size-cells = <1>;
239 ranges = <0 0 0x40200000 0x10000>,
240 <1 0 0xa0000000 0x10000>;
241 };
242};