Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 1 | |
| 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 Kisky | e6117ff | 2013-11-14 14:02:10 -0700 | [diff] [blame] | 11 | #include <dt-bindings/interrupt-controller/irq.h> |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 12 | #include "imx6q-pinfunc.h" |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 13 | #include "imx6qdl.dtsi" |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 14 | |
| 15 | / { |
Sascha Hauer | a26be0f | 2014-01-16 13:44:19 +0100 | [diff] [blame] | 16 | aliases { |
| 17 | spi4 = &ecspi5; |
| 18 | }; |
| 19 | |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 20 | cpus { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | |
| 24 | cpu@0 { |
| 25 | compatible = "arm,cortex-a9"; |
Lorenzo Pieralisi | 7925e89 | 2013-04-18 18:34:06 +0100 | [diff] [blame] | 26 | device_type = "cpu"; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 27 | reg = <0>; |
| 28 | next-level-cache = <&L2>; |
| 29 | operating-points = < |
| 30 | /* kHz uV */ |
| 31 | 1200000 1275000 |
| 32 | 996000 1250000 |
Anson Huang | 89ef8ef | 2014-02-12 17:57:02 +0800 | [diff] [blame] | 33 | 852000 1250000 |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 34 | 792000 1150000 |
Anson Huang | 26ea580 | 2013-12-16 16:07:37 -0500 | [diff] [blame] | 35 | 396000 975000 |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 36 | >; |
Anson Huang | 69171ed | 2013-12-19 09:16:48 -0500 | [diff] [blame] | 37 | fsl,soc-operating-points = < |
| 38 | /* ARM kHz SOC-PU uV */ |
| 39 | 1200000 1275000 |
| 40 | 996000 1250000 |
Anson Huang | 89ef8ef | 2014-02-12 17:57:02 +0800 | [diff] [blame] | 41 | 852000 1250000 |
Anson Huang | 69171ed | 2013-12-19 09:16:48 -0500 | [diff] [blame] | 42 | 792000 1175000 |
| 43 | 396000 1175000 |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 44 | >; |
| 45 | clock-latency = <61036>; /* two CLK32 periods */ |
| 46 | clocks = <&clks 104>, <&clks 6>, <&clks 16>, |
| 47 | <&clks 17>, <&clks 170>; |
| 48 | clock-names = "arm", "pll2_pfd2_396m", "step", |
| 49 | "pll1_sw", "pll1_sys"; |
| 50 | arm-supply = <®_arm>; |
| 51 | pu-supply = <®_pu>; |
| 52 | soc-supply = <®_soc>; |
| 53 | }; |
| 54 | |
| 55 | cpu@1 { |
| 56 | compatible = "arm,cortex-a9"; |
Lorenzo Pieralisi | 7925e89 | 2013-04-18 18:34:06 +0100 | [diff] [blame] | 57 | device_type = "cpu"; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 58 | reg = <1>; |
| 59 | next-level-cache = <&L2>; |
| 60 | }; |
| 61 | |
| 62 | cpu@2 { |
| 63 | compatible = "arm,cortex-a9"; |
Lorenzo Pieralisi | 7925e89 | 2013-04-18 18:34:06 +0100 | [diff] [blame] | 64 | device_type = "cpu"; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 65 | reg = <2>; |
| 66 | next-level-cache = <&L2>; |
| 67 | }; |
| 68 | |
| 69 | cpu@3 { |
| 70 | compatible = "arm,cortex-a9"; |
Lorenzo Pieralisi | 7925e89 | 2013-04-18 18:34:06 +0100 | [diff] [blame] | 71 | device_type = "cpu"; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 72 | reg = <3>; |
| 73 | next-level-cache = <&L2>; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | soc { |
Shawn Guo | 951ebf5 | 2013-07-23 15:25:13 +0800 | [diff] [blame] | 78 | ocram: sram@00900000 { |
| 79 | compatible = "mmio-sram"; |
| 80 | reg = <0x00900000 0x40000>; |
| 81 | clocks = <&clks 142>; |
| 82 | }; |
| 83 | |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 84 | aips-bus@02000000 { /* AIPS1 */ |
| 85 | spba-bus@02000000 { |
| 86 | ecspi5: ecspi@02018000 { |
| 87 | #address-cells = <1>; |
| 88 | #size-cells = <0>; |
| 89 | compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi"; |
| 90 | reg = <0x02018000 0x4000>; |
Troy Kisky | e6117ff | 2013-11-14 14:02:10 -0700 | [diff] [blame] | 91 | interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 92 | clocks = <&clks 116>, <&clks 116>; |
| 93 | clock-names = "ipg", "per"; |
| 94 | status = "disabled"; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | iomuxc: iomuxc@020e0000 { |
| 99 | compatible = "fsl,imx6q-iomuxc"; |
Shawn Guo | b72ce92 | 2013-07-12 11:38:50 +0800 | [diff] [blame] | 100 | |
| 101 | ipu2 { |
| 102 | pinctrl_ipu2_1: ipu2grp-1 { |
| 103 | fsl,pins = < |
| 104 | MX6QDL_PAD_DI0_DISP_CLK__IPU2_DI0_DISP_CLK 0x10 |
| 105 | MX6QDL_PAD_DI0_PIN15__IPU2_DI0_PIN15 0x10 |
| 106 | MX6QDL_PAD_DI0_PIN2__IPU2_DI0_PIN02 0x10 |
| 107 | MX6QDL_PAD_DI0_PIN3__IPU2_DI0_PIN03 0x10 |
| 108 | MX6QDL_PAD_DI0_PIN4__IPU2_DI0_PIN04 0x80000000 |
| 109 | MX6QDL_PAD_DISP0_DAT0__IPU2_DISP0_DATA00 0x10 |
| 110 | MX6QDL_PAD_DISP0_DAT1__IPU2_DISP0_DATA01 0x10 |
| 111 | MX6QDL_PAD_DISP0_DAT2__IPU2_DISP0_DATA02 0x10 |
| 112 | MX6QDL_PAD_DISP0_DAT3__IPU2_DISP0_DATA03 0x10 |
| 113 | MX6QDL_PAD_DISP0_DAT4__IPU2_DISP0_DATA04 0x10 |
| 114 | MX6QDL_PAD_DISP0_DAT5__IPU2_DISP0_DATA05 0x10 |
| 115 | MX6QDL_PAD_DISP0_DAT6__IPU2_DISP0_DATA06 0x10 |
| 116 | MX6QDL_PAD_DISP0_DAT7__IPU2_DISP0_DATA07 0x10 |
| 117 | MX6QDL_PAD_DISP0_DAT8__IPU2_DISP0_DATA08 0x10 |
| 118 | MX6QDL_PAD_DISP0_DAT9__IPU2_DISP0_DATA09 0x10 |
| 119 | MX6QDL_PAD_DISP0_DAT10__IPU2_DISP0_DATA10 0x10 |
| 120 | MX6QDL_PAD_DISP0_DAT11__IPU2_DISP0_DATA11 0x10 |
| 121 | MX6QDL_PAD_DISP0_DAT12__IPU2_DISP0_DATA12 0x10 |
| 122 | MX6QDL_PAD_DISP0_DAT13__IPU2_DISP0_DATA13 0x10 |
| 123 | MX6QDL_PAD_DISP0_DAT14__IPU2_DISP0_DATA14 0x10 |
| 124 | MX6QDL_PAD_DISP0_DAT15__IPU2_DISP0_DATA15 0x10 |
| 125 | MX6QDL_PAD_DISP0_DAT16__IPU2_DISP0_DATA16 0x10 |
| 126 | MX6QDL_PAD_DISP0_DAT17__IPU2_DISP0_DATA17 0x10 |
| 127 | MX6QDL_PAD_DISP0_DAT18__IPU2_DISP0_DATA18 0x10 |
| 128 | MX6QDL_PAD_DISP0_DAT19__IPU2_DISP0_DATA19 0x10 |
| 129 | MX6QDL_PAD_DISP0_DAT20__IPU2_DISP0_DATA20 0x10 |
| 130 | MX6QDL_PAD_DISP0_DAT21__IPU2_DISP0_DATA21 0x10 |
| 131 | MX6QDL_PAD_DISP0_DAT22__IPU2_DISP0_DATA22 0x10 |
| 132 | MX6QDL_PAD_DISP0_DAT23__IPU2_DISP0_DATA23 0x10 |
| 133 | >; |
| 134 | }; |
| 135 | }; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 136 | }; |
| 137 | }; |
| 138 | |
Richard Zhu | 0fb1f80 | 2013-07-16 11:28:46 +0800 | [diff] [blame] | 139 | sata: sata@02200000 { |
| 140 | compatible = "fsl,imx6q-ahci"; |
| 141 | reg = <0x02200000 0x4000>; |
Troy Kisky | e6117ff | 2013-11-14 14:02:10 -0700 | [diff] [blame] | 142 | interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; |
Richard Zhu | 0fb1f80 | 2013-07-16 11:28:46 +0800 | [diff] [blame] | 143 | clocks = <&clks 154>, <&clks 187>, <&clks 105>; |
| 144 | clock-names = "sata", "sata_ref", "ahb"; |
| 145 | status = "disabled"; |
| 146 | }; |
| 147 | |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 148 | ipu2: ipu@02800000 { |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 149 | #address-cells = <1>; |
| 150 | #size-cells = <0>; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 151 | compatible = "fsl,imx6q-ipu"; |
| 152 | reg = <0x02800000 0x400000>; |
Troy Kisky | e6117ff | 2013-11-14 14:02:10 -0700 | [diff] [blame] | 153 | interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>, |
| 154 | <0 7 IRQ_TYPE_LEVEL_HIGH>; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 155 | clocks = <&clks 133>, <&clks 134>, <&clks 137>; |
| 156 | clock-names = "bus", "di0", "di1"; |
Philipp Zabel | 09ebf36 | 2013-03-28 17:35:20 +0100 | [diff] [blame] | 157 | resets = <&src 4>; |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 158 | |
Philipp Zabel | c0470c3 | 2014-05-27 17:26:37 +0200 | [diff] [blame] | 159 | ipu2_csi0: port@0 { |
| 160 | reg = <0>; |
| 161 | }; |
| 162 | |
| 163 | ipu2_csi1: port@1 { |
| 164 | reg = <1>; |
| 165 | }; |
| 166 | |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 167 | ipu2_di0: port@2 { |
| 168 | #address-cells = <1>; |
| 169 | #size-cells = <0>; |
| 170 | reg = <2>; |
| 171 | |
| 172 | ipu2_di0_disp0: endpoint@0 { |
| 173 | }; |
| 174 | |
| 175 | ipu2_di0_hdmi: endpoint@1 { |
| 176 | remote-endpoint = <&hdmi_mux_2>; |
| 177 | }; |
| 178 | |
| 179 | ipu2_di0_mipi: endpoint@2 { |
| 180 | }; |
| 181 | |
| 182 | ipu2_di0_lvds0: endpoint@3 { |
| 183 | remote-endpoint = <&lvds0_mux_2>; |
| 184 | }; |
| 185 | |
| 186 | ipu2_di0_lvds1: endpoint@4 { |
| 187 | remote-endpoint = <&lvds1_mux_2>; |
| 188 | }; |
| 189 | }; |
| 190 | |
| 191 | ipu2_di1: port@3 { |
| 192 | #address-cells = <1>; |
| 193 | #size-cells = <0>; |
| 194 | reg = <3>; |
| 195 | |
| 196 | ipu2_di1_hdmi: endpoint@1 { |
| 197 | remote-endpoint = <&hdmi_mux_3>; |
| 198 | }; |
| 199 | |
| 200 | ipu2_di1_mipi: endpoint@2 { |
| 201 | }; |
| 202 | |
| 203 | ipu2_di1_lvds0: endpoint@3 { |
| 204 | remote-endpoint = <&lvds0_mux_3>; |
| 205 | }; |
| 206 | |
| 207 | ipu2_di1_lvds1: endpoint@4 { |
| 208 | remote-endpoint = <&lvds1_mux_3>; |
| 209 | }; |
| 210 | }; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | display-subsystem { |
| 215 | compatible = "fsl,imx-display-subsystem"; |
| 216 | ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>; |
| 217 | }; |
| 218 | }; |
| 219 | |
| 220 | &hdmi { |
| 221 | compatible = "fsl,imx6q-hdmi"; |
| 222 | |
| 223 | port@2 { |
| 224 | reg = <2>; |
| 225 | |
| 226 | hdmi_mux_2: endpoint { |
| 227 | remote-endpoint = <&ipu2_di0_hdmi>; |
| 228 | }; |
| 229 | }; |
| 230 | |
| 231 | port@3 { |
| 232 | reg = <3>; |
| 233 | |
| 234 | hdmi_mux_3: endpoint { |
| 235 | remote-endpoint = <&ipu2_di1_hdmi>; |
Shawn Guo | 7c1da58 | 2013-02-04 23:09:16 +0800 | [diff] [blame] | 236 | }; |
| 237 | }; |
| 238 | }; |
Steffen Trumtrar | 41c0434 | 2013-03-28 16:23:35 +0100 | [diff] [blame] | 239 | |
| 240 | &ldb { |
| 241 | clocks = <&clks 33>, <&clks 34>, |
| 242 | <&clks 39>, <&clks 40>, <&clks 41>, <&clks 42>, |
| 243 | <&clks 135>, <&clks 136>; |
| 244 | clock-names = "di0_pll", "di1_pll", |
| 245 | "di0_sel", "di1_sel", "di2_sel", "di3_sel", |
| 246 | "di0", "di1"; |
| 247 | |
| 248 | lvds-channel@0 { |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 249 | port@2 { |
| 250 | reg = <2>; |
| 251 | |
| 252 | lvds0_mux_2: endpoint { |
| 253 | remote-endpoint = <&ipu2_di0_lvds0>; |
| 254 | }; |
| 255 | }; |
| 256 | |
| 257 | port@3 { |
| 258 | reg = <3>; |
| 259 | |
| 260 | lvds0_mux_3: endpoint { |
| 261 | remote-endpoint = <&ipu2_di1_lvds0>; |
| 262 | }; |
| 263 | }; |
Steffen Trumtrar | 41c0434 | 2013-03-28 16:23:35 +0100 | [diff] [blame] | 264 | }; |
| 265 | |
| 266 | lvds-channel@1 { |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 267 | port@2 { |
| 268 | reg = <2>; |
| 269 | |
| 270 | lvds1_mux_2: endpoint { |
| 271 | remote-endpoint = <&ipu2_di0_lvds1>; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | port@3 { |
| 276 | reg = <3>; |
| 277 | |
| 278 | lvds1_mux_3: endpoint { |
| 279 | remote-endpoint = <&ipu2_di1_lvds1>; |
| 280 | }; |
| 281 | }; |
Steffen Trumtrar | 41c0434 | 2013-03-28 16:23:35 +0100 | [diff] [blame] | 282 | }; |
| 283 | }; |
Russell King | 04cec1a | 2013-10-16 10:19:00 +0100 | [diff] [blame] | 284 | |
Philipp Zabel | 4520e69 | 2014-03-05 10:21:01 +0100 | [diff] [blame] | 285 | &mipi_dsi { |
| 286 | port@2 { |
| 287 | reg = <2>; |
| 288 | |
| 289 | mipi_mux_2: endpoint { |
| 290 | remote-endpoint = <&ipu2_di0_mipi>; |
| 291 | }; |
| 292 | }; |
| 293 | |
| 294 | port@3 { |
| 295 | reg = <3>; |
| 296 | |
| 297 | mipi_mux_3: endpoint { |
| 298 | remote-endpoint = <&ipu2_di1_mipi>; |
| 299 | }; |
| 300 | }; |
Russell King | 04cec1a | 2013-10-16 10:19:00 +0100 | [diff] [blame] | 301 | }; |