imx6q-tx6q-1010.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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 "imx6q.dtsi"
  43. #include "imx6qdl-tx6.dtsi"
  44. / {
  45. model = "Ka-Ro electronics TX6Q-1010 Module";
  46. compatible = "karo,imx6q-tx6q", "fsl,imx6q";
  47. aliases {
  48. display = &display;
  49. };
  50. backlight: backlight {
  51. compatible = "pwm-backlight";
  52. pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
  53. power-supply = <&reg_3v3>;
  54. /*
  55. * a poor man's way to create a 1:1 relationship between
  56. * the PWM value and the actual duty cycle
  57. */
  58. brightness-levels = < 0 1 2 3 4 5 6 7 8 9
  59. 10 11 12 13 14 15 16 17 18 19
  60. 20 21 22 23 24 25 26 27 28 29
  61. 30 31 32 33 34 35 36 37 38 39
  62. 40 41 42 43 44 45 46 47 48 49
  63. 50 51 52 53 54 55 56 57 58 59
  64. 60 61 62 63 64 65 66 67 68 69
  65. 70 71 72 73 74 75 76 77 78 79
  66. 80 81 82 83 84 85 86 87 88 89
  67. 90 91 92 93 94 95 96 97 98 99
  68. 100>;
  69. default-brightness-level = <50>;
  70. };
  71. display: display@di0 {
  72. compatible = "fsl,imx-parallel-display";
  73. interface-pix-fmt = "rgb24";
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&pinctrl_disp0_1>;
  76. status = "okay";
  77. port {
  78. display0_in: endpoint {
  79. remote-endpoint = <&ipu1_di0_disp0>;
  80. };
  81. };
  82. display-timings {
  83. VGA {
  84. clock-frequency = <25200000>;
  85. hactive = <640>;
  86. vactive = <480>;
  87. hback-porch = <48>;
  88. hsync-len = <96>;
  89. hfront-porch = <16>;
  90. vback-porch = <31>;
  91. vsync-len = <2>;
  92. vfront-porch = <12>;
  93. hsync-active = <0>;
  94. vsync-active = <0>;
  95. de-active = <1>;
  96. pixelclk-active = <0>;
  97. };
  98. ETV570 {
  99. clock-frequency = <25200000>;
  100. hactive = <640>;
  101. vactive = <480>;
  102. hback-porch = <114>;
  103. hsync-len = <30>;
  104. hfront-porch = <16>;
  105. vback-porch = <32>;
  106. vsync-len = <3>;
  107. vfront-porch = <10>;
  108. hsync-active = <0>;
  109. vsync-active = <0>;
  110. de-active = <1>;
  111. pixelclk-active = <0>;
  112. };
  113. ET0350 {
  114. clock-frequency = <6413760>;
  115. hactive = <320>;
  116. vactive = <240>;
  117. hback-porch = <34>;
  118. hsync-len = <34>;
  119. hfront-porch = <20>;
  120. vback-porch = <15>;
  121. vsync-len = <3>;
  122. vfront-porch = <4>;
  123. hsync-active = <0>;
  124. vsync-active = <0>;
  125. de-active = <1>;
  126. pixelclk-active = <0>;
  127. };
  128. ET0430 {
  129. clock-frequency = <9009000>;
  130. hactive = <480>;
  131. vactive = <272>;
  132. hback-porch = <2>;
  133. hsync-len = <41>;
  134. hfront-porch = <2>;
  135. vback-porch = <2>;
  136. vsync-len = <10>;
  137. vfront-porch = <2>;
  138. hsync-active = <0>;
  139. vsync-active = <0>;
  140. de-active = <1>;
  141. pixelclk-active = <1>;
  142. };
  143. ET0500 {
  144. clock-frequency = <33264000>;
  145. hactive = <800>;
  146. vactive = <480>;
  147. hback-porch = <88>;
  148. hsync-len = <128>;
  149. hfront-porch = <40>;
  150. vback-porch = <33>;
  151. vsync-len = <2>;
  152. vfront-porch = <10>;
  153. hsync-active = <0>;
  154. vsync-active = <0>;
  155. de-active = <1>;
  156. pixelclk-active = <0>;
  157. };
  158. ET0700 { /* same as ET0500 */
  159. clock-frequency = <33264000>;
  160. hactive = <800>;
  161. vactive = <480>;
  162. hback-porch = <88>;
  163. hsync-len = <128>;
  164. hfront-porch = <40>;
  165. vback-porch = <33>;
  166. vsync-len = <2>;
  167. vfront-porch = <10>;
  168. hsync-active = <0>;
  169. vsync-active = <0>;
  170. de-active = <1>;
  171. pixelclk-active = <0>;
  172. };
  173. ETQ570 {
  174. clock-frequency = <6596040>;
  175. hactive = <320>;
  176. vactive = <240>;
  177. hback-porch = <38>;
  178. hsync-len = <30>;
  179. hfront-porch = <30>;
  180. vback-porch = <16>;
  181. vsync-len = <3>;
  182. vfront-porch = <4>;
  183. hsync-active = <0>;
  184. vsync-active = <0>;
  185. de-active = <1>;
  186. pixelclk-active = <0>;
  187. };
  188. };
  189. };
  190. };
  191. &ipu1_di0_disp0 {
  192. remote-endpoint = <&display0_in>;
  193. };