blob: c30c8368cae0c2adefe3a31da59bba241280bc9d [file] [log] [blame]
Shawn Guo7c1da582013-02-04 23:09:16 +08001
2/*
3 * Copyright 2013 Freescale Semiconductor, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 */
10
Troy Kiskye6117ff2013-11-14 14:02:10 -070011#include <dt-bindings/interrupt-controller/irq.h>
Shawn Guoe1641532013-02-20 10:32:52 +080012#include "imx6q-pinfunc.h"
Shawn Guoc56009b2f2013-07-11 13:58:36 +080013#include "imx6qdl.dtsi"
Shawn Guo7c1da582013-02-04 23:09:16 +080014
15/ {
Sascha Hauera26be0f2014-01-16 13:44:19 +010016 aliases {
Philipp Zabel41beef32015-12-02 14:42:22 +010017 ipu1 = &ipu2;
Sascha Hauera26be0f2014-01-16 13:44:19 +010018 spi4 = &ecspi5;
19 };
20
Shawn Guo7c1da582013-02-04 23:09:16 +080021 cpus {
22 #address-cells = <1>;
23 #size-cells = <0>;
24
Bai Ping5d625372016-02-02 18:01:35 +080025 cpu0: cpu@0 {
Shawn Guo7c1da582013-02-04 23:09:16 +080026 compatible = "arm,cortex-a9";
Lorenzo Pieralisi7925e892013-04-18 18:34:06 +010027 device_type = "cpu";
Shawn Guo7c1da582013-02-04 23:09:16 +080028 reg = <0>;
29 next-level-cache = <&L2>;
30 operating-points = <
31 /* kHz uV */
32 1200000 1275000
33 996000 1250000
Anson Huang89ef8ef2014-02-12 17:57:02 +080034 852000 1250000
Anson Huangeabb3222014-12-05 16:23:48 +080035 792000 1175000
Anson Huang26ea5802013-12-16 16:07:37 -050036 396000 975000
Shawn Guo7c1da582013-02-04 23:09:16 +080037 >;
Anson Huang69171ed2013-12-19 09:16:48 -050038 fsl,soc-operating-points = <
39 /* ARM kHz SOC-PU uV */
40 1200000 1275000
41 996000 1250000
Anson Huang89ef8ef2014-02-12 17:57:02 +080042 852000 1250000
Anson Huang69171ed2013-12-19 09:16:48 -050043 792000 1175000
44 396000 1175000
Shawn Guo7c1da582013-02-04 23:09:16 +080045 >;
46 clock-latency = <61036>; /* two CLK32 periods */
Shawn Guo8888f652014-06-15 20:36:50 +080047 clocks = <&clks IMX6QDL_CLK_ARM>,
48 <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
49 <&clks IMX6QDL_CLK_STEP>,
50 <&clks IMX6QDL_CLK_PLL1_SW>,
51 <&clks IMX6QDL_CLK_PLL1_SYS>;
Shawn Guo7c1da582013-02-04 23:09:16 +080052 clock-names = "arm", "pll2_pfd2_396m", "step",
53 "pll1_sw", "pll1_sys";
54 arm-supply = <&reg_arm>;
55 pu-supply = <&reg_pu>;
56 soc-supply = <&reg_soc>;
57 };
58
59 cpu@1 {
60 compatible = "arm,cortex-a9";
Lorenzo Pieralisi7925e892013-04-18 18:34:06 +010061 device_type = "cpu";
Shawn Guo7c1da582013-02-04 23:09:16 +080062 reg = <1>;
63 next-level-cache = <&L2>;
64 };
65
66 cpu@2 {
67 compatible = "arm,cortex-a9";
Lorenzo Pieralisi7925e892013-04-18 18:34:06 +010068 device_type = "cpu";
Shawn Guo7c1da582013-02-04 23:09:16 +080069 reg = <2>;
70 next-level-cache = <&L2>;
71 };
72
73 cpu@3 {
74 compatible = "arm,cortex-a9";
Lorenzo Pieralisi7925e892013-04-18 18:34:06 +010075 device_type = "cpu";
Shawn Guo7c1da582013-02-04 23:09:16 +080076 reg = <3>;
77 next-level-cache = <&L2>;
78 };
79 };
80
81 soc {
Shawn Guo951ebf52013-07-23 15:25:13 +080082 ocram: sram@00900000 {
83 compatible = "mmio-sram";
84 reg = <0x00900000 0x40000>;
Shawn Guo8888f652014-06-15 20:36:50 +080085 clocks = <&clks IMX6QDL_CLK_OCRAM>;
Shawn Guo951ebf52013-07-23 15:25:13 +080086 };
87
Shawn Guo7c1da582013-02-04 23:09:16 +080088 aips-bus@02000000 { /* AIPS1 */
89 spba-bus@02000000 {
90 ecspi5: ecspi@02018000 {
91 #address-cells = <1>;
92 #size-cells = <0>;
93 compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
94 reg = <0x02018000 0x4000>;
Troy Kiskye6117ff2013-11-14 14:02:10 -070095 interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
Shawn Guo8888f652014-06-15 20:36:50 +080096 clocks = <&clks IMX6Q_CLK_ECSPI5>,
97 <&clks IMX6Q_CLK_ECSPI5>;
Shawn Guo7c1da582013-02-04 23:09:16 +080098 clock-names = "ipg", "per";
Anton Bondarenko67794022015-01-13 19:04:08 +010099 dmas = <&sdma 11 7 1>, <&sdma 12 7 2>;
100 dma-names = "rx", "tx";
Shawn Guo7c1da582013-02-04 23:09:16 +0800101 status = "disabled";
102 };
103 };
104
105 iomuxc: iomuxc@020e0000 {
106 compatible = "fsl,imx6q-iomuxc";
Shawn Guo7c1da582013-02-04 23:09:16 +0800107 };
108 };
109
Richard Zhu0fb1f802013-07-16 11:28:46 +0800110 sata: sata@02200000 {
111 compatible = "fsl,imx6q-ahci";
112 reg = <0x02200000 0x4000>;
Troy Kiskye6117ff2013-11-14 14:02:10 -0700113 interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
Shawn Guo8888f652014-06-15 20:36:50 +0800114 clocks = <&clks IMX6QDL_CLK_SATA>,
115 <&clks IMX6QDL_CLK_SATA_REF_100M>,
116 <&clks IMX6QDL_CLK_AHB>;
Richard Zhu0fb1f802013-07-16 11:28:46 +0800117 clock-names = "sata", "sata_ref", "ahb";
118 status = "disabled";
119 };
120
Lucas Stach419e2022015-12-15 17:30:09 +0100121 gpu_vg: gpu@02204000 {
122 compatible = "vivante,gc";
123 reg = <0x02204000 0x4000>;
124 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
125 clocks = <&clks IMX6QDL_CLK_OPENVG_AXI>,
126 <&clks IMX6QDL_CLK_GPU2D_CORE>;
127 clock-names = "bus", "core";
128 power-domains = <&gpc 1>;
129 };
130
Shawn Guo7c1da582013-02-04 23:09:16 +0800131 ipu2: ipu@02800000 {
Philipp Zabel4520e692014-03-05 10:21:01 +0100132 #address-cells = <1>;
133 #size-cells = <0>;
Shawn Guo7c1da582013-02-04 23:09:16 +0800134 compatible = "fsl,imx6q-ipu";
135 reg = <0x02800000 0x400000>;
Troy Kiskye6117ff2013-11-14 14:02:10 -0700136 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
137 <0 7 IRQ_TYPE_LEVEL_HIGH>;
Shawn Guo8888f652014-06-15 20:36:50 +0800138 clocks = <&clks IMX6QDL_CLK_IPU2>,
139 <&clks IMX6QDL_CLK_IPU2_DI0>,
140 <&clks IMX6QDL_CLK_IPU2_DI1>;
Shawn Guo7c1da582013-02-04 23:09:16 +0800141 clock-names = "bus", "di0", "di1";
Philipp Zabel09ebf362013-03-28 17:35:20 +0100142 resets = <&src 4>;
Philipp Zabel4520e692014-03-05 10:21:01 +0100143
Philipp Zabelc0470c32014-05-27 17:26:37 +0200144 ipu2_csi0: port@0 {
145 reg = <0>;
146 };
147
148 ipu2_csi1: port@1 {
149 reg = <1>;
150 };
151
Philipp Zabel4520e692014-03-05 10:21:01 +0100152 ipu2_di0: port@2 {
153 #address-cells = <1>;
154 #size-cells = <0>;
155 reg = <2>;
156
Joshua Clayton416196c2016-04-25 18:09:33 -0700157 ipu2_di0_disp0: disp0-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100158 };
159
Joshua Clayton416196c2016-04-25 18:09:33 -0700160 ipu2_di0_hdmi: hdmi-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100161 remote-endpoint = <&hdmi_mux_2>;
162 };
163
Joshua Clayton416196c2016-04-25 18:09:33 -0700164 ipu2_di0_mipi: mipi-endpoint {
Philipp Zabel28f2c112016-02-24 15:52:46 +0100165 remote-endpoint = <&mipi_mux_2>;
Philipp Zabel4520e692014-03-05 10:21:01 +0100166 };
167
Joshua Clayton416196c2016-04-25 18:09:33 -0700168 ipu2_di0_lvds0: lvds0-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100169 remote-endpoint = <&lvds0_mux_2>;
170 };
171
Joshua Clayton416196c2016-04-25 18:09:33 -0700172 ipu2_di0_lvds1: lvds1-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100173 remote-endpoint = <&lvds1_mux_2>;
174 };
175 };
176
177 ipu2_di1: port@3 {
178 #address-cells = <1>;
179 #size-cells = <0>;
180 reg = <3>;
181
Joshua Clayton416196c2016-04-25 18:09:33 -0700182 ipu2_di1_hdmi: hdmi-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100183 remote-endpoint = <&hdmi_mux_3>;
184 };
185
Joshua Clayton416196c2016-04-25 18:09:33 -0700186 ipu2_di1_mipi: mipi-endpoint {
Philipp Zabel28f2c112016-02-24 15:52:46 +0100187 remote-endpoint = <&mipi_mux_3>;
Philipp Zabel4520e692014-03-05 10:21:01 +0100188 };
189
Joshua Clayton416196c2016-04-25 18:09:33 -0700190 ipu2_di1_lvds0: lvds0-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100191 remote-endpoint = <&lvds0_mux_3>;
192 };
193
Joshua Clayton416196c2016-04-25 18:09:33 -0700194 ipu2_di1_lvds1: lvds1-endpoint {
Philipp Zabel4520e692014-03-05 10:21:01 +0100195 remote-endpoint = <&lvds1_mux_3>;
196 };
197 };
198 };
199 };
200
201 display-subsystem {
202 compatible = "fsl,imx-display-subsystem";
203 ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
204 };
Lucas Stach419e2022015-12-15 17:30:09 +0100205
206 gpu-subsystem {
207 compatible = "fsl,imx-gpu-subsystem";
208 cores = <&gpu_2d>, <&gpu_3d>, <&gpu_vg>;
209 };
Philipp Zabel4520e692014-03-05 10:21:01 +0100210};
211
212&hdmi {
213 compatible = "fsl,imx6q-hdmi";
214
215 port@2 {
216 reg = <2>;
217
218 hdmi_mux_2: endpoint {
219 remote-endpoint = <&ipu2_di0_hdmi>;
220 };
221 };
222
223 port@3 {
224 reg = <3>;
225
226 hdmi_mux_3: endpoint {
227 remote-endpoint = <&ipu2_di1_hdmi>;
Shawn Guo7c1da582013-02-04 23:09:16 +0800228 };
229 };
230};
Steffen Trumtrar41c04342013-03-28 16:23:35 +0100231
232&ldb {
Shawn Guo8888f652014-06-15 20:36:50 +0800233 clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
234 <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
235 <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
236 <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
Steffen Trumtrar41c04342013-03-28 16:23:35 +0100237 clock-names = "di0_pll", "di1_pll",
238 "di0_sel", "di1_sel", "di2_sel", "di3_sel",
239 "di0", "di1";
240
241 lvds-channel@0 {
Philipp Zabel4520e692014-03-05 10:21:01 +0100242 port@2 {
243 reg = <2>;
244
245 lvds0_mux_2: endpoint {
246 remote-endpoint = <&ipu2_di0_lvds0>;
247 };
248 };
249
250 port@3 {
251 reg = <3>;
252
253 lvds0_mux_3: endpoint {
254 remote-endpoint = <&ipu2_di1_lvds0>;
255 };
256 };
Steffen Trumtrar41c04342013-03-28 16:23:35 +0100257 };
258
259 lvds-channel@1 {
Philipp Zabel4520e692014-03-05 10:21:01 +0100260 port@2 {
261 reg = <2>;
262
263 lvds1_mux_2: endpoint {
264 remote-endpoint = <&ipu2_di0_lvds1>;
265 };
266 };
267
268 port@3 {
269 reg = <3>;
270
271 lvds1_mux_3: endpoint {
272 remote-endpoint = <&ipu2_di1_lvds1>;
273 };
274 };
Steffen Trumtrar41c04342013-03-28 16:23:35 +0100275 };
276};
Russell King04cec1a2013-10-16 10:19:00 +0100277
Philipp Zabel4520e692014-03-05 10:21:01 +0100278&mipi_dsi {
Liu Ying70c26522015-02-12 14:01:31 +0800279 ports {
280 port@2 {
281 reg = <2>;
Philipp Zabel4520e692014-03-05 10:21:01 +0100282
Liu Ying70c26522015-02-12 14:01:31 +0800283 mipi_mux_2: endpoint {
284 remote-endpoint = <&ipu2_di0_mipi>;
285 };
Philipp Zabel4520e692014-03-05 10:21:01 +0100286 };
Philipp Zabel4520e692014-03-05 10:21:01 +0100287
Liu Ying70c26522015-02-12 14:01:31 +0800288 port@3 {
289 reg = <3>;
Philipp Zabel4520e692014-03-05 10:21:01 +0100290
Liu Ying70c26522015-02-12 14:01:31 +0800291 mipi_mux_3: endpoint {
292 remote-endpoint = <&ipu2_di1_mipi>;
293 };
Philipp Zabel4520e692014-03-05 10:21:01 +0100294 };
295 };
Russell King04cec1a2013-10-16 10:19:00 +0100296};
Philipp Zabela04a0b62014-11-11 19:12:47 -0200297
298&vpu {
299 compatible = "fsl,imx6q-vpu", "cnm,coda960";
300};