sun7i-a20-olinuxino-micro.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /dts-v1/;
  14. /include/ "sun7i-a20.dtsi"
  15. /include/ "sunxi-common-regulators.dtsi"
  16. / {
  17. model = "Olimex A20-Olinuxino Micro";
  18. compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
  19. aliases {
  20. spi0 = &spi1;
  21. spi1 = &spi2;
  22. };
  23. soc@01c00000 {
  24. spi1: spi@01c06000 {
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&spi1_pins_a>;
  27. status = "okay";
  28. };
  29. mmc0: mmc@01c0f000 {
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  32. vmmc-supply = <&reg_vcc3v3>;
  33. bus-width = <4>;
  34. cd-gpios = <&pio 7 1 0>; /* PH1 */
  35. cd-inverted;
  36. status = "okay";
  37. };
  38. mmc3: mmc@01c12000 {
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
  41. vmmc-supply = <&reg_vcc3v3>;
  42. bus-width = <4>;
  43. cd-gpios = <&pio 7 11 0>; /* PH11 */
  44. cd-inverted;
  45. status = "okay";
  46. };
  47. usbphy: phy@01c13400 {
  48. usb1_vbus-supply = <&reg_usb1_vbus>;
  49. usb2_vbus-supply = <&reg_usb2_vbus>;
  50. status = "okay";
  51. };
  52. ehci0: usb@01c14000 {
  53. status = "okay";
  54. };
  55. ohci0: usb@01c14400 {
  56. status = "okay";
  57. };
  58. spi2: spi@01c17000 {
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&spi2_pins_a>;
  61. status = "okay";
  62. };
  63. ahci: sata@01c18000 {
  64. target-supply = <&reg_ahci_5v>;
  65. status = "okay";
  66. };
  67. ehci1: usb@01c1c000 {
  68. status = "okay";
  69. };
  70. ohci1: usb@01c1c400 {
  71. status = "okay";
  72. };
  73. pinctrl@01c20800 {
  74. mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
  75. allwinner,pins = "PH11";
  76. allwinner,function = "gpio_in";
  77. allwinner,drive = <0>;
  78. allwinner,pull = <1>;
  79. };
  80. led_pins_olinuxino: led_pins@0 {
  81. allwinner,pins = "PH2";
  82. allwinner,function = "gpio_out";
  83. allwinner,drive = <1>;
  84. allwinner,pull = <0>;
  85. };
  86. };
  87. uart0: serial@01c28000 {
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&uart0_pins_a>;
  90. status = "okay";
  91. };
  92. uart6: serial@01c29800 {
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&uart6_pins_a>;
  95. status = "okay";
  96. };
  97. uart7: serial@01c29c00 {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&uart7_pins_a>;
  100. status = "okay";
  101. };
  102. i2c0: i2c@01c2ac00 {
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&i2c0_pins_a>;
  105. status = "okay";
  106. axp209: pmic@34 {
  107. compatible = "x-powers,axp209";
  108. reg = <0x34>;
  109. interrupt-parent = <&nmi_intc>;
  110. interrupts = <0 8>;
  111. interrupt-controller;
  112. #interrupt-cells = <1>;
  113. };
  114. };
  115. i2c1: i2c@01c2b000 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&i2c1_pins_a>;
  118. status = "okay";
  119. };
  120. i2c2: i2c@01c2b400 {
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&i2c2_pins_a>;
  123. status = "okay";
  124. };
  125. gmac: ethernet@01c50000 {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&gmac_pins_mii_a>;
  128. phy = <&phy1>;
  129. phy-mode = "mii";
  130. status = "okay";
  131. phy1: ethernet-phy@1 {
  132. reg = <1>;
  133. };
  134. };
  135. };
  136. leds {
  137. compatible = "gpio-leds";
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&led_pins_olinuxino>;
  140. green {
  141. label = "a20-olinuxino-micro:green:usr";
  142. gpios = <&pio 7 2 0>;
  143. default-state = "on";
  144. };
  145. };
  146. reg_ahci_5v: ahci-5v {
  147. status = "okay";
  148. };
  149. reg_usb1_vbus: usb1-vbus {
  150. status = "okay";
  151. };
  152. reg_usb2_vbus: usb2-vbus {
  153. status = "okay";
  154. };
  155. };