xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3288-veyron-brain.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Google Veyron Brain Rev 0 board device tree source
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright 2014 Google, Inc
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring/dts-v1/;
9724ba675SRob Herring#include "rk3288-veyron.dtsi"
10724ba675SRob Herring#include "rk3288-veyron-broadcom-bluetooth.dtsi"
11724ba675SRob Herring
12724ba675SRob Herring/ {
13724ba675SRob Herring	model = "Google Brain";
14724ba675SRob Herring	compatible = "google,veyron-brain-rev0", "google,veyron-brain",
15724ba675SRob Herring		     "google,veyron", "rockchip,rk3288";
16724ba675SRob Herring
17*2c3944d9SJohan Jonker	vcc33_sys: regulator-vcc33-sys {
18724ba675SRob Herring		vin-supply = <&vcc_5v>;
19724ba675SRob Herring	};
20724ba675SRob Herring
21*2c3944d9SJohan Jonker	vcc33_io: regulator-vcc33-io {
22724ba675SRob Herring		compatible = "regulator-fixed";
23724ba675SRob Herring		regulator-name = "vcc33_io";
24724ba675SRob Herring		regulator-always-on;
25724ba675SRob Herring		regulator-boot-on;
26724ba675SRob Herring		vin-supply = <&vcc33_sys>;
27724ba675SRob Herring		/* This is gated by vcc_18 too */
28724ba675SRob Herring	};
29724ba675SRob Herring
30724ba675SRob Herring	/* This turns on vbus for host2 and otg (dwc2) */
31*2c3944d9SJohan Jonker	vcc5_host2: regulator-vcc5-host2 {
32724ba675SRob Herring		compatible = "regulator-fixed";
33724ba675SRob Herring		enable-active-high;
34724ba675SRob Herring		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
35724ba675SRob Herring		pinctrl-names = "default";
36724ba675SRob Herring		pinctrl-0 = <&usb2_pwr_en>;
37724ba675SRob Herring		regulator-name = "vcc5_host2";
38724ba675SRob Herring		regulator-always-on;
39724ba675SRob Herring		regulator-boot-on;
40724ba675SRob Herring	};
41724ba675SRob Herring};
42724ba675SRob Herring
43724ba675SRob Herring&pinctrl {
44724ba675SRob Herring	pinctrl-names = "default";
45724ba675SRob Herring	pinctrl-0 = <
46724ba675SRob Herring		/* Common for sleep and wake, but no owners */
47724ba675SRob Herring		&ddr0_retention
48724ba675SRob Herring		&ddrio_pwroff
49724ba675SRob Herring		&global_pwroff
50724ba675SRob Herring	>;
51724ba675SRob Herring
52724ba675SRob Herring	hdmi {
53724ba675SRob Herring		vcc50_hdmi_en: vcc50-hdmi-en {
54724ba675SRob Herring			rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
55724ba675SRob Herring		};
56724ba675SRob Herring	};
57724ba675SRob Herring
58724ba675SRob Herring	pmic {
59724ba675SRob Herring		dvs_1: dvs-1 {
60724ba675SRob Herring			rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
61724ba675SRob Herring		};
62724ba675SRob Herring
63724ba675SRob Herring		dvs_2: dvs-2 {
64724ba675SRob Herring			rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
65724ba675SRob Herring		};
66724ba675SRob Herring	};
67724ba675SRob Herring
68724ba675SRob Herring	usb-host {
69724ba675SRob Herring		usb2_pwr_en: usb2-pwr-en {
70724ba675SRob Herring			rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
71724ba675SRob Herring		};
72724ba675SRob Herring	};
73724ba675SRob Herring};
74724ba675SRob Herring
75724ba675SRob Herring&rk808 {
76724ba675SRob Herring	pinctrl-names = "default";
77724ba675SRob Herring	pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
78724ba675SRob Herring	dvs-gpios = <&gpio7 RK_PB3 GPIO_ACTIVE_HIGH>,
79724ba675SRob Herring		    <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
80724ba675SRob Herring
81724ba675SRob Herring	/delete-property/ vcc6-supply;
82724ba675SRob Herring
83724ba675SRob Herring	regulators {
84724ba675SRob Herring		/* vcc33_io is sourced directly from vcc33_sys */
85724ba675SRob Herring		/delete-node/ LDO_REG1;
86724ba675SRob Herring
87724ba675SRob Herring		/* This is not a pwren anymore, but the real power supply */
88724ba675SRob Herring		vdd10_lcd: LDO_REG7 {
89724ba675SRob Herring			regulator-always-on;
90724ba675SRob Herring			regulator-boot-on;
91724ba675SRob Herring			regulator-min-microvolt = <1000000>;
92724ba675SRob Herring			regulator-max-microvolt = <1000000>;
93724ba675SRob Herring			regulator-name = "vdd10_lcd";
94724ba675SRob Herring			regulator-suspend-mem-disabled;
95724ba675SRob Herring		};
96724ba675SRob Herring
97724ba675SRob Herring		vcc18_hdmi: SWITCH_REG2 {
98724ba675SRob Herring			regulator-always-on;
99724ba675SRob Herring			regulator-boot-on;
100724ba675SRob Herring			regulator-name = "vcc18_hdmi";
101724ba675SRob Herring			regulator-suspend-mem-disabled;
102724ba675SRob Herring		};
103724ba675SRob Herring	};
104724ba675SRob Herring};
105724ba675SRob Herring
106724ba675SRob Herring&vcc50_hdmi {
107724ba675SRob Herring	enable-active-high;
108724ba675SRob Herring	gpio = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
109724ba675SRob Herring	pinctrl-names = "default";
110724ba675SRob Herring	pinctrl-0 = <&vcc50_hdmi_en>;
111724ba675SRob Herring};
112