sun7i-a20-pcduino3.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /*
  2. * Copyright 2014 Zoltan HERPAI
  3. * Zoltan HERPAI <wigyori@uid0.hu>
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. /dts-v1/;
  13. /include/ "sun7i-a20.dtsi"
  14. /include/ "sunxi-common-regulators.dtsi"
  15. #include <dt-bindings/gpio/gpio.h>
  16. #include <dt-bindings/input/input.h>
  17. / {
  18. model = "LinkSprite pcDuino3";
  19. compatible = "linksprite,pcduino3", "allwinner,sun7i-a20";
  20. chosen {
  21. stdout-path = &uart0;
  22. };
  23. soc@01c00000 {
  24. mmc0: mmc@01c0f000 {
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  27. vmmc-supply = <&reg_vcc3v3>;
  28. bus-width = <4>;
  29. cd-gpios = <&pio 7 1 0>; /* PH1 */
  30. cd-inverted;
  31. status = "okay";
  32. };
  33. usbphy: phy@01c13400 {
  34. usb1_vbus-supply = <&reg_usb1_vbus>;
  35. usb2_vbus-supply = <&reg_usb2_vbus>;
  36. status = "okay";
  37. };
  38. ehci0: usb@01c14000 {
  39. status = "okay";
  40. };
  41. ohci0: usb@01c14400 {
  42. status = "okay";
  43. };
  44. ahci: sata@01c18000 {
  45. target-supply = <&reg_ahci_5v>;
  46. status = "okay";
  47. };
  48. ehci1: usb@01c1c000 {
  49. status = "okay";
  50. };
  51. ohci1: usb@01c1c400 {
  52. status = "okay";
  53. };
  54. pinctrl@01c20800 {
  55. ahci_pwr_pin_a: ahci_pwr_pin@0 {
  56. allwinner,pins = "PH2";
  57. };
  58. led_pins_pcduino3: led_pins@0 {
  59. allwinner,pins = "PH15", "PH16";
  60. allwinner,function = "gpio_out";
  61. allwinner,drive = <0>;
  62. allwinner,pull = <0>;
  63. };
  64. key_pins_pcduino3: key_pins@0 {
  65. allwinner,pins = "PH17", "PH18", "PH19";
  66. allwinner,function = "gpio_in";
  67. allwinner,drive = <0>;
  68. allwinner,pull = <0>;
  69. };
  70. };
  71. ir0: ir@01c21800 {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&ir0_pins_a>;
  74. status = "okay";
  75. };
  76. uart0: serial@01c28000 {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&uart0_pins_a>;
  79. status = "okay";
  80. };
  81. i2c0: i2c@01c2ac00 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&i2c0_pins_a>;
  84. status = "okay";
  85. axp209: pmic@34 {
  86. compatible = "x-powers,axp209";
  87. reg = <0x34>;
  88. interrupt-parent = <&nmi_intc>;
  89. interrupts = <0 8>;
  90. interrupt-controller;
  91. #interrupt-cells = <1>;
  92. };
  93. };
  94. gmac: ethernet@01c50000 {
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&gmac_pins_mii_a>;
  97. phy = <&phy1>;
  98. phy-mode = "mii";
  99. status = "okay";
  100. phy1: ethernet-phy@1 {
  101. reg = <1>;
  102. };
  103. };
  104. };
  105. leds {
  106. compatible = "gpio-leds";
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&led_pins_pcduino3>;
  109. tx {
  110. label = "pcduino3:green:tx";
  111. gpios = <&pio 7 15 GPIO_ACTIVE_LOW>;
  112. };
  113. rx {
  114. label = "pcduino3:green:rx";
  115. gpios = <&pio 7 16 GPIO_ACTIVE_LOW>;
  116. };
  117. };
  118. gpio_keys {
  119. compatible = "gpio-keys";
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&key_pins_pcduino3>;
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. button@0 {
  125. label = "Key Back";
  126. linux,code = <KEY_BACK>;
  127. gpios = <&pio 7 17 GPIO_ACTIVE_LOW>;
  128. };
  129. button@1 {
  130. label = "Key Home";
  131. linux,code = <KEY_HOME>;
  132. gpios = <&pio 7 18 GPIO_ACTIVE_LOW>;
  133. };
  134. button@2 {
  135. label = "Key Menu";
  136. linux,code = <KEY_MENU>;
  137. gpios = <&pio 7 19 GPIO_ACTIVE_LOW>;
  138. };
  139. };
  140. reg_usb1_vbus: usb1-vbus {
  141. status = "okay";
  142. };
  143. reg_usb2_vbus: usb2-vbus {
  144. status = "okay";
  145. };
  146. reg_ahci_5v: ahci-5v {
  147. gpio = <&pio 7 2 0>;
  148. status = "okay";
  149. };
  150. };