xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3288-veyron-brain.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Google Veyron Brain Rev 0 board device tree source
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright 2014 Google, Inc
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring#include "rk3288-veyron.dtsi"
10*724ba675SRob Herring#include "rk3288-veyron-broadcom-bluetooth.dtsi"
11*724ba675SRob Herring
12*724ba675SRob Herring/ {
13*724ba675SRob Herring	model = "Google Brain";
14*724ba675SRob Herring	compatible = "google,veyron-brain-rev0", "google,veyron-brain",
15*724ba675SRob Herring		     "google,veyron", "rockchip,rk3288";
16*724ba675SRob Herring
17*724ba675SRob Herring	vcc33_sys: vcc33-sys {
18*724ba675SRob Herring		vin-supply = <&vcc_5v>;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	vcc33_io: vcc33_io {
22*724ba675SRob Herring		compatible = "regulator-fixed";
23*724ba675SRob Herring		regulator-name = "vcc33_io";
24*724ba675SRob Herring		regulator-always-on;
25*724ba675SRob Herring		regulator-boot-on;
26*724ba675SRob Herring		vin-supply = <&vcc33_sys>;
27*724ba675SRob Herring		/* This is gated by vcc_18 too */
28*724ba675SRob Herring	};
29*724ba675SRob Herring
30*724ba675SRob Herring	/* This turns on vbus for host2 and otg (dwc2) */
31*724ba675SRob Herring	vcc5_host2: vcc5-host2-regulator {
32*724ba675SRob Herring		compatible = "regulator-fixed";
33*724ba675SRob Herring		enable-active-high;
34*724ba675SRob Herring		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
35*724ba675SRob Herring		pinctrl-names = "default";
36*724ba675SRob Herring		pinctrl-0 = <&usb2_pwr_en>;
37*724ba675SRob Herring		regulator-name = "vcc5_host2";
38*724ba675SRob Herring		regulator-always-on;
39*724ba675SRob Herring		regulator-boot-on;
40*724ba675SRob Herring	};
41*724ba675SRob Herring};
42*724ba675SRob Herring
43*724ba675SRob Herring&pinctrl {
44*724ba675SRob Herring	pinctrl-names = "default";
45*724ba675SRob Herring	pinctrl-0 = <
46*724ba675SRob Herring		/* Common for sleep and wake, but no owners */
47*724ba675SRob Herring		&ddr0_retention
48*724ba675SRob Herring		&ddrio_pwroff
49*724ba675SRob Herring		&global_pwroff
50*724ba675SRob Herring	>;
51*724ba675SRob Herring
52*724ba675SRob Herring	hdmi {
53*724ba675SRob Herring		vcc50_hdmi_en: vcc50-hdmi-en {
54*724ba675SRob Herring			rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
55*724ba675SRob Herring		};
56*724ba675SRob Herring	};
57*724ba675SRob Herring
58*724ba675SRob Herring	pmic {
59*724ba675SRob Herring		dvs_1: dvs-1 {
60*724ba675SRob Herring			rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
61*724ba675SRob Herring		};
62*724ba675SRob Herring
63*724ba675SRob Herring		dvs_2: dvs-2 {
64*724ba675SRob Herring			rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
65*724ba675SRob Herring		};
66*724ba675SRob Herring	};
67*724ba675SRob Herring
68*724ba675SRob Herring	usb-host {
69*724ba675SRob Herring		usb2_pwr_en: usb2-pwr-en {
70*724ba675SRob Herring			rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
71*724ba675SRob Herring		};
72*724ba675SRob Herring	};
73*724ba675SRob Herring};
74*724ba675SRob Herring
75*724ba675SRob Herring&rk808 {
76*724ba675SRob Herring	pinctrl-names = "default";
77*724ba675SRob Herring	pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
78*724ba675SRob Herring	dvs-gpios = <&gpio7 RK_PB3 GPIO_ACTIVE_HIGH>,
79*724ba675SRob Herring		    <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
80*724ba675SRob Herring
81*724ba675SRob Herring	/delete-property/ vcc6-supply;
82*724ba675SRob Herring
83*724ba675SRob Herring	regulators {
84*724ba675SRob Herring		/* vcc33_io is sourced directly from vcc33_sys */
85*724ba675SRob Herring		/delete-node/ LDO_REG1;
86*724ba675SRob Herring
87*724ba675SRob Herring		/* This is not a pwren anymore, but the real power supply */
88*724ba675SRob Herring		vdd10_lcd: LDO_REG7 {
89*724ba675SRob Herring			regulator-always-on;
90*724ba675SRob Herring			regulator-boot-on;
91*724ba675SRob Herring			regulator-min-microvolt = <1000000>;
92*724ba675SRob Herring			regulator-max-microvolt = <1000000>;
93*724ba675SRob Herring			regulator-name = "vdd10_lcd";
94*724ba675SRob Herring			regulator-suspend-mem-disabled;
95*724ba675SRob Herring		};
96*724ba675SRob Herring
97*724ba675SRob Herring		vcc18_hdmi: SWITCH_REG2 {
98*724ba675SRob Herring			regulator-always-on;
99*724ba675SRob Herring			regulator-boot-on;
100*724ba675SRob Herring			regulator-name = "vcc18_hdmi";
101*724ba675SRob Herring			regulator-suspend-mem-disabled;
102*724ba675SRob Herring		};
103*724ba675SRob Herring	};
104*724ba675SRob Herring};
105*724ba675SRob Herring
106*724ba675SRob Herring&vcc50_hdmi {
107*724ba675SRob Herring	enable-active-high;
108*724ba675SRob Herring	gpio = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
109*724ba675SRob Herring	pinctrl-names = "default";
110*724ba675SRob Herring	pinctrl-0 = <&vcc50_hdmi_en>;
111*724ba675SRob Herring};
112