imx28-cfa10055.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. spi2_pins_cfa10055: spi2-cfa10055@0 {
  24. reg = <0>;
  25. fsl,pinmux-ids = <
  26. 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
  27. 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
  28. 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
  29. 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
  30. >;
  31. fsl,drive-strength = <1>;
  32. fsl,voltage = <1>;
  33. fsl,pull-up = <1>;
  34. };
  35. lcdif_18bit_pins_cfa10055: lcdif-18bit@0 {
  36. reg = <0>;
  37. fsl,pinmux-ids = <
  38. 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
  39. 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
  40. 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
  41. 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
  42. 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
  43. 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
  44. 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
  45. 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
  46. 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
  47. 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
  48. 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
  49. 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
  50. 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
  51. 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
  52. 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
  53. 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
  54. 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
  55. 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
  56. >;
  57. fsl,drive-strength = <0>;
  58. fsl,voltage = <1>;
  59. fsl,pull-up = <0>;
  60. };
  61. lcdif_pins_cfa10055: lcdif-evk@0 {
  62. reg = <0>;
  63. fsl,pinmux-ids = <
  64. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  65. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  66. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  67. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  68. >;
  69. fsl,drive-strength = <0>;
  70. fsl,voltage = <1>;
  71. fsl,pull-up = <0>;
  72. };
  73. lcdif_pins_cfa10055_pullup: lcdif-10055-pullup@0 {
  74. reg = <0>;
  75. fsl,pinmux-ids = <
  76. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  77. >;
  78. fsl,drive-strength = <0>;
  79. fsl,voltage = <1>;
  80. fsl,pull-up = <1>;
  81. };
  82. };
  83. lcdif@80030000 {
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&lcdif_18bit_pins_cfa10055
  86. &lcdif_pins_cfa10055
  87. &lcdif_pins_cfa10055_pullup>;
  88. display = <&display>;
  89. status = "okay";
  90. display: display {
  91. bits-per-pixel = <32>;
  92. bus-width = <18>;
  93. display-timings {
  94. native-mode = <&timing0>;
  95. timing0: timing0 {
  96. clock-frequency = <9216000>;
  97. hactive = <320>;
  98. vactive = <480>;
  99. hback-porch = <2>;
  100. hfront-porch = <2>;
  101. vback-porch = <2>;
  102. vfront-porch = <2>;
  103. hsync-len = <15>;
  104. vsync-len = <15>;
  105. hsync-active = <0>;
  106. vsync-active = <0>;
  107. de-active = <1>;
  108. pixelclk-active = <1>;
  109. };
  110. };
  111. };
  112. };
  113. };
  114. apbx@80040000 {
  115. lradc@80050000 {
  116. fsl,lradc-touchscreen-wires = <4>;
  117. status = "okay";
  118. };
  119. pwm: pwm@80064000 {
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pwm3_pins_b>;
  122. status = "okay";
  123. };
  124. };
  125. };
  126. spi2 {
  127. compatible = "spi-gpio";
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&spi2_pins_cfa10055>;
  130. status = "okay";
  131. gpio-sck = <&gpio2 16 0>;
  132. gpio-mosi = <&gpio2 17 0>;
  133. gpio-miso = <&gpio2 18 0>;
  134. cs-gpios = <&gpio3 5 0>;
  135. num-chipselects = <1>;
  136. #address-cells = <1>;
  137. #size-cells = <0>;
  138. hx8357: hx8357@0 {
  139. compatible = "himax,hx8357b", "himax,hx8357";
  140. reg = <0>;
  141. spi-max-frequency = <100000>;
  142. spi-cpol;
  143. spi-cpha;
  144. gpios-reset = <&gpio3 30 0>;
  145. };
  146. };
  147. backlight {
  148. compatible = "pwm-backlight";
  149. pwms = <&pwm 3 5000000>;
  150. brightness-levels = <0 4 8 16 32 64 128 255>;
  151. default-brightness-level = <6>;
  152. };
  153. };