imx6qdl-tx6-lvds.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /*
  2. * Copyright 2017 Lothar Waßmann <[email protected]>
  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. / {
  42. aliases {
  43. display = &lvds0;
  44. lvds0 = &lvds0;
  45. lvds1 = &lvds1;
  46. };
  47. backlight0: backlight0 {
  48. compatible = "pwm-backlight";
  49. pwms = <&pwm2 0 500000 0>;
  50. power-supply = <&reg_lcd0_pwr>;
  51. brightness-levels = < 0 1 2 3 4 5 6 7 8 9
  52. 10 11 12 13 14 15 16 17 18 19
  53. 20 21 22 23 24 25 26 27 28 29
  54. 30 31 32 33 34 35 36 37 38 39
  55. 40 41 42 43 44 45 46 47 48 49
  56. 50 51 52 53 54 55 56 57 58 59
  57. 60 61 62 63 64 65 66 67 68 69
  58. 70 71 72 73 74 75 76 77 78 79
  59. 80 81 82 83 84 85 86 87 88 89
  60. 90 91 92 93 94 95 96 97 98 99
  61. 100>;
  62. default-brightness-level = <50>;
  63. };
  64. backlight1: backlight1 {
  65. compatible = "pwm-backlight";
  66. pwms = <&pwm1 0 500000 0>;
  67. power-supply = <&reg_lcd1_pwr>;
  68. brightness-levels = < 0 1 2 3 4 5 6 7 8 9
  69. 10 11 12 13 14 15 16 17 18 19
  70. 20 21 22 23 24 25 26 27 28 29
  71. 30 31 32 33 34 35 36 37 38 39
  72. 40 41 42 43 44 45 46 47 48 49
  73. 50 51 52 53 54 55 56 57 58 59
  74. 60 61 62 63 64 65 66 67 68 69
  75. 70 71 72 73 74 75 76 77 78 79
  76. 80 81 82 83 84 85 86 87 88 89
  77. 90 91 92 93 94 95 96 97 98 99
  78. 100>;
  79. default-brightness-level = <50>;
  80. };
  81. lvds0_panel: lvds0-panel {
  82. compatible = "nlt,nl12880bc20-spwg-24";
  83. backlight = <&backlight0>;
  84. power-supply = <&reg_3v3>;
  85. port {
  86. panel_in_lvds0: endpoint {
  87. remote-endpoint = <&lvds0_out>;
  88. };
  89. };
  90. };
  91. lvds1_panel: lvds1-panel {
  92. compatible = "nlt,nl12880bc20-spwg-24";
  93. backlight = <&backlight1>;
  94. power-supply = <&reg_3v3>;
  95. port {
  96. panel_in_lvds1: endpoint {
  97. remote-endpoint = <&lvds1_out>;
  98. };
  99. };
  100. };
  101. };
  102. &kpp {
  103. status = "disabled"; /* pad conflict with backlight1 PWM */
  104. };
  105. &ldb {
  106. status = "okay";
  107. lvds0: lvds-channel@0 {
  108. fsl,data-width = <18>;
  109. status = "okay";
  110. port@4 {
  111. reg = <4>;
  112. lvds0_out: endpoint {
  113. remote-endpoint = <&panel_in_lvds0>;
  114. };
  115. };
  116. display-timings {
  117. hsd100pxn1 {
  118. u-boot,panel-name = "hannstar,hsd100pxn1";
  119. clock-frequency = <65000000>;
  120. hactive = <1024>;
  121. vactive = <768>;
  122. hback-porch = <220>;
  123. hfront-porch = <40>;
  124. vback-porch = <21>;
  125. vfront-porch = <7>;
  126. hsync-len = <60>;
  127. vsync-len = <10>;
  128. de-active = <1>;
  129. pixelclk-active = <1>;
  130. };
  131. VGA {
  132. clock-frequency = <25200000>;
  133. hactive = <640>;
  134. vactive = <480>;
  135. hback-porch = <48>;
  136. hfront-porch = <16>;
  137. vback-porch = <31>;
  138. vfront-porch = <12>;
  139. hsync-len = <96>;
  140. vsync-len = <2>;
  141. hsync-active = <0>;
  142. vsync-active = <0>;
  143. de-active = <1>;
  144. pixelclk-active = <0>;
  145. };
  146. nl12880bc20 {
  147. u-boot,panel-name = "nlt,nl12880bc20-spwg-24";
  148. clock-frequency = <71000000>;
  149. hactive = <1280>;
  150. vactive = <800>;
  151. hback-porch = <50>;
  152. hfront-porch = <50>;
  153. vback-porch = <5>;
  154. vfront-porch = <5>;
  155. hsync-len = <60>;
  156. vsync-len = <13>;
  157. hsync-active = <0>;
  158. vsync-active = <0>;
  159. de-active = <1>;
  160. pixelclk-active = <1>;
  161. };
  162. ET0700 {
  163. u-boot,panel-name = "edt,etm0700g0dh6";
  164. clock-frequency = <33264000>;
  165. hactive = <800>;
  166. vactive = <480>;
  167. hback-porch = <88>;
  168. hsync-len = <128>;
  169. hfront-porch = <40>;
  170. vback-porch = <33>;
  171. vsync-len = <2>;
  172. vfront-porch = <10>;
  173. hsync-active = <0>;
  174. vsync-active = <0>;
  175. de-active = <1>;
  176. pixelclk-active = <0>;
  177. };
  178. ETV570 {
  179. u-boot,panel-name = "edt,et057090dhu";
  180. clock-frequency = <25200000>;
  181. hactive = <640>;
  182. vactive = <480>;
  183. hback-porch = <114>;
  184. hsync-len = <30>;
  185. hfront-porch = <16>;
  186. vback-porch = <32>;
  187. vsync-len = <3>;
  188. vfront-porch = <10>;
  189. hsync-active = <0>;
  190. vsync-active = <0>;
  191. de-active = <1>;
  192. pixelclk-active = <0>;
  193. };
  194. };
  195. };
  196. lvds1: lvds-channel@1 {
  197. fsl,data-width = <18>;
  198. status = "okay";
  199. port@4 {
  200. reg = <4>;
  201. lvds1_out: endpoint {
  202. remote-endpoint = <&panel_in_lvds1>;
  203. };
  204. };
  205. display-timings {
  206. hsd100pxn1 {
  207. clock-frequency = <65000000>;
  208. hactive = <1024>;
  209. vactive = <768>;
  210. hback-porch = <220>;
  211. hfront-porch = <40>;
  212. vback-porch = <21>;
  213. vfront-porch = <7>;
  214. hsync-len = <60>;
  215. vsync-len = <10>;
  216. de-active = <1>;
  217. pixelclk-active = <1>;
  218. };
  219. VGA {
  220. clock-frequency = <25200000>;
  221. hactive = <640>;
  222. vactive = <480>;
  223. hback-porch = <48>;
  224. hfront-porch = <16>;
  225. vback-porch = <31>;
  226. vfront-porch = <12>;
  227. hsync-len = <96>;
  228. vsync-len = <2>;
  229. hsync-active = <0>;
  230. vsync-active = <0>;
  231. de-active = <1>;
  232. pixelclk-active = <0>;
  233. };
  234. nl12880bc20 {
  235. clock-frequency = <71000000>;
  236. hactive = <1280>;
  237. vactive = <800>;
  238. hback-porch = <50>;
  239. hfront-porch = <50>;
  240. vback-porch = <5>;
  241. vfront-porch = <5>;
  242. hsync-len = <60>;
  243. vsync-len = <13>;
  244. hsync-active = <0>;
  245. vsync-active = <0>;
  246. de-active = <1>;
  247. pixelclk-active = <1>;
  248. };
  249. };
  250. };
  251. };
  252. &pwm1 {
  253. status = "okay";
  254. };
  255. &reg_lcd0_pwr {
  256. status = "okay";
  257. };
  258. &reg_lcd1_pwr {
  259. status = "okay";
  260. };