sun6i-a31-hummingbird.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * Copyright 2014 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/ "sun6i-a31.dtsi"
  15. /include/ "sunxi-common-regulators.dtsi"
  16. / {
  17. model = "Merrii A31 Hummingbird";
  18. compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31";
  19. chosen {
  20. bootargs = "earlyprintk console=ttyS0,115200";
  21. };
  22. soc@01c00000 {
  23. mmc0: mmc@01c0f000 {
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>;
  26. vmmc-supply = <&reg_vcc3v0>;
  27. bus-width = <4>;
  28. cd-gpios = <&pio 0 8 0>; /* PA8 */
  29. cd-inverted;
  30. status = "okay";
  31. };
  32. usbphy: phy@01c19400 {
  33. usb1_vbus-supply = <&reg_usb1_vbus>;
  34. status = "okay";
  35. };
  36. ehci0: usb@01c1a000 {
  37. status = "okay";
  38. };
  39. ohci0: usb@01c1a400 {
  40. status = "okay";
  41. };
  42. pio: pinctrl@01c20800 {
  43. mmc0_pins_a: mmc0@0 {
  44. /* external pull-ups missing for some pins */
  45. allwinner,pull = <1>;
  46. };
  47. mmc0_cd_pin_hummingbird: mmc0_cd_pin@0 {
  48. allwinner,pins = "PA8";
  49. allwinner,function = "gpio_in";
  50. allwinner,drive = <0>;
  51. allwinner,pull = <1>;
  52. };
  53. usb1_vbus_pin_a: usb1_vbus_pin@0 {
  54. allwinner,pins = "PH24";
  55. allwinner,function = "gpio_out";
  56. allwinner,drive = <0>;
  57. allwinner,pull = <0>;
  58. };
  59. };
  60. uart0: serial@01c28000 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&uart0_pins_a>;
  63. status = "okay";
  64. };
  65. i2c0: i2c@01c2ac00 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&i2c0_pins_a>;
  68. /* pull-ups and devices require AXP221 DLDO3 */
  69. status = "failed";
  70. };
  71. i2c1: i2c@01c2b000 {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&i2c1_pins_a>;
  74. status = "okay";
  75. };
  76. i2c2: i2c@01c2b400 {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&i2c2_pins_a>;
  79. status = "okay";
  80. pcf8563: rtc@51 {
  81. compatible = "nxp,pcf8563";
  82. reg = <0x51>;
  83. };
  84. };
  85. gmac: ethernet@01c30000 {
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&gmac_pins_rgmii_a>;
  88. phy = <&phy1>;
  89. phy-mode = "rgmii";
  90. status = "okay";
  91. phy1: ethernet-phy@1 {
  92. reg = <1>;
  93. };
  94. };
  95. };
  96. reg_usb1_vbus: usb1-vbus {
  97. pinctrl-0 = <&usb1_vbus_pin_a>;
  98. gpio = <&pio 7 24 0>; /* PH24 */
  99. status = "okay";
  100. };
  101. };