sun7i-a20-olinuxino-micro.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. serial0 = &uart0;
  21. serial1 = &uart6;
  22. serial2 = &uart7;
  23. spi0 = &spi1;
  24. spi1 = &spi2;
  25. };
  26. soc@01c00000 {
  27. spi1: spi@01c06000 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&spi1_pins_a>;
  30. status = "okay";
  31. };
  32. mmc0: mmc@01c0f000 {
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  35. vmmc-supply = <&reg_vcc3v3>;
  36. bus-width = <4>;
  37. cd-gpios = <&pio 7 1 0>; /* PH1 */
  38. cd-inverted;
  39. status = "okay";
  40. };
  41. mmc3: mmc@01c12000 {
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
  44. vmmc-supply = <&reg_vcc3v3>;
  45. bus-width = <4>;
  46. cd-gpios = <&pio 7 11 0>; /* PH11 */
  47. cd-inverted;
  48. status = "okay";
  49. };
  50. usbphy: phy@01c13400 {
  51. usb1_vbus-supply = <&reg_usb1_vbus>;
  52. usb2_vbus-supply = <&reg_usb2_vbus>;
  53. status = "okay";
  54. };
  55. ehci0: usb@01c14000 {
  56. status = "okay";
  57. };
  58. ohci0: usb@01c14400 {
  59. status = "okay";
  60. };
  61. spi2: spi@01c17000 {
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&spi2_pins_a>;
  64. status = "okay";
  65. };
  66. ahci: sata@01c18000 {
  67. target-supply = <&reg_ahci_5v>;
  68. status = "okay";
  69. };
  70. ehci1: usb@01c1c000 {
  71. status = "okay";
  72. };
  73. ohci1: usb@01c1c400 {
  74. status = "okay";
  75. };
  76. pinctrl@01c20800 {
  77. mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
  78. allwinner,pins = "PH11";
  79. allwinner,function = "gpio_in";
  80. allwinner,drive = <0>;
  81. allwinner,pull = <1>;
  82. };
  83. led_pins_olinuxino: led_pins@0 {
  84. allwinner,pins = "PH2";
  85. allwinner,function = "gpio_out";
  86. allwinner,drive = <1>;
  87. allwinner,pull = <0>;
  88. };
  89. };
  90. uart0: serial@01c28000 {
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&uart0_pins_a>;
  93. status = "okay";
  94. };
  95. uart6: serial@01c29800 {
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&uart6_pins_a>;
  98. status = "okay";
  99. };
  100. uart7: serial@01c29c00 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&uart7_pins_a>;
  103. status = "okay";
  104. };
  105. i2c0: i2c@01c2ac00 {
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&i2c0_pins_a>;
  108. status = "okay";
  109. axp209: pmic@34 {
  110. compatible = "x-powers,axp209";
  111. reg = <0x34>;
  112. interrupt-parent = <&nmi_intc>;
  113. interrupts = <0 8>;
  114. interrupt-controller;
  115. #interrupt-cells = <1>;
  116. };
  117. };
  118. i2c1: i2c@01c2b000 {
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&i2c1_pins_a>;
  121. status = "okay";
  122. };
  123. i2c2: i2c@01c2b400 {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&i2c2_pins_a>;
  126. status = "okay";
  127. };
  128. gmac: ethernet@01c50000 {
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&gmac_pins_mii_a>;
  131. phy = <&phy1>;
  132. phy-mode = "mii";
  133. status = "okay";
  134. phy1: ethernet-phy@1 {
  135. reg = <1>;
  136. };
  137. };
  138. };
  139. leds {
  140. compatible = "gpio-leds";
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&led_pins_olinuxino>;
  143. green {
  144. label = "a20-olinuxino-micro:green:usr";
  145. gpios = <&pio 7 2 0>;
  146. default-state = "on";
  147. };
  148. };
  149. reg_ahci_5v: ahci-5v {
  150. status = "okay";
  151. };
  152. reg_usb1_vbus: usb1-vbus {
  153. status = "okay";
  154. };
  155. reg_usb2_vbus: usb2-vbus {
  156. status = "okay";
  157. };
  158. };