sun7i-a20-pcduino3.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. soc@01c00000 {
  21. mmc0: mmc@01c0f000 {
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  24. vmmc-supply = <&reg_vcc3v3>;
  25. bus-width = <4>;
  26. cd-gpios = <&pio 7 1 0>; /* PH1 */
  27. cd-inverted;
  28. status = "okay";
  29. };
  30. usbphy: phy@01c13400 {
  31. usb1_vbus-supply = <&reg_usb1_vbus>;
  32. usb2_vbus-supply = <&reg_usb2_vbus>;
  33. status = "okay";
  34. };
  35. ehci0: usb@01c14000 {
  36. status = "okay";
  37. };
  38. ohci0: usb@01c14400 {
  39. status = "okay";
  40. };
  41. ahci: sata@01c18000 {
  42. target-supply = <&reg_ahci_5v>;
  43. status = "okay";
  44. };
  45. ehci1: usb@01c1c000 {
  46. status = "okay";
  47. };
  48. ohci1: usb@01c1c400 {
  49. status = "okay";
  50. };
  51. pinctrl@01c20800 {
  52. ahci_pwr_pin_a: ahci_pwr_pin@0 {
  53. allwinner,pins = "PH2";
  54. };
  55. led_pins_pcduino3: led_pins@0 {
  56. allwinner,pins = "PH15", "PH16";
  57. allwinner,function = "gpio_out";
  58. allwinner,drive = <0>;
  59. allwinner,pull = <0>;
  60. };
  61. key_pins_pcduino3: key_pins@0 {
  62. allwinner,pins = "PH17", "PH18", "PH19";
  63. allwinner,function = "gpio_in";
  64. allwinner,drive = <0>;
  65. allwinner,pull = <0>;
  66. };
  67. };
  68. ir0: ir@01c21800 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&ir0_pins_a>;
  71. status = "okay";
  72. };
  73. uart0: serial@01c28000 {
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&uart0_pins_a>;
  76. status = "okay";
  77. };
  78. i2c0: i2c@01c2ac00 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&i2c0_pins_a>;
  81. status = "okay";
  82. axp209: pmic@34 {
  83. compatible = "x-powers,axp209";
  84. reg = <0x34>;
  85. interrupt-parent = <&nmi_intc>;
  86. interrupts = <0 8>;
  87. interrupt-controller;
  88. #interrupt-cells = <1>;
  89. };
  90. };
  91. gmac: ethernet@01c50000 {
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&gmac_pins_mii_a>;
  94. phy = <&phy1>;
  95. phy-mode = "mii";
  96. status = "okay";
  97. phy1: ethernet-phy@1 {
  98. reg = <1>;
  99. };
  100. };
  101. };
  102. leds {
  103. compatible = "gpio-leds";
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&led_pins_pcduino3>;
  106. tx {
  107. label = "pcduino3:green:tx";
  108. gpios = <&pio 7 15 GPIO_ACTIVE_LOW>;
  109. };
  110. rx {
  111. label = "pcduino3:green:rx";
  112. gpios = <&pio 7 16 GPIO_ACTIVE_LOW>;
  113. };
  114. };
  115. gpio_keys {
  116. compatible = "gpio-keys";
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&key_pins_pcduino3>;
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. button@0 {
  122. label = "Key Back";
  123. linux,code = <KEY_BACK>;
  124. gpios = <&pio 7 17 GPIO_ACTIVE_LOW>;
  125. };
  126. button@1 {
  127. label = "Key Home";
  128. linux,code = <KEY_HOME>;
  129. gpios = <&pio 7 18 GPIO_ACTIVE_LOW>;
  130. };
  131. button@2 {
  132. label = "Key Menu";
  133. linux,code = <KEY_MENU>;
  134. gpios = <&pio 7 19 GPIO_ACTIVE_LOW>;
  135. };
  136. };
  137. reg_usb1_vbus: usb1-vbus {
  138. status = "okay";
  139. };
  140. reg_usb2_vbus: usb2-vbus {
  141. status = "okay";
  142. };
  143. reg_ahci_5v: ahci-5v {
  144. gpio = <&pio 7 2 0>;
  145. status = "okay";
  146. };
  147. };