imx35-eukrea-mbimxsd35-baseboard.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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 "imx35-eukrea-cpuimx35.dtsi"
  17. / {
  18. model = "Eukrea CPUIMX35";
  19. compatible = "eukrea,mbimxsd35-baseboard", "eukrea,cpuimx35", "fsl,imx35";
  20. gpio_keys {
  21. compatible = "gpio-keys";
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&pinctrl_bp1>;
  24. bp1 {
  25. label = "BP1";
  26. gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
  27. linux,code = <BTN_MISC>;
  28. gpio-key,wakeup;
  29. linux,input-type = <1>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&pinctrl_led1>;
  36. led1 {
  37. label = "led1";
  38. gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
  39. linux,default-trigger = "heartbeat";
  40. };
  41. };
  42. sound {
  43. compatible = "eukrea,asoc-tlv320";
  44. eukrea,model = "imx35-eukrea-tlv320aic23";
  45. ssi-controller = <&ssi1>;
  46. fsl,mux-int-port = <1>;
  47. fsl,mux-ext-port = <4>;
  48. };
  49. };
  50. &audmux {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&pinctrl_audmux>;
  53. status = "okay";
  54. };
  55. &esdhc1 {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&pinctrl_esdhc1>;
  58. cd-gpios = <&gpio3 24>;
  59. status = "okay";
  60. };
  61. &i2c1 {
  62. tlv320aic23: codec@1a {
  63. compatible = "ti,tlv320aic23";
  64. reg = <0x1a>;
  65. };
  66. };
  67. &iomuxc {
  68. imx35-eukrea {
  69. pinctrl_audmux: audmuxgrp {
  70. fsl,pins = <
  71. MX35_PAD_STXFS4__AUDMUX_AUD4_TXFS 0x80000000
  72. MX35_PAD_STXD4__AUDMUX_AUD4_TXD 0x80000000
  73. MX35_PAD_SRXD4__AUDMUX_AUD4_RXD 0x80000000
  74. MX35_PAD_SCK4__AUDMUX_AUD4_TXC 0x80000000
  75. >;
  76. };
  77. pinctrl_bp1: bp1grp {
  78. fsl,pins = <MX35_PAD_LD19__GPIO3_25 0x80000000>;
  79. };
  80. pinctrl_esdhc1: esdhc1grp {
  81. fsl,pins = <
  82. MX35_PAD_SD1_CMD__ESDHC1_CMD 0x80000000
  83. MX35_PAD_SD1_CLK__ESDHC1_CLK 0x80000000
  84. MX35_PAD_SD1_DATA0__ESDHC1_DAT0 0x80000000
  85. MX35_PAD_SD1_DATA1__ESDHC1_DAT1 0x80000000
  86. MX35_PAD_SD1_DATA2__ESDHC1_DAT2 0x80000000
  87. MX35_PAD_SD1_DATA3__ESDHC1_DAT3 0x80000000
  88. MX35_PAD_LD18__GPIO3_24 0x80000000 /* CD */
  89. >;
  90. };
  91. pinctrl_led1: led1grp {
  92. fsl,pins = <MX35_PAD_LD23__GPIO3_29 0x80000000>;
  93. };
  94. pinctrl_reg_lcd_3v3: reg-lcd-3v3 {
  95. fsl,pins = <MX35_PAD_D3_CLS__GPIO1_4 0x80000000>;
  96. };
  97. pinctrl_uart1: uart1grp {
  98. fsl,pins = <
  99. MX35_PAD_TXD1__UART1_TXD_MUX 0x1c5
  100. MX35_PAD_RXD1__UART1_RXD_MUX 0x1c5
  101. MX35_PAD_CTS1__UART1_CTS 0x1c5
  102. MX35_PAD_RTS1__UART1_RTS 0x1c5
  103. >;
  104. };
  105. pinctrl_uart2: uart2grp {
  106. fsl,pins = <
  107. MX35_PAD_RXD2__UART2_RXD_MUX 0x1c5
  108. MX35_PAD_TXD2__UART2_TXD_MUX 0x1c5
  109. MX35_PAD_RTS2__UART2_RTS 0x1c5
  110. MX35_PAD_CTS2__UART2_CTS 0x1c5
  111. >;
  112. };
  113. };
  114. };
  115. &ssi1 {
  116. codec-handle = <&tlv320aic23>;
  117. status = "okay";
  118. };
  119. &uart1 {
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pinctrl_uart1>;
  122. fsl,uart-has-rtscts;
  123. status = "okay";
  124. };
  125. &uart2 {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&pinctrl_uart2>;
  128. fsl,uart-has-rtscts;
  129. status = "okay";
  130. };
  131. &usbhost1 {
  132. phy_type = "serial";
  133. dr_mode = "host";
  134. status = "okay";
  135. };
  136. &usbotg {
  137. phy_type = "utmi";
  138. dr_mode = "otg";
  139. external-vbus-divider;
  140. status = "okay";
  141. };