imx28-evk.dts 4.2 KB

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