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
72cc7364fbSJianqun Xu	vcc_phy: vcc-phy-regulator {
73cc7364fbSJianqun Xu		compatible = "regulator-fixed";
74cc7364fbSJianqun Xu		regulator-name = "vcc_phy";
75cc7364fbSJianqun Xu		regulator-always-on;
76cc7364fbSJianqun Xu		regulator-boot-on;
77cc7364fbSJianqun Xu	};
78cc7364fbSJianqun Xu};
79cc7364fbSJianqun Xu
8013b2b3e2SBrian Norris&emmc_phy {
8113b2b3e2SBrian Norris	status = "okay";
8213b2b3e2SBrian Norris};
8313b2b3e2SBrian Norris
84cc7364fbSJianqun Xu&pwm0 {
85cc7364fbSJianqun Xu	status = "okay";
86cc7364fbSJianqun Xu};
87cc7364fbSJianqun Xu
88cc7364fbSJianqun Xu&pwm2 {
89cc7364fbSJianqun Xu	status = "okay";
90cc7364fbSJianqun Xu};
91cc7364fbSJianqun Xu
92cc7364fbSJianqun Xu&pwm3 {
93cc7364fbSJianqun Xu	status = "okay";
94cc7364fbSJianqun Xu};
95cc7364fbSJianqun Xu
9613b2b3e2SBrian Norris&sdhci {
9713b2b3e2SBrian Norris	bus-width = <8>;
9813b2b3e2SBrian Norris	mmc-hs400-1_8v;
9913b2b3e2SBrian Norris	mmc-hs400-enhanced-strobe;
10013b2b3e2SBrian Norris	non-removable;
10113b2b3e2SBrian Norris	status = "okay";
10213b2b3e2SBrian Norris};
10313b2b3e2SBrian Norris
104cc7364fbSJianqun Xu&uart2 {
105cc7364fbSJianqun Xu	status = "okay";
106cc7364fbSJianqun Xu};
107cc7364fbSJianqun Xu
108cc7364fbSJianqun Xu&usb_host0_ehci {
109cc7364fbSJianqun Xu	status = "okay";
110cc7364fbSJianqun Xu};
111cc7364fbSJianqun Xu
112cc7364fbSJianqun Xu&usb_host0_ohci {
113cc7364fbSJianqun Xu	status = "okay";
114cc7364fbSJianqun Xu};
115cc7364fbSJianqun Xu
116cc7364fbSJianqun Xu&usb_host1_ehci {
117cc7364fbSJianqun Xu	status = "okay";
118cc7364fbSJianqun Xu};
119cc7364fbSJianqun Xu
120cc7364fbSJianqun Xu&usb_host1_ohci {
121cc7364fbSJianqun Xu	status = "okay";
122cc7364fbSJianqun Xu};
123cc7364fbSJianqun Xu
124cc7364fbSJianqun Xu&pinctrl {
125cc7364fbSJianqun Xu	pmic {
126cc7364fbSJianqun Xu		pmic_int_l: pmic-int-l {
127cc7364fbSJianqun Xu			rockchip,pins =
128cc7364fbSJianqun Xu				<1 21 RK_FUNC_GPIO &pcfg_pull_up>;
129cc7364fbSJianqun Xu		};
130cc7364fbSJianqun Xu
131cc7364fbSJianqun Xu		pmic_dvs2: pmic-dvs2 {
132cc7364fbSJianqun Xu			rockchip,pins =
133cc7364fbSJianqun Xu				<1 18 RK_FUNC_GPIO &pcfg_pull_down>;
134cc7364fbSJianqun Xu		};
135cc7364fbSJianqun Xu	};
136cc7364fbSJianqun Xu};
137