sun4i-a10-cubieboard.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*
  2. * Copyright 2012 Stefan Roese
  3. * Stefan Roese <sr@denx.de>
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. /dts-v1/;
  13. /include/ "sun4i-a10.dtsi"
  14. /include/ "sunxi-common-regulators.dtsi"
  15. / {
  16. model = "Cubietech Cubieboard";
  17. compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
  18. soc@01c00000 {
  19. emac: ethernet@01c0b000 {
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&emac_pins_a>;
  22. phy = <&phy1>;
  23. status = "okay";
  24. };
  25. mdio@01c0b080 {
  26. status = "okay";
  27. phy1: ethernet-phy@1 {
  28. reg = <1>;
  29. };
  30. };
  31. mmc0: mmc@01c0f000 {
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  34. vmmc-supply = <&reg_vcc3v3>;
  35. bus-width = <4>;
  36. cd-gpios = <&pio 7 1 0>; /* PH1 */
  37. cd-inverted;
  38. status = "okay";
  39. };
  40. usbphy: phy@01c13400 {
  41. usb1_vbus-supply = <&reg_usb1_vbus>;
  42. usb2_vbus-supply = <&reg_usb2_vbus>;
  43. status = "okay";
  44. };
  45. ehci0: usb@01c14000 {
  46. status = "okay";
  47. };
  48. ohci0: usb@01c14400 {
  49. status = "okay";
  50. };
  51. ahci: sata@01c18000 {
  52. target-supply = <&reg_ahci_5v>;
  53. status = "okay";
  54. };
  55. ehci1: usb@01c1c000 {
  56. status = "okay";
  57. };
  58. ohci1: usb@01c1c400 {
  59. status = "okay";
  60. };
  61. pinctrl@01c20800 {
  62. led_pins_cubieboard: led_pins@0 {
  63. allwinner,pins = "PH20", "PH21";
  64. allwinner,function = "gpio_out";
  65. allwinner,drive = <1>;
  66. allwinner,pull = <0>;
  67. };
  68. };
  69. ir0: ir@01c21800 {
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&ir0_pins_a>;
  72. status = "okay";
  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. i2c1: i2c@01c2b000 {
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&i2c1_pins_a>;
  94. status = "okay";
  95. };
  96. };
  97. leds {
  98. compatible = "gpio-leds";
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&led_pins_cubieboard>;
  101. blue {
  102. label = "cubieboard:blue:usr";
  103. gpios = <&pio 7 21 0>; /* LED1 */
  104. };
  105. green {
  106. label = "cubieboard:green:usr";
  107. gpios = <&pio 7 20 0>; /* LED2 */
  108. linux,default-trigger = "heartbeat";
  109. };
  110. };
  111. reg_ahci_5v: ahci-5v {
  112. status = "okay";
  113. };
  114. reg_usb1_vbus: usb1-vbus {
  115. status = "okay";
  116. };
  117. reg_usb2_vbus: usb2-vbus {
  118. status = "okay";
  119. };
  120. };