imx53-tx53-x13x.dts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /*
  2. * Copyright 2013-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. * The code contained herein is licensed under the GNU General Public
  41. * License. You may obtain a copy of the GNU General Public License
  42. * Version 2 at the following locations:
  43. *
  44. * http://www.opensource.org/licenses/gpl-license.html
  45. * http://www.gnu.org/copyleft/gpl.html
  46. */
  47. /dts-v1/;
  48. #include "imx53-tx53.dtsi"
  49. #include <dt-bindings/input/input.h>
  50. / {
  51. model = "Ka-Ro electronics TX53 module (LVDS)";
  52. compatible = "karo,tx53", "fsl,imx53";
  53. aliases {
  54. display = &lvds0;
  55. lvds0 = &lvds0;
  56. lvds1 = &lvds1;
  57. };
  58. backlight0: backlight0 {
  59. compatible = "pwm-backlight";
  60. pwms = <&pwm2 0 500000 0>;
  61. power-supply = <&reg_3v3>;
  62. brightness-levels = <
  63. 0 1 2 3 4 5 6 7 8 9
  64. 10 11 12 13 14 15 16 17 18 19
  65. 20 21 22 23 24 25 26 27 28 29
  66. 30 31 32 33 34 35 36 37 38 39
  67. 40 41 42 43 44 45 46 47 48 49
  68. 50 51 52 53 54 55 56 57 58 59
  69. 60 61 62 63 64 65 66 67 68 69
  70. 70 71 72 73 74 75 76 77 78 79
  71. 80 81 82 83 84 85 86 87 88 89
  72. 90 91 92 93 94 95 96 97 98 99
  73. 100
  74. >;
  75. default-brightness-level = <50>;
  76. };
  77. backlight1: backlight1 {
  78. compatible = "pwm-backlight";
  79. pwms = <&pwm1 0 500000 0>;
  80. power-supply = <&reg_3v3>;
  81. brightness-levels = <
  82. 0 1 2 3 4 5 6 7 8 9
  83. 10 11 12 13 14 15 16 17 18 19
  84. 20 21 22 23 24 25 26 27 28 29
  85. 30 31 32 33 34 35 36 37 38 39
  86. 40 41 42 43 44 45 46 47 48 49
  87. 50 51 52 53 54 55 56 57 58 59
  88. 60 61 62 63 64 65 66 67 68 69
  89. 70 71 72 73 74 75 76 77 78 79
  90. 80 81 82 83 84 85 86 87 88 89
  91. 90 91 92 93 94 95 96 97 98 99
  92. 100
  93. >;
  94. default-brightness-level = <50>;
  95. };
  96. reg_lcd_pwr0: regulator-lvds0-pwr {
  97. compatible = "regulator-fixed";
  98. regulator-name = "LVDS0 POWER";
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
  102. enable-active-high;
  103. regulator-boot-on;
  104. };
  105. reg_lcd_pwr1: regulator-lvds1-pwr {
  106. compatible = "regulator-fixed";
  107. regulator-name = "LVDS1 POWER";
  108. regulator-min-microvolt = <3300000>;
  109. regulator-max-microvolt = <3300000>;
  110. gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
  111. enable-active-high;
  112. regulator-boot-on;
  113. };
  114. };
  115. &i2c3 {
  116. pinctrl-names = "default", "gpio";
  117. pinctrl-0 = <&pinctrl_i2c3>;
  118. pinctrl-1 = <&pinctrl_i2c3_gpio>;
  119. scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
  120. sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
  121. status = "okay";
  122. sgtl5000: codec@a {
  123. compatible = "fsl,sgtl5000";
  124. reg = <0x0a>;
  125. #sound-dai-cells = <0>;
  126. VDDA-supply = <&reg_2v5>;
  127. VDDIO-supply = <&reg_3v3>;
  128. clocks = <&mclk>;
  129. };
  130. };
  131. &iomuxc {
  132. imx53-tx53-x13x {
  133. pinctrl_lvds0: lvds0grp {
  134. fsl,pins = <
  135. MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000
  136. MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK 0x80000000
  137. MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2 0x80000000
  138. MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1 0x80000000
  139. MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0 0x80000000
  140. >;
  141. };
  142. pinctrl_lvds1: lvds1grp {
  143. fsl,pins = <
  144. MX53_PAD_LVDS1_TX3_P__LDB_LVDS1_TX3 0x80000000
  145. MX53_PAD_LVDS1_TX2_P__LDB_LVDS1_TX2 0x80000000
  146. MX53_PAD_LVDS1_CLK_P__LDB_LVDS1_CLK 0x80000000
  147. MX53_PAD_LVDS1_TX1_P__LDB_LVDS1_TX1 0x80000000
  148. MX53_PAD_LVDS1_TX0_P__LDB_LVDS1_TX0 0x80000000
  149. >;
  150. };
  151. pinctrl_pwm1: pwm1grp {
  152. fsl,pins = <MX53_PAD_GPIO_9__PWM1_PWMO 0x04>;
  153. };
  154. pinctrl_eeti1: eeti1grp {
  155. fsl,pins = <
  156. MX53_PAD_EIM_D22__GPIO3_22 0x1f0 /* Interrupt */
  157. >;
  158. };
  159. pinctrl_eeti2: eeti2grp {
  160. fsl,pins = <
  161. MX53_PAD_EIM_D23__GPIO3_23 0x1f0 /* Interrupt */
  162. >;
  163. };
  164. };
  165. };
  166. &ldb {
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&pinctrl_lvds0 &pinctrl_lvds1>;
  169. status = "okay";
  170. lvds0: lvds-channel@0 {
  171. fsl,data-mapping = "spwg";
  172. fsl,data-width = <18>;
  173. status = "okay";
  174. display-timings {
  175. native-mode = <&lvds0_timing0>;
  176. lvds0_timing0: hsd100pxn1 {
  177. clock-frequency = <65000000>;
  178. hactive = <1024>;
  179. vactive = <768>;
  180. hback-porch = <220>;
  181. hsync-len = <60>;
  182. hfront-porch = <40>;
  183. vback-porch = <21>;
  184. vsync-len = <10>;
  185. vfront-porch = <7>;
  186. hsync-active = <0>;
  187. vsync-active = <0>;
  188. de-active = <1>;
  189. pixelclk-active = <1>;
  190. };
  191. lvds0_timing1: nl12880bc20 {
  192. clock-frequency = <71000000>;
  193. hactive = <1280>;
  194. vactive = <800>;
  195. hback-porch = <50>;
  196. hsync-len = <60>;
  197. hfront-porch = <50>;
  198. vback-porch = <5>;
  199. vsync-len = <13>;
  200. vfront-porch = <5>;
  201. hsync-active = <0>;
  202. vsync-active = <0>;
  203. de-active = <1>;
  204. pixelclk-active = <1>;
  205. };
  206. };
  207. };
  208. lvds1: lvds-channel@1 {
  209. fsl,data-mapping = "spwg";
  210. fsl,data-width = <18>;
  211. status = "okay";
  212. display-timings {
  213. native-mode = <&lvds1_timing0>;
  214. lvds1_timing0: hsd100pxn1 {
  215. clock-frequency = <65000000>;
  216. hactive = <1024>;
  217. vactive = <768>;
  218. hback-porch = <220>;
  219. hsync-len = <60>;
  220. hfront-porch = <40>;
  221. vback-porch = <21>;
  222. vsync-len = <10>;
  223. vfront-porch = <7>;
  224. hsync-active = <0>;
  225. vsync-active = <0>;
  226. de-active = <1>;
  227. pixelclk-active = <1>;
  228. };
  229. };
  230. };
  231. };
  232. &pwm1 {
  233. pinctrl-names = "default";
  234. pinctrl-0 = <&pinctrl_pwm1>;
  235. };
  236. &sata {
  237. status = "okay";
  238. };