mt2712-evb.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /*
  2. * Copyright (c) 2017 MediaTek Inc.
  3. * Author: YT Shen <[email protected]>
  4. *
  5. * SPDX-License-Identifier: (GPL-2.0 OR MIT)
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include "mt2712e.dtsi"
  10. / {
  11. model = "MediaTek MT2712 evaluation board";
  12. compatible = "mediatek,mt2712-evb", "mediatek,mt2712";
  13. aliases {
  14. serial0 = &uart0;
  15. };
  16. memory@40000000 {
  17. device_type = "memory";
  18. reg = <0 0x40000000 0 0x80000000>;
  19. };
  20. chosen {
  21. stdout-path = "serial0:921600n8";
  22. };
  23. cpus_fixed_vproc0: regulator-vproc-buck0 {
  24. compatible = "regulator-fixed";
  25. regulator-name = "vproc_buck0";
  26. regulator-min-microvolt = <1000000>;
  27. regulator-max-microvolt = <1000000>;
  28. };
  29. cpus_fixed_vproc1: regulator-vproc-buck1 {
  30. compatible = "regulator-fixed";
  31. regulator-name = "vproc_buck1";
  32. regulator-min-microvolt = <1000000>;
  33. regulator-max-microvolt = <1000000>;
  34. };
  35. extcon_usb: extcon_iddig {
  36. compatible = "linux,extcon-usb-gpio";
  37. id-gpio = <&pio 12 GPIO_ACTIVE_HIGH>;
  38. };
  39. extcon_usb1: extcon_iddig1 {
  40. compatible = "linux,extcon-usb-gpio";
  41. id-gpio = <&pio 14 GPIO_ACTIVE_HIGH>;
  42. };
  43. usb_p0_vbus: regulator-usb-p0-vbus {
  44. compatible = "regulator-fixed";
  45. regulator-name = "p0_vbus";
  46. regulator-min-microvolt = <5000000>;
  47. regulator-max-microvolt = <5000000>;
  48. gpio = <&pio 13 GPIO_ACTIVE_HIGH>;
  49. enable-active-high;
  50. };
  51. usb_p1_vbus: regulator-usb-p1-vbus {
  52. compatible = "regulator-fixed";
  53. regulator-name = "p1_vbus";
  54. regulator-min-microvolt = <5000000>;
  55. regulator-max-microvolt = <5000000>;
  56. gpio = <&pio 15 GPIO_ACTIVE_HIGH>;
  57. enable-active-high;
  58. };
  59. usb_p2_vbus: regulator-usb-p2-vbus {
  60. compatible = "regulator-fixed";
  61. regulator-name = "p2_vbus";
  62. regulator-min-microvolt = <5000000>;
  63. regulator-max-microvolt = <5000000>;
  64. gpio = <&pio 16 GPIO_ACTIVE_HIGH>;
  65. enable-active-high;
  66. };
  67. usb_p3_vbus: regulator-usb-p3-vbus {
  68. compatible = "regulator-fixed";
  69. regulator-name = "p3_vbus";
  70. regulator-min-microvolt = <5000000>;
  71. regulator-max-microvolt = <5000000>;
  72. gpio = <&pio 17 GPIO_ACTIVE_HIGH>;
  73. enable-active-high;
  74. regulator-always-on;
  75. };
  76. };
  77. &auxadc {
  78. status = "okay";
  79. };
  80. &cpu0 {
  81. proc-supply = <&cpus_fixed_vproc0>;
  82. };
  83. &cpu1 {
  84. proc-supply = <&cpus_fixed_vproc0>;
  85. };
  86. &cpu2 {
  87. proc-supply = <&cpus_fixed_vproc1>;
  88. };
  89. &eth {
  90. phy-mode = "rgmii-rxid";
  91. phy-handle = <&ethernet_phy0>;
  92. mediatek,tx-delay-ps = <1530>;
  93. snps,reset-gpio = <&pio 87 GPIO_ACTIVE_LOW>;
  94. snps,reset-delays-us = <0 10000 10000>;
  95. pinctrl-names = "default", "sleep";
  96. pinctrl-0 = <&eth_default>;
  97. pinctrl-1 = <&eth_sleep>;
  98. status = "okay";
  99. mdio {
  100. compatible = "snps,dwmac-mdio";
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. ethernet_phy0: ethernet-phy@5 {
  104. compatible = "ethernet-phy-id0243.0d90";
  105. reg = <0x5>;
  106. };
  107. };
  108. };
  109. &pio {
  110. eth_default: eth_default {
  111. tx_pins {
  112. pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GBE_TXD3>,
  113. <MT2712_PIN_72_GBE_TXD2__FUNC_GBE_TXD2>,
  114. <MT2712_PIN_73_GBE_TXD1__FUNC_GBE_TXD1>,
  115. <MT2712_PIN_74_GBE_TXD0__FUNC_GBE_TXD0>,
  116. <MT2712_PIN_75_GBE_TXC__FUNC_GBE_TXC>,
  117. <MT2712_PIN_76_GBE_TXEN__FUNC_GBE_TXEN>;
  118. drive-strength = <MTK_DRIVE_8mA>;
  119. };
  120. rx_pins {
  121. pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GBE_RXD3>,
  122. <MT2712_PIN_79_GBE_RXD2__FUNC_GBE_RXD2>,
  123. <MT2712_PIN_80_GBE_RXD1__FUNC_GBE_RXD1>,
  124. <MT2712_PIN_81_GBE_RXD0__FUNC_GBE_RXD0>,
  125. <MT2712_PIN_82_GBE_RXDV__FUNC_GBE_RXDV>,
  126. <MT2712_PIN_84_GBE_RXC__FUNC_GBE_RXC>;
  127. input-enable;
  128. };
  129. mdio_pins {
  130. pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GBE_MDC>,
  131. <MT2712_PIN_86_GBE_MDIO__FUNC_GBE_MDIO>;
  132. drive-strength = <MTK_DRIVE_8mA>;
  133. input-enable;
  134. };
  135. };
  136. eth_sleep: eth_sleep {
  137. tx_pins {
  138. pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GPIO71>,
  139. <MT2712_PIN_72_GBE_TXD2__FUNC_GPIO72>,
  140. <MT2712_PIN_73_GBE_TXD1__FUNC_GPIO73>,
  141. <MT2712_PIN_74_GBE_TXD0__FUNC_GPIO74>,
  142. <MT2712_PIN_75_GBE_TXC__FUNC_GPIO75>,
  143. <MT2712_PIN_76_GBE_TXEN__FUNC_GPIO76>;
  144. };
  145. rx_pins {
  146. pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GPIO78>,
  147. <MT2712_PIN_79_GBE_RXD2__FUNC_GPIO79>,
  148. <MT2712_PIN_80_GBE_RXD1__FUNC_GPIO80>,
  149. <MT2712_PIN_81_GBE_RXD0__FUNC_GPIO81>,
  150. <MT2712_PIN_82_GBE_RXDV__FUNC_GPIO82>,
  151. <MT2712_PIN_84_GBE_RXC__FUNC_GPIO84>;
  152. input-disable;
  153. };
  154. mdio_pins {
  155. pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GPIO85>,
  156. <MT2712_PIN_86_GBE_MDIO__FUNC_GPIO86>;
  157. input-disable;
  158. bias-disable;
  159. };
  160. };
  161. usb0_id_pins_float: usb0_iddig {
  162. pins_iddig {
  163. pinmux = <MT2712_PIN_12_IDDIG_P0__FUNC_IDDIG_A>;
  164. bias-pull-up;
  165. };
  166. };
  167. usb1_id_pins_float: usb1_iddig {
  168. pins_iddig {
  169. pinmux = <MT2712_PIN_14_IDDIG_P1__FUNC_IDDIG_B>;
  170. bias-pull-up;
  171. };
  172. };
  173. };
  174. &ssusb {
  175. vbus-supply = <&usb_p0_vbus>;
  176. extcon = <&extcon_usb>;
  177. dr_mode = "otg";
  178. wakeup-source;
  179. mediatek,u3p-dis-msk = <0x1>;
  180. //enable-manual-drd;
  181. //maximum-speed = "full-speed";
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&usb0_id_pins_float>;
  184. status = "okay";
  185. };
  186. &ssusb1 {
  187. vbus-supply = <&usb_p1_vbus>;
  188. extcon = <&extcon_usb1>;
  189. dr_mode = "otg";
  190. //mediatek,u3p-dis-msk = <0x1>;
  191. enable-manual-drd;
  192. wakeup-source;
  193. //maximum-speed = "full-speed";
  194. pinctrl-names = "default";
  195. pinctrl-0 = <&usb1_id_pins_float>;
  196. status = "okay";
  197. };
  198. &uart0 {
  199. status = "okay";
  200. };
  201. &usb_host0 {
  202. vbus-supply = <&usb_p2_vbus>;
  203. status = "okay";
  204. };
  205. &usb_host1 {
  206. status = "okay";
  207. };