imx28-evk.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /*
  2. * Copyright 2012 Freescale Semiconductor, Inc.
  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 = "Freescale i.MX28 Evaluation Kit";
  15. compatible = "fsl,imx28-evk", "fsl,imx28";
  16. memory {
  17. reg = <0x40000000 0x08000000>;
  18. };
  19. apb@80000000 {
  20. apbh@80000000 {
  21. gpmi-nand@8000c000 {
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg
  24. &gpmi_pins_evk>;
  25. status = "okay";
  26. };
  27. ssp0: ssp@80010000 {
  28. compatible = "fsl,imx28-mmc";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&mmc0_8bit_pins_a
  31. &mmc0_cd_cfg &mmc0_sck_cfg>;
  32. bus-width = <8>;
  33. wp-gpios = <&gpio2 12 0>;
  34. vmmc-supply = <&reg_vddio_sd0>;
  35. status = "okay";
  36. };
  37. ssp1: ssp@80012000 {
  38. compatible = "fsl,imx28-mmc";
  39. bus-width = <8>;
  40. wp-gpios = <&gpio0 28 0>;
  41. };
  42. pinctrl@80018000 {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&hog_pins_a>;
  45. hog_pins_a: hog-gpios@0 {
  46. reg = <0>;
  47. fsl,pinmux-ids = <
  48. 0x20d3 /* MX28_PAD_SSP1_CMD__GPIO_2_13 */
  49. 0x20f3 /* MX28_PAD_SSP1_DATA3__GPIO_2_15 */
  50. 0x40d3 /* MX28_PAD_ENET0_RX_CLK__GPIO_4_13 */
  51. 0x20c3 /* MX28_PAD_SSP1_SCK__GPIO_2_12 */
  52. 0x31c3 /* MX28_PAD_PWM3__GPIO_3_28 */
  53. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  54. 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
  55. 0x3083 /* MX28_PAD_AUART2_RX__GPIO_3_8 */
  56. 0x3093 /* MX28_PAD_AUART2_TX__GPIO_3_9 */
  57. >;
  58. fsl,drive-strength = <0>;
  59. fsl,voltage = <1>;
  60. fsl,pull-up = <0>;
  61. };
  62. gpmi_pins_evk: gpmi-nand-evk@0 {
  63. reg = <0>;
  64. fsl,pinmux-ids = <
  65. 0x0110 /* MX28_PAD_GPMI_CE1N__GPMI_CE1N */
  66. 0x0150 /* MX28_PAD_GPMI_RDY1__GPMI_READY1 */
  67. >;
  68. fsl,drive-strength = <0>;
  69. fsl,voltage = <1>;
  70. fsl,pull-up = <0>;
  71. };
  72. lcdif_pins_evk: lcdif-evk@0 {
  73. reg = <0>;
  74. fsl,pinmux-ids = <
  75. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  76. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  77. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  78. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  79. >;
  80. fsl,drive-strength = <0>;
  81. fsl,voltage = <1>;
  82. fsl,pull-up = <0>;
  83. };
  84. };
  85. lcdif@80030000 {
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&lcdif_24bit_pins_a
  88. &lcdif_pins_evk>;
  89. panel-enable-gpios = <&gpio3 30 0>;
  90. status = "okay";
  91. };
  92. can0: can@80032000 {
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&can0_pins_a>;
  95. status = "okay";
  96. };
  97. can1: can@80034000 {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&can1_pins_a>;
  100. status = "okay";
  101. };
  102. };
  103. apbx@80040000 {
  104. saif0: saif@80042000 {
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&saif0_pins_a>;
  107. status = "okay";
  108. };
  109. saif1: saif@80046000 {
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&saif1_pins_a>;
  112. fsl,saif-master = <&saif0>;
  113. status = "okay";
  114. };
  115. i2c0: i2c@80058000 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&i2c0_pins_a>;
  118. status = "okay";
  119. sgtl5000: codec@0a {
  120. compatible = "fsl,sgtl5000";
  121. reg = <0x0a>;
  122. VDDA-supply = <&reg_3p3v>;
  123. VDDIO-supply = <&reg_3p3v>;
  124. };
  125. };
  126. pwm: pwm@80064000 {
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&pwm2_pins_a>;
  129. status = "okay";
  130. };
  131. duart: serial@80074000 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&duart_pins_a>;
  134. status = "okay";
  135. };
  136. auart0: serial@8006a000 {
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&auart0_pins_a>;
  139. status = "okay";
  140. };
  141. auart3: serial@80070000 {
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&auart3_pins_a>;
  144. status = "okay";
  145. };
  146. usbphy0: usbphy@8007c000 {
  147. status = "okay";
  148. };
  149. usbphy1: usbphy@8007e000 {
  150. status = "okay";
  151. };
  152. };
  153. };
  154. ahb@80080000 {
  155. usb0: usb@80080000 {
  156. vbus-supply = <&reg_usb0_vbus>;
  157. status = "okay";
  158. };
  159. usb1: usb@80090000 {
  160. vbus-supply = <&reg_usb1_vbus>;
  161. status = "okay";
  162. };
  163. mac0: ethernet@800f0000 {
  164. phy-mode = "rmii";
  165. pinctrl-names = "default";
  166. pinctrl-0 = <&mac0_pins_a>;
  167. phy-supply = <&reg_fec_3v3>;
  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. regulators {
  180. compatible = "simple-bus";
  181. reg_3p3v: 3p3v {
  182. compatible = "regulator-fixed";
  183. regulator-name = "3P3V";
  184. regulator-min-microvolt = <3300000>;
  185. regulator-max-microvolt = <3300000>;
  186. regulator-always-on;
  187. };
  188. reg_vddio_sd0: vddio-sd0 {
  189. compatible = "regulator-fixed";
  190. regulator-name = "vddio-sd0";
  191. regulator-min-microvolt = <3300000>;
  192. regulator-max-microvolt = <3300000>;
  193. gpio = <&gpio3 28 0>;
  194. };
  195. reg_fec_3v3: fec-3v3 {
  196. compatible = "regulator-fixed";
  197. regulator-name = "fec-3v3";
  198. regulator-min-microvolt = <3300000>;
  199. regulator-max-microvolt = <3300000>;
  200. gpio = <&gpio2 15 0>;
  201. };
  202. reg_usb0_vbus: usb0_vbus {
  203. compatible = "regulator-fixed";
  204. regulator-name = "usb0_vbus";
  205. regulator-min-microvolt = <5000000>;
  206. regulator-max-microvolt = <5000000>;
  207. gpio = <&gpio3 9 0>;
  208. enable-active-high;
  209. };
  210. reg_usb1_vbus: usb1_vbus {
  211. compatible = "regulator-fixed";
  212. regulator-name = "usb1_vbus";
  213. regulator-min-microvolt = <5000000>;
  214. regulator-max-microvolt = <5000000>;
  215. gpio = <&gpio3 8 0>;
  216. enable-active-high;
  217. };
  218. };
  219. sound {
  220. compatible = "fsl,imx28-evk-sgtl5000",
  221. "fsl,mxs-audio-sgtl5000";
  222. model = "imx28-evk-sgtl5000";
  223. saif-controllers = <&saif0 &saif1>;
  224. audio-codec = <&sgtl5000>;
  225. };
  226. leds {
  227. compatible = "gpio-leds";
  228. user {
  229. label = "Heartbeat";
  230. gpios = <&gpio3 5 0>;
  231. linux,default-trigger = "heartbeat";
  232. };
  233. };
  234. backlight {
  235. compatible = "pwm-backlight";
  236. pwms = <&pwm 2 5000000>;
  237. brightness-levels = <0 4 8 16 32 64 128 255>;
  238. default-brightness-level = <6>;
  239. };
  240. };