blob: 950f07ba03371ef102289238a48c008a40bb8b86 [file] [log] [blame]
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +09001/*
Masahiro Yamada77896e42016-08-30 14:02:41 +09002 * Device Tree Source for UniPhier PXs2 SoC
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +09003 *
Masahiro Yamada77896e42016-08-30 14:02:41 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +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 Yamadaa5e921b2015-08-04 20:21:04 +090047
48/ {
Masahiro Yamada77896e42016-08-30 14:02:41 +090049 compatible = "socionext,uniphier-pxs2";
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +090050
51 cpus {
52 #address-cells = <1>;
53 #size-cells = <0>;
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +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 Yamadaa5e921b2015-08-04 20:21:04 +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 Yamadaa5e921b2015-08-04 20:21:04 +090069 };
70
71 cpu@2 {
72 device_type = "cpu";
73 compatible = "arm,cortex-a9";
74 reg = <2>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090075 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090076 next-level-cache = <&l2>;
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +090077 };
78
79 cpu@3 {
80 device_type = "cpu";
81 compatible = "arm,cortex-a9";
82 reg = <3>;
Masahiro Yamada3bdba5a2016-08-29 03:27:42 +090083 enable-method = "psci";
Masahiro Yamada7c62f292015-10-02 13:42:21 +090084 next-level-cache = <&l2>;
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +090085 };
86 };
87
88 clocks {
89 arm_timer_clk: arm_timer_clk {
90 #clock-cells = <0>;
91 compatible = "fixed-clock";
92 clock-frequency = <50000000>;
93 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +090094 };
Masahiro Yamada629b5572015-12-03 15:33:57 +090095};
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +090096
Masahiro Yamada629b5572015-12-03 15:33:57 +090097&soc {
98 l2: l2-cache@500c0000 {
99 compatible = "socionext,uniphier-system-cache";
100 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
101 interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
102 cache-unified;
103 cache-size = <(1280 * 1024)>;
104 cache-sets = <512>;
105 cache-line-size = <128>;
106 cache-level = <2>;
107 };
108
109 i2c0: i2c@58780000 {
110 compatible = "socionext,uniphier-fi2c";
111 status = "disabled";
112 reg = <0x58780000 0x80>;
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900113 #address-cells = <1>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900114 #size-cells = <0>;
115 interrupts = <0 41 4>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900118 clocks = <&peri_clk 4>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900119 clock-frequency = <100000>;
120 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900121
Masahiro Yamada629b5572015-12-03 15:33:57 +0900122 i2c1: i2c@58781000 {
123 compatible = "socionext,uniphier-fi2c";
124 status = "disabled";
125 reg = <0x58781000 0x80>;
126 #address-cells = <1>;
127 #size-cells = <0>;
128 interrupts = <0 42 4>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900131 clocks = <&peri_clk 5>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900132 clock-frequency = <100000>;
133 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900134
Masahiro Yamada629b5572015-12-03 15:33:57 +0900135 i2c2: i2c@58782000 {
136 compatible = "socionext,uniphier-fi2c";
137 status = "disabled";
138 reg = <0x58782000 0x80>;
139 #address-cells = <1>;
140 #size-cells = <0>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_i2c2>;
143 interrupts = <0 43 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900144 clocks = <&peri_clk 6>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900145 clock-frequency = <100000>;
146 };
Masahiro Yamada7c62f292015-10-02 13:42:21 +0900147
Masahiro Yamada629b5572015-12-03 15:33:57 +0900148 i2c3: i2c@58783000 {
149 compatible = "socionext,uniphier-fi2c";
150 status = "disabled";
151 reg = <0x58783000 0x80>;
152 #address-cells = <1>;
153 #size-cells = <0>;
154 interrupts = <0 44 4>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900157 clocks = <&peri_clk 7>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900158 clock-frequency = <100000>;
159 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900160
Masahiro Yamada629b5572015-12-03 15:33:57 +0900161 /* chip-internal connection for DMD */
162 i2c4: i2c@58784000 {
163 compatible = "socionext,uniphier-fi2c";
164 reg = <0x58784000 0x80>;
165 #address-cells = <1>;
166 #size-cells = <0>;
167 interrupts = <0 45 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900168 clocks = <&peri_clk 8>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900169 clock-frequency = <400000>;
170 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900171
Masahiro Yamada629b5572015-12-03 15:33:57 +0900172 /* chip-internal connection for STM */
173 i2c5: i2c@58785000 {
174 compatible = "socionext,uniphier-fi2c";
175 reg = <0x58785000 0x80>;
176 #address-cells = <1>;
177 #size-cells = <0>;
178 interrupts = <0 25 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900179 clocks = <&peri_clk 9>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900180 clock-frequency = <400000>;
181 };
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900182
Masahiro Yamada629b5572015-12-03 15:33:57 +0900183 /* chip-internal connection for HDMI */
184 i2c6: i2c@58786000 {
185 compatible = "socionext,uniphier-fi2c";
186 reg = <0x58786000 0x80>;
187 #address-cells = <1>;
188 #size-cells = <0>;
189 interrupts = <0 26 4>;
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900190 clocks = <&peri_clk 10>;
Masahiro Yamada629b5572015-12-03 15:33:57 +0900191 clock-frequency = <400000>;
Masahiro Yamadaa5e921b2015-08-04 20:21:04 +0900192 };
193};
194
Masahiro Yamada61f838c2016-02-26 16:18:31 +0900195&refclk {
196 clock-frequency = <25000000>;
197};
198
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900199&mio_clk {
Masahiro Yamada1bdb60e2016-10-21 17:27:57 +0900200 compatible = "socionext,uniphier-pxs2-sd-clock";
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900201};
202
203&mio_rst {
Masahiro Yamada1bdb60e2016-10-21 17:27:57 +0900204 compatible = "socionext,uniphier-pxs2-sd-reset";
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900205};
206
207&peri_clk {
208 compatible = "socionext,uniphier-pxs2-peri-clock";
209};
210
211&peri_rst {
212 compatible = "socionext,uniphier-pxs2-peri-reset";
213};
214
Masahiro Yamada629b5572015-12-03 15:33:57 +0900215&pinctrl {
Masahiro Yamadaebe161d2016-06-14 11:59:45 +0900216 compatible = "socionext,uniphier-pxs2-pinctrl";
Masahiro Yamada629b5572015-12-03 15:33:57 +0900217};
Masahiro Yamadaad0561d2016-08-30 19:13:09 +0900218
219&sys_clk {
220 compatible = "socionext,uniphier-pxs2-clock";
221};
222
223&sys_rst {
224 compatible = "socionext,uniphier-pxs2-reset";
225};