sun7i-a20-haoyu-marsboard.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright 2021 Conley Lee
  4. * Conley Lee <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "sun7i-a20.dtsi"
  8. #include "sunxi-common-regulators.dtsi"
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. / {
  12. model = "HAOYU Electronics Marsboard A20";
  13. compatible = "haoyu,a20-marsboard", "allwinner,sun7i-a20";
  14. aliases {
  15. serial0 = &uart0;
  16. };
  17. chosen {
  18. stdout-path = "serial0:115200n8";
  19. };
  20. hdmi-connector {
  21. compatible = "hdmi-connector";
  22. type = "a";
  23. port {
  24. hdmi_con_in: endpoint {
  25. remote-endpoint = <&hdmi_out_con>;
  26. };
  27. };
  28. };
  29. };
  30. &ahci {
  31. target-supply = <&reg_ahci_5v>;
  32. status = "okay";
  33. };
  34. &codec {
  35. status = "okay";
  36. };
  37. &cpu0 {
  38. cpu-supply = <&reg_dcdc2>;
  39. };
  40. &de {
  41. status = "okay";
  42. };
  43. &ehci0 {
  44. status = "okay";
  45. };
  46. &ehci1 {
  47. status = "okay";
  48. };
  49. &gmac {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&gmac_mii_pins>, <&gmac_txerr>;
  52. phy-handle = <&phy0>;
  53. phy-mode = "mii";
  54. status = "okay";
  55. };
  56. &hdmi {
  57. status = "okay";
  58. };
  59. &hdmi_out {
  60. hdmi_out_con: endpoint {
  61. remote-endpoint = <&hdmi_con_in>;
  62. };
  63. };
  64. &i2c0 {
  65. status = "okay";
  66. axp209: pmic@34 {
  67. reg = <0x34>;
  68. interrupt-parent = <&nmi_intc>;
  69. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  70. };
  71. };
  72. &mmc0 {
  73. vmmc-supply = <&reg_vcc3v3>;
  74. bus-width = <4>;
  75. cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */
  76. status = "okay";
  77. };
  78. &gmac_mdio {
  79. phy0: ethernet-phy@0 {
  80. reg = <0>;
  81. };
  82. };
  83. &ohci0 {
  84. status = "okay";
  85. };
  86. &ohci1 {
  87. status = "okay";
  88. };
  89. &otg_sram {
  90. status = "okay";
  91. };
  92. &pio {
  93. gmac_txerr: gmac-txerr-pin {
  94. pins = "PA17";
  95. function = "gmac";
  96. };
  97. };
  98. &reg_ahci_5v {
  99. status = "okay";
  100. };
  101. #include "axp209.dtsi"
  102. &ac_power_supply {
  103. status = "okay";
  104. };
  105. &reg_dcdc2 {
  106. regulator-always-on;
  107. regulator-min-microvolt = <1000000>;
  108. regulator-max-microvolt = <1450000>;
  109. regulator-name = "vdd-cpu";
  110. };
  111. &reg_dcdc3 {
  112. regulator-always-on;
  113. regulator-min-microvolt = <1000000>;
  114. regulator-max-microvolt = <1400000>;
  115. regulator-name = "vdd-int-dll";
  116. };
  117. &reg_ldo1 {
  118. regulator-name = "vdd-rtc";
  119. };
  120. &reg_ldo2 {
  121. regulator-always-on;
  122. regulator-min-microvolt = <3000000>;
  123. regulator-max-microvolt = <3000000>;
  124. regulator-name = "avcc";
  125. };
  126. &reg_usb1_vbus {
  127. status = "okay";
  128. };
  129. &reg_usb2_vbus {
  130. status = "okay";
  131. };
  132. &uart0 {
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&uart0_pb_pins>;
  135. status = "okay";
  136. };
  137. &usb_otg {
  138. dr_mode = "otg";
  139. status = "okay";
  140. };
  141. &usbphy {
  142. usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
  143. usb1_vbus-supply = <&reg_usb1_vbus>;
  144. usb2_vbus-supply = <&reg_usb2_vbus>;
  145. status = "okay";
  146. };