imx28-duckbill.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Copyright (C) 2013-2014 Michael Heimpold <mhei@heimpold.de>
  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 = "I2SE Duckbill";
  15. compatible = "i2se,duckbill", "fsl,imx28";
  16. memory {
  17. reg = <0x40000000 0x08000000>;
  18. };
  19. apb@80000000 {
  20. apbh@80000000 {
  21. ssp0: ssp@80010000 {
  22. compatible = "fsl,imx28-mmc";
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&mmc0_4bit_pins_a
  25. &mmc0_cd_cfg &mmc0_sck_cfg>;
  26. bus-width = <4>;
  27. vmmc-supply = <&reg_3p3v>;
  28. status = "okay";
  29. };
  30. ssp2: ssp@80014000 {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. compatible = "fsl,imx28-spi";
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&spi2_pins_a>;
  36. status = "okay";
  37. spidev: spidev@0 {
  38. compatible = "spidev";
  39. reg = <0>;
  40. spi-max-frequency = <1000000>;
  41. };
  42. };
  43. pinctrl@80018000 {
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&hog_pins_a>;
  46. hog_pins_a: hog@0 {
  47. reg = <0>;
  48. fsl,pinmux-ids = <
  49. MX28_PAD_SSP0_DATA7__GPIO_2_7 /* PHY Reset */
  50. >;
  51. fsl,drive-strength = <MXS_DRIVE_4mA>;
  52. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  53. fsl,pull-up = <MXS_PULL_DISABLE>;
  54. };
  55. led_pins_a: led_gpio@0 {
  56. reg = <0>;
  57. fsl,pinmux-ids = <
  58. MX28_PAD_AUART1_RX__GPIO_3_4
  59. MX28_PAD_AUART1_TX__GPIO_3_5
  60. >;
  61. fsl,drive-strength = <MXS_DRIVE_4mA>;
  62. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  63. fsl,pull-up = <MXS_PULL_DISABLE>;
  64. };
  65. };
  66. };
  67. apbx@80040000 {
  68. i2c0: i2c@80058000 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&i2c0_pins_a>;
  71. status = "okay";
  72. };
  73. duart: serial@80074000 {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&duart_pins_a>;
  76. status = "okay";
  77. };
  78. usbphy0: usbphy@8007c000 {
  79. status = "okay";
  80. };
  81. };
  82. };
  83. ahb@80080000 {
  84. usb0: usb@80080000 {
  85. status = "okay";
  86. };
  87. mac0: ethernet@800f0000 {
  88. phy-mode = "rmii";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&mac0_pins_a>;
  91. phy-supply = <&reg_3p3v>;
  92. phy-reset-gpios = <&gpio2 7 1>;
  93. phy-reset-duration = <100>;
  94. status = "okay";
  95. };
  96. };
  97. regulators {
  98. compatible = "simple-bus";
  99. reg_3p3v: 3p3v {
  100. compatible = "regulator-fixed";
  101. regulator-name = "3P3V";
  102. regulator-min-microvolt = <3300000>;
  103. regulator-max-microvolt = <3300000>;
  104. regulator-always-on;
  105. };
  106. };
  107. leds {
  108. compatible = "gpio-leds";
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&led_pins_a>;
  111. status {
  112. label = "duckbill:green:status";
  113. gpios = <&gpio3 5 0>;
  114. };
  115. failure {
  116. label = "duckbill:red:status";
  117. gpios = <&gpio3 4 0>;
  118. };
  119. };
  120. };