2 * Copyright (c) 2017 MediaTek Inc.
3 * Author: YT Shen <yt.shen@mediatek.com>
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
9 #include <dt-bindings/gpio/gpio.h>
10 #include "mt2712e.dtsi"
13 model = "MediaTek MT2712 evaluation board";
14 compatible = "mediatek,mt2712-evb", "mediatek,mt2712";
21 device_type = "memory";
22 reg = <0 0x40000000 0 0x80000000>;
26 stdout-path = "serial0:921600n8";
29 cpus_fixed_vproc0: regulator-vproc-buck0 {
30 compatible = "regulator-fixed";
31 regulator-name = "vproc_buck0";
32 regulator-min-microvolt = <1000000>;
33 regulator-max-microvolt = <1000000>;
36 cpus_fixed_vproc1: regulator-vproc-buck1 {
37 compatible = "regulator-fixed";
38 regulator-name = "vproc_buck1";
39 regulator-min-microvolt = <1000000>;
40 regulator-max-microvolt = <1000000>;
43 extcon_usb: extcon_iddig {
44 compatible = "linux,extcon-usb-gpio";
45 id-gpio = <&pio 12 GPIO_ACTIVE_HIGH>;
48 extcon_usb1: extcon_iddig1 {
49 compatible = "linux,extcon-usb-gpio";
50 id-gpio = <&pio 14 GPIO_ACTIVE_HIGH>;
53 usb_p0_vbus: regulator-usb-p0-vbus {
54 compatible = "regulator-fixed";
55 regulator-name = "p0_vbus";
56 regulator-min-microvolt = <5000000>;
57 regulator-max-microvolt = <5000000>;
58 gpio = <&pio 13 GPIO_ACTIVE_HIGH>;
62 usb_p1_vbus: regulator-usb-p1-vbus {
63 compatible = "regulator-fixed";
64 regulator-name = "p1_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&pio 15 GPIO_ACTIVE_HIGH>;
71 usb_p2_vbus: regulator-usb-p2-vbus {
72 compatible = "regulator-fixed";
73 regulator-name = "p2_vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 gpio = <&pio 16 GPIO_ACTIVE_HIGH>;
80 usb_p3_vbus: regulator-usb-p3-vbus {
81 compatible = "regulator-fixed";
82 regulator-name = "p3_vbus";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
85 gpio = <&pio 17 GPIO_ACTIVE_HIGH>;
97 proc-supply = <&cpus_fixed_vproc0>;
101 proc-supply = <&cpus_fixed_vproc0>;
105 proc-supply = <&cpus_fixed_vproc1>;
109 phy-mode = "rgmii-rxid";
110 phy-handle = <ðernet_phy0>;
111 mediatek,tx-delay-ps = <1530>;
112 snps,reset-gpio = <&pio 87 GPIO_ACTIVE_LOW>;
113 snps,reset-delays-us = <0 10000 10000>;
114 pinctrl-names = "default", "sleep";
115 pinctrl-0 = <ð_default>;
116 pinctrl-1 = <ð_sleep>;
120 compatible = "snps,dwmac-mdio";
121 #address-cells = <1>;
123 ethernet_phy0: ethernet-phy@5 {
124 compatible = "ethernet-phy-id0243.0d90";
131 eth_default: eth-default-pins {
133 pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GBE_TXD3>,
134 <MT2712_PIN_72_GBE_TXD2__FUNC_GBE_TXD2>,
135 <MT2712_PIN_73_GBE_TXD1__FUNC_GBE_TXD1>,
136 <MT2712_PIN_74_GBE_TXD0__FUNC_GBE_TXD0>,
137 <MT2712_PIN_75_GBE_TXC__FUNC_GBE_TXC>,
138 <MT2712_PIN_76_GBE_TXEN__FUNC_GBE_TXEN>;
139 drive-strength = <MTK_DRIVE_8mA>;
142 pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GBE_RXD3>,
143 <MT2712_PIN_79_GBE_RXD2__FUNC_GBE_RXD2>,
144 <MT2712_PIN_80_GBE_RXD1__FUNC_GBE_RXD1>,
145 <MT2712_PIN_81_GBE_RXD0__FUNC_GBE_RXD0>,
146 <MT2712_PIN_82_GBE_RXDV__FUNC_GBE_RXDV>,
147 <MT2712_PIN_84_GBE_RXC__FUNC_GBE_RXC>;
151 pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GBE_MDC>,
152 <MT2712_PIN_86_GBE_MDIO__FUNC_GBE_MDIO>;
153 drive-strength = <MTK_DRIVE_8mA>;
158 eth_sleep: eth-sleep-pins {
160 pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GPIO71>,
161 <MT2712_PIN_72_GBE_TXD2__FUNC_GPIO72>,
162 <MT2712_PIN_73_GBE_TXD1__FUNC_GPIO73>,
163 <MT2712_PIN_74_GBE_TXD0__FUNC_GPIO74>,
164 <MT2712_PIN_75_GBE_TXC__FUNC_GPIO75>,
165 <MT2712_PIN_76_GBE_TXEN__FUNC_GPIO76>;
168 pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GPIO78>,
169 <MT2712_PIN_79_GBE_RXD2__FUNC_GPIO79>,
170 <MT2712_PIN_80_GBE_RXD1__FUNC_GPIO80>,
171 <MT2712_PIN_81_GBE_RXD0__FUNC_GPIO81>,
172 <MT2712_PIN_82_GBE_RXDV__FUNC_GPIO82>,
173 <MT2712_PIN_84_GBE_RXC__FUNC_GPIO84>;
177 pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GPIO85>,
178 <MT2712_PIN_86_GBE_MDIO__FUNC_GPIO86>;
184 usb0_id_pins_float: usb0-iddig-pins {
186 pinmux = <MT2712_PIN_12_IDDIG_P0__FUNC_IDDIG_A>;
191 usb1_id_pins_float: usb1-iddig-pins {
193 pinmux = <MT2712_PIN_14_IDDIG_P1__FUNC_IDDIG_B>;
200 vbus-supply = <&usb_p0_vbus>;
201 extcon = <&extcon_usb>;
204 mediatek,u3p-dis-msk = <0x1>;
206 //maximum-speed = "full-speed";
207 pinctrl-names = "default";
208 pinctrl-0 = <&usb0_id_pins_float>;
213 vbus-supply = <&usb_p1_vbus>;
214 extcon = <&extcon_usb1>;
216 //mediatek,u3p-dis-msk = <0x1>;
219 //maximum-speed = "full-speed";
220 pinctrl-names = "default";
221 pinctrl-0 = <&usb1_id_pins_float>;
230 vbus-supply = <&usb_p2_vbus>;