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: fixedregulator@0 {
30 compatible = "regulator-fixed";
31 regulator-name = "vproc_buck0";
32 regulator-min-microvolt = <1000000>;
33 regulator-max-microvolt = <1000000>;
36 cpus_fixed_vproc1: fixedregulator@1 {
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@2 {
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@3 {
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@4 {
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@5 {
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 pinctrl-names = "default", "sleep";
114 pinctrl-0 = <ð_default>;
115 pinctrl-1 = <ð_sleep>;
119 compatible = "snps,dwmac-mdio";
120 #address-cells = <1>;
122 ethernet_phy0: ethernet-phy@5 {
123 compatible = "ethernet-phy-id0243.0d90";
130 eth_default: eth_default {
132 pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GBE_TXD3>,
133 <MT2712_PIN_72_GBE_TXD2__FUNC_GBE_TXD2>,
134 <MT2712_PIN_73_GBE_TXD1__FUNC_GBE_TXD1>,
135 <MT2712_PIN_74_GBE_TXD0__FUNC_GBE_TXD0>,
136 <MT2712_PIN_75_GBE_TXC__FUNC_GBE_TXC>,
137 <MT2712_PIN_76_GBE_TXEN__FUNC_GBE_TXEN>;
138 drive-strength = <MTK_DRIVE_8mA>;
141 pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GBE_RXD3>,
142 <MT2712_PIN_79_GBE_RXD2__FUNC_GBE_RXD2>,
143 <MT2712_PIN_80_GBE_RXD1__FUNC_GBE_RXD1>,
144 <MT2712_PIN_81_GBE_RXD0__FUNC_GBE_RXD0>,
145 <MT2712_PIN_82_GBE_RXDV__FUNC_GBE_RXDV>,
146 <MT2712_PIN_84_GBE_RXC__FUNC_GBE_RXC>;
150 pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GBE_MDC>,
151 <MT2712_PIN_86_GBE_MDIO__FUNC_GBE_MDIO>;
152 drive-strength = <MTK_DRIVE_8mA>;
157 eth_sleep: eth_sleep {
159 pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GPIO71>,
160 <MT2712_PIN_72_GBE_TXD2__FUNC_GPIO72>,
161 <MT2712_PIN_73_GBE_TXD1__FUNC_GPIO73>,
162 <MT2712_PIN_74_GBE_TXD0__FUNC_GPIO74>,
163 <MT2712_PIN_75_GBE_TXC__FUNC_GPIO75>,
164 <MT2712_PIN_76_GBE_TXEN__FUNC_GPIO76>;
167 pinmux = <MT2712_PIN_78_GBE_RXD3__FUNC_GPIO78>,
168 <MT2712_PIN_79_GBE_RXD2__FUNC_GPIO79>,
169 <MT2712_PIN_80_GBE_RXD1__FUNC_GPIO80>,
170 <MT2712_PIN_81_GBE_RXD0__FUNC_GPIO81>,
171 <MT2712_PIN_82_GBE_RXDV__FUNC_GPIO82>,
172 <MT2712_PIN_84_GBE_RXC__FUNC_GPIO84>;
176 pinmux = <MT2712_PIN_85_GBE_MDC__FUNC_GPIO85>,
177 <MT2712_PIN_86_GBE_MDIO__FUNC_GPIO86>;
183 usb0_id_pins_float: usb0_iddig {
185 pinmux = <MT2712_PIN_12_IDDIG_P0__FUNC_IDDIG_A>;
190 usb1_id_pins_float: usb1_iddig {
192 pinmux = <MT2712_PIN_14_IDDIG_P1__FUNC_IDDIG_B>;
199 vbus-supply = <&usb_p0_vbus>;
200 extcon = <&extcon_usb>;
203 mediatek,u3p-dis-msk = <0x1>;
205 //maximum-speed = "full-speed";
206 pinctrl-names = "default";
207 pinctrl-0 = <&usb0_id_pins_float>;
212 vbus-supply = <&usb_p1_vbus>;
213 extcon = <&extcon_usb1>;
215 //mediatek,u3p-dis-msk = <0x1>;
218 //maximum-speed = "full-speed";
219 pinctrl-names = "default";
220 pinctrl-0 = <&usb1_id_pins_float>;
229 vbus-supply = <&usb_p2_vbus>;