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