/* * Copyright (c) 2014 MediaTek Inc. * Author: Eddie Huang * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /dts-v1/; #include #include #include "mt8173.dtsi" / { model = "MediaTek MT8173 evaluation board"; compatible = "mediatek,mt8173-evb", "mediatek,mt8173"; aliases { serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; serial3 = &uart3; }; memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x80000000>; }; chosen { }; usb_p1_vbus: regulator@0 { compatible = "regulator-fixed"; regulator-name = "usb_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 130 GPIO_ACTIVE_HIGH>; enable-active-high; }; connector { compatible = "hdmi-connector"; label = "hdmi"; type = "d"; port { hdmi_connector_in: endpoint { remote-endpoint = <&hdmi0_out>; }; }; }; }; &cec { status = "okay"; }; &dpi0 { status = "okay"; }; &hdmi0 { status = "okay"; ports { port@1 { reg = <1>; hdmi0_out: endpoint { remote-endpoint = <&hdmi_connector_in>; }; }; }; }; &i2c1 { status = "okay"; buck: da9211@68 { compatible = "dlg,da9211"; reg = <0x68>; regulators { da9211_vcpu_reg: BUCKA { regulator-name = "VBUCKA"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1310000>; regulator-min-microamp = <2000000>; regulator-max-microamp = <4400000>; regulator-ramp-delay = <10000>; regulator-always-on; regulator-allowed-modes = < DA9211_BUCK_MODE_SYNC DA9211_BUCK_MODE_AUTO>; }; da9211_vgpu_reg: BUCKB { regulator-name = "VBUCKB"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1310000>; regulator-min-microamp = <2000000>; regulator-max-microamp = <3000000>; regulator-ramp-delay = <10000>; regulator-allowed-modes = < DA9211_BUCK_MODE_SYNC DA9211_BUCK_MODE_AUTO>; }; }; }; }; &mmc0 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_pins_default>; pinctrl-1 = <&mmc0_pins_uhs>; bus-width = <8>; max-frequency = <50000000>; cap-mmc-highspeed; vmmc-supply = <&mt6397_vemc_3v3_reg>; vqmmc-supply = <&mt6397_vio18_reg>; non-removable; }; &mmc1 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc1_pins_default>; pinctrl-1 = <&mmc1_pins_uhs>; bus-width = <4>; max-frequency = <50000000>; cap-sd-highspeed; sd-uhs-sdr25; cd-gpios = <&pio 132 1>; vmmc-supply = <&mt6397_vmch_reg>; vqmmc-supply = <&mt6397_vmc_reg>; }; &pio { disp_pwm0_pins: disp_pwm0_pins { pins1 { pinmux = ; output-low; }; }; mmc0_pins_default: mmc0default { pins_cmd_dat { pinmux = , , , , , , , , ; input-enable; bias-pull-up; }; pins_clk { pinmux = ; bias-pull-down; }; pins_rst { pinmux = ; bias-pull-up; }; }; mmc1_pins_default: mmc1default { pins_cmd_dat { pinmux = , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; bias-pull-down; drive-strength = ; }; pins_insert { pinmux = ; bias-pull-up; }; }; mmc0_pins_uhs: mmc0 { pins_cmd_dat { pinmux = , , , , , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; drive-strength = ; bias-pull-down = ; }; pins_rst { pinmux = ; bias-pull-up; }; }; mmc1_pins_uhs: mmc1 { pins_cmd_dat { pinmux = , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; drive-strength = ; bias-pull-down = ; }; }; }; &pwm { pinctrl-names = "default"; pinctrl-0 = <&disp_pwm0_pins>; status = "okay"; }; &pwrap { /* Only MT8173 E1 needs USB power domain */ power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; pmic: mt6397 { compatible = "mediatek,mt6397"; interrupt-parent = <&pio>; interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells = <2>; mediatek,system-power-controller; mt6397regulator: mt6397regulator { compatible = "mediatek,mt6397-regulator"; mt6397_vpca15_reg: buck_vpca15 { regulator-compatible = "buck_vpca15"; regulator-name = "vpca15"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vpca7_reg: buck_vpca7 { regulator-compatible = "buck_vpca7"; regulator-name = "vpca7"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <115>; }; mt6397_vsramca15_reg: buck_vsramca15 { regulator-compatible = "buck_vsramca15"; regulator-name = "vsramca15"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vsramca7_reg: buck_vsramca7 { regulator-compatible = "buck_vsramca7"; regulator-name = "vsramca7"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vcore_reg: buck_vcore { regulator-compatible = "buck_vcore"; regulator-name = "vcore"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vgpu_reg: buck_vgpu { regulator-compatible = "buck_vgpu"; regulator-name = "vgpu"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <115>; }; mt6397_vdrm_reg: buck_vdrm { regulator-compatible = "buck_vdrm"; regulator-name = "vdrm"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1400000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vio18_reg: buck_vio18 { regulator-compatible = "buck_vio18"; regulator-name = "vio18"; regulator-min-microvolt = <1620000>; regulator-max-microvolt = <1980000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vtcxo_reg: ldo_vtcxo { regulator-compatible = "ldo_vtcxo"; regulator-name = "vtcxo"; regulator-always-on; }; mt6397_va28_reg: ldo_va28 { regulator-compatible = "ldo_va28"; regulator-name = "va28"; regulator-always-on; }; mt6397_vcama_reg: ldo_vcama { regulator-compatible = "ldo_vcama"; regulator-name = "vcama"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <2800000>; regulator-enable-ramp-delay = <218>; }; mt6397_vio28_reg: ldo_vio28 { regulator-compatible = "ldo_vio28"; regulator-name = "vio28"; regulator-always-on; }; mt6397_vusb_reg: ldo_vusb { regulator-compatible = "ldo_vusb"; regulator-name = "vusb"; }; mt6397_vmc_reg: ldo_vmc { regulator-compatible = "ldo_vmc"; regulator-name = "vmc"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vmch_reg: ldo_vmch { regulator-compatible = "ldo_vmch"; regulator-name = "vmch"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vemc_3v3_reg: ldo_vemc3v3 { regulator-compatible = "ldo_vemc3v3"; regulator-name = "vemc_3v3"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp1_reg: ldo_vgp1 { regulator-compatible = "ldo_vgp1"; regulator-name = "vcamd"; regulator-min-microvolt = <1220000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <240>; }; mt6397_vgp2_reg: ldo_vgp2 { regulator-compatible = "ldo_vgp2"; regulator-name = "vcamio"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp3_reg: ldo_vgp3 { regulator-compatible = "ldo_vgp3"; regulator-name = "vcamaf"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp4_reg: ldo_vgp4 { regulator-compatible = "ldo_vgp4"; regulator-name = "vgp4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp5_reg: ldo_vgp5 { regulator-compatible = "ldo_vgp5"; regulator-name = "vgp5"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3000000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp6_reg: ldo_vgp6 { regulator-compatible = "ldo_vgp6"; regulator-name = "vgp6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vibr_reg: ldo_vibr { regulator-compatible = "ldo_vibr"; regulator-name = "vibr"; regulator-min-microvolt = <1300000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; }; }; }; &pio { spi_pins_a: spi0 { pins_spi { pinmux = , , , ; }; }; }; &spi { pinctrl-names = "default"; pinctrl-0 = <&spi_pins_a>; mediatek,pad-select = <0>; status = "okay"; }; &uart0 { status = "okay"; }; &usb { vusb33-supply = <&mt6397_vusb_reg>; vbus-supply = <&usb_p1_vbus>; mediatek,wakeup-src = <1>; };