sun7i-a20-cubieboard2.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 = "Cubietech Cubieboard2";
  18. compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
  19. soc@01c00000 {
  20. mmc0: mmc@01c0f000 {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  23. vmmc-supply = <&reg_vcc3v3>;
  24. bus-width = <4>;
  25. cd-gpios = <&pio 7 1 0>; /* PH1 */
  26. cd-inverted;
  27. status = "okay";
  28. };
  29. usbphy: phy@01c13400 {
  30. usb1_vbus-supply = <&reg_usb1_vbus>;
  31. usb2_vbus-supply = <&reg_usb2_vbus>;
  32. status = "okay";
  33. };
  34. ehci0: usb@01c14000 {
  35. status = "okay";
  36. };
  37. ohci0: usb@01c14400 {
  38. status = "okay";
  39. };
  40. ahci: sata@01c18000 {
  41. target-supply = <&reg_ahci_5v>;
  42. status = "okay";
  43. };
  44. ehci1: usb@01c1c000 {
  45. status = "okay";
  46. };
  47. ohci1: usb@01c1c400 {
  48. status = "okay";
  49. };
  50. pinctrl@01c20800 {
  51. led_pins_cubieboard2: led_pins@0 {
  52. allwinner,pins = "PH20", "PH21";
  53. allwinner,function = "gpio_out";
  54. allwinner,drive = <0>;
  55. allwinner,pull = <0>;
  56. };
  57. };
  58. ir0: ir@01c21800 {
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&ir0_pins_a>;
  61. status = "okay";
  62. };
  63. uart0: serial@01c28000 {
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&uart0_pins_a>;
  66. status = "okay";
  67. };
  68. i2c0: i2c@01c2ac00 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&i2c0_pins_a>;
  71. status = "okay";
  72. axp209: pmic@34 {
  73. compatible = "x-powers,axp209";
  74. reg = <0x34>;
  75. interrupt-parent = <&nmi_intc>;
  76. interrupts = <0 8>;
  77. interrupt-controller;
  78. #interrupt-cells = <1>;
  79. };
  80. };
  81. i2c1: i2c@01c2b000 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&i2c1_pins_a>;
  84. status = "okay";
  85. };
  86. gmac: ethernet@01c50000 {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&gmac_pins_mii_a>;
  89. phy = <&phy1>;
  90. phy-mode = "mii";
  91. status = "okay";
  92. phy1: ethernet-phy@1 {
  93. reg = <1>;
  94. };
  95. };
  96. };
  97. leds {
  98. compatible = "gpio-leds";
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&led_pins_cubieboard2>;
  101. blue {
  102. label = "cubieboard2:blue:usr";
  103. gpios = <&pio 7 21 0>;
  104. };
  105. green {
  106. label = "cubieboard2:green:usr";
  107. gpios = <&pio 7 20 0>;
  108. };
  109. };
  110. reg_ahci_5v: ahci-5v {
  111. status = "okay";
  112. };
  113. reg_usb1_vbus: usb1-vbus {
  114. status = "okay";
  115. };
  116. reg_usb2_vbus: usb2-vbus {
  117. status = "okay";
  118. };
  119. };