imx28-evk.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. status = "okay";
  25. };
  26. ssp0: ssp@80010000 {
  27. compatible = "fsl,imx28-mmc";
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&mmc0_8bit_pins_a
  30. &mmc0_cd_cfg &mmc0_sck_cfg>;
  31. bus-width = <8>;
  32. wp-gpios = <&gpio2 12 0>;
  33. vmmc-supply = <&reg_vddio_sd0>;
  34. status = "okay";
  35. };
  36. ssp1: ssp@80012000 {
  37. compatible = "fsl,imx28-mmc";
  38. bus-width = <8>;
  39. wp-gpios = <&gpio0 28 0>;
  40. };
  41. pinctrl@80018000 {
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&hog_pins_a>;
  44. hog_pins_a: hog-gpios@0 {
  45. reg = <0>;
  46. fsl,pinmux-ids = <
  47. 0x20d3 /* MX28_PAD_SSP1_CMD__GPIO_2_13 */
  48. 0x20f3 /* MX28_PAD_SSP1_DATA3__GPIO_2_15 */
  49. 0x40d3 /* MX28_PAD_ENET0_RX_CLK__GPIO_4_13 */
  50. 0x20c3 /* MX28_PAD_SSP1_SCK__GPIO_2_12 */
  51. 0x31c3 /* MX28_PAD_PWM3__GPIO_3_28 */
  52. 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
  53. 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
  54. >;
  55. fsl,drive-strength = <0>;
  56. fsl,voltage = <1>;
  57. fsl,pull-up = <0>;
  58. };
  59. };
  60. lcdif@80030000 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&lcdif_24bit_pins_a>;
  63. panel-enable-gpios = <&gpio3 30 0>;
  64. status = "okay";
  65. };
  66. can0: can@80032000 {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&can0_pins_a>;
  69. status = "okay";
  70. };
  71. can1: can@80034000 {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&can1_pins_a>;
  74. status = "okay";
  75. };
  76. };
  77. apbx@80040000 {
  78. saif0: saif@80042000 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&saif0_pins_a>;
  81. status = "okay";
  82. };
  83. saif1: saif@80046000 {
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&saif1_pins_a>;
  86. fsl,saif-master = <&saif0>;
  87. status = "okay";
  88. };
  89. i2c0: i2c@80058000 {
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&i2c0_pins_a>;
  92. status = "okay";
  93. sgtl5000: codec@0a {
  94. compatible = "fsl,sgtl5000";
  95. reg = <0x0a>;
  96. VDDA-supply = <&reg_3p3v>;
  97. VDDIO-supply = <&reg_3p3v>;
  98. };
  99. };
  100. pwm: pwm@80064000 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&pwm2_pins_a>;
  103. status = "okay";
  104. };
  105. duart: serial@80074000 {
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&duart_pins_a>;
  108. status = "okay";
  109. };
  110. auart0: serial@8006a000 {
  111. pinctrl-names = "default";
  112. pinctrl-0 = <&auart0_pins_a>;
  113. status = "okay";
  114. };
  115. auart3: serial@80070000 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&auart3_pins_a>;
  118. status = "okay";
  119. };
  120. };
  121. };
  122. ahb@80080000 {
  123. mac0: ethernet@800f0000 {
  124. phy-mode = "rmii";
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&mac0_pins_a>;
  127. phy-supply = <&reg_fec_3v3>;
  128. phy-reset-gpios = <&gpio4 13 0>;
  129. phy-reset-duration = <100>;
  130. status = "okay";
  131. };
  132. mac1: ethernet@800f4000 {
  133. phy-mode = "rmii";
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&mac1_pins_a>;
  136. status = "okay";
  137. };
  138. };
  139. regulators {
  140. compatible = "simple-bus";
  141. reg_3p3v: 3p3v {
  142. compatible = "regulator-fixed";
  143. regulator-name = "3P3V";
  144. regulator-min-microvolt = <3300000>;
  145. regulator-max-microvolt = <3300000>;
  146. regulator-always-on;
  147. };
  148. reg_vddio_sd0: vddio-sd0 {
  149. compatible = "regulator-fixed";
  150. regulator-name = "vddio-sd0";
  151. regulator-min-microvolt = <3300000>;
  152. regulator-max-microvolt = <3300000>;
  153. gpio = <&gpio3 28 0>;
  154. };
  155. reg_fec_3v3: fec-3v3 {
  156. compatible = "regulator-fixed";
  157. regulator-name = "fec-3v3";
  158. regulator-min-microvolt = <3300000>;
  159. regulator-max-microvolt = <3300000>;
  160. gpio = <&gpio2 15 0>;
  161. };
  162. };
  163. sound {
  164. compatible = "fsl,imx28-evk-sgtl5000",
  165. "fsl,mxs-audio-sgtl5000";
  166. model = "imx28-evk-sgtl5000";
  167. saif-controllers = <&saif0 &saif1>;
  168. audio-codec = <&sgtl5000>;
  169. };
  170. leds {
  171. compatible = "gpio-leds";
  172. user {
  173. label = "Heartbeat";
  174. gpios = <&gpio3 5 0>;
  175. linux,default-trigger = "heartbeat";
  176. };
  177. };
  178. backlight {
  179. compatible = "pwm-backlight";
  180. pwms = <&pwm 2 5000000>;
  181. brightness-levels = <0 4 8 16 32 64 128 255>;
  182. default-brightness-level = <6>;
  183. };
  184. };