tegra30-apalis-eval.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. /dts-v1/;
  2. #include <dt-bindings/input/input.h>
  3. #include "tegra30-apalis.dtsi"
  4. / {
  5. model = "Toradex Apalis T30 on Apalis Evaluation Board";
  6. compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", "nvidia,tegra30";
  7. aliases {
  8. rtc0 = "/i2c@7000c000/rtc@68";
  9. rtc1 = "/i2c@7000d000/tps65911@2d";
  10. rtc2 = "/rtc@7000e000";
  11. serial0 = &uarta;
  12. serial1 = &uartb;
  13. serial2 = &uartc;
  14. serial3 = &uartd;
  15. };
  16. pcie-controller@00003000 {
  17. status = "okay";
  18. pci@1,0 {
  19. status = "okay";
  20. };
  21. pci@2,0 {
  22. status = "okay";
  23. };
  24. pci@3,0 {
  25. status = "okay";
  26. };
  27. };
  28. host1x@50000000 {
  29. dc@54200000 {
  30. rgb {
  31. status = "okay";
  32. nvidia,panel = <&panel>;
  33. };
  34. };
  35. hdmi@54280000 {
  36. status = "okay";
  37. };
  38. };
  39. serial@70006000 {
  40. status = "okay";
  41. };
  42. serial@70006040 {
  43. compatible = "nvidia,tegra30-hsuart";
  44. status = "okay";
  45. };
  46. serial@70006200 {
  47. compatible = "nvidia,tegra30-hsuart";
  48. status = "okay";
  49. };
  50. serial@70006300 {
  51. compatible = "nvidia,tegra30-hsuart";
  52. status = "okay";
  53. };
  54. pwm@7000a000 {
  55. status = "okay";
  56. };
  57. /*
  58. * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
  59. * board)
  60. */
  61. i2c@7000c000 {
  62. status = "okay";
  63. clock-frequency = <100000>;
  64. pcie-switch@58 {
  65. compatible = "plx,pex8605";
  66. reg = <0x58>;
  67. };
  68. /* M41T0M6 real time clock on carrier board */
  69. rtc@68 {
  70. compatible = "st,m41t00";
  71. reg = <0x68>;
  72. };
  73. };
  74. /* GEN2_I2C: unused */
  75. /*
  76. * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on
  77. * carrier board)
  78. */
  79. cami2c: i2c@7000c500 {
  80. status = "okay";
  81. clock-frequency = <400000>;
  82. };
  83. /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */
  84. hdmiddc: i2c@7000c700 {
  85. status = "okay";
  86. };
  87. /* SPI1: Apalis SPI1 */
  88. spi@7000d400 {
  89. status = "okay";
  90. spi-max-frequency = <25000000>;
  91. spidev0: spidev@1 {
  92. compatible = "spidev";
  93. reg = <1>;
  94. spi-max-frequency = <25000000>;
  95. };
  96. };
  97. /* SPI5: Apalis SPI2 */
  98. spi@7000dc00 {
  99. status = "okay";
  100. spi-max-frequency = <25000000>;
  101. spidev1: spidev@2 {
  102. compatible = "spidev";
  103. reg = <2>;
  104. spi-max-frequency = <25000000>;
  105. };
  106. };
  107. sd1: sdhci@78000000 {
  108. status = "okay";
  109. bus-width = <4>;
  110. /* SD1_CD# */
  111. cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
  112. no-1-8-v;
  113. };
  114. mmc1: sdhci@78000400 {
  115. status = "okay";
  116. bus-width = <8>;
  117. /* MMC1_CD# */
  118. cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
  119. no-1-8-v;
  120. };
  121. /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
  122. usb@7d000000 {
  123. status = "okay";
  124. };
  125. usb-phy@7d000000 {
  126. status = "okay";
  127. vbus-supply = <&usbo1_vbus_reg>;
  128. };
  129. /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
  130. usb@7d004000 {
  131. status = "okay";
  132. };
  133. usb-phy@7d004000 {
  134. status = "okay";
  135. vbus-supply = <&usbh_vbus_reg>;
  136. };
  137. /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */
  138. usb@7d008000 {
  139. status = "okay";
  140. };
  141. usb-phy@7d008000 {
  142. status = "okay";
  143. vbus-supply = <&usbh_vbus_reg>;
  144. };
  145. backlight: backlight {
  146. compatible = "pwm-backlight";
  147. /* PWM0 */
  148. pwms = <&pwm 0 5000000>;
  149. brightness-levels = <255 231 223 207 191 159 127 0>;
  150. default-brightness-level = <6>;
  151. /* BKL1_ON */
  152. enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
  153. };
  154. gpio-keys {
  155. compatible = "gpio-keys";
  156. power {
  157. label = "Power";
  158. gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>;
  159. linux,code = <KEY_POWER>;
  160. debounce-interval = <10>;
  161. gpio-key,wakeup;
  162. };
  163. };
  164. panel: panel {
  165. /*
  166. * edt,et057090dhu: EDT 5.7" LCD TFT
  167. * edt,et070080dh6: EDT 7.0" LCD TFT
  168. */
  169. compatible = "edt,et057090dhu", "simple-panel";
  170. backlight = <&backlight>;
  171. };
  172. pwmleds {
  173. compatible = "pwm-leds";
  174. pwm1 {
  175. label = "PWM1";
  176. pwms = <&pwm 3 19600>;
  177. max-brightness = <255>;
  178. };
  179. pwm2 {
  180. label = "PWM2";
  181. pwms = <&pwm 2 19600>;
  182. max-brightness = <255>;
  183. };
  184. pwm3 {
  185. label = "PWM3";
  186. pwms = <&pwm 1 19600>;
  187. max-brightness = <255>;
  188. };
  189. };
  190. regulators {
  191. sys_5v0_reg: regulator@1 {
  192. compatible = "regulator-fixed";
  193. reg = <1>;
  194. regulator-name = "5v0";
  195. regulator-min-microvolt = <5000000>;
  196. regulator-max-microvolt = <5000000>;
  197. regulator-always-on;
  198. };
  199. /* USBO1_EN */
  200. usbo1_vbus_reg: regulator@2 {
  201. compatible = "regulator-fixed";
  202. reg = <2>;
  203. regulator-name = "usbo1_vbus";
  204. regulator-min-microvolt = <5000000>;
  205. regulator-max-microvolt = <5000000>;
  206. gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
  207. enable-active-high;
  208. vin-supply = <&sys_5v0_reg>;
  209. };
  210. /* USBH_EN */
  211. usbh_vbus_reg: regulator@3 {
  212. compatible = "regulator-fixed";
  213. reg = <3>;
  214. regulator-name = "usbh_vbus";
  215. regulator-min-microvolt = <5000000>;
  216. regulator-max-microvolt = <5000000>;
  217. gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
  218. enable-active-high;
  219. vin-supply = <&sys_5v0_reg>;
  220. };
  221. };
  222. };