imx28-m28cu3.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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 = <&display>;
  105. reset-active-high;
  106. status = "okay";
  107. display: display0 {
  108. bits-per-pixel = <32>;
  109. bus-width = <24>;
  110. display-timings {
  111. native-mode = <&timing0>;
  112. timing0: timing0 {
  113. clock-frequency = <6410256>;
  114. hactive = <320>;
  115. vactive = <240>;
  116. hback-porch = <38>;
  117. hfront-porch = <20>;
  118. vback-porch = <15>;
  119. vfront-porch = <5>;
  120. hsync-len = <30>;
  121. vsync-len = <3>;
  122. hsync-active = <0>;
  123. vsync-active = <0>;
  124. de-active = <1>;
  125. pixelclk-active = <1>;
  126. };
  127. };
  128. };
  129. };
  130. };
  131. apbx@80040000 {
  132. duart: serial@80074000 {
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&duart_pins_b>;
  135. status = "okay";
  136. };
  137. usbphy1: usbphy@8007e000 {
  138. status = "okay";
  139. };
  140. auart0: serial@8006a000 {
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&auart0_2pins_a>;
  143. status = "okay";
  144. };
  145. auart3: serial@80070000 {
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&auart3_2pins_b>;
  148. status = "okay";
  149. };
  150. pwm: pwm@80064000 {
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&pwm3_pins_a>;
  153. status = "okay";
  154. };
  155. };
  156. };
  157. ahb@80080000 {
  158. usb1: usb@80090000 {
  159. vbus-supply = <&reg_usb1_vbus>;
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&usbphy1_pins_a>;
  162. disable-over-current;
  163. status = "okay";
  164. };
  165. mac0: ethernet@800f0000 {
  166. phy-mode = "rmii";
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&mac0_pins_a>;
  169. phy-reset-gpios = <&gpio4 13 0>;
  170. phy-reset-duration = <100>;
  171. status = "okay";
  172. };
  173. mac1: ethernet@800f4000 {
  174. phy-mode = "rmii";
  175. pinctrl-names = "default";
  176. pinctrl-0 = <&mac1_pins_a>;
  177. status = "okay";
  178. };
  179. };
  180. backlight {
  181. compatible = "pwm-backlight";
  182. pwms = <&pwm 3 5000000>;
  183. brightness-levels = <0 4 8 16 32 64 128 255>;
  184. default-brightness-level = <6>;
  185. };
  186. leds {
  187. compatible = "gpio-leds";
  188. pinctrl-names = "default";
  189. pinctrl-0 = <&led_pins_gpio>;
  190. user1 {
  191. label = "sd0-led";
  192. gpios = <&gpio2 26 0>;
  193. linux,default-trigger = "mmc0";
  194. };
  195. user2 {
  196. label = "sd1-led";
  197. gpios = <&gpio2 24 0>;
  198. linux,default-trigger = "mmc2";
  199. };
  200. };
  201. regulators {
  202. compatible = "simple-bus";
  203. reg_3p3v: 3p3v {
  204. compatible = "regulator-fixed";
  205. regulator-name = "3P3V";
  206. regulator-min-microvolt = <3300000>;
  207. regulator-max-microvolt = <3300000>;
  208. regulator-always-on;
  209. };
  210. reg_vddio_sd0: vddio-sd0 {
  211. compatible = "regulator-fixed";
  212. regulator-name = "vddio-sd0";
  213. regulator-min-microvolt = <3300000>;
  214. regulator-max-microvolt = <3300000>;
  215. gpio = <&gpio3 29 0>;
  216. };
  217. reg_vddio_sd1: vddio-sd1 {
  218. compatible = "regulator-fixed";
  219. regulator-name = "vddio-sd1";
  220. regulator-min-microvolt = <3300000>;
  221. regulator-max-microvolt = <3300000>;
  222. gpio = <&gpio2 19 0>;
  223. };
  224. reg_usb1_vbus: usb1_vbus {
  225. compatible = "regulator-fixed";
  226. regulator-name = "usb1_vbus";
  227. regulator-min-microvolt = <5000000>;
  228. regulator-max-microvolt = <5000000>;
  229. gpio = <&gpio3 8 0>;
  230. enable-active-high;
  231. };
  232. };
  233. };