imx28-cfa10049.dts 9.3 KB

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