imx28-cfa10057.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /*
  2. * Copyright 2013 Crystalfontz America, Inc.
  3. * Copyright 2012 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-10057 is an expansion board for the CFA-10036 module, thus we
  14. * need to include the CFA-10036 DTS.
  15. */
  16. /include/ "imx28-cfa10036.dts"
  17. / {
  18. model = "Crystalfontz CFA-10057 Board";
  19. compatible = "crystalfontz,cfa10057", "crystalfontz,cfa10036", "fsl,imx28";
  20. apb@80000000 {
  21. apbh@80000000 {
  22. pinctrl@80018000 {
  23. pinctrl-names = "default", "default";
  24. pinctrl-1 = <&hog_pins_cfa10057
  25. &hog_pins_cfa10057_pullup>;
  26. hog_pins_cfa10057: hog-10057@0 {
  27. reg = <0>;
  28. fsl,pinmux-ids = <
  29. 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
  30. 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
  31. >;
  32. fsl,drive-strength = <0>;
  33. fsl,voltage = <1>;
  34. fsl,pull-up = <0>;
  35. };
  36. hog_pins_cfa10057_pullup: hog-10057-pullup@0 {
  37. reg = <0>;
  38. fsl,pinmux-ids = <
  39. 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
  40. 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
  41. 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
  42. 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
  43. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  44. >;
  45. fsl,drive-strength = <0>;
  46. fsl,voltage = <1>;
  47. fsl,pull-up = <1>;
  48. };
  49. lcdif_18bit_pins_cfa10057: lcdif-18bit@0 {
  50. reg = <0>;
  51. fsl,pinmux-ids = <
  52. 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
  53. 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
  54. 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
  55. 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
  56. 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
  57. 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
  58. 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
  59. 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
  60. 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
  61. 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
  62. 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
  63. 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
  64. 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
  65. 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
  66. 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
  67. 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
  68. 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
  69. 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
  70. >;
  71. fsl,drive-strength = <0>;
  72. fsl,voltage = <1>;
  73. fsl,pull-up = <0>;
  74. };
  75. lcdif_pins_cfa10057: lcdif-evk@0 {
  76. reg = <0>;
  77. fsl,pinmux-ids = <
  78. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  79. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  80. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  81. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  82. >;
  83. fsl,drive-strength = <0>;
  84. fsl,voltage = <1>;
  85. fsl,pull-up = <0>;
  86. };
  87. };
  88. lcdif@80030000 {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&lcdif_18bit_pins_cfa10057
  91. &lcdif_pins_cfa10057>;
  92. display = <&display>;
  93. status = "okay";
  94. display: display {
  95. bits-per-pixel = <32>;
  96. bus-width = <18>;
  97. display-timings {
  98. native-mode = <&timing0>;
  99. timing0: timing0 {
  100. clock-frequency = <30000000>;
  101. hactive = <480>;
  102. vactive = <800>;
  103. hfront-porch = <12>;
  104. hback-porch = <2>;
  105. vfront-porch = <5>;
  106. vback-porch = <3>;
  107. hsync-len = <2>;
  108. vsync-len = <2>;
  109. hsync-active = <0>;
  110. vsync-active = <0>;
  111. de-active = <1>;
  112. pixelclk-active = <1>;
  113. };
  114. };
  115. };
  116. };
  117. };
  118. apbx@80040000 {
  119. lradc@80050000 {
  120. fsl,lradc-touchscreen-wires = <4>;
  121. status = "okay";
  122. };
  123. pwm: pwm@80064000 {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&pwm3_pins_b>;
  126. status = "okay";
  127. };
  128. i2c1: i2c@8005a000 {
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&i2c1_pins_a>;
  131. status = "okay";
  132. };
  133. usbphy1: usbphy@8007e000 {
  134. status = "okay";
  135. };
  136. };
  137. };
  138. ahb@80080000 {
  139. usb1: usb@80090000 {
  140. vbus-supply = <&reg_usb1_vbus>;
  141. pinctrl-0 = <&usbphy1_pins_a>;
  142. pinctrl-names = "default";
  143. status = "okay";
  144. };
  145. };
  146. regulators {
  147. compatible = "simple-bus";
  148. reg_usb1_vbus: usb1_vbus {
  149. compatible = "regulator-fixed";
  150. regulator-name = "usb1_vbus";
  151. regulator-min-microvolt = <5000000>;
  152. regulator-max-microvolt = <5000000>;
  153. gpio = <&gpio0 7 1>;
  154. };
  155. };
  156. ahb@80080000 {
  157. mac0: ethernet@800f0000 {
  158. phy-mode = "rmii";
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&mac0_pins_a>;
  161. phy-reset-gpios = <&gpio2 21 0>;
  162. phy-reset-duration = <100>;
  163. status = "okay";
  164. };
  165. };
  166. backlight {
  167. compatible = "pwm-backlight";
  168. pwms = <&pwm 3 5000000>;
  169. brightness-levels = <0 4 8 16 32 64 128 255>;
  170. default-brightness-level = <7>;
  171. };
  172. };