imx6q-apalis-eval.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Copyright 2014-2022 Toradex
  4. * Copyright 2012 Freescale Semiconductor, Inc.
  5. * Copyright 2011 Linaro Ltd.
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/input/input.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include "imx6q.dtsi"
  12. #include "imx6qdl-apalis.dtsi"
  13. / {
  14. model = "Toradex Apalis iMX6Q/D Module on Apalis Evaluation Board";
  15. compatible = "toradex,apalis_imx6q-eval", "toradex,apalis_imx6q",
  16. "fsl,imx6q";
  17. aliases {
  18. i2c0 = &i2c1;
  19. i2c1 = &i2c3;
  20. i2c2 = &i2c2;
  21. rtc0 = &rtc_i2c;
  22. rtc1 = &snvs_rtc;
  23. };
  24. chosen {
  25. stdout-path = "serial0:115200n8";
  26. };
  27. reg_pcie_switch: regulator-pcie-switch {
  28. compatible = "regulator-fixed";
  29. enable-active-high;
  30. gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  31. regulator-max-microvolt = <1800000>;
  32. regulator-min-microvolt = <1800000>;
  33. regulator-name = "pcie_switch";
  34. startup-delay-us = <100000>;
  35. status = "okay";
  36. };
  37. reg_3v3_sw: regulator-3v3-sw {
  38. compatible = "regulator-fixed";
  39. regulator-always-on;
  40. regulator-max-microvolt = <3300000>;
  41. regulator-min-microvolt = <3300000>;
  42. regulator-name = "3.3V_SW";
  43. };
  44. };
  45. &can1 {
  46. xceiver-supply = <&reg_3v3_sw>;
  47. status = "okay";
  48. };
  49. &can2 {
  50. xceiver-supply = <&reg_3v3_sw>;
  51. status = "okay";
  52. };
  53. /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
  54. &i2c1 {
  55. status = "okay";
  56. pcie-switch@58 {
  57. compatible = "plx,pex8605";
  58. reg = <0x58>;
  59. };
  60. /* M41T0M6 real time clock on carrier board */
  61. rtc_i2c: rtc@68 {
  62. compatible = "st,m41t0";
  63. reg = <0x68>;
  64. };
  65. };
  66. /*
  67. * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
  68. * board)
  69. */
  70. &i2c3 {
  71. status = "okay";
  72. };
  73. &pcie {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&pinctrl_reset_moci>;
  76. /* active-high meaning opposite of regular PERST# active-low polarity */
  77. reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
  78. reset-gpio-active-high;
  79. vpcie-supply = <&reg_pcie_switch>;
  80. status = "okay";
  81. };
  82. &pwm1 {
  83. status = "okay";
  84. };
  85. &pwm2 {
  86. status = "okay";
  87. };
  88. &pwm3 {
  89. status = "okay";
  90. };
  91. &pwm4 {
  92. status = "okay";
  93. };
  94. &reg_usb_host_vbus {
  95. status = "okay";
  96. };
  97. &reg_usb_otg_vbus {
  98. status = "okay";
  99. };
  100. &sata {
  101. status = "okay";
  102. };
  103. &sound_spdif {
  104. status = "okay";
  105. };
  106. &spdif {
  107. status = "okay";
  108. };
  109. &uart1 {
  110. status = "okay";
  111. };
  112. &uart2 {
  113. status = "okay";
  114. };
  115. &uart4 {
  116. status = "okay";
  117. };
  118. &uart5 {
  119. status = "okay";
  120. };
  121. &usbh1 {
  122. vbus-supply = <&reg_usb_host_vbus>;
  123. status = "okay";
  124. };
  125. &usbotg {
  126. vbus-supply = <&reg_usb_otg_vbus>;
  127. status = "okay";
  128. };
  129. /* MMC1 */
  130. &usdhc1 {
  131. status = "okay";
  132. };
  133. /* SD1 */
  134. &usdhc2 {
  135. cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
  136. pinctrl-names = "default";
  137. pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
  138. status = "okay";
  139. };