sun4i-a10-a1000.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * Copyright 2013 Emilio López
  3. *
  4. * Emilio López <emilio@elopez.com.ar>
  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/ "sun4i-a10.dtsi"
  15. /include/ "sunxi-common-regulators.dtsi"
  16. / {
  17. model = "Mele A1000";
  18. compatible = "mele,a1000", "allwinner,sun4i-a10";
  19. soc@01c00000 {
  20. emac: ethernet@01c0b000 {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&emac_pins_a>;
  23. phy = <&phy1>;
  24. status = "okay";
  25. };
  26. mdio@01c0b080 {
  27. phy-supply = <&reg_emac_3v3>;
  28. status = "okay";
  29. phy1: ethernet-phy@1 {
  30. reg = <1>;
  31. };
  32. };
  33. mmc0: mmc@01c0f000 {
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  36. vmmc-supply = <&reg_vcc3v3>;
  37. bus-width = <4>;
  38. cd-gpios = <&pio 7 1 0>; /* PH1 */
  39. cd-inverted;
  40. status = "okay";
  41. };
  42. usbphy: phy@01c13400 {
  43. usb1_vbus-supply = <&reg_usb1_vbus>;
  44. usb2_vbus-supply = <&reg_usb2_vbus>;
  45. status = "okay";
  46. };
  47. ehci0: usb@01c14000 {
  48. status = "okay";
  49. };
  50. ohci0: usb@01c14400 {
  51. status = "okay";
  52. };
  53. ahci: sata@01c18000 {
  54. status = "okay";
  55. };
  56. ehci1: usb@01c1c000 {
  57. status = "okay";
  58. };
  59. ohci1: usb@01c1c400 {
  60. status = "okay";
  61. };
  62. pinctrl@01c20800 {
  63. emac_power_pin_a1000: emac_power_pin@0 {
  64. allwinner,pins = "PH15";
  65. allwinner,function = "gpio_out";
  66. allwinner,drive = <0>;
  67. allwinner,pull = <0>;
  68. };
  69. led_pins_a1000: led_pins@0 {
  70. allwinner,pins = "PH10", "PH20";
  71. allwinner,function = "gpio_out";
  72. allwinner,drive = <0>;
  73. allwinner,pull = <0>;
  74. };
  75. };
  76. ir0: ir@01c21800 {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&ir0_pins_a>;
  79. status = "okay";
  80. };
  81. uart0: serial@01c28000 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&uart0_pins_a>;
  84. status = "okay";
  85. };
  86. i2c0: i2c@01c2ac00 {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&i2c0_pins_a>;
  89. status = "okay";
  90. axp209: pmic@34 {
  91. compatible = "x-powers,axp209";
  92. reg = <0x34>;
  93. interrupts = <0>;
  94. interrupt-controller;
  95. #interrupt-cells = <1>;
  96. };
  97. };
  98. };
  99. leds {
  100. compatible = "gpio-leds";
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&led_pins_a1000>;
  103. red {
  104. label = "a1000:red:usr";
  105. gpios = <&pio 7 10 0>;
  106. };
  107. blue {
  108. label = "a1000:blue:usr";
  109. gpios = <&pio 7 20 0>;
  110. };
  111. };
  112. reg_emac_3v3: emac-3v3 {
  113. compatible = "regulator-fixed";
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&emac_power_pin_a1000>;
  116. regulator-name = "emac-3v3";
  117. regulator-min-microvolt = <3300000>;
  118. regulator-max-microvolt = <3300000>;
  119. enable-active-high;
  120. gpio = <&pio 7 15 0>;
  121. };
  122. reg_usb1_vbus: usb1-vbus {
  123. status = "okay";
  124. };
  125. reg_usb2_vbus: usb2-vbus {
  126. status = "okay";
  127. };
  128. };