1cc7364fbSJianqun Xu/*
2cc7364fbSJianqun Xu * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
3cc7364fbSJianqun Xu *
4cc7364fbSJianqun Xu * This file is dual-licensed: you can use it either under the terms
5cc7364fbSJianqun Xu * of the GPL or the X11 license, at your option. Note that this dual
6cc7364fbSJianqun Xu * licensing only applies to this file, and not this project as a
7cc7364fbSJianqun Xu * whole.
8cc7364fbSJianqun Xu *
9cc7364fbSJianqun Xu *  a) This file is free software; you can redistribute it and/or
10cc7364fbSJianqun Xu *     modify it under the terms of the GNU General Public License as
11cc7364fbSJianqun Xu *     published by the Free Software Foundation; either version 2 of the
12cc7364fbSJianqun Xu *     License, or (at your option) any later version.
13cc7364fbSJianqun Xu *
14cc7364fbSJianqun Xu *     This file is distributed in the hope that it will be useful,
15cc7364fbSJianqun Xu *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16cc7364fbSJianqun Xu *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17cc7364fbSJianqun Xu *     GNU General Public License for more details.
18cc7364fbSJianqun Xu *
19cc7364fbSJianqun Xu * Or, alternatively,
20cc7364fbSJianqun Xu *
21cc7364fbSJianqun Xu *  b) Permission is hereby granted, free of charge, to any person
22cc7364fbSJianqun Xu *     obtaining a copy of this software and associated documentation
23cc7364fbSJianqun Xu *     files (the "Software"), to deal in the Software without
24cc7364fbSJianqun Xu *     restriction, including without limitation the rights to use,
25cc7364fbSJianqun Xu *     copy, modify, merge, publish, distribute, sublicense, and/or
26cc7364fbSJianqun Xu *     sell copies of the Software, and to permit persons to whom the
27cc7364fbSJianqun Xu *     Software is furnished to do so, subject to the following
28cc7364fbSJianqun Xu *     conditions:
29cc7364fbSJianqun Xu *
30cc7364fbSJianqun Xu *     The above copyright notice and this permission notice shall be
31cc7364fbSJianqun Xu *     included in all copies or substantial portions of the Software.
32cc7364fbSJianqun Xu *
33cc7364fbSJianqun Xu *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34cc7364fbSJianqun Xu *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35cc7364fbSJianqun Xu *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36cc7364fbSJianqun Xu *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37cc7364fbSJianqun Xu *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38cc7364fbSJianqun Xu *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39cc7364fbSJianqun Xu *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40cc7364fbSJianqun Xu *     OTHER DEALINGS IN THE SOFTWARE.
41cc7364fbSJianqun Xu */
42cc7364fbSJianqun Xu
43cc7364fbSJianqun Xu/dts-v1/;
44cc7364fbSJianqun Xu#include <dt-bindings/pwm/pwm.h>
45cc7364fbSJianqun Xu#include "rk3399.dtsi"
46cc7364fbSJianqun Xu
47cc7364fbSJianqun Xu/ {
48cc7364fbSJianqun Xu	model = "Rockchip RK3399 Evaluation Board";
49cc7364fbSJianqun Xu	compatible = "rockchip,rk3399-evb", "rockchip,rk3399",
50cc7364fbSJianqun Xu		     "google,rk3399evb-rev2";
51cc7364fbSJianqun Xu
52cc7364fbSJianqun Xu	vdd_center: vdd-center {
53cc7364fbSJianqun Xu		compatible = "pwm-regulator";
54cc7364fbSJianqun Xu		pwms = <&pwm3 0 25000 0>;
55cc7364fbSJianqun Xu		regulator-name = "vdd_center";
56cc7364fbSJianqun Xu		regulator-min-microvolt = <800000>;
57cc7364fbSJianqun Xu		regulator-max-microvolt = <1400000>;
58cc7364fbSJianqun Xu		regulator-always-on;
59cc7364fbSJianqun Xu		regulator-boot-on;
60cc7364fbSJianqun Xu		status = "okay";
61cc7364fbSJianqun Xu	};
62cc7364fbSJianqun Xu
63cc7364fbSJianqun Xu	vcc3v3_sys: vcc3v3-sys {
64cc7364fbSJianqun Xu		compatible = "regulator-fixed";
65cc7364fbSJianqun Xu		regulator-name = "vcc3v3_sys";
66cc7364fbSJianqun Xu		regulator-always-on;
67cc7364fbSJianqun Xu		regulator-boot-on;
68cc7364fbSJianqun Xu		regulator-min-microvolt = <3300000>;
69cc7364fbSJianqun Xu		regulator-max-microvolt = <3300000>;
70cc7364fbSJianqun Xu	};
71cc7364fbSJianqun Xu
721d3bc1d6SFrank Wang	vcc5v0_sys: vcc5v0-sys {
731d3bc1d6SFrank Wang		compatible = "regulator-fixed";
741d3bc1d6SFrank Wang		regulator-name = "vcc5v0_sys";
751d3bc1d6SFrank Wang		regulator-always-on;
761d3bc1d6SFrank Wang		regulator-boot-on;
771d3bc1d6SFrank Wang		regulator-min-microvolt = <5000000>;
781d3bc1d6SFrank Wang		regulator-max-microvolt = <5000000>;
791d3bc1d6SFrank Wang	};
801d3bc1d6SFrank Wang
811d3bc1d6SFrank Wang	vcc5v0_host: vcc5v0-host-regulator {
821d3bc1d6SFrank Wang		compatible = "regulator-fixed";
831d3bc1d6SFrank Wang		enable-active-high;
841d3bc1d6SFrank Wang		gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
851d3bc1d6SFrank Wang		pinctrl-names = "default";
861d3bc1d6SFrank Wang		pinctrl-0 = <&vcc5v0_host_en>;
871d3bc1d6SFrank Wang		regulator-name = "vcc5v0_host";
881d3bc1d6SFrank Wang		vin-supply = <&vcc5v0_sys>;
891d3bc1d6SFrank Wang	};
901d3bc1d6SFrank Wang
91cc7364fbSJianqun Xu	vcc_phy: vcc-phy-regulator {
92cc7364fbSJianqun Xu		compatible = "regulator-fixed";
93cc7364fbSJianqun Xu		regulator-name = "vcc_phy";
94cc7364fbSJianqun Xu		regulator-always-on;
95cc7364fbSJianqun Xu		regulator-boot-on;
96cc7364fbSJianqun Xu	};
97cc7364fbSJianqun Xu};
98cc7364fbSJianqun Xu
9913b2b3e2SBrian Norris&emmc_phy {
10013b2b3e2SBrian Norris	status = "okay";
10113b2b3e2SBrian Norris};
10213b2b3e2SBrian Norris
103cc7364fbSJianqun Xu&pwm0 {
104cc7364fbSJianqun Xu	status = "okay";
105cc7364fbSJianqun Xu};
106cc7364fbSJianqun Xu
107cc7364fbSJianqun Xu&pwm2 {
108cc7364fbSJianqun Xu	status = "okay";
109cc7364fbSJianqun Xu};
110cc7364fbSJianqun Xu
111cc7364fbSJianqun Xu&pwm3 {
112cc7364fbSJianqun Xu	status = "okay";
113cc7364fbSJianqun Xu};
114cc7364fbSJianqun Xu
11513b2b3e2SBrian Norris&sdhci {
11613b2b3e2SBrian Norris	bus-width = <8>;
11713b2b3e2SBrian Norris	mmc-hs400-1_8v;
11813b2b3e2SBrian Norris	mmc-hs400-enhanced-strobe;
11913b2b3e2SBrian Norris	non-removable;
12013b2b3e2SBrian Norris	status = "okay";
12113b2b3e2SBrian Norris};
12213b2b3e2SBrian Norris
1231d3bc1d6SFrank Wang&u2phy0 {
1241d3bc1d6SFrank Wang	status = "okay";
1251d3bc1d6SFrank Wang};
1261d3bc1d6SFrank Wang
1271d3bc1d6SFrank Wang&u2phy0_host {
1281d3bc1d6SFrank Wang	phy-supply = <&vcc5v0_host>;
1291d3bc1d6SFrank Wang	status = "okay";
1301d3bc1d6SFrank Wang};
1311d3bc1d6SFrank Wang
1321d3bc1d6SFrank Wang&u2phy1 {
1331d3bc1d6SFrank Wang	status = "okay";
1341d3bc1d6SFrank Wang};
1351d3bc1d6SFrank Wang
1361d3bc1d6SFrank Wang&u2phy1_host {
1371d3bc1d6SFrank Wang	phy-supply = <&vcc5v0_host>;
1381d3bc1d6SFrank Wang	status = "okay";
1391d3bc1d6SFrank Wang};
1401d3bc1d6SFrank Wang
141cc7364fbSJianqun Xu&uart2 {
142cc7364fbSJianqun Xu	status = "okay";
143cc7364fbSJianqun Xu};
144cc7364fbSJianqun Xu
145cc7364fbSJianqun Xu&usb_host0_ehci {
146cc7364fbSJianqun Xu	status = "okay";
147cc7364fbSJianqun Xu};
148cc7364fbSJianqun Xu
149cc7364fbSJianqun Xu&usb_host0_ohci {
150cc7364fbSJianqun Xu	status = "okay";
151cc7364fbSJianqun Xu};
152cc7364fbSJianqun Xu
153cc7364fbSJianqun Xu&usb_host1_ehci {
154cc7364fbSJianqun Xu	status = "okay";
155cc7364fbSJianqun Xu};
156cc7364fbSJianqun Xu
157cc7364fbSJianqun Xu&usb_host1_ohci {
158cc7364fbSJianqun Xu	status = "okay";
159cc7364fbSJianqun Xu};
160cc7364fbSJianqun Xu
161cc7364fbSJianqun Xu&pinctrl {
162cc7364fbSJianqun Xu	pmic {
163cc7364fbSJianqun Xu		pmic_int_l: pmic-int-l {
164cc7364fbSJianqun Xu			rockchip,pins =
165cc7364fbSJianqun Xu				<1 21 RK_FUNC_GPIO &pcfg_pull_up>;
166cc7364fbSJianqun Xu		};
167cc7364fbSJianqun Xu
168cc7364fbSJianqun Xu		pmic_dvs2: pmic-dvs2 {
169cc7364fbSJianqun Xu			rockchip,pins =
170cc7364fbSJianqun Xu				<1 18 RK_FUNC_GPIO &pcfg_pull_down>;
171cc7364fbSJianqun Xu		};
172cc7364fbSJianqun Xu	};
1731d3bc1d6SFrank Wang
1741d3bc1d6SFrank Wang	usb2 {
1751d3bc1d6SFrank Wang		vcc5v0_host_en: vcc5v0-host-en {
1761d3bc1d6SFrank Wang			rockchip,pins =
1771d3bc1d6SFrank Wang				<4 25 RK_FUNC_GPIO &pcfg_pull_none>;
1781d3bc1d6SFrank Wang		};
1791d3bc1d6SFrank Wang	};
180cc7364fbSJianqun Xu};
181