imx28-cfa10049.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /*
  2. * Copyright 2012 Free Electrons
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /*
  12. * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
  13. * need to include the CFA-10036 DTS.
  14. */
  15. /include/ "imx28-cfa10036.dts"
  16. / {
  17. model = "Crystalfontz CFA-10049 Board";
  18. compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
  19. apb@80000000 {
  20. apbh@80000000 {
  21. pinctrl@80018000 {
  22. pinctrl-names = "default", "default";
  23. pinctrl-1 = <&hog_pins_cfa10049
  24. &hog_pins_cfa10049_pullup>;
  25. hog_pins_cfa10049: hog-10049@0 {
  26. reg = <0>;
  27. fsl,pinmux-ids = <
  28. 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
  29. 0x1153 /* MX28_PAD_LCD_D22__GPIO_1_21 */
  30. 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */
  31. 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */
  32. 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
  33. 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */
  34. >;
  35. fsl,drive-strength = <0>;
  36. fsl,voltage = <1>;
  37. fsl,pull-up = <0>;
  38. };
  39. hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
  40. reg = <0>;
  41. fsl,pinmux-ids = <
  42. 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
  43. 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
  44. 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
  45. 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
  46. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  47. >;
  48. fsl,drive-strength = <0>;
  49. fsl,voltage = <1>;
  50. fsl,pull-up = <1>;
  51. };
  52. spi2_pins_cfa10049: spi2-cfa10049@0 {
  53. reg = <0>;
  54. fsl,pinmux-ids = <
  55. 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
  56. 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
  57. 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
  58. >;
  59. fsl,drive-strength = <1>;
  60. fsl,voltage = <1>;
  61. fsl,pull-up = <1>;
  62. };
  63. spi3_pins_cfa10049: spi3-cfa10049@0 {
  64. reg = <0>;
  65. fsl,pinmux-ids = <
  66. 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */
  67. 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */
  68. 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */
  69. 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */
  70. 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */
  71. >;
  72. fsl,drive-strength = <1>;
  73. fsl,voltage = <1>;
  74. fsl,pull-up = <1>;
  75. };
  76. lcdif_18bit_pins_cfa10049: lcdif-18bit@0 {
  77. reg = <0>;
  78. fsl,pinmux-ids = <
  79. 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
  80. 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
  81. 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
  82. 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
  83. 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
  84. 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
  85. 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
  86. 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
  87. 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
  88. 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
  89. 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
  90. 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
  91. 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
  92. 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
  93. 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
  94. 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
  95. 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
  96. 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
  97. >;
  98. fsl,drive-strength = <0>;
  99. fsl,voltage = <1>;
  100. fsl,pull-up = <0>;
  101. };
  102. lcdif_pins_cfa10049: lcdif-evk@0 {
  103. reg = <0>;
  104. fsl,pinmux-ids = <
  105. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  106. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  107. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  108. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  109. >;
  110. fsl,drive-strength = <0>;
  111. fsl,voltage = <1>;
  112. fsl,pull-up = <0>;
  113. };
  114. };
  115. lcdif@80030000 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&lcdif_18bit_pins_cfa10049
  118. &lcdif_pins_cfa10049>;
  119. display = <&display>;
  120. status = "okay";
  121. display: display {
  122. bits-per-pixel = <32>;
  123. bus-width = <18>;
  124. display-timings {
  125. native-mode = <&timing0>;
  126. timing0: timing0 {
  127. clock-frequency = <9216000>;
  128. hactive = <320>;
  129. vactive = <480>;
  130. hback-porch = <2>;
  131. hfront-porch = <2>;
  132. vback-porch = <2>;
  133. vfront-porch = <2>;
  134. hsync-len = <15>;
  135. vsync-len = <15>;
  136. hsync-active = <0>;
  137. vsync-active = <0>;
  138. de-active = <1>;
  139. pixelclk-active = <1>;
  140. };
  141. };
  142. };
  143. };
  144. };
  145. apbx@80040000 {
  146. pwm: pwm@80064000 {
  147. pinctrl-names = "default", "default";
  148. pinctrl-1 = <&pwm3_pins_b>;
  149. status = "okay";
  150. };
  151. i2c1: i2c@8005a000 {
  152. pinctrl-names = "default";
  153. pinctrl-0 = <&i2c1_pins_a>;
  154. status = "okay";
  155. };
  156. i2cmux {
  157. compatible = "i2c-mux-gpio";
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
  161. i2c-parent = <&i2c1>;
  162. i2c@0 {
  163. reg = <0>;
  164. };
  165. i2c@1 {
  166. reg = <1>;
  167. };
  168. i2c@2 {
  169. reg = <2>;
  170. };
  171. i2c@3 {
  172. reg = <3>;
  173. #address-cells = <1>;
  174. #size-cells = <0>;
  175. pca9555: pca9555@20 {
  176. compatible = "nxp,pca9555";
  177. interrupt-parent = <&gpio2>;
  178. interrupts = <19 0x2>;
  179. gpio-controller;
  180. #gpio-cells = <2>;
  181. interrupt-controller;
  182. #interrupt-cells = <2>;
  183. reg = <0x20>;
  184. };
  185. };
  186. };
  187. usbphy1: usbphy@8007e000 {
  188. status = "okay";
  189. };
  190. };
  191. };
  192. ahb@80080000 {
  193. usb1: usb@80090000 {
  194. vbus-supply = <&reg_usb1_vbus>;
  195. pinctrl-0 = <&usbphy1_pins_a>;
  196. pinctrl-names = "default";
  197. status = "okay";
  198. };
  199. };
  200. regulators {
  201. compatible = "simple-bus";
  202. reg_usb1_vbus: usb1_vbus {
  203. compatible = "regulator-fixed";
  204. regulator-name = "usb1_vbus";
  205. regulator-min-microvolt = <5000000>;
  206. regulator-max-microvolt = <5000000>;
  207. gpio = <&gpio0 7 1>;
  208. };
  209. };
  210. ahb@80080000 {
  211. mac0: ethernet@800f0000 {
  212. phy-mode = "rmii";
  213. pinctrl-names = "default";
  214. pinctrl-0 = <&mac0_pins_a>;
  215. phy-reset-gpios = <&gpio2 21 0>;
  216. phy-reset-duration = <100>;
  217. status = "okay";
  218. };
  219. };
  220. spi2 {
  221. compatible = "spi-gpio";
  222. pinctrl-names = "default";
  223. pinctrl-0 = <&spi2_pins_cfa10049>;
  224. status = "okay";
  225. gpio-sck = <&gpio2 16 0>;
  226. gpio-mosi = <&gpio2 17 0>;
  227. gpio-miso = <&gpio2 18 0>;
  228. cs-gpios = <&gpio3 23 0>;
  229. num-chipselects = <1>;
  230. #address-cells = <1>;
  231. #size-cells = <0>;
  232. hx8357: hx8357@0 {
  233. compatible = "himax,hx8357b", "himax,hx8357";
  234. reg = <0>;
  235. spi-max-frequency = <100000>;
  236. spi-cpol;
  237. spi-cpha;
  238. gpios-reset = <&gpio3 30 0>;
  239. im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
  240. };
  241. };
  242. spi3 {
  243. compatible = "spi-gpio";
  244. pinctrl-names = "default";
  245. pinctrl-0 = <&spi3_pins_cfa10049>;
  246. status = "okay";
  247. gpio-sck = <&gpio0 24 0>;
  248. gpio-mosi = <&gpio0 28 0>;
  249. cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
  250. num-chipselects = <3>;
  251. #address-cells = <1>;
  252. #size-cells = <0>;
  253. gpio5: gpio5@0 {
  254. compatible = "fairchild,74hc595";
  255. gpio-controller;
  256. #gpio-cells = <2>;
  257. reg = <0>;
  258. registers-number = <2>;
  259. spi-max-frequency = <100000>;
  260. };
  261. gpio6: gpio6@1 {
  262. compatible = "fairchild,74hc595";
  263. gpio-controller;
  264. #gpio-cells = <2>;
  265. reg = <1>;
  266. registers-number = <4>;
  267. spi-max-frequency = <100000>;
  268. };
  269. dac0: dh2228@2 {
  270. compatible = "rohm,dh2228fv";
  271. reg = <2>;
  272. spi-max-frequency = <100000>;
  273. };
  274. };
  275. gpio_keys {
  276. compatible = "gpio-keys";
  277. #address-cells = <1>;
  278. #size-cells = <0>;
  279. rotary_button {
  280. label = "rotary_button";
  281. gpios = <&gpio3 26 1>;
  282. debounce-interval = <10>;
  283. linux,code = <28>;
  284. };
  285. };
  286. rotary {
  287. compatible = "rotary-encoder";
  288. gpios = <&gpio3 24 1>, <&gpio3 25 1>;
  289. linux,axis = <1>; /* REL_Y */
  290. rotary-encoder,relative-axis;
  291. };
  292. backlight {
  293. compatible = "pwm-backlight";
  294. pwms = <&pwm 3 5000000>;
  295. brightness-levels = <0 4 8 16 32 64 128 255>;
  296. default-brightness-level = <6>;
  297. };
  298. };