/* * Copyright (c) 2017 MediaTek Inc. * Author: YT Shen * * SPDX-License-Identifier: (GPL-2.0 OR MIT) */ /dts-v1/; #include #include "mt2712e.dtsi" / { model = "MediaTek MT2712 evaluation board"; compatible = "mediatek,mt2712-evb", "mediatek,mt2712"; aliases { serial0 = &uart0; }; memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x80000000>; }; chosen { stdout-path = "serial0:921600n8"; }; cpus_fixed_vproc0: fixedregulator@0 { compatible = "regulator-fixed"; regulator-name = "vproc_buck0"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; }; cpus_fixed_vproc1: fixedregulator@1 { compatible = "regulator-fixed"; regulator-name = "vproc_buck1"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; }; extcon_usb: extcon_iddig { compatible = "linux,extcon-usb-gpio"; id-gpio = <&pio 12 GPIO_ACTIVE_HIGH>; }; extcon_usb1: extcon_iddig1 { compatible = "linux,extcon-usb-gpio"; id-gpio = <&pio 14 GPIO_ACTIVE_HIGH>; }; usb_p0_vbus: regulator@2 { compatible = "regulator-fixed"; regulator-name = "p0_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 13 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_p1_vbus: regulator@3 { compatible = "regulator-fixed"; regulator-name = "p1_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 15 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_p2_vbus: regulator@4 { compatible = "regulator-fixed"; regulator-name = "p2_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 16 GPIO_ACTIVE_HIGH>; enable-active-high; }; usb_p3_vbus: regulator@5 { compatible = "regulator-fixed"; regulator-name = "p3_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 17 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; }; &auxadc { status = "okay"; }; &cpu0 { proc-supply = <&cpus_fixed_vproc0>; }; &cpu1 { proc-supply = <&cpus_fixed_vproc0>; }; &cpu2 { proc-supply = <&cpus_fixed_vproc1>; }; ð { phy-mode ="rgmii-rxid"; phy-handle = <ðernet_phy0>; mediatek,tx-delay-ps = <1530>; snps,reset-gpio = <&pio 87 GPIO_ACTIVE_LOW>; pinctrl-names = "default", "sleep"; pinctrl-0 = <ð_default>; pinctrl-1 = <ð_sleep>; status = "okay"; mdio { compatible = "snps,dwmac-mdio"; #address-cells = <1>; #size-cells = <0>; ethernet_phy0: ethernet-phy@5 { compatible = "ethernet-phy-id0243.0d90"; reg = <0x5>; }; }; }; &pio { eth_default: eth_default { tx_pins { pinmux = , , , , , ; drive-strength = ; }; rx_pins { pinmux = , , , , , ; input-enable; }; mdio_pins { pinmux = , ; drive-strength = ; input-enable; }; }; eth_sleep: eth_sleep { tx_pins { pinmux = , , , , , ; }; rx_pins { pinmux = , , , , , ; input-disable; }; mdio_pins { pinmux = , ; input-disable; bias-disable; }; }; usb0_id_pins_float: usb0_iddig { pins_iddig { pinmux = ; bias-pull-up; }; }; usb1_id_pins_float: usb1_iddig { pins_iddig { pinmux = ; bias-pull-up; }; }; }; &ssusb { vbus-supply = <&usb_p0_vbus>; extcon = <&extcon_usb>; dr_mode = "otg"; wakeup-source; mediatek,u3p-dis-msk = <0x1>; //enable-manual-drd; //maximum-speed = "full-speed"; pinctrl-names = "default"; pinctrl-0 = <&usb0_id_pins_float>; status = "okay"; }; &ssusb1 { vbus-supply = <&usb_p1_vbus>; extcon = <&extcon_usb1>; dr_mode = "otg"; //mediatek,u3p-dis-msk = <0x1>; enable-manual-drd; wakeup-source; //maximum-speed = "full-speed"; pinctrl-names = "default"; pinctrl-0 = <&usb1_id_pins_float>; status = "okay"; }; &uart0 { status = "okay"; }; &usb_host0 { vbus-supply = <&usb_p2_vbus>; status = "okay"; }; &usb_host1 { status = "okay"; };