imx25-eukrea-mbimxsd25-baseboard.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. /dts-v1/;
  14. #include <dt-bindings/gpio/gpio.h>
  15. #include <dt-bindings/input/input.h>
  16. #include "imx25-eukrea-cpuimx25.dtsi"
  17. / {
  18. model = "Eukrea MBIMXSD25";
  19. compatible = "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
  20. gpio_keys {
  21. compatible = "gpio-keys";
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&pinctrl_gpiokeys>;
  24. bp1 {
  25. label = "BP1";
  26. gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
  27. linux,code = <BTN_MISC>;
  28. wakeup-source;
  29. };
  30. };
  31. leds {
  32. compatible = "gpio-leds";
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&pinctrl_gpioled>;
  35. led1 {
  36. label = "led1";
  37. gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
  38. linux,default-trigger = "heartbeat";
  39. };
  40. };
  41. sound {
  42. compatible = "eukrea,asoc-tlv320";
  43. eukrea,model = "imx25-eukrea-tlv320aic23";
  44. ssi-controller = <&ssi1>;
  45. fsl,mux-int-port = <1>;
  46. fsl,mux-ext-port = <5>;
  47. };
  48. };
  49. &audmux {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&pinctrl_audmux>;
  52. status = "okay";
  53. };
  54. &esdhc1 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&pinctrl_esdhc1>;
  57. cd-gpios = <&gpio1 20>;
  58. status = "okay";
  59. };
  60. &i2c1 {
  61. tlv320aic23: codec@1a {
  62. compatible = "ti,tlv320aic23";
  63. reg = <0x1a>;
  64. };
  65. };
  66. &iomuxc {
  67. imx25-eukrea-mbimxsd25-baseboard {
  68. pinctrl_audmux: audmuxgrp {
  69. fsl,pins = <
  70. MX25_PAD_KPP_COL3__AUD5_TXFS 0xe0
  71. MX25_PAD_KPP_COL2__AUD5_TXC 0xe0
  72. MX25_PAD_KPP_COL1__AUD5_RXD 0xe0
  73. MX25_PAD_KPP_COL0__AUD5_TXD 0xe0
  74. >;
  75. };
  76. pinctrl_esdhc1: esdhc1grp {
  77. fsl,pins = <
  78. MX25_PAD_SD1_CMD__SD1_CMD 0x400000c0
  79. MX25_PAD_SD1_CLK__SD1_CLK 0x400000c0
  80. MX25_PAD_SD1_DATA0__SD1_DATA0 0x400000c0
  81. MX25_PAD_SD1_DATA1__SD1_DATA1 0x400000c0
  82. MX25_PAD_SD1_DATA2__SD1_DATA2 0x400000c0
  83. MX25_PAD_SD1_DATA3__SD1_DATA3 0x400000c0
  84. >;
  85. };
  86. pinctrl_gpiokeys: gpiokeysgrp {
  87. fsl,pins = <MX25_PAD_VSTBY_ACK__GPIO_3_18 0x80000000>;
  88. };
  89. pinctrl_gpioled: gpioledgrp {
  90. fsl,pins = <MX25_PAD_POWER_FAIL__GPIO_3_19 0x80000000>;
  91. };
  92. pinctrl_lcdc: lcdcgrp {
  93. fsl,pins = <
  94. MX25_PAD_LD0__LD0 0x1
  95. MX25_PAD_LD1__LD1 0x1
  96. MX25_PAD_LD2__LD2 0x1
  97. MX25_PAD_LD3__LD3 0x1
  98. MX25_PAD_LD4__LD4 0x1
  99. MX25_PAD_LD5__LD5 0x1
  100. MX25_PAD_LD6__LD6 0x1
  101. MX25_PAD_LD7__LD7 0x1
  102. MX25_PAD_LD8__LD8 0x1
  103. MX25_PAD_LD9__LD9 0x1
  104. MX25_PAD_LD10__LD10 0x1
  105. MX25_PAD_LD11__LD11 0x1
  106. MX25_PAD_LD12__LD12 0x1
  107. MX25_PAD_LD13__LD13 0x1
  108. MX25_PAD_LD14__LD14 0x1
  109. MX25_PAD_LD15__LD15 0x1
  110. MX25_PAD_GPIO_E__LD16 0x1
  111. MX25_PAD_GPIO_F__LD17 0x1
  112. MX25_PAD_HSYNC__HSYNC 0x80000000
  113. MX25_PAD_VSYNC__VSYNC 0x80000000
  114. MX25_PAD_LSCLK__LSCLK 0x80000000
  115. MX25_PAD_OE_ACD__OE_ACD 0x80000000
  116. MX25_PAD_CONTRAST__CONTRAST 0x80000000
  117. >;
  118. };
  119. pinctrl_uart1: uart1grp {
  120. fsl,pins = <
  121. MX25_PAD_UART1_RTS__UART1_RTS 0xe0
  122. MX25_PAD_UART1_CTS__UART1_CTS 0xe0
  123. MX25_PAD_UART1_TXD__UART1_TXD 0x80000000
  124. MX25_PAD_UART1_RXD__UART1_RXD 0xc0
  125. >;
  126. };
  127. pinctrl_uart2: uart2grp {
  128. fsl,pins = <
  129. MX25_PAD_UART2_RXD__UART2_RXD 0x80000000
  130. MX25_PAD_UART2_TXD__UART2_TXD 0x80000000
  131. MX25_PAD_UART2_RTS__UART2_RTS 0x80000000
  132. MX25_PAD_UART2_CTS__UART2_CTS 0x80000000
  133. >;
  134. };
  135. };
  136. };
  137. &ssi1 {
  138. codec-handle = <&tlv320aic23>;
  139. status = "okay";
  140. };
  141. &uart1 {
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&pinctrl_uart1>;
  144. uart-has-rtscts;
  145. status = "okay";
  146. };
  147. &uart2 {
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&pinctrl_uart2>;
  150. uart-has-rtscts;
  151. status = "okay";
  152. };
  153. &usbhost1 {
  154. phy_type = "serial";
  155. dr_mode = "host";
  156. status = "okay";
  157. };
  158. &usbotg {
  159. phy_type = "utmi";
  160. dr_mode = "otg";
  161. external-vbus-divider;
  162. status = "okay";
  163. };