imx8qxp.dtsi 7.0 KB

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