imx28-cfa10049.dts 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. status = "okay";
  120. };
  121. };
  122. apbx@80040000 {
  123. pwm: pwm@80064000 {
  124. pinctrl-names = "default", "default";
  125. pinctrl-1 = <&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. i2cmux {
  134. compatible = "i2c-mux-gpio";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
  138. i2c-parent = <&i2c1>;
  139. i2c@0 {
  140. reg = <0>;
  141. };
  142. i2c@1 {
  143. reg = <1>;
  144. };
  145. i2c@2 {
  146. reg = <2>;
  147. };
  148. i2c@3 {
  149. reg = <3>;
  150. #address-cells = <1>;
  151. #size-cells = <0>;
  152. pca9555: pca9555@20 {
  153. compatible = "nxp,pca9555";
  154. interrupt-parent = <&gpio2>;
  155. interrupts = <19 0x2>;
  156. gpio-controller;
  157. #gpio-cells = <2>;
  158. interrupt-controller;
  159. #interrupt-cells = <2>;
  160. reg = <0x20>;
  161. };
  162. };
  163. };
  164. usbphy1: usbphy@8007e000 {
  165. status = "okay";
  166. };
  167. };
  168. };
  169. ahb@80080000 {
  170. usb1: usb@80090000 {
  171. vbus-supply = <&reg_usb1_vbus>;
  172. pinctrl-0 = <&usbphy1_pins_a>;
  173. pinctrl-names = "default";
  174. status = "okay";
  175. };
  176. };
  177. regulators {
  178. compatible = "simple-bus";
  179. reg_usb1_vbus: usb1_vbus {
  180. compatible = "regulator-fixed";
  181. regulator-name = "usb1_vbus";
  182. regulator-min-microvolt = <5000000>;
  183. regulator-max-microvolt = <5000000>;
  184. gpio = <&gpio0 7 1>;
  185. };
  186. };
  187. ahb@80080000 {
  188. mac0: ethernet@800f0000 {
  189. phy-mode = "rmii";
  190. pinctrl-names = "default";
  191. pinctrl-0 = <&mac0_pins_a>;
  192. phy-reset-gpios = <&gpio2 21 0>;
  193. phy-reset-duration = <100>;
  194. status = "okay";
  195. };
  196. };
  197. spi2 {
  198. compatible = "spi-gpio";
  199. pinctrl-names = "default";
  200. pinctrl-0 = <&spi2_pins_cfa10049>;
  201. status = "okay";
  202. gpio-sck = <&gpio2 16 0>;
  203. gpio-mosi = <&gpio2 17 0>;
  204. gpio-miso = <&gpio2 18 0>;
  205. cs-gpios = <&gpio3 23 0>;
  206. num-chipselects = <1>;
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. hx8357: hx8357@0 {
  210. compatible = "himax,hx8357b", "himax,hx8357";
  211. reg = <0>;
  212. spi-max-frequency = <100000>;
  213. spi-cpol;
  214. spi-cpha;
  215. gpios-reset = <&gpio3 30 0>;
  216. im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>;
  217. };
  218. };
  219. spi3 {
  220. compatible = "spi-gpio";
  221. pinctrl-names = "default";
  222. pinctrl-0 = <&spi3_pins_cfa10049>;
  223. status = "okay";
  224. gpio-sck = <&gpio0 24 0>;
  225. gpio-mosi = <&gpio0 28 0>;
  226. cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>;
  227. num-chipselects = <3>;
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. gpio5: gpio5@0 {
  231. compatible = "fairchild,74hc595";
  232. gpio-controller;
  233. #gpio-cells = <2>;
  234. reg = <0>;
  235. registers-number = <2>;
  236. spi-max-frequency = <100000>;
  237. };
  238. gpio6: gpio6@1 {
  239. compatible = "fairchild,74hc595";
  240. gpio-controller;
  241. #gpio-cells = <2>;
  242. reg = <1>;
  243. registers-number = <4>;
  244. spi-max-frequency = <100000>;
  245. };
  246. dac0: dh2228@2 {
  247. compatible = "rohm,dh2228fv";
  248. reg = <2>;
  249. spi-max-frequency = <100000>;
  250. };
  251. };
  252. gpio_keys {
  253. compatible = "gpio-keys";
  254. #address-cells = <1>;
  255. #size-cells = <0>;
  256. rotary_button {
  257. label = "rotary_button";
  258. gpios = <&gpio3 26 1>;
  259. debounce-interval = <10>;
  260. linux,code = <28>;
  261. };
  262. };
  263. rotary {
  264. compatible = "rotary-encoder";
  265. gpios = <&gpio3 24 1>, <&gpio3 25 1>;
  266. linux,axis = <1>; /* REL_Y */
  267. rotary-encoder,relative-axis;
  268. };
  269. backlight {
  270. compatible = "pwm-backlight";
  271. pwms = <&pwm 3 5000000>;
  272. brightness-levels = <0 4 8 16 32 64 128 255>;
  273. default-brightness-level = <6>;
  274. };
  275. };