| 1 |
// SPDX-License-Identifier: GPL-2.0+ |
| 2 |
/* |
| 3 |
* Copyright (C) 2016 Freescale Semiconductor, Inc. |
| 4 |
* Copyright 2017-2020 NXP |
| 5 |
* Dong Aisheng <[email protected]> |
| 6 |
*/ |
| 7 |
|
| 8 |
#include <dt-bindings/clock/imx8-clock.h> |
| 9 |
#include <dt-bindings/clock/imx8-lpcg.h> |
| 10 |
#include <dt-bindings/firmware/imx/rsrc.h> |
| 11 |
#include <dt-bindings/gpio/gpio.h> |
| 12 |
#include <dt-bindings/input/input.h> |
| 13 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 14 |
#include <dt-bindings/pinctrl/pads-imx8qxp.h> |
| 15 |
#include <dt-bindings/thermal/thermal.h> |
| 16 |
|
| 17 |
/ { |
| 18 |
interrupt-parent = <&gic>; |
| 19 |
#address-cells = <2>; |
| 20 |
#size-cells = <2>; |
| 21 |
|
| 22 |
aliases { |
| 23 |
ethernet0 = &fec1; |
| 24 |
ethernet1 = &fec2; |
| 25 |
gpio0 = &lsio_gpio0; |
| 26 |
gpio1 = &lsio_gpio1; |
| 27 |
gpio2 = &lsio_gpio2; |
| 28 |
gpio3 = &lsio_gpio3; |
| 29 |
gpio4 = &lsio_gpio4; |
| 30 |
gpio5 = &lsio_gpio5; |
| 31 |
gpio6 = &lsio_gpio6; |
| 32 |
gpio7 = &lsio_gpio7; |
| 33 |
i2c0 = &i2c0; |
| 34 |
i2c1 = &i2c1; |
| 35 |
i2c2 = &i2c2; |
| 36 |
i2c3 = &i2c3; |
| 37 |
mmc0 = &usdhc1; |
| 38 |
mmc1 = &usdhc2; |
| 39 |
mmc2 = &usdhc3; |
| 40 |
mu0 = &lsio_mu0; |
| 41 |
mu1 = &lsio_mu1; |
| 42 |
mu2 = &lsio_mu2; |
| 43 |
mu3 = &lsio_mu3; |
| 44 |
mu4 = &lsio_mu4; |
| 45 |
serial0 = &lpuart0; |
| 46 |
serial1 = &lpuart1; |
| 47 |
serial2 = &lpuart2; |
| 48 |
serial3 = &lpuart3; |
| 49 |
spi0 = &lpspi0; |
| 50 |
spi1 = &lpspi1; |
| 51 |
spi2 = &lpspi2; |
| 52 |
spi3 = &lpspi3; |
| 53 |
vpu-core0 = &vpu_core0; |
| 54 |
vpu-core1 = &vpu_core1; |
| 55 |
}; |
| 56 |
|
| 57 |
cpus { |
| 58 |
#address-cells = <2>; |
| 59 |
#size-cells = <0>; |
| 60 |
|
| 61 |
/* We have 1 clusters with 4 Cortex-A35 cores */ |
| 62 |
A35_0: cpu@0 { |
| 63 |
device_type = "cpu"; |
| 64 |
compatible = "arm,cortex-a35"; |
| 65 |
reg = <0x0 0x0>; |
| 66 |
enable-method = "psci"; |
| 67 |
i-cache-size = <0x8000>; |
| 68 |
i-cache-line-size = <64>; |
| 69 |
i-cache-sets = <256>; |
| 70 |
d-cache-size = <0x8000>; |
| 71 |
d-cache-line-size = <64>; |
| 72 |
d-cache-sets = <128>; |
| 73 |
next-level-cache = <&A35_L2>; |
| 74 |
clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; |
| 75 |
operating-points-v2 = <&a35_opp_table>; |
| 76 |
#cooling-cells = <2>; |
| 77 |
}; |
| 78 |
|
| 79 |
A35_1: cpu@1 { |
| 80 |
device_type = "cpu"; |
| 81 |
compatible = "arm,cortex-a35"; |
| 82 |
reg = <0x0 0x1>; |
| 83 |
enable-method = "psci"; |
| 84 |
i-cache-size = <0x8000>; |
| 85 |
i-cache-line-size = <64>; |
| 86 |
i-cache-sets = <256>; |
| 87 |
d-cache-size = <0x8000>; |
| 88 |
d-cache-line-size = <64>; |
| 89 |
d-cache-sets = <128>; |
| 90 |
next-level-cache = <&A35_L2>; |
| 91 |
clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; |
| 92 |
operating-points-v2 = <&a35_opp_table>; |
| 93 |
#cooling-cells = <2>; |
| 94 |
}; |
| 95 |
|
| 96 |
A35_2: cpu@2 { |
| 97 |
device_type = "cpu"; |
| 98 |
compatible = "arm,cortex-a35"; |
| 99 |
reg = <0x0 0x2>; |
| 100 |
enable-method = "psci"; |
| 101 |
i-cache-size = <0x8000>; |
| 102 |
i-cache-line-size = <64>; |
| 103 |
i-cache-sets = <256>; |
| 104 |
d-cache-size = <0x8000>; |
| 105 |
d-cache-line-size = <64>; |
| 106 |
d-cache-sets = <128>; |
| 107 |
next-level-cache = <&A35_L2>; |
| 108 |
clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; |
| 109 |
operating-points-v2 = <&a35_opp_table>; |
| 110 |
#cooling-cells = <2>; |
| 111 |
}; |
| 112 |
|
| 113 |
A35_3: cpu@3 { |
| 114 |
device_type = "cpu"; |
| 115 |
compatible = "arm,cortex-a35"; |
| 116 |
reg = <0x0 0x3>; |
| 117 |
enable-method = "psci"; |
| 118 |
i-cache-size = <0x8000>; |
| 119 |
i-cache-line-size = <64>; |
| 120 |
i-cache-sets = <256>; |
| 121 |
d-cache-size = <0x8000>; |
| 122 |
d-cache-line-size = <64>; |
| 123 |
d-cache-sets = <128>; |
| 124 |
next-level-cache = <&A35_L2>; |
| 125 |
clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; |
| 126 |
operating-points-v2 = <&a35_opp_table>; |
| 127 |
#cooling-cells = <2>; |
| 128 |
}; |
| 129 |
|
| 130 |
A35_L2: l2-cache0 { |
| 131 |
compatible = "cache"; |
| 132 |
cache-level = <2>; |
| 133 |
cache-unified; |
| 134 |
cache-size = <0x80000>; |
| 135 |
cache-line-size = <64>; |
| 136 |
cache-sets = <1024>; |
| 137 |
}; |
| 138 |
}; |
| 139 |
|
| 140 |
a35_opp_table: opp-table { |
| 141 |
compatible = "operating-points-v2"; |
| 142 |
opp-shared; |
| 143 |
|
| 144 |
opp-900000000 { |
| 145 |
opp-hz = /bits/ 64 <900000000>; |
| 146 |
opp-microvolt = <1000000>; |
| 147 |
clock-latency-ns = <150000>; |
| 148 |
}; |
| 149 |
|
| 150 |
opp-1200000000 { |
| 151 |
opp-hz = /bits/ 64 <1200000000>; |
| 152 |
opp-microvolt = <1100000>; |
| 153 |
clock-latency-ns = <150000>; |
| 154 |
opp-suspend; |
| 155 |
}; |
| 156 |
}; |
| 157 |
|
| 158 |
gic: interrupt-controller@51a00000 { |
| 159 |
compatible = "arm,gic-v3"; |
| 160 |
reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */ |
| 161 |
<0x0 0x51b00000 0 0xc0000>; /* GICR (RD_base + SGI_base) */ |
| 162 |
#address-cells = <0>; |
| 163 |
#interrupt-cells = <3>; |
| 164 |
interrupt-controller; |
| 165 |
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 166 |
}; |
| 167 |
|
| 168 |
reserved-memory { |
| 169 |
#address-cells = <2>; |
| 170 |
#size-cells = <2>; |
| 171 |
ranges; |
| 172 |
|
| 173 |
decoder_boot: decoder-boot@84000000 { |
| 174 |
reg = <0 0x84000000 0 0x2000000>; |
| 175 |
no-map; |
| 176 |
}; |
| 177 |
|
| 178 |
encoder_boot: encoder-boot@86000000 { |
| 179 |
reg = <0 0x86000000 0 0x200000>; |
| 180 |
no-map; |
| 181 |
}; |
| 182 |
|
| 183 |
decoder_rpc: decoder-rpc@92000000 { |
| 184 |
reg = <0 0x92000000 0 0x100000>; |
| 185 |
no-map; |
| 186 |
}; |
| 187 |
|
| 188 |
dsp_reserved: dsp@92400000 { |
| 189 |
reg = <0 0x92400000 0 0x2000000>; |
| 190 |
no-map; |
| 191 |
status = "disabled"; |
| 192 |
}; |
| 193 |
|
| 194 |
encoder_rpc: encoder-rpc@94400000 { |
| 195 |
reg = <0 0x94400000 0 0x700000>; |
| 196 |
no-map; |
| 197 |
}; |
| 198 |
}; |
| 199 |
|
| 200 |
pmu { |
| 201 |
compatible = "arm,cortex-a35-pmu"; |
| 202 |
interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 203 |
}; |
| 204 |
|
| 205 |
psci { |
| 206 |
compatible = "arm,psci-1.0"; |
| 207 |
method = "smc"; |
| 208 |
}; |
| 209 |
|
| 210 |
system-controller { |
| 211 |
compatible = "fsl,imx-scu"; |
| 212 |
mbox-names = "tx0", |
| 213 |
"rx0", |
| 214 |
"gip3"; |
| 215 |
mboxes = <&lsio_mu1 0 0 |
| 216 |
&lsio_mu1 1 0 |
| 217 |
&lsio_mu1 3 3>; |
| 218 |
|
| 219 |
pd: power-controller { |
| 220 |
compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd"; |
| 221 |
#power-domain-cells = <1>; |
| 222 |
}; |
| 223 |
|
| 224 |
clk: clock-controller { |
| 225 |
compatible = "fsl,imx8qxp-clk", "fsl,scu-clk"; |
| 226 |
#clock-cells = <2>; |
| 227 |
}; |
| 228 |
|
| 229 |
iomuxc: pinctrl { |
| 230 |
compatible = "fsl,imx8qxp-iomuxc"; |
| 231 |
}; |
| 232 |
|
| 233 |
ocotp: ocotp { |
| 234 |
compatible = "fsl,imx8qxp-scu-ocotp"; |
| 235 |
#address-cells = <1>; |
| 236 |
#size-cells = <1>; |
| 237 |
|
| 238 |
fec_mac0: mac@2c4 { |
| 239 |
reg = <0x2c4 6>; |
| 240 |
}; |
| 241 |
|
| 242 |
fec_mac1: mac@2c6 { |
| 243 |
reg = <0x2c6 6>; |
| 244 |
}; |
| 245 |
}; |
| 246 |
|
| 247 |
scu_key: keys { |
| 248 |
compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key"; |
| 249 |
linux,keycodes = <KEY_POWER>; |
| 250 |
wakeup-source; |
| 251 |
status = "disabled"; |
| 252 |
}; |
| 253 |
|
| 254 |
scu_reset: reset-controller { |
| 255 |
compatible = "fsl,imx-scu-reset"; |
| 256 |
#reset-cells = <1>; |
| 257 |
}; |
| 258 |
|
| 259 |
rtc: rtc { |
| 260 |
compatible = "fsl,imx8qxp-sc-rtc"; |
| 261 |
}; |
| 262 |
|
| 263 |
watchdog { |
| 264 |
compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt"; |
| 265 |
timeout-sec = <60>; |
| 266 |
}; |
| 267 |
|
| 268 |
tsens: thermal-sensor { |
| 269 |
compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; |
| 270 |
#thermal-sensor-cells = <1>; |
| 271 |
}; |
| 272 |
}; |
| 273 |
|
| 274 |
timer { |
| 275 |
compatible = "arm,armv8-timer"; |
| 276 |
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* Physical Secure */ |
| 277 |
<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* Physical Non-Secure */ |
| 278 |
<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* Virtual */ |
| 279 |
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* Hypervisor */ |
| 280 |
}; |
| 281 |
|
| 282 |
clk_dummy: clock-dummy { |
| 283 |
compatible = "fixed-clock"; |
| 284 |
#clock-cells = <0>; |
| 285 |
clock-frequency = <0>; |
| 286 |
clock-output-names = "clk_dummy"; |
| 287 |
}; |
| 288 |
|
| 289 |
xtal32k: clock-xtal32k { |
| 290 |
compatible = "fixed-clock"; |
| 291 |
#clock-cells = <0>; |
| 292 |
clock-frequency = <32768>; |
| 293 |
clock-output-names = "xtal_32KHz"; |
| 294 |
}; |
| 295 |
|
| 296 |
xtal24m: clock-xtal24m { |
| 297 |
compatible = "fixed-clock"; |
| 298 |
#clock-cells = <0>; |
| 299 |
clock-frequency = <24000000>; |
| 300 |
clock-output-names = "xtal_24MHz"; |
| 301 |
}; |
| 302 |
|
| 303 |
thermal_zones: thermal-zones { |
| 304 |
cpu0-thermal { |
| 305 |
polling-delay-passive = <250>; |
| 306 |
polling-delay = <2000>; |
| 307 |
thermal-sensors = <&tsens IMX_SC_R_SYSTEM>; |
| 308 |
|
| 309 |
trips { |
| 310 |
cpu_alert0: trip0 { |
| 311 |
temperature = <107000>; |
| 312 |
hysteresis = <2000>; |
| 313 |
type = "passive"; |
| 314 |
}; |
| 315 |
|
| 316 |
cpu_crit0: trip1 { |
| 317 |
temperature = <127000>; |
| 318 |
hysteresis = <2000>; |
| 319 |
type = "critical"; |
| 320 |
}; |
| 321 |
}; |
| 322 |
|
| 323 |
cooling-maps { |
| 324 |
map0 { |
| 325 |
trip = <&cpu_alert0>; |
| 326 |
cooling-device = |
| 327 |
<&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 328 |
<&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 329 |
<&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 330 |
<&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 331 |
}; |
| 332 |
}; |
| 333 |
}; |
| 334 |
}; |
| 335 |
|
| 336 |
/* sorted in register address */ |
| 337 |
#include "imx8-ss-img.dtsi" |
| 338 |
#include "imx8-ss-vpu.dtsi" |
| 339 |
#include "imx8-ss-security.dtsi" |
| 340 |
#include "imx8-ss-cm40.dtsi" |
| 341 |
#include "imx8-ss-gpu0.dtsi" |
| 342 |
#include "imx8-ss-adma.dtsi" |
| 343 |
#include "imx8-ss-conn.dtsi" |
| 344 |
#include "imx8-ss-ddr.dtsi" |
| 345 |
#include "imx8-ss-lsio.dtsi" |
| 346 |
#include "imx8-ss-hsio.dtsi" |
| 347 |
}; |
| 348 |
|
| 349 |
#include "imx8qxp-ss-img.dtsi" |
| 350 |
#include "imx8qxp-ss-vpu.dtsi" |
| 351 |
#include "imx8qxp-ss-security.dtsi" |
| 352 |
#include "imx8qxp-ss-adma.dtsi" |
| 353 |
#include "imx8qxp-ss-conn.dtsi" |
| 354 |
#include "imx8qxp-ss-lsio.dtsi" |
| 355 |
#include "imx8qxp-ss-hsio.dtsi" |