imx6dl-tx6u-8033.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /*
  2. * Copyright 2014-2016 Lothar Waßmann <LW@KARO-electronics.de>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * Or, alternatively,
  19. *
  20. * b) Permission is hereby granted, free of charge, to any person
  21. * obtaining a copy of this software and associated documentation
  22. * files (the "Software"), to deal in the Software without
  23. * restriction, including without limitation the rights to use,
  24. * copy, modify, merge, publish, distribute, sublicense, and/or
  25. * sell copies of the Software, and to permit persons to whom the
  26. * Software is furnished to do so, subject to the following
  27. * conditions:
  28. *
  29. * The above copyright notice and this permission notice shall be
  30. * included in all copies or substantial portions of the Software.
  31. *
  32. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  34. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  36. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  37. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  39. * OTHER DEALINGS IN THE SOFTWARE.
  40. */
  41. /dts-v1/;
  42. #include "imx6dl.dtsi"
  43. #include "imx6qdl-tx6.dtsi"
  44. / {
  45. model = "Ka-Ro electronics TX6U-8033 Module";
  46. compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
  47. aliases {
  48. display = &display;
  49. };
  50. backlight: backlight {
  51. compatible = "pwm-backlight";
  52. pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
  53. pinctrl-names = "default";
  54. pinctrl-0 = <&pinctrl_lcd0_pwr>;
  55. enable-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
  56. power-supply = <&reg_lcd1_pwr>;
  57. /*
  58. * a poor man's way to create a 1:1 relationship between
  59. * the PWM value and the actual duty cycle
  60. */
  61. brightness-levels = < 0 1 2 3 4 5 6 7 8 9
  62. 10 11 12 13 14 15 16 17 18 19
  63. 20 21 22 23 24 25 26 27 28 29
  64. 30 31 32 33 34 35 36 37 38 39
  65. 40 41 42 43 44 45 46 47 48 49
  66. 50 51 52 53 54 55 56 57 58 59
  67. 60 61 62 63 64 65 66 67 68 69
  68. 70 71 72 73 74 75 76 77 78 79
  69. 80 81 82 83 84 85 86 87 88 89
  70. 90 91 92 93 94 95 96 97 98 99
  71. 100>;
  72. default-brightness-level = <50>;
  73. };
  74. display: display@di0 {
  75. compatible = "fsl,imx-parallel-display";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_disp0_2>;
  78. interface-pix-fmt = "rgb24";
  79. status = "okay";
  80. port {
  81. display0_in: endpoint {
  82. remote-endpoint = <&ipu1_di0_disp0>;
  83. };
  84. };
  85. display-timings {
  86. native-mode = <&vga>;
  87. vga: VGA {
  88. clock-frequency = <25200000>;
  89. hactive = <640>;
  90. vactive = <480>;
  91. hback-porch = <48>;
  92. hsync-len = <96>;
  93. hfront-porch = <16>;
  94. vback-porch = <31>;
  95. vsync-len = <2>;
  96. vfront-porch = <12>;
  97. hsync-active = <0>;
  98. vsync-active = <0>;
  99. de-active = <1>;
  100. pixelclk-active = <0>;
  101. };
  102. ETV570 {
  103. clock-frequency = <25200000>;
  104. hactive = <640>;
  105. vactive = <480>;
  106. hback-porch = <114>;
  107. hsync-len = <30>;
  108. hfront-porch = <16>;
  109. vback-porch = <32>;
  110. vsync-len = <3>;
  111. vfront-porch = <10>;
  112. hsync-active = <0>;
  113. vsync-active = <0>;
  114. de-active = <1>;
  115. pixelclk-active = <0>;
  116. };
  117. ET0350 {
  118. clock-frequency = <6413760>;
  119. hactive = <320>;
  120. vactive = <240>;
  121. hback-porch = <34>;
  122. hsync-len = <34>;
  123. hfront-porch = <20>;
  124. vback-porch = <15>;
  125. vsync-len = <3>;
  126. vfront-porch = <4>;
  127. hsync-active = <0>;
  128. vsync-active = <0>;
  129. de-active = <1>;
  130. pixelclk-active = <0>;
  131. };
  132. ET0430 {
  133. clock-frequency = <9009000>;
  134. hactive = <480>;
  135. vactive = <272>;
  136. hback-porch = <2>;
  137. hsync-len = <41>;
  138. hfront-porch = <2>;
  139. vback-porch = <2>;
  140. vsync-len = <10>;
  141. vfront-porch = <2>;
  142. hsync-active = <0>;
  143. vsync-active = <0>;
  144. de-active = <1>;
  145. pixelclk-active = <1>;
  146. };
  147. ET0500 {
  148. clock-frequency = <33264000>;
  149. hactive = <800>;
  150. vactive = <480>;
  151. hback-porch = <88>;
  152. hsync-len = <128>;
  153. hfront-porch = <40>;
  154. vback-porch = <33>;
  155. vsync-len = <2>;
  156. vfront-porch = <10>;
  157. hsync-active = <0>;
  158. vsync-active = <0>;
  159. de-active = <1>;
  160. pixelclk-active = <0>;
  161. };
  162. ET0700 { /* same as ET0500 */
  163. clock-frequency = <33264000>;
  164. hactive = <800>;
  165. vactive = <480>;
  166. hback-porch = <88>;
  167. hsync-len = <128>;
  168. hfront-porch = <40>;
  169. vback-porch = <33>;
  170. vsync-len = <2>;
  171. vfront-porch = <10>;
  172. hsync-active = <0>;
  173. vsync-active = <0>;
  174. de-active = <1>;
  175. pixelclk-active = <0>;
  176. };
  177. ETQ570 {
  178. clock-frequency = <6596040>;
  179. hactive = <320>;
  180. vactive = <240>;
  181. hback-porch = <38>;
  182. hsync-len = <30>;
  183. hfront-porch = <30>;
  184. vback-porch = <16>;
  185. vsync-len = <3>;
  186. vfront-porch = <4>;
  187. hsync-active = <0>;
  188. vsync-active = <0>;
  189. de-active = <1>;
  190. pixelclk-active = <0>;
  191. };
  192. };
  193. };
  194. };
  195. &ds1339 {
  196. status = "disabled";
  197. };
  198. &gpmi {
  199. status = "disabled";
  200. };
  201. &ipu1_di0_disp0 {
  202. remote-endpoint = <&display0_in>;
  203. };
  204. &reg_lcd0_pwr {
  205. status = "disabled";
  206. };
  207. &usdhc4 {
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&pinctrl_usdhc4>;
  210. bus-width = <4>;
  211. non-removable;
  212. no-1-8-v;
  213. fsl,wp-controller;
  214. status = "okay";
  215. };
  216. &iomuxc {
  217. pinctrl_usdhc4: usdhc4grp {
  218. fsl,pins = <
  219. MX6QDL_PAD_SD4_CMD__SD4_CMD 0x070b1
  220. MX6QDL_PAD_SD4_CLK__SD4_CLK 0x070b1
  221. MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x070b1
  222. MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x070b1
  223. MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x070b1
  224. MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x070b1
  225. MX6QDL_PAD_NANDF_ALE__SD4_RESET 0x0b0b1
  226. >;
  227. };
  228. };