imx28-evk.dts 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. ssp2: ssp@80014000 {
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. compatible = "fsl,imx28-spi";
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&spi2_pins_a>;
  48. status = "okay";
  49. flash: m25p80@0 {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "sst,sst25vf016b";
  53. spi-max-frequency = <40000000>;
  54. reg = <0>;
  55. };
  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_SSP1_CMD__GPIO_2_13
  64. MX28_PAD_SSP1_DATA3__GPIO_2_15
  65. MX28_PAD_ENET0_RX_CLK__GPIO_4_13
  66. MX28_PAD_SSP1_SCK__GPIO_2_12
  67. MX28_PAD_PWM3__GPIO_3_28
  68. MX28_PAD_LCD_RESET__GPIO_3_30
  69. MX28_PAD_AUART2_RX__GPIO_3_8
  70. MX28_PAD_AUART2_TX__GPIO_3_9
  71. >;
  72. fsl,drive-strength = <MXS_DRIVE_4mA>;
  73. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  74. fsl,pull-up = <MXS_PULL_DISABLE>;
  75. };
  76. led_pin_gpio3_5: led_gpio3_5@0 {
  77. reg = <0>;
  78. fsl,pinmux-ids = <
  79. MX28_PAD_AUART1_TX__GPIO_3_5
  80. >;
  81. fsl,drive-strength = <MXS_DRIVE_4mA>;
  82. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  83. fsl,pull-up = <MXS_PULL_DISABLE>;
  84. };
  85. gpmi_pins_evk: gpmi-nand-evk@0 {
  86. reg = <0>;
  87. fsl,pinmux-ids = <
  88. MX28_PAD_GPMI_CE1N__GPMI_CE1N
  89. MX28_PAD_GPMI_RDY1__GPMI_READY1
  90. >;
  91. fsl,drive-strength = <MXS_DRIVE_4mA>;
  92. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  93. fsl,pull-up = <MXS_PULL_DISABLE>;
  94. };
  95. lcdif_pins_evk: lcdif-evk@0 {
  96. reg = <0>;
  97. fsl,pinmux-ids = <
  98. MX28_PAD_LCD_RD_E__LCD_VSYNC
  99. MX28_PAD_LCD_WR_RWN__LCD_HSYNC
  100. MX28_PAD_LCD_RS__LCD_DOTCLK
  101. MX28_PAD_LCD_CS__LCD_ENABLE
  102. >;
  103. fsl,drive-strength = <MXS_DRIVE_4mA>;
  104. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  105. fsl,pull-up = <MXS_PULL_DISABLE>;
  106. };
  107. };
  108. lcdif@80030000 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&lcdif_24bit_pins_a
  111. &lcdif_pins_evk>;
  112. lcd-supply = <&reg_lcd_3v3>;
  113. display = <&display>;
  114. status = "okay";
  115. display: display {
  116. bits-per-pixel = <32>;
  117. bus-width = <24>;
  118. display-timings {
  119. native-mode = <&timing0>;
  120. timing0: timing0 {
  121. clock-frequency = <33500000>;
  122. hactive = <800>;
  123. vactive = <480>;
  124. hback-porch = <89>;
  125. hfront-porch = <164>;
  126. vback-porch = <23>;
  127. vfront-porch = <10>;
  128. hsync-len = <10>;
  129. vsync-len = <10>;
  130. hsync-active = <0>;
  131. vsync-active = <0>;
  132. de-active = <1>;
  133. pixelclk-active = <0>;
  134. };
  135. };
  136. };
  137. };
  138. can0: can@80032000 {
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&can0_pins_a>;
  141. xceiver-supply = <&reg_can_3v3>;
  142. status = "okay";
  143. };
  144. can1: can@80034000 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&can1_pins_a>;
  147. xceiver-supply = <&reg_can_3v3>;
  148. status = "okay";
  149. };
  150. };
  151. apbx@80040000 {
  152. saif0: saif@80042000 {
  153. pinctrl-names = "default";
  154. pinctrl-0 = <&saif0_pins_a>;
  155. status = "okay";
  156. };
  157. saif1: saif@80046000 {
  158. pinctrl-names = "default";
  159. pinctrl-0 = <&saif1_pins_a>;
  160. fsl,saif-master = <&saif0>;
  161. status = "okay";
  162. };
  163. lradc@80050000 {
  164. fsl,lradc-touchscreen-wires = <4>;
  165. status = "okay";
  166. fsl,lradc-touchscreen-wires = <4>;
  167. fsl,ave-ctrl = <4>;
  168. fsl,ave-delay = <2>;
  169. fsl,settling = <10>;
  170. };
  171. i2c0: i2c@80058000 {
  172. pinctrl-names = "default";
  173. pinctrl-0 = <&i2c0_pins_a>;
  174. status = "okay";
  175. sgtl5000: codec@0a {
  176. compatible = "fsl,sgtl5000";
  177. reg = <0x0a>;
  178. VDDA-supply = <&reg_3p3v>;
  179. VDDIO-supply = <&reg_3p3v>;
  180. clocks = <&saif0>;
  181. };
  182. at24@51 {
  183. compatible = "at24,24c32";
  184. pagesize = <32>;
  185. reg = <0x51>;
  186. };
  187. };
  188. pwm: pwm@80064000 {
  189. pinctrl-names = "default";
  190. pinctrl-0 = <&pwm2_pins_a>;
  191. status = "okay";
  192. };
  193. duart: serial@80074000 {
  194. pinctrl-names = "default";
  195. pinctrl-0 = <&duart_pins_a>;
  196. status = "okay";
  197. };
  198. auart0: serial@8006a000 {
  199. pinctrl-names = "default";
  200. pinctrl-0 = <&auart0_pins_a>;
  201. fsl,uart-has-rtscts;
  202. status = "okay";
  203. };
  204. auart3: serial@80070000 {
  205. pinctrl-names = "default";
  206. pinctrl-0 = <&auart3_pins_a>;
  207. status = "okay";
  208. };
  209. usbphy0: usbphy@8007c000 {
  210. status = "okay";
  211. };
  212. usbphy1: usbphy@8007e000 {
  213. status = "okay";
  214. };
  215. };
  216. };
  217. ahb@80080000 {
  218. usb0: usb@80080000 {
  219. pinctrl-names = "default";
  220. pinctrl-0 = <&usb0_id_pins_a>;
  221. vbus-supply = <&reg_usb0_vbus>;
  222. status = "okay";
  223. };
  224. usb1: usb@80090000 {
  225. vbus-supply = <&reg_usb1_vbus>;
  226. status = "okay";
  227. };
  228. mac0: ethernet@800f0000 {
  229. phy-mode = "rmii";
  230. pinctrl-names = "default";
  231. pinctrl-0 = <&mac0_pins_a>;
  232. phy-supply = <&reg_fec_3v3>;
  233. phy-reset-gpios = <&gpio4 13 0>;
  234. phy-reset-duration = <100>;
  235. status = "okay";
  236. };
  237. mac1: ethernet@800f4000 {
  238. phy-mode = "rmii";
  239. pinctrl-names = "default";
  240. pinctrl-0 = <&mac1_pins_a>;
  241. status = "okay";
  242. };
  243. };
  244. regulators {
  245. compatible = "simple-bus";
  246. reg_3p3v: 3p3v {
  247. compatible = "regulator-fixed";
  248. regulator-name = "3P3V";
  249. regulator-min-microvolt = <3300000>;
  250. regulator-max-microvolt = <3300000>;
  251. regulator-always-on;
  252. };
  253. reg_vddio_sd0: vddio-sd0 {
  254. compatible = "regulator-fixed";
  255. regulator-name = "vddio-sd0";
  256. regulator-min-microvolt = <3300000>;
  257. regulator-max-microvolt = <3300000>;
  258. gpio = <&gpio3 28 0>;
  259. };
  260. reg_fec_3v3: fec-3v3 {
  261. compatible = "regulator-fixed";
  262. regulator-name = "fec-3v3";
  263. regulator-min-microvolt = <3300000>;
  264. regulator-max-microvolt = <3300000>;
  265. gpio = <&gpio2 15 0>;
  266. };
  267. reg_usb0_vbus: usb0_vbus {
  268. compatible = "regulator-fixed";
  269. regulator-name = "usb0_vbus";
  270. regulator-min-microvolt = <5000000>;
  271. regulator-max-microvolt = <5000000>;
  272. gpio = <&gpio3 9 0>;
  273. enable-active-high;
  274. };
  275. reg_usb1_vbus: usb1_vbus {
  276. compatible = "regulator-fixed";
  277. regulator-name = "usb1_vbus";
  278. regulator-min-microvolt = <5000000>;
  279. regulator-max-microvolt = <5000000>;
  280. gpio = <&gpio3 8 0>;
  281. enable-active-high;
  282. };
  283. reg_lcd_3v3: lcd-3v3 {
  284. compatible = "regulator-fixed";
  285. regulator-name = "lcd-3v3";
  286. regulator-min-microvolt = <3300000>;
  287. regulator-max-microvolt = <3300000>;
  288. gpio = <&gpio3 30 0>;
  289. enable-active-high;
  290. };
  291. reg_can_3v3: can-3v3 {
  292. compatible = "regulator-fixed";
  293. regulator-name = "can-3v3";
  294. regulator-min-microvolt = <3300000>;
  295. regulator-max-microvolt = <3300000>;
  296. gpio = <&gpio2 13 0>;
  297. enable-active-high;
  298. };
  299. };
  300. sound {
  301. compatible = "fsl,imx28-evk-sgtl5000",
  302. "fsl,mxs-audio-sgtl5000";
  303. model = "imx28-evk-sgtl5000";
  304. saif-controllers = <&saif0 &saif1>;
  305. audio-codec = <&sgtl5000>;
  306. };
  307. leds {
  308. compatible = "gpio-leds";
  309. pinctrl-names = "default";
  310. pinctrl-0 = <&led_pin_gpio3_5>;
  311. user {
  312. label = "Heartbeat";
  313. gpios = <&gpio3 5 0>;
  314. linux,default-trigger = "heartbeat";
  315. };
  316. };
  317. backlight {
  318. compatible = "pwm-backlight";
  319. pwms = <&pwm 2 5000000>;
  320. brightness-levels = <0 4 8 16 32 64 128 255>;
  321. default-brightness-level = <6>;
  322. };
  323. };