imx28-m28cu3.dts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. /*
  2. * Copyright (C) 2013 Marek Vasut <marex@denx.de>
  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. /dts-v1/;
  12. #include "imx28.dtsi"
  13. / {
  14. model = "MSR M28CU3";
  15. compatible = "msr,m28cu3", "fsl,imx28";
  16. memory {
  17. reg = <0x40000000 0x08000000>;
  18. };
  19. apb@80000000 {
  20. apbh@80000000 {
  21. gpmi-nand@8000c000 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
  26. status = "okay";
  27. partition@0 {
  28. label = "gpmi-nfc-0-boot";
  29. reg = <0x00000000 0x01400000>;
  30. read-only;
  31. };
  32. partition@1 {
  33. label = "gpmi-nfc-general-use";
  34. reg = <0x01400000 0x0ec00000>;
  35. };
  36. };
  37. ssp0: ssp@80010000 {
  38. compatible = "fsl,imx28-mmc";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&mmc0_4bit_pins_a
  41. &mmc0_cd_cfg
  42. &mmc0_sck_cfg>;
  43. bus-width = <4>;
  44. vmmc-supply = <&reg_vddio_sd0>;
  45. status = "okay";
  46. };
  47. ssp2: ssp@80014000 {
  48. compatible = "fsl,imx28-mmc";
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&mmc2_4bit_pins_a
  51. &mmc2_cd_cfg
  52. &mmc2_sck_cfg>;
  53. bus-width = <4>;
  54. vmmc-supply = <&reg_vddio_sd1>;
  55. status = "okay";
  56. };
  57. pinctrl@80018000 {
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&hog_pins_a>;
  60. hog_pins_a: hog@0 {
  61. reg = <0>;
  62. fsl,pinmux-ids = <
  63. MX28_PAD_SSP2_SS0__GPIO_2_19
  64. MX28_PAD_PWM4__GPIO_3_29
  65. MX28_PAD_AUART2_RX__GPIO_3_8
  66. MX28_PAD_ENET0_RX_CLK__GPIO_4_13
  67. >;
  68. fsl,drive-strength = <MXS_DRIVE_4mA>;
  69. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  70. fsl,pull-up = <MXS_PULL_DISABLE>;
  71. };
  72. lcdif_pins_m28: lcdif-m28@0 {
  73. reg = <0>;
  74. fsl,pinmux-ids = <
  75. MX28_PAD_LCD_VSYNC__LCD_VSYNC
  76. MX28_PAD_LCD_HSYNC__LCD_HSYNC
  77. MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
  78. MX28_PAD_LCD_RESET__LCD_RESET
  79. MX28_PAD_LCD_CS__LCD_ENABLE
  80. MX28_PAD_AUART1_TX__GPIO_3_5
  81. >;
  82. fsl,drive-strength = <MXS_DRIVE_4mA>;
  83. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  84. fsl,pull-up = <MXS_PULL_DISABLE>;
  85. };
  86. led_pins_gpio: leds-m28@0 {
  87. reg = <0>;
  88. fsl,pinmux-ids = <
  89. MX28_PAD_SSP3_MISO__GPIO_2_26
  90. MX28_PAD_SSP3_SCK__GPIO_2_24
  91. >;
  92. fsl,drive-strength = <MXS_DRIVE_4mA>;
  93. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  94. fsl,pull-up = <MXS_PULL_DISABLE>;
  95. };
  96. };
  97. ocotp@8002c000 {
  98. status = "okay";
  99. };
  100. lcdif@80030000 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&lcdif_24bit_pins_a
  103. &lcdif_pins_m28>;
  104. display = <&display0>;
  105. status = "okay";
  106. display0: display0 {
  107. bits-per-pixel = <32>;
  108. bus-width = <24>;
  109. display-timings {
  110. native-mode = <&timing0>;
  111. timing0: timing0 {
  112. clock-frequency = <6410256>;
  113. hactive = <320>;
  114. vactive = <240>;
  115. hback-porch = <38>;
  116. hfront-porch = <20>;
  117. vback-porch = <15>;
  118. vfront-porch = <5>;
  119. hsync-len = <30>;
  120. vsync-len = <3>;
  121. hsync-active = <0>;
  122. vsync-active = <0>;
  123. de-active = <1>;
  124. pixelclk-active = <1>;
  125. };
  126. };
  127. };
  128. };
  129. };
  130. apbx@80040000 {
  131. duart: serial@80074000 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&duart_pins_b>;
  134. status = "okay";
  135. };
  136. usbphy1: usbphy@8007e000 {
  137. status = "okay";
  138. };
  139. auart0: serial@8006a000 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&auart0_2pins_a>;
  142. status = "okay";
  143. };
  144. auart3: serial@80070000 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&auart3_2pins_b>;
  147. status = "okay";
  148. };
  149. pwm: pwm@80064000 {
  150. pinctrl-names = "default";
  151. pinctrl-0 = <&pwm3_pins_a>;
  152. status = "okay";
  153. };
  154. };
  155. };
  156. ahb@80080000 {
  157. usb1: usb@80090000 {
  158. vbus-supply = <&reg_usb1_vbus>;
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&usb1_pins_a>;
  161. disable-over-current;
  162. status = "okay";
  163. };
  164. mac0: ethernet@800f0000 {
  165. phy-mode = "rmii";
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&mac0_pins_a>;
  168. phy-reset-gpios = <&gpio4 13 0>;
  169. phy-reset-duration = <100>;
  170. status = "okay";
  171. };
  172. mac1: ethernet@800f4000 {
  173. phy-mode = "rmii";
  174. pinctrl-names = "default";
  175. pinctrl-0 = <&mac1_pins_a>;
  176. status = "okay";
  177. };
  178. };
  179. backlight {
  180. compatible = "pwm-backlight";
  181. pwms = <&pwm 3 5000000>;
  182. brightness-levels = <0 4 8 16 32 64 128 255>;
  183. default-brightness-level = <6>;
  184. };
  185. leds {
  186. compatible = "gpio-leds";
  187. pinctrl-names = "default";
  188. pinctrl-0 = <&led_pins_gpio>;
  189. user1 {
  190. label = "sd0-led";
  191. gpios = <&gpio2 26 0>;
  192. linux,default-trigger = "mmc0";
  193. };
  194. user2 {
  195. label = "sd1-led";
  196. gpios = <&gpio2 24 0>;
  197. linux,default-trigger = "mmc2";
  198. };
  199. };
  200. regulators {
  201. compatible = "simple-bus";
  202. #address-cells = <1>;
  203. #size-cells = <0>;
  204. reg_3p3v: regulator@0 {
  205. compatible = "regulator-fixed";
  206. reg = <0>;
  207. regulator-name = "3P3V";
  208. regulator-min-microvolt = <3300000>;
  209. regulator-max-microvolt = <3300000>;
  210. regulator-always-on;
  211. };
  212. reg_vddio_sd0: regulator@1 {
  213. compatible = "regulator-fixed";
  214. reg = <1>;
  215. regulator-name = "vddio-sd0";
  216. regulator-min-microvolt = <3300000>;
  217. regulator-max-microvolt = <3300000>;
  218. gpio = <&gpio3 29 0>;
  219. };
  220. reg_vddio_sd1: regulator@2 {
  221. compatible = "regulator-fixed";
  222. reg = <2>;
  223. regulator-name = "vddio-sd1";
  224. regulator-min-microvolt = <3300000>;
  225. regulator-max-microvolt = <3300000>;
  226. gpio = <&gpio2 19 0>;
  227. };
  228. reg_usb1_vbus: regulator@3 {
  229. compatible = "regulator-fixed";
  230. reg = <3>;
  231. regulator-name = "usb1_vbus";
  232. regulator-min-microvolt = <5000000>;
  233. regulator-max-microvolt = <5000000>;
  234. gpio = <&gpio3 8 0>;
  235. enable-active-high;
  236. };
  237. };
  238. };