imx28-cfa10055.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /*
  2. * Copyright 2013 Crystalfontz America, Inc.
  3. * Free Electrons
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. /*
  13. * The CFA-10055 is an expansion board for the CFA-10036 module and
  14. * CFA-10037, thus we need to include the CFA-10037 DTS.
  15. */
  16. /include/ "imx28-cfa10037.dts"
  17. / {
  18. model = "Crystalfontz CFA-10055 Board";
  19. compatible = "crystalfontz,cfa10055", "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
  20. apb@80000000 {
  21. apbh@80000000 {
  22. pinctrl@80018000 {
  23. pinctrl-names = "default", "default";
  24. pinctrl-1 = <&hog_pins_cfa10055
  25. &hog_pins_cfa10055_pullup>;
  26. hog_pins_cfa10055: hog-10055@0 {
  27. reg = <0>;
  28. fsl,pinmux-ids = <
  29. 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
  30. >;
  31. fsl,drive-strength = <0>;
  32. fsl,voltage = <1>;
  33. fsl,pull-up = <0>;
  34. };
  35. hog_pins_cfa10055_pullup: hog-10055-pullup@0 {
  36. reg = <0>;
  37. fsl,pinmux-ids = <
  38. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  39. >;
  40. fsl,drive-strength = <0>;
  41. fsl,voltage = <1>;
  42. fsl,pull-up = <1>;
  43. };
  44. spi2_pins_cfa10055: spi2-cfa10055@0 {
  45. reg = <0>;
  46. fsl,pinmux-ids = <
  47. 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
  48. 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
  49. 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
  50. >;
  51. fsl,drive-strength = <1>;
  52. fsl,voltage = <1>;
  53. fsl,pull-up = <1>;
  54. };
  55. lcdif_18bit_pins_cfa10055: lcdif-18bit@0 {
  56. reg = <0>;
  57. fsl,pinmux-ids = <
  58. 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
  59. 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
  60. 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
  61. 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
  62. 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
  63. 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
  64. 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
  65. 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
  66. 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
  67. 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
  68. 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
  69. 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
  70. 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
  71. 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
  72. 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
  73. 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
  74. 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
  75. 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
  76. >;
  77. fsl,drive-strength = <0>;
  78. fsl,voltage = <1>;
  79. fsl,pull-up = <0>;
  80. };
  81. lcdif_pins_cfa10055: lcdif-evk@0 {
  82. reg = <0>;
  83. fsl,pinmux-ids = <
  84. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  85. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  86. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  87. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  88. >;
  89. fsl,drive-strength = <0>;
  90. fsl,voltage = <1>;
  91. fsl,pull-up = <0>;
  92. };
  93. };
  94. lcdif@80030000 {
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&lcdif_18bit_pins_cfa10055
  97. &lcdif_pins_cfa10055>;
  98. display = <&display>;
  99. status = "okay";
  100. display: display {
  101. bits-per-pixel = <32>;
  102. bus-width = <18>;
  103. display-timings {
  104. native-mode = <&timing0>;
  105. timing0: timing0 {
  106. clock-frequency = <9216000>;
  107. hactive = <320>;
  108. vactive = <480>;
  109. hback-porch = <2>;
  110. hfront-porch = <2>;
  111. vback-porch = <2>;
  112. vfront-porch = <2>;
  113. hsync-len = <15>;
  114. vsync-len = <15>;
  115. hsync-active = <0>;
  116. vsync-active = <0>;
  117. de-active = <1>;
  118. pixelclk-active = <1>;
  119. };
  120. };
  121. };
  122. };
  123. };
  124. apbx@80040000 {
  125. lradc@80050000 {
  126. fsl,lradc-touchscreen-wires = <4>;
  127. status = "okay";
  128. };
  129. pwm: pwm@80064000 {
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&pwm3_pins_b>;
  132. status = "okay";
  133. };
  134. };
  135. };
  136. spi2 {
  137. compatible = "spi-gpio";
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&spi2_pins_cfa10055>;
  140. status = "okay";
  141. gpio-sck = <&gpio2 16 0>;
  142. gpio-mosi = <&gpio2 17 0>;
  143. gpio-miso = <&gpio2 18 0>;
  144. cs-gpios = <&gpio3 5 0>;
  145. num-chipselects = <1>;
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. hx8357: hx8357@0 {
  149. compatible = "himax,hx8357b", "himax,hx8357";
  150. reg = <0>;
  151. spi-max-frequency = <100000>;
  152. spi-cpol;
  153. spi-cpha;
  154. gpios-reset = <&gpio3 30 0>;
  155. };
  156. };
  157. backlight {
  158. compatible = "pwm-backlight";
  159. pwms = <&pwm 3 5000000>;
  160. brightness-levels = <0 4 8 16 32 64 128 255>;
  161. default-brightness-level = <6>;
  162. };
  163. };