blob: ba700267ad6631eba8bda4e5e0c4986d4e752e67 [file] [log] [blame]
Masahiro Yamada8e678e02015-05-08 13:07:13 +09001/*
Masahiro Yamada77896e42016-08-30 14:02:41 +09002 * Device Tree Source for UniPhier Pro4 SoC
Masahiro Yamada8e678e02015-05-08 13:07:13 +09003 *
Masahiro Yamada77896e42016-08-30 14:02:41 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada8e678e02015-05-08 13:07:13 +09006 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45
Masahiro Yamada629b5572015-12-03 15:33:57 +090046/include/ "uniphier-common32.dtsi"
Masahiro Yamada8e678e02015-05-08 13:07:13 +090047
48/ {
Masahiro Yamada77896e42016-08-30 14:02:41 +090049 compatible = "socionext,uniphier-pro4";
Masahiro Yamada8e678e02015-05-08 13:07:13 +090050
51 cpus {
52 #address-cells = <1>;
53 #size-cells = <0>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090054
55 cpu@0 {
56 device_type = "cpu";
57 compatible = "arm,cortex-a9";
58 reg = <0>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090059 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090060 next-level-cache = <&l2>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090061 };
62
63 cpu@1 {
64 device_type = "cpu";
65 compatible = "arm,cortex-a9";
66 reg = <1>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090067 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090068 next-level-cache = <&l2>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090069 };
70 };
71
72 clocks {
73 arm_timer_clk: arm_timer_clk {
74 #clock-cells = <0>;
75 compatible = "fixed-clock";
76 clock-frequency = <50000000>;
77 };
78 };
Masahiro Yamada629b5572015-12-03 15:33:57 +090079};
Masahiro Yamada8e678e02015-05-08 13:07:13 +090080
Masahiro Yamada629b5572015-12-03 15:33:57 +090081&soc {
82 l2: l2-cache@500c0000 {
83 compatible = "socionext,uniphier-system-cache";
84 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
85 interrupts = <0 174 4>, <0 175 4>;
86 cache-unified;
87 cache-size = <(768 * 1024)>;
88 cache-sets = <256>;
89 cache-line-size = <128>;
90 cache-level = <2>;
91 };
92
93 i2c0: i2c@58780000 {
94 compatible = "socionext,uniphier-fi2c";
95 status = "disabled";
96 reg = <0x58780000 0x80>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +090097 #address-cells = <1>;
Masahiro Yamada629b5572015-12-03 15:33:57 +090098 #size-cells = <0>;
99 interrupts = <0 41 4>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900102 clocks = <&peri_clk 4>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900103 clock-frequency = <100000>;
104 };
Masahiro Yamada8e678e02015-05-08 13:07:13 +0900105
Masahiro Yamada629b5572015-12-03 15:33:57 +0900106 i2c1: i2c@58781000 {
107 compatible = "socionext,uniphier-fi2c";
108 status = "disabled";
109 reg = <0x58781000 0x80>;
110 #address-cells = <1>;
111 #size-cells = <0>;
112 interrupts = <0 42 4>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900115 clocks = <&peri_clk 5>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900116 clock-frequency = <100000>;
117 };
Masahiro Yamada8e678e02015-05-08 13:07:13 +0900118
Masahiro Yamada629b5572015-12-03 15:33:57 +0900119 i2c2: i2c@58782000 {
120 compatible = "socionext,uniphier-fi2c";
121 status = "disabled";
122 reg = <0x58782000 0x80>;
123 #address-cells = <1>;
124 #size-cells = <0>;
125 interrupts = <0 43 4>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_i2c2>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900128 clocks = <&peri_clk 6>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900129 clock-frequency = <100000>;
130 };
Masahiro Yamada7c62f292015-10-02 13:42:21 +0900131
Masahiro Yamada629b5572015-12-03 15:33:57 +0900132 i2c3: i2c@58783000 {
133 compatible = "socionext,uniphier-fi2c";
134 status = "disabled";
135 reg = <0x58783000 0x80>;
136 #address-cells = <1>;
137 #size-cells = <0>;
138 interrupts = <0 44 4>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900141 clocks = <&peri_clk 7>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900142 clock-frequency = <100000>;
143 };
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900144
Masahiro Yamada629b5572015-12-03 15:33:57 +0900145 /* i2c4 does not exist */
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900146
Masahiro Yamada629b5572015-12-03 15:33:57 +0900147 /* chip-internal connection for DMD */
148 i2c5: i2c@58785000 {
149 compatible = "socionext,uniphier-fi2c";
150 reg = <0x58785000 0x80>;
151 #address-cells = <1>;
152 #size-cells = <0>;
153 interrupts = <0 25 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900154 clocks = <&peri_clk 9>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900155 clock-frequency = <400000>;
156 };
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900157
Masahiro Yamada629b5572015-12-03 15:33:57 +0900158 /* chip-internal connection for HDMI */
159 i2c6: i2c@58786000 {
160 compatible = "socionext,uniphier-fi2c";
161 reg = <0x58786000 0x80>;
162 #address-cells = <1>;
163 #size-cells = <0>;
164 interrupts = <0 26 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900165 clocks = <&peri_clk 10>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900166 clock-frequency = <400000>;
167 };
Masahiro Yamada1bf42502015-07-10 13:53:59 +0900168
Masahiro Yamada629b5572015-12-03 15:33:57 +0900169 usb2: usb@5a800100 {
170 compatible = "socionext,uniphier-ehci", "generic-ehci";
171 status = "disabled";
172 reg = <0x5a800100 0x100>;
173 interrupts = <0 80 4>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_usb2>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900176 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
177 resets = <&mio_rst 7>, <&mio_rst 8>, <&mio_rst 12>, <&sys_rst 8>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900178 };
Masahiro Yamada68f46892015-08-04 20:21:02 +0900179
Masahiro Yamada629b5572015-12-03 15:33:57 +0900180 usb3: usb@5a810100 {
181 compatible = "socionext,uniphier-ehci", "generic-ehci";
182 status = "disabled";
183 reg = <0x5a810100 0x100>;
184 interrupts = <0 81 4>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_usb3>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900187 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
188 resets = <&mio_rst 7>, <&mio_rst 9>, <&mio_rst 13>, <&sys_rst 8>;
Masahiro Yamada8e678e02015-05-08 13:07:13 +0900189 };
190};
Masahiro Yamada62237232015-07-25 16:23:23 +0900191
Masahiro Yamada61f838c2016-02-26 16:18:31 +0900192&refclk {
193 clock-frequency = <25000000>;
194};
195
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900196&mio_clk {
197 compatible = "socionext,uniphier-pro4-mio-clock";
198};
199
200&mio_rst {
201 compatible = "socionext,uniphier-pro4-mio-reset";
202 resets = <&sys_rst 7>;
203};
204
205&peri_clk {
206 compatible = "socionext,uniphier-pro4-peri-clock";
207};
208
209&peri_rst {
210 compatible = "socionext,uniphier-pro4-peri-reset";
211};
212
Masahiro Yamada629b5572015-12-03 15:33:57 +0900213&pinctrl {
Masahiro Yamadaebe161d2016-06-14 11:59:45 +0900214 compatible = "socionext,uniphier-pro4-pinctrl";
Masahiro Yamada629b5572015-12-03 15:33:57 +0900215};
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900216
217&sys_clk {
218 compatible = "socionext,uniphier-pro4-clock";
219};
220
221&sys_rst {
222 compatible = "socionext,uniphier-pro4-reset";
223};