imx8mm-tqma8mqml.dtsi 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
  2. /*
  3. * Copyright 2020-2021 TQ-Systems GmbH
  4. */
  5. #include <dt-bindings/phy/phy-imx8-pcie.h>
  6. #include "imx8mm.dtsi"
  7. / {
  8. model = "TQ-Systems GmbH i.MX8MM TQMa8MxML";
  9. compatible = "tq,imx8mm-tqma8mqml", "fsl,imx8mm";
  10. memory@40000000 {
  11. device_type = "memory";
  12. /* our minimum RAM config will be 1024 MiB */
  13. reg = <0x00000000 0x40000000 0 0x40000000>;
  14. };
  15. /* e-MMC IO, needed for HS modes */
  16. reg_vcc1v8: regulator-vcc1v8 {
  17. compatible = "regulator-fixed";
  18. regulator-name = "TQMA8MXML_VCC1V8";
  19. regulator-min-microvolt = <1800000>;
  20. regulator-max-microvolt = <1800000>;
  21. };
  22. /* identical to buck4_reg, but should never change */
  23. reg_vcc3v3: regulator-vcc3v3 {
  24. compatible = "regulator-fixed";
  25. regulator-name = "TQMA8MXML_VCC3V3";
  26. regulator-min-microvolt = <3300000>;
  27. regulator-max-microvolt = <3300000>;
  28. };
  29. reserved-memory {
  30. #address-cells = <2>;
  31. #size-cells = <2>;
  32. ranges;
  33. /* global autoconfigured region for contiguous allocations */
  34. linux,cma {
  35. compatible = "shared-dma-pool";
  36. reusable;
  37. /* 640 MiB */
  38. size = <0 0x28000000>;
  39. /* 1024 - 128 MiB, our minimum RAM config will be 1024 MiB */
  40. alloc-ranges = <0 0x40000000 0 0x78000000>;
  41. linux,cma-default;
  42. };
  43. };
  44. };
  45. &A53_0 {
  46. cpu-supply = <&buck2_reg>;
  47. };
  48. &flexspi {
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&pinctrl_flexspi>;
  51. status = "okay";
  52. flash0: flash@0 {
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. spi-max-frequency = <84000000>;
  58. spi-tx-bus-width = <1>;
  59. spi-rx-bus-width = <4>;
  60. };
  61. };
  62. &gpu_2d {
  63. status = "okay";
  64. };
  65. &gpu_3d {
  66. status = "okay";
  67. };
  68. &i2c1 {
  69. clock-frequency = <100000>;
  70. pinctrl-names = "default", "gpio";
  71. pinctrl-0 = <&pinctrl_i2c1>;
  72. pinctrl-1 = <&pinctrl_i2c1_gpio>;
  73. scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  74. sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  75. status = "okay";
  76. sensor0: temperature-sensor-eeprom@1b {
  77. compatible = "nxp,se97", "jedec,jc-42.4-temp";
  78. reg = <0x1b>;
  79. };
  80. pca9450: pmic@25 {
  81. compatible = "nxp,pca9450a";
  82. reg = <0x25>;
  83. /* PMIC PCA9450 PMIC_nINT GPIO1_IO08 */
  84. pinctrl-0 = <&pinctrl_pmic>;
  85. pinctrl-names = "default";
  86. interrupt-parent = <&gpio1>;
  87. interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
  88. regulators {
  89. /* V_0V85_SOC: 0.85 */
  90. buck1_reg: BUCK1 {
  91. regulator-name = "BUCK1";
  92. regulator-min-microvolt = <850000>;
  93. regulator-max-microvolt = <850000>;
  94. regulator-boot-on;
  95. regulator-always-on;
  96. regulator-ramp-delay = <3125>;
  97. };
  98. /* VDD_ARM */
  99. buck2_reg: BUCK2 {
  100. regulator-name = "BUCK2";
  101. regulator-min-microvolt = <850000>;
  102. regulator-max-microvolt = <1000000>;
  103. regulator-boot-on;
  104. regulator-always-on;
  105. nxp,dvs-run-voltage = <950000>;
  106. nxp,dvs-standby-voltage = <850000>;
  107. regulator-ramp-delay = <3125>;
  108. };
  109. /* V_0V85_GPU / DRAM / VPU */
  110. buck3_reg: BUCK3 {
  111. regulator-name = "BUCK3";
  112. regulator-min-microvolt = <850000>;
  113. regulator-max-microvolt = <950000>;
  114. regulator-boot-on;
  115. regulator-always-on;
  116. regulator-ramp-delay = <3125>;
  117. };
  118. /* VCC3V3 -> VMMC, ... must not be changed */
  119. buck4_reg: BUCK4 {
  120. regulator-name = "BUCK4";
  121. regulator-min-microvolt = <3300000>;
  122. regulator-max-microvolt = <3300000>;
  123. regulator-boot-on;
  124. regulator-always-on;
  125. };
  126. /* V_1V8 -> VQMMC, SPI-NOR, ... must not be changed */
  127. buck5_reg: BUCK5 {
  128. regulator-name = "BUCK5";
  129. regulator-min-microvolt = <1800000>;
  130. regulator-max-microvolt = <1800000>;
  131. regulator-boot-on;
  132. regulator-always-on;
  133. };
  134. /* V_1V1 -> RAM, ... must not be changed */
  135. buck6_reg: BUCK6 {
  136. regulator-name = "BUCK6";
  137. regulator-min-microvolt = <1100000>;
  138. regulator-max-microvolt = <1100000>;
  139. regulator-boot-on;
  140. regulator-always-on;
  141. };
  142. /* V_1V8_SNVS */
  143. ldo1_reg: LDO1 {
  144. regulator-name = "LDO1";
  145. regulator-min-microvolt = <1800000>;
  146. regulator-max-microvolt = <1800000>;
  147. regulator-boot-on;
  148. regulator-always-on;
  149. };
  150. /* V_0V8_SNVS */
  151. ldo2_reg: LDO2 {
  152. regulator-name = "LDO2";
  153. regulator-min-microvolt = <800000>;
  154. regulator-max-microvolt = <850000>;
  155. regulator-boot-on;
  156. regulator-always-on;
  157. };
  158. /* V_1V8_ANA */
  159. ldo3_reg: LDO3 {
  160. regulator-name = "LDO3";
  161. regulator-min-microvolt = <1800000>;
  162. regulator-max-microvolt = <1800000>;
  163. regulator-boot-on;
  164. regulator-always-on;
  165. };
  166. /* V_0V9_MIPI */
  167. ldo4_reg: LDO4 {
  168. regulator-name = "LDO4";
  169. regulator-min-microvolt = <900000>;
  170. regulator-max-microvolt = <900000>;
  171. regulator-boot-on;
  172. regulator-always-on;
  173. };
  174. /* VCC SD IO - switched using SD2 VSELECT */
  175. ldo5_reg: LDO5 {
  176. regulator-name = "LDO5";
  177. regulator-min-microvolt = <1800000>;
  178. regulator-max-microvolt = <3300000>;
  179. };
  180. };
  181. };
  182. pcf85063: rtc@51 {
  183. compatible = "nxp,pcf85063a";
  184. reg = <0x51>;
  185. quartz-load-femtofarads = <7000>;
  186. };
  187. eeprom1: eeprom@53 {
  188. compatible = "nxp,se97b", "atmel,24c02";
  189. read-only;
  190. reg = <0x53>;
  191. pagesize = <16>;
  192. };
  193. eeprom0: eeprom@57 {
  194. compatible = "atmel,24c64";
  195. reg = <0x57>;
  196. pagesize = <32>;
  197. };
  198. };
  199. &pcie_phy {
  200. fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
  201. fsl,clkreq-unsupported;
  202. };
  203. &usdhc3 {
  204. pinctrl-names = "default", "state_100mhz", "state_200mhz";
  205. pinctrl-0 = <&pinctrl_usdhc3>;
  206. pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
  207. pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
  208. bus-width = <8>;
  209. non-removable;
  210. no-sd;
  211. no-sdio;
  212. vmmc-supply = <&reg_vcc3v3>;
  213. vqmmc-supply = <&reg_vcc1v8>;
  214. status = "okay";
  215. };
  216. /*
  217. * Attention:
  218. * wdog reset is routed to PMIC, PMIC must be preconfigured to force POR
  219. * without LDO for SNVS. GPIO1_IO02 must not be used as GPIO.
  220. */
  221. &wdog1 {
  222. pinctrl-names = "default";
  223. pinctrl-0 = <&pinctrl_wdog>;
  224. fsl,ext-reset-output;
  225. status = "okay";
  226. };
  227. &iomuxc {
  228. pinctrl_flexspi: flexspigrp {
  229. fsl,pins = <MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x82>,
  230. <MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82>,
  231. <MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82>,
  232. <MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82>,
  233. <MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82>,
  234. <MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82>;
  235. };
  236. pinctrl_i2c1: i2c1grp {
  237. fsl,pins = <MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x40000004>,
  238. <MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x40000004>;
  239. };
  240. pinctrl_i2c1_gpio: i2c1gpiogrp {
  241. fsl,pins = <MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14 0x40000004>,
  242. <MX8MM_IOMUXC_I2C1_SDA_GPIO5_IO15 0x40000004>;
  243. };
  244. pinctrl_pmic: pmicgrp {
  245. fsl,pins = <MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x94>;
  246. };
  247. pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
  248. fsl,pins = <MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x84>;
  249. };
  250. pinctrl_usdhc3: usdhc3grp {
  251. fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d4>,
  252. <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
  253. <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
  254. <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
  255. <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
  256. <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
  257. <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
  258. <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
  259. <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
  260. <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
  261. <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
  262. /* option USDHC3_RESET_B not defined, only in RM */
  263. <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
  264. };
  265. pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
  266. fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d2>,
  267. <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
  268. <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
  269. <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
  270. <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
  271. <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
  272. <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
  273. <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
  274. <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
  275. <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
  276. <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
  277. /* option USDHC3_RESET_B not defined, only in RM */
  278. <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
  279. };
  280. pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
  281. fsl,pins = <MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d6>,
  282. <MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
  283. <MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4>,
  284. <MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4>,
  285. <MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4>,
  286. <MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4>,
  287. <MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4>,
  288. <MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4>,
  289. <MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4>,
  290. <MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4>,
  291. <MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x84>,
  292. /* option USDHC3_RESET_B not defined, only in RM */
  293. <MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x84>;
  294. };
  295. pinctrl_wdog: wdoggrp {
  296. fsl,pins = <MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x84>;
  297. };
  298. };