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 usb0_id_pins_float: usb0_iddig {
111 pinmux = <MT2712_PIN_12_IDDIG_P0__FUNC_IDDIG_A>;
116 usb1_id_pins_float: usb1_iddig {
118 pinmux = <MT2712_PIN_14_IDDIG_P1__FUNC_IDDIG_B>;
125 vbus-supply = <&usb_p0_vbus>;
126 extcon = <&extcon_usb>;
129 mediatek,u3p-dis-msk = <0x1>;
131 //maximum-speed = "full-speed";
132 pinctrl-names = "default";
133 pinctrl-0 = <&usb0_id_pins_float>;
138 vbus-supply = <&usb_p1_vbus>;
139 extcon = <&extcon_usb1>;
141 //mediatek,u3p-dis-msk = <0x1>;
144 //maximum-speed = "full-speed";
145 pinctrl-names = "default";
146 pinctrl-0 = <&usb1_id_pins_float>;
155 vbus-supply = <&usb_p2_vbus>;