300-2-dt-sun7i-add-pcduino3-dts.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. --- /dev/null
  2. +++ b/arch/arm/boot/dts/sun7i-a20-pcduino3.dts
  3. @@ -0,0 +1,153 @@
  4. +/*
  5. + * Copyright 2014 Zoltan HERPAI
  6. + * Zoltan HERPAI <wigyori@uid0.hu>
  7. + *
  8. + * The code contained herein is licensed under the GNU General Public
  9. + * License. You may obtain a copy of the GNU General Public License
  10. + * Version 2 or later at the following locations:
  11. + *
  12. + * http://www.opensource.org/licenses/gpl-license.html
  13. + * http://www.gnu.org/copyleft/gpl.html
  14. + */
  15. +
  16. +/dts-v1/;
  17. +/include/ "sun7i-a20.dtsi"
  18. +/include/ "sunxi-ahci-reg.dtsi"
  19. +/include/ "sun4i-a10-usb-vbus-reg.dtsi"
  20. +#include <dt-bindings/input/input.h>
  21. +
  22. +/ {
  23. + model = "LinkSprite pcDuino V3";
  24. + compatible = "linksprite,a20-pcduino", "allwinner,sun7i-a20";
  25. +
  26. + aliases {
  27. + spi0 = &spi1;
  28. + spi1 = &spi2;
  29. + };
  30. +
  31. + soc@01c00000 {
  32. + spi1: spi@01c06000 {
  33. + pinctrl-names = "default";
  34. + pinctrl-0 = <&spi1_pins_a>;
  35. + status = "okay";
  36. + };
  37. +
  38. + spi2: spi@01c17000 {
  39. + pinctrl-names = "default";
  40. + pinctrl-0 = <&spi2_pins_a>;
  41. + status = "okay";
  42. + };
  43. +
  44. + mmc0: mmc@01c0f000 {
  45. + pinctrl-names = "default", "default";
  46. + pinctrl-0 = <&mmc0_pins_a>;
  47. + pinctrl-1 = <&mmc0_cd_pin_reference_design>;
  48. + cd-gpios = <&pio 7 1 0>; /* PH1 */
  49. + status = "okay";
  50. + };
  51. +
  52. + usbphy: phy@01c13400 {
  53. + usb1_vbus-supply = <&reg_usb1_vbus>;
  54. + usb2_vbus-supply = <&reg_usb2_vbus>;
  55. + status = "okay";
  56. + };
  57. +
  58. + ehci0: usb@01c14000 {
  59. + status = "okay";
  60. + };
  61. +
  62. + ohci0: usb@01c14400 {
  63. + status = "okay";
  64. + };
  65. +
  66. + ahci: sata@01c18000 {
  67. + target-supply = <&reg_ahci_5v>;
  68. + status = "okay";
  69. + };
  70. +
  71. + ehci1: usb@01c1c000 {
  72. + status = "okay";
  73. + };
  74. +
  75. + ohci1: usb@01c1c400 {
  76. + status = "okay";
  77. + };
  78. +
  79. + pinctrl@01c20800 {
  80. + led_pins_pcduino3: led_pins@0 {
  81. + allwinner,pins = "PH2";
  82. + allwinner,function = "gpio_out";
  83. + allwinner,drive = <1>;
  84. + allwinner,pull = <0>;
  85. + };
  86. + };
  87. +
  88. + lradc: lradc@01c22800 {
  89. + allwinner,chan0-step = <200>;
  90. + linux,chan0-keycodes = <KEY_VOLUMEUP KEY_VOLUMEDOWN
  91. + KEY_MENU KEY_SEARCH KEY_HOME
  92. + KEY_ESC KEY_ENTER>;
  93. + status = "okay";
  94. + };
  95. +
  96. + uart0: serial@01c28000 {
  97. + pinctrl-names = "default";
  98. + pinctrl-0 = <&uart0_pins_a>;
  99. + status = "okay";
  100. + };
  101. +
  102. + uart6: serial@01c29800 {
  103. + pinctrl-names = "default";
  104. + pinctrl-0 = <&uart6_pins_a>;
  105. + status = "okay";
  106. + };
  107. +
  108. + uart7: serial@01c29c00 {
  109. + pinctrl-names = "default";
  110. + pinctrl-0 = <&uart7_pins_a>;
  111. + status = "okay";
  112. + };
  113. +
  114. + i2c0: i2c@01c2ac00 {
  115. + pinctrl-names = "default";
  116. + pinctrl-0 = <&i2c0_pins_a>;
  117. + status = "okay";
  118. + };
  119. +
  120. + i2c1: i2c@01c2b000 {
  121. + pinctrl-names = "default";
  122. + pinctrl-0 = <&i2c1_pins_a>;
  123. + status = "okay";
  124. + };
  125. +
  126. + i2c2: i2c@01c2b400 {
  127. + pinctrl-names = "default";
  128. + pinctrl-0 = <&i2c2_pins_a>;
  129. + status = "okay";
  130. + };
  131. +
  132. + gmac: ethernet@01c50000 {
  133. + pinctrl-names = "default";
  134. + pinctrl-0 = <&gmac_pins_mii_a>;
  135. + phy = <&phy1>;
  136. + phy-mode = "mii";
  137. + status = "okay";
  138. +
  139. + phy1: ethernet-phy@1 {
  140. + reg = <1>;
  141. + };
  142. + };
  143. + };
  144. +
  145. + leds {
  146. + compatible = "gpio-leds";
  147. + pinctrl-names = "default";
  148. + pinctrl-0 = <&led_pins_pcduino3>;
  149. +
  150. + green {
  151. + label = "a20-pcduino:green:usr";
  152. + gpios = <&pio 7 2 0>;
  153. + default-state = "on";
  154. + };
  155. + };
  156. +};