imx28-cfa10049.dts 8.1 KB

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