sun7i-a20-olinuxino-lime.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * This is based on sun4i-a10-olinuxino-lime.dts
  3. *
  4. * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
  5. * Copyright (c) 2014 FUKAUMI Naoki <naobsd@gmail.com>
  6. *
  7. * The code contained herein is licensed under the GNU General Public
  8. * License. You may obtain a copy of the GNU General Public License
  9. * Version 2 or later at the following locations:
  10. *
  11. * http://www.opensource.org/licenses/gpl-license.html
  12. * http://www.gnu.org/copyleft/gpl.html
  13. */
  14. /dts-v1/;
  15. /include/ "sun7i-a20.dtsi"
  16. /include/ "sunxi-common-regulators.dtsi"
  17. / {
  18. model = "Olimex A20-OLinuXino-LIME";
  19. compatible = "olimex,a20-olinuxino-lime", "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_olinuxinolime: ahci_pwr_pin@1 {
  53. allwinner,pins = "PC3";
  54. allwinner,function = "gpio_out";
  55. allwinner,drive = <0>;
  56. allwinner,pull = <0>;
  57. };
  58. led_pins_olinuxinolime: led_pins@0 {
  59. allwinner,pins = "PH2";
  60. allwinner,function = "gpio_out";
  61. allwinner,drive = <1>;
  62. allwinner,pull = <0>;
  63. };
  64. };
  65. uart0: serial@01c28000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&uart0_pins_a>;
  68. status = "okay";
  69. };
  70. i2c0: i2c@01c2ac00 {
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&i2c0_pins_a>;
  73. status = "okay";
  74. axp209: pmic@34 {
  75. compatible = "x-powers,axp209";
  76. reg = <0x34>;
  77. interrupt-parent = <&nmi_intc>;
  78. interrupts = <0 8>;
  79. interrupt-controller;
  80. #interrupt-cells = <1>;
  81. };
  82. };
  83. gmac: ethernet@01c50000 {
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&gmac_pins_mii_a>;
  86. phy = <&phy1>;
  87. phy-mode = "mii";
  88. status = "okay";
  89. phy1: ethernet-phy@1 {
  90. reg = <1>;
  91. };
  92. };
  93. };
  94. leds {
  95. compatible = "gpio-leds";
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&led_pins_olinuxinolime>;
  98. green {
  99. label = "a20-olinuxino-lime:green:usr";
  100. gpios = <&pio 7 2 0>;
  101. default-state = "on";
  102. };
  103. };
  104. reg_ahci_5v: ahci-5v {
  105. pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
  106. gpio = <&pio 2 3 0>;
  107. status = "okay";
  108. };
  109. reg_usb1_vbus: usb1-vbus {
  110. status = "okay";
  111. };
  112. reg_usb2_vbus: usb2-vbus {
  113. status = "okay";
  114. };
  115. };