imx28-evk.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. };
  67. apbx@80040000 {
  68. saif0: saif@80042000 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&saif0_pins_a>;
  71. status = "okay";
  72. };
  73. saif1: saif@80046000 {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&saif1_pins_a>;
  76. fsl,saif-master = <&saif0>;
  77. status = "okay";
  78. };
  79. i2c0: i2c@80058000 {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&i2c0_pins_a>;
  82. status = "okay";
  83. sgtl5000: codec@0a {
  84. compatible = "fsl,sgtl5000";
  85. reg = <0x0a>;
  86. VDDA-supply = <&reg_3p3v>;
  87. VDDIO-supply = <&reg_3p3v>;
  88. };
  89. };
  90. pwm: pwm@80064000 {
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&pwm2_pins_a>;
  93. status = "okay";
  94. };
  95. duart: serial@80074000 {
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&duart_pins_a>;
  98. status = "okay";
  99. };
  100. auart0: serial@8006a000 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&auart0_pins_a>;
  103. status = "okay";
  104. };
  105. auart3: serial@80070000 {
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&auart3_pins_a>;
  108. status = "okay";
  109. };
  110. };
  111. };
  112. ahb@80080000 {
  113. mac0: ethernet@800f0000 {
  114. phy-mode = "rmii";
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&mac0_pins_a>;
  117. phy-supply = <&reg_fec_3v3>;
  118. phy-reset-gpios = <&gpio4 13 0>;
  119. phy-reset-duration = <100>;
  120. status = "okay";
  121. };
  122. mac1: ethernet@800f4000 {
  123. phy-mode = "rmii";
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&mac1_pins_a>;
  126. status = "okay";
  127. };
  128. };
  129. regulators {
  130. compatible = "simple-bus";
  131. reg_3p3v: 3p3v {
  132. compatible = "regulator-fixed";
  133. regulator-name = "3P3V";
  134. regulator-min-microvolt = <3300000>;
  135. regulator-max-microvolt = <3300000>;
  136. regulator-always-on;
  137. };
  138. reg_vddio_sd0: vddio-sd0 {
  139. compatible = "regulator-fixed";
  140. regulator-name = "vddio-sd0";
  141. regulator-min-microvolt = <3300000>;
  142. regulator-max-microvolt = <3300000>;
  143. gpio = <&gpio3 28 0>;
  144. };
  145. reg_fec_3v3: fec-3v3 {
  146. compatible = "regulator-fixed";
  147. regulator-name = "fec-3v3";
  148. regulator-min-microvolt = <3300000>;
  149. regulator-max-microvolt = <3300000>;
  150. gpio = <&gpio2 15 0>;
  151. };
  152. };
  153. sound {
  154. compatible = "fsl,imx28-evk-sgtl5000",
  155. "fsl,mxs-audio-sgtl5000";
  156. model = "imx28-evk-sgtl5000";
  157. saif-controllers = <&saif0 &saif1>;
  158. audio-codec = <&sgtl5000>;
  159. };
  160. leds {
  161. compatible = "gpio-leds";
  162. user {
  163. label = "Heartbeat";
  164. gpios = <&gpio3 5 0>;
  165. linux,default-trigger = "heartbeat";
  166. };
  167. };
  168. backlight {
  169. compatible = "pwm-backlight";
  170. pwms = <&pwm 2 5000000>;
  171. brightness-levels = <0 4 8 16 32 64 128 255>;
  172. default-brightness-level = <6>;
  173. };
  174. };