tegra30-apalis-v1.1-eval.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/input/input.h>
  4. #include "tegra30-apalis-v1.1.dtsi"
  5. / {
  6. model = "Toradex Apalis T30 on Apalis Evaluation Board";
  7. compatible = "toradex,apalis_t30-v1.1-eval", "toradex,apalis_t30-eval",
  8. "toradex,apalis_t30-v1.1", "toradex,apalis_t30",
  9. "nvidia,tegra30";
  10. aliases {
  11. rtc0 = "/i2c@7000c000/rtc@68";
  12. rtc1 = "/i2c@7000d000/pmic@2d";
  13. rtc2 = "/rtc@7000e000";
  14. serial0 = &uarta;
  15. serial1 = &uartb;
  16. serial2 = &uartc;
  17. serial3 = &uartd;
  18. };
  19. chosen {
  20. stdout-path = "serial0:115200n8";
  21. };
  22. pcie@3000 {
  23. pci@1,0 {
  24. status = "okay";
  25. };
  26. pci@2,0 {
  27. status = "okay";
  28. };
  29. };
  30. host1x@50000000 {
  31. dc@54200000 {
  32. rgb {
  33. status = "okay";
  34. nvidia,panel = <&panel>;
  35. };
  36. };
  37. hdmi@54280000 {
  38. status = "okay";
  39. hdmi-supply = <&reg_5v0>;
  40. };
  41. };
  42. /* Apalis UART1 */
  43. serial@70006000 {
  44. status = "okay";
  45. };
  46. /* Apalis UART2 */
  47. serial@70006040 {
  48. status = "okay";
  49. };
  50. /* Apalis UART3 */
  51. serial@70006200 {
  52. status = "okay";
  53. };
  54. /* Apalis UART4 */
  55. serial@70006300 {
  56. status = "okay";
  57. };
  58. pwm@7000a000 {
  59. status = "okay";
  60. };
  61. /*
  62. * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
  63. * board)
  64. */
  65. i2c@7000c000 {
  66. status = "okay";
  67. clock-frequency = <400000>;
  68. pcie-switch@58 {
  69. compatible = "plx,pex8605";
  70. reg = <0x58>;
  71. };
  72. /* M41T0M6 real time clock on carrier board */
  73. rtc@68 {
  74. compatible = "st,m41t0";
  75. reg = <0x68>;
  76. };
  77. };
  78. /* GEN2_I2C: unused */
  79. /*
  80. * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on
  81. * carrier board)
  82. */
  83. i2c@7000c500 {
  84. status = "okay";
  85. clock-frequency = <400000>;
  86. };
  87. /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */
  88. i2c@7000c700 {
  89. status = "okay";
  90. };
  91. /* SPI1: Apalis SPI1 */
  92. spi@7000d400 {
  93. status = "okay";
  94. spi-max-frequency = <25000000>;
  95. };
  96. /* SPI5: Apalis SPI2 */
  97. spi@7000dc00 {
  98. status = "okay";
  99. spi-max-frequency = <25000000>;
  100. };
  101. /* Apalis SD1 */
  102. mmc@78000000 {
  103. status = "okay";
  104. bus-width = <4>;
  105. /* SD1_CD# */
  106. cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
  107. no-1-8-v;
  108. };
  109. /* Apalis MMC1 */
  110. mmc@78000400 {
  111. status = "okay";
  112. bus-width = <8>;
  113. /* MMC1_CD# */
  114. cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
  115. vqmmc-supply = <&reg_vddio_sdmmc3>;
  116. };
  117. /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
  118. usb@7d000000 {
  119. status = "okay";
  120. dr_mode = "otg";
  121. };
  122. usb-phy@7d000000 {
  123. status = "okay";
  124. vbus-supply = <&reg_usbo1_vbus>;
  125. };
  126. /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
  127. usb@7d004000 {
  128. status = "okay";
  129. };
  130. usb-phy@7d004000 {
  131. status = "okay";
  132. vbus-supply = <&reg_usbh_vbus>;
  133. };
  134. /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */
  135. usb@7d008000 {
  136. status = "okay";
  137. };
  138. usb-phy@7d008000 {
  139. status = "okay";
  140. vbus-supply = <&reg_usbh_vbus>;
  141. };
  142. backlight: backlight {
  143. compatible = "pwm-backlight";
  144. brightness-levels = <255 231 223 207 191 159 127 0>;
  145. default-brightness-level = <6>;
  146. /* BKL1_ON */
  147. enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
  148. power-supply = <&reg_3v3>;
  149. pwms = <&pwm 0 5000000>; /* BKL1_PWM */
  150. };
  151. gpio-keys {
  152. compatible = "gpio-keys";
  153. key-wakeup {
  154. label = "WAKE1_MICO";
  155. gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>;
  156. linux,code = <KEY_WAKEUP>;
  157. debounce-interval = <10>;
  158. wakeup-source;
  159. };
  160. };
  161. panel: panel {
  162. /*
  163. * edt,et057090dhu: EDT 5.7" LCD TFT
  164. * edt,et070080dh6: EDT 7.0" LCD TFT
  165. */
  166. compatible = "edt,et057090dhu";
  167. backlight = <&backlight>;
  168. power-supply = <&reg_3v3>;
  169. };
  170. reg_3v3: regulator-3v3 {
  171. compatible = "regulator-fixed";
  172. regulator-name = "3.3V_SW";
  173. regulator-min-microvolt = <3300000>;
  174. regulator-max-microvolt = <3300000>;
  175. };
  176. reg_5v0: regulator-5v0 {
  177. compatible = "regulator-fixed";
  178. regulator-name = "5V_SW";
  179. regulator-min-microvolt = <5000000>;
  180. regulator-max-microvolt = <5000000>;
  181. };
  182. /* USBO1_EN */
  183. reg_usbo1_vbus: regulator-usbo1-vbus {
  184. compatible = "regulator-fixed";
  185. regulator-name = "VCC_USBO1";
  186. regulator-min-microvolt = <5000000>;
  187. regulator-max-microvolt = <5000000>;
  188. gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
  189. enable-active-high;
  190. vin-supply = <&reg_5v0>;
  191. };
  192. /* USBH_EN */
  193. reg_usbh_vbus: regulator-usbh-vbus {
  194. compatible = "regulator-fixed";
  195. regulator-name = "VCC_USBH(2A|2C|2D|3|4)";
  196. regulator-min-microvolt = <5000000>;
  197. regulator-max-microvolt = <5000000>;
  198. gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
  199. enable-active-high;
  200. vin-supply = <&reg_5v0>;
  201. };
  202. /*
  203. * 1.8 volt resp. 3.3 volt VDDIO_SDMMC3 depending on
  204. * EN_+3.3_SDMMC3 GPIO
  205. */
  206. reg_vddio_sdmmc3: regulator-vddio-sdmmc3 {
  207. compatible = "regulator-gpio";
  208. regulator-name = "VDDIO_SDMMC3";
  209. regulator-min-microvolt = <1800000>;
  210. regulator-max-microvolt = <3300000>;
  211. regulator-type = "voltage";
  212. gpios = <&gpio TEGRA_GPIO(J, 5) GPIO_ACTIVE_HIGH>;
  213. states = <1800000 0x0>,
  214. <3300000 0x1>;
  215. startup-delay-us = <100000>;
  216. vin-supply = <&vddio_sdmmc_1v8_reg>;
  217. };
  218. };
  219. &gpio {
  220. /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
  221. pex-perst-n-hog {
  222. gpio-hog;
  223. gpios = <TEGRA_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
  224. output-high;
  225. line-name = "PEX_PERST_N";
  226. };
  227. };