imx8dxl.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2019~2020, 2022 NXP
  4. */
  5. #include <dt-bindings/clock/imx8-clock.h>
  6. #include <dt-bindings/firmware/imx/rsrc.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. #include <dt-bindings/input/input.h>
  10. #include <dt-bindings/pinctrl/pads-imx8dxl.h>
  11. #include <dt-bindings/thermal/thermal.h>
  12. / {
  13. interrupt-parent = <&gic>;
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. aliases {
  17. ethernet0 = &fec1;
  18. ethernet1 = &eqos;
  19. gpio0 = &lsio_gpio0;
  20. gpio1 = &lsio_gpio1;
  21. gpio2 = &lsio_gpio2;
  22. gpio3 = &lsio_gpio3;
  23. gpio4 = &lsio_gpio4;
  24. gpio5 = &lsio_gpio5;
  25. gpio6 = &lsio_gpio6;
  26. gpio7 = &lsio_gpio7;
  27. mu1 = &lsio_mu1;
  28. };
  29. cpus: cpus {
  30. #address-cells = <2>;
  31. #size-cells = <0>;
  32. /* We have 1 clusters with 2 Cortex-A35 cores */
  33. A35_0: cpu@0 {
  34. device_type = "cpu";
  35. compatible = "arm,cortex-a35";
  36. reg = <0x0 0x0>;
  37. enable-method = "psci";
  38. next-level-cache = <&A35_L2>;
  39. clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
  40. #cooling-cells = <2>;
  41. operating-points-v2 = <&a35_opp_table>;
  42. };
  43. A35_1: cpu@1 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a35";
  46. reg = <0x0 0x1>;
  47. enable-method = "psci";
  48. next-level-cache = <&A35_L2>;
  49. clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
  50. #cooling-cells = <2>;
  51. operating-points-v2 = <&a35_opp_table>;
  52. };
  53. A35_L2: l2-cache0 {
  54. compatible = "cache";
  55. };
  56. };
  57. a35_opp_table: opp-table {
  58. compatible = "operating-points-v2";
  59. opp-shared;
  60. opp-900000000 {
  61. opp-hz = /bits/ 64 <900000000>;
  62. opp-microvolt = <1000000>;
  63. clock-latency-ns = <150000>;
  64. };
  65. opp-1200000000 {
  66. opp-hz = /bits/ 64 <1200000000>;
  67. opp-microvolt = <1100000>;
  68. clock-latency-ns = <150000>;
  69. opp-suspend;
  70. };
  71. };
  72. gic: interrupt-controller@51a00000 {
  73. compatible = "arm,gic-v3";
  74. reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */
  75. <0x0 0x51b00000 0 0xc0000>; /* GICR (RD_base + SGI_base) */
  76. #interrupt-cells = <3>;
  77. interrupt-controller;
  78. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  79. };
  80. reserved-memory {
  81. #address-cells = <2>;
  82. #size-cells = <2>;
  83. ranges;
  84. dsp_reserved: dsp@92400000 {
  85. reg = <0 0x92400000 0 0x2000000>;
  86. no-map;
  87. };
  88. };
  89. pmu {
  90. compatible = "arm,armv8-pmuv3";
  91. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
  92. };
  93. psci {
  94. compatible = "arm,psci-1.0";
  95. method = "smc";
  96. };
  97. system-controller {
  98. compatible = "fsl,imx-scu";
  99. mbox-names = "tx0",
  100. "rx0",
  101. "gip3";
  102. mboxes = <&lsio_mu1 0 0
  103. &lsio_mu1 1 0
  104. &lsio_mu1 3 3>;
  105. pd: power-controller {
  106. compatible = "fsl,scu-pd";
  107. #power-domain-cells = <1>;
  108. wakeup-irq = <160 163 235 236 237 228 229 230 231 238
  109. 239 240 166 169>;
  110. };
  111. clk: clock-controller {
  112. compatible = "fsl,imx8dxl-clk", "fsl,scu-clk";
  113. #clock-cells = <2>;
  114. clocks = <&xtal32k &xtal24m>;
  115. clock-names = "xtal_32KHz", "xtal_24Mhz";
  116. };
  117. iomuxc: pinctrl {
  118. compatible = "fsl,imx8dxl-iomuxc";
  119. };
  120. ocotp: ocotp {
  121. compatible = "fsl,imx8qxp-scu-ocotp";
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. fec_mac0: mac@2c4 {
  125. reg = <0x2c4 6>;
  126. };
  127. fec_mac1: mac@2c6 {
  128. reg = <0x2c6 6>;
  129. };
  130. };
  131. rtc: rtc {
  132. compatible = "fsl,imx8qxp-sc-rtc";
  133. };
  134. sc_pwrkey: keys {
  135. compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
  136. linux,keycodes = <KEY_POWER>;
  137. wakeup-source;
  138. };
  139. watchdog {
  140. compatible = "fsl,imx-sc-wdt";
  141. timeout-sec = <60>;
  142. };
  143. tsens: thermal-sensor {
  144. compatible = "fsl,imx-sc-thermal";
  145. #thermal-sensor-cells = <1>;
  146. };
  147. };
  148. timer {
  149. compatible = "arm,armv8-timer";
  150. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* Physical Secure */
  151. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* Physical Non-Secure */
  152. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* Virtual */
  153. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* Hypervisor */
  154. };
  155. thermal_zones: thermal-zones {
  156. cpu-thermal0 {
  157. polling-delay-passive = <250>;
  158. polling-delay = <2000>;
  159. thermal-sensors = <&tsens IMX_SC_R_SYSTEM>;
  160. trips {
  161. cpu_alert0: trip0 {
  162. temperature = <107000>;
  163. hysteresis = <2000>;
  164. type = "passive";
  165. };
  166. cpu_crit0: trip1 {
  167. temperature = <127000>;
  168. hysteresis = <2000>;
  169. type = "critical";
  170. };
  171. };
  172. cooling-maps {
  173. map0 {
  174. trip = <&cpu_alert0>;
  175. cooling-device =
  176. <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  177. <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  178. };
  179. };
  180. };
  181. };
  182. /* The two values below cannot be changed by the board */
  183. xtal32k: clock-xtal32k {
  184. compatible = "fixed-clock";
  185. #clock-cells = <0>;
  186. clock-frequency = <32768>;
  187. clock-output-names = "xtal_32KHz";
  188. };
  189. xtal24m: clock-xtal24m {
  190. compatible = "fixed-clock";
  191. #clock-cells = <0>;
  192. clock-frequency = <24000000>;
  193. clock-output-names = "xtal_24MHz";
  194. };
  195. /* sorted in register address */
  196. #include "imx8-ss-adma.dtsi"
  197. #include "imx8-ss-conn.dtsi"
  198. #include "imx8-ss-ddr.dtsi"
  199. #include "imx8-ss-lsio.dtsi"
  200. };
  201. #include "imx8dxl-ss-adma.dtsi"
  202. #include "imx8dxl-ss-conn.dtsi"
  203. #include "imx8dxl-ss-lsio.dtsi"
  204. #include "imx8dxl-ss-ddr.dtsi"