imx28-m28cu3.dts 5.6 KB

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