imx25-eukrea-mbimxsd25-baseboard.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2013 Eukréa Electromatique <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/input.h>
  8. #include "imx25-eukrea-cpuimx25.dtsi"
  9. / {
  10. model = "Eukrea MBIMXSD25";
  11. compatible = "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
  12. gpio-keys {
  13. compatible = "gpio-keys";
  14. pinctrl-names = "default";
  15. pinctrl-0 = <&pinctrl_gpiokeys>;
  16. button {
  17. label = "BP1";
  18. gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
  19. linux,code = <BTN_MISC>;
  20. wakeup-source;
  21. };
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&pinctrl_gpioled>;
  27. led1 {
  28. label = "led1";
  29. gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "heartbeat";
  31. };
  32. };
  33. sound {
  34. compatible = "eukrea,asoc-tlv320";
  35. eukrea,model = "imx25-eukrea-tlv320aic23";
  36. ssi-controller = <&ssi1>;
  37. fsl,mux-int-port = <1>;
  38. fsl,mux-ext-port = <5>;
  39. };
  40. };
  41. &audmux {
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&pinctrl_audmux>;
  44. status = "okay";
  45. };
  46. &esdhc1 {
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&pinctrl_esdhc1>;
  49. cd-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
  50. status = "okay";
  51. };
  52. &i2c1 {
  53. tlv320aic23: codec@1a {
  54. compatible = "ti,tlv320aic23";
  55. reg = <0x1a>;
  56. };
  57. };
  58. &iomuxc {
  59. imx25-eukrea-mbimxsd25-baseboard {
  60. pinctrl_audmux: audmuxgrp {
  61. fsl,pins = <
  62. MX25_PAD_KPP_COL3__AUD5_TXFS 0xe0
  63. MX25_PAD_KPP_COL2__AUD5_TXC 0xe0
  64. MX25_PAD_KPP_COL1__AUD5_RXD 0xe0
  65. MX25_PAD_KPP_COL0__AUD5_TXD 0xe0
  66. >;
  67. };
  68. pinctrl_esdhc1: esdhc1grp {
  69. fsl,pins = <
  70. MX25_PAD_SD1_CMD__ESDHC1_CMD 0x400000c0
  71. MX25_PAD_SD1_CLK__ESDHC1_CLK 0x400000c0
  72. MX25_PAD_SD1_DATA0__ESDHC1_DAT0 0x400000c0
  73. MX25_PAD_SD1_DATA1__ESDHC1_DAT1 0x400000c0
  74. MX25_PAD_SD1_DATA2__ESDHC1_DAT2 0x400000c0
  75. MX25_PAD_SD1_DATA3__ESDHC1_DAT3 0x400000c0
  76. >;
  77. };
  78. pinctrl_gpiokeys: gpiokeysgrp {
  79. fsl,pins = <MX25_PAD_VSTBY_ACK__GPIO_3_18 0x80000000>;
  80. };
  81. pinctrl_gpioled: gpioledgrp {
  82. fsl,pins = <MX25_PAD_POWER_FAIL__GPIO_3_19 0x80000000>;
  83. };
  84. pinctrl_lcdc: lcdcgrp {
  85. fsl,pins = <
  86. MX25_PAD_LD0__LD0 0x1
  87. MX25_PAD_LD1__LD1 0x1
  88. MX25_PAD_LD2__LD2 0x1
  89. MX25_PAD_LD3__LD3 0x1
  90. MX25_PAD_LD4__LD4 0x1
  91. MX25_PAD_LD5__LD5 0x1
  92. MX25_PAD_LD6__LD6 0x1
  93. MX25_PAD_LD7__LD7 0x1
  94. MX25_PAD_LD8__LD8 0x1
  95. MX25_PAD_LD9__LD9 0x1
  96. MX25_PAD_LD10__LD10 0x1
  97. MX25_PAD_LD11__LD11 0x1
  98. MX25_PAD_LD12__LD12 0x1
  99. MX25_PAD_LD13__LD13 0x1
  100. MX25_PAD_LD14__LD14 0x1
  101. MX25_PAD_LD15__LD15 0x1
  102. MX25_PAD_GPIO_E__LD16 0x1
  103. MX25_PAD_GPIO_F__LD17 0x1
  104. MX25_PAD_HSYNC__HSYNC 0x80000000
  105. MX25_PAD_VSYNC__VSYNC 0x80000000
  106. MX25_PAD_LSCLK__LSCLK 0x80000000
  107. MX25_PAD_OE_ACD__OE_ACD 0x80000000
  108. MX25_PAD_CONTRAST__CONTRAST 0x80000000
  109. >;
  110. };
  111. pinctrl_uart1: uart1grp {
  112. fsl,pins = <
  113. MX25_PAD_UART1_RTS__UART1_RTS 0xe0
  114. MX25_PAD_UART1_CTS__UART1_CTS 0xe0
  115. MX25_PAD_UART1_TXD__UART1_TXD 0x80000000
  116. MX25_PAD_UART1_RXD__UART1_RXD 0xc0
  117. >;
  118. };
  119. pinctrl_uart2: uart2grp {
  120. fsl,pins = <
  121. MX25_PAD_UART2_RXD__UART2_RXD 0x80000000
  122. MX25_PAD_UART2_TXD__UART2_TXD 0x80000000
  123. MX25_PAD_UART2_RTS__UART2_RTS 0x80000000
  124. MX25_PAD_UART2_CTS__UART2_CTS 0x80000000
  125. >;
  126. };
  127. };
  128. };
  129. &ssi1 {
  130. codec-handle = <&tlv320aic23>;
  131. status = "okay";
  132. };
  133. &uart1 {
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&pinctrl_uart1>;
  136. uart-has-rtscts;
  137. status = "okay";
  138. };
  139. &uart2 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&pinctrl_uart2>;
  142. uart-has-rtscts;
  143. status = "okay";
  144. };
  145. &usbhost1 {
  146. status = "okay";
  147. };
  148. &usbotg {
  149. external-vbus-divider;
  150. status = "okay";
  151. };