imx6q-apalis-ixora.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 Ixora Carrier Board";
  15. compatible = "toradex,apalis_imx6q-ixora", "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. leds {
  28. compatible = "gpio-leds";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pinctrl_leds_ixora>;
  31. led4-green {
  32. gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  33. label = "LED_4_GREEN";
  34. };
  35. led4-red {
  36. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  37. label = "LED_4_RED";
  38. };
  39. led5-green {
  40. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  41. label = "LED_5_GREEN";
  42. };
  43. led5-red {
  44. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  45. label = "LED_5_RED";
  46. };
  47. };
  48. };
  49. &can1 {
  50. status = "okay";
  51. };
  52. &can2 {
  53. status = "okay";
  54. };
  55. /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
  56. &i2c1 {
  57. status = "okay";
  58. eeprom@50 {
  59. compatible = "atmel,24c02";
  60. reg = <0x50>;
  61. };
  62. /* M41T0M6 real time clock on carrier board */
  63. rtc_i2c: rtc@68 {
  64. compatible = "st,m41t0";
  65. reg = <0x68>;
  66. };
  67. };
  68. /*
  69. * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
  70. * board)
  71. */
  72. &i2c3 {
  73. status = "okay";
  74. };
  75. &pcie {
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_reset_moci>;
  78. /* active-high meaning opposite of regular PERST# active-low polarity */
  79. reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
  80. reset-gpio-active-high;
  81. status = "okay";
  82. };
  83. &pwm1 {
  84. status = "okay";
  85. };
  86. &pwm2 {
  87. status = "okay";
  88. };
  89. &pwm3 {
  90. status = "okay";
  91. };
  92. &pwm4 {
  93. status = "okay";
  94. };
  95. &reg_usb_host_vbus {
  96. status = "okay";
  97. };
  98. &reg_usb_otg_vbus {
  99. status = "okay";
  100. };
  101. &sata {
  102. status = "okay";
  103. };
  104. &sound_spdif {
  105. status = "okay";
  106. };
  107. &spdif {
  108. status = "okay";
  109. };
  110. &uart1 {
  111. status = "okay";
  112. };
  113. &uart2 {
  114. status = "okay";
  115. };
  116. &uart4 {
  117. status = "okay";
  118. };
  119. &uart5 {
  120. status = "okay";
  121. };
  122. &usbh1 {
  123. vbus-supply = <&reg_usb_host_vbus>;
  124. status = "okay";
  125. };
  126. &usbotg {
  127. vbus-supply = <&reg_usb_otg_vbus>;
  128. status = "okay";
  129. };
  130. /* SD1 */
  131. &usdhc2 {
  132. cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
  135. status = "okay";
  136. };
  137. &iomuxc {
  138. pinctrl_leds_ixora: ledsixoragrp {
  139. fsl,pins = <
  140. MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
  141. MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x1b0b0
  142. MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
  143. MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
  144. >;
  145. };
  146. };