tegra30-apalis-eval.dts 4.5 KB

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