sun4i-a10-olinuxino-lime.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /dts-v1/;
  12. /include/ "sun4i-a10.dtsi"
  13. /include/ "sunxi-common-regulators.dtsi"
  14. / {
  15. model = "Olimex A10-OLinuXino-LIME";
  16. compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
  17. soc@01c00000 {
  18. emac: ethernet@01c0b000 {
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&emac_pins_a>;
  21. phy = <&phy1>;
  22. status = "okay";
  23. };
  24. mdio@01c0b080 {
  25. status = "okay";
  26. phy1: ethernet-phy@1 {
  27. reg = <1>;
  28. };
  29. };
  30. mmc0: mmc@01c0f000 {
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  33. vmmc-supply = <&reg_vcc3v3>;
  34. bus-width = <4>;
  35. cd-gpios = <&pio 7 1 0>; /* PH1 */
  36. cd-inverted;
  37. status = "okay";
  38. };
  39. usbphy: phy@01c13400 {
  40. usb1_vbus-supply = <&reg_usb1_vbus>;
  41. usb2_vbus-supply = <&reg_usb2_vbus>;
  42. status = "okay";
  43. };
  44. ehci0: usb@01c14000 {
  45. status = "okay";
  46. };
  47. ohci0: usb@01c14400 {
  48. status = "okay";
  49. };
  50. ahci: sata@01c18000 {
  51. target-supply = <&reg_ahci_5v>;
  52. status = "okay";
  53. };
  54. ehci1: usb@01c1c000 {
  55. status = "okay";
  56. };
  57. ohci1: usb@01c1c400 {
  58. status = "okay";
  59. };
  60. pinctrl@01c20800 {
  61. ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
  62. allwinner,pins = "PC3";
  63. allwinner,function = "gpio_out";
  64. allwinner,drive = <0>;
  65. allwinner,pull = <0>;
  66. };
  67. led_pins_olinuxinolime: led_pins@0 {
  68. allwinner,pins = "PH2";
  69. allwinner,function = "gpio_out";
  70. allwinner,drive = <1>;
  71. allwinner,pull = <0>;
  72. };
  73. };
  74. uart0: serial@01c28000 {
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&uart0_pins_a>;
  77. status = "okay";
  78. };
  79. i2c0: i2c@01c2ac00 {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&i2c0_pins_a>;
  82. status = "okay";
  83. axp209: pmic@34 {
  84. compatible = "x-powers,axp209";
  85. reg = <0x34>;
  86. interrupts = <0>;
  87. interrupt-controller;
  88. #interrupt-cells = <1>;
  89. };
  90. };
  91. };
  92. leds {
  93. compatible = "gpio-leds";
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&led_pins_olinuxinolime>;
  96. green {
  97. label = "a10-olinuxino-lime:green:usr";
  98. gpios = <&pio 7 2 0>;
  99. default-state = "on";
  100. };
  101. };
  102. reg_ahci_5v: ahci-5v {
  103. pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
  104. gpio = <&pio 2 3 0>;
  105. status = "okay";
  106. };
  107. reg_usb1_vbus: usb1-vbus {
  108. status = "okay";
  109. };
  110. reg_usb2_vbus: usb2-vbus {
  111. status = "okay";
  112. };
  113. };