]> git.sur5r.net Git - u-boot/blob - arch/arm/dts/rk3288-jerry.dts
ARM: at91: asm/at91_pmc.h: fix trival register offset
[u-boot] / arch / arm / dts / rk3288-jerry.dts
1 /*
2  * Google Veyron Jerry Rev 3+ board device tree source
3  *
4  * Copyright 2014 Google, Inc
5  *
6  * SPDX-License-Identifier:     GPL-2.0
7  */
8
9 /dts-v1/;
10 #include "rk3288-veyron-chromebook.dtsi"
11 #include "cros-ec-sbs.dtsi"
12
13 / {
14         model = "Google Jerry";
15         compatible = "google,veyron-jerry-rev7", "google,veyron-jerry-rev6",
16                      "google,veyron-jerry-rev5", "google,veyron-jerry-rev4",
17                      "google,veyron-jerry-rev3", "google,veyron-jerry",
18                      "google,veyron", "rockchip,rk3288";
19
20         chosen {
21                 stdout-path = &uart2;
22         };
23
24         panel_regulator: panel-regualtor {
25                 compatible = "regulator-fixed";
26                 enable-active-high;
27                 gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>;
28                 pinctrl-names = "default";
29                 pinctrl-0 = <&lcd_enable_h>;
30                 regulator-name = "panel_regulator";
31                 vin-supply = <&vcc33_sys>;
32         };
33
34         vcc18_lcd: vcc18-lcd {
35                 compatible = "regulator-fixed";
36                 enable-active-high;
37                 gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
38                 pinctrl-names = "default";
39                 pinctrl-0 = <&avdd_1v8_disp_en>;
40                 regulator-name = "vcc18_lcd";
41                 regulator-always-on;
42                 regulator-boot-on;
43                 vin-supply = <&vcc18_wl>;
44         };
45
46         backlight_regulator: backlight-regulator {
47                 compatible = "regulator-fixed";
48                 enable-active-high;
49                 gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
50                 pinctrl-names = "default";
51                 pinctrl-0 = <&bl_pwr_en>;
52                 regulator-name = "backlight_regulator";
53                 vin-supply = <&vcc33_sys>;
54                 startup-delay-us = <15000>;
55         };
56 };
57
58 &gpio_keys {
59         power {
60                 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
61         };
62 };
63
64 &backlight {
65         power-supply = <&backlight_regulator>;
66 };
67
68 &panel {
69         power-supply= <&panel_regulator>;
70 };
71
72 &rk808 {
73         pinctrl-names = "default";
74         pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
75         dvs-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>,
76                     <&gpio7 15 GPIO_ACTIVE_HIGH>;
77
78         regulators {
79                 mic_vcc: LDO_REG2 {
80                         regulator-always-on;
81                         regulator-boot-on;
82                         regulator-min-microvolt = <1800000>;
83                         regulator-max-microvolt = <1800000>;
84                         regulator-name = "mic_vcc";
85                         regulator-suspend-mem-disabled;
86                 };
87         };
88 };
89
90 &sdmmc {
91         pinctrl-names = "default";
92         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
93                         &sdmmc_bus4>;
94         disable-wp;
95 };
96
97 &vcc_5v {
98         enable-active-high;
99         gpio = <&gpio7 21 GPIO_ACTIVE_HIGH>;
100         pinctrl-names = "default";
101         pinctrl-0 = <&drv_5v>;
102 };
103
104 &vcc50_hdmi {
105         enable-active-high;
106         gpio = <&gpio5 19 GPIO_ACTIVE_HIGH>;
107         pinctrl-names = "default";
108         pinctrl-0 = <&vcc50_hdmi_en>;
109 };
110
111 &vopb {
112         /* Disable this so that we use vopl */
113         status = "disabled";
114 };
115
116 &edp {
117         pinctrl-names = "default";
118         pinctrl-0 = <&edp_hpd>;
119 };
120
121 &pinctrl {
122         backlight {
123                 bl_pwr_en: bl_pwr_en {
124                         rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
125                 };
126         };
127
128         buck-5v {
129                 drv_5v: drv-5v {
130                         rockchip,pins = <7 21 RK_FUNC_GPIO &pcfg_pull_none>;
131                 };
132         };
133
134         edp {
135                 edp_hpd: edp_hpd {
136                         rockchip,pins = <7 11 RK_FUNC_2 &pcfg_pull_down>;
137                 };
138         };
139
140         emmc {
141                 /* Make sure eMMC is not in reset */
142                 emmc_deassert_reset: emmc-deassert-reset {
143                         rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
144                 };
145         };
146
147         hdmi {
148                 vcc50_hdmi_en: vcc50-hdmi-en {
149                         rockchip,pins = <5 19 RK_FUNC_GPIO &pcfg_pull_none>;
150                 };
151         };
152
153         lcd {
154                 lcd_enable_h: lcd-en {
155                         rockchip,pins = <7 14 RK_FUNC_GPIO &pcfg_pull_none>;
156                 };
157
158                 avdd_1v8_disp_en: avdd-1v8-disp-en {
159                         rockchip,pins = <2 13 RK_FUNC_GPIO &pcfg_pull_none>;
160                 };
161         };
162
163         pmic {
164                 dvs_1: dvs-1 {
165                         rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_down>;
166                 };
167
168                 dvs_2: dvs-2 {
169                         rockchip,pins = <7 15 RK_FUNC_GPIO &pcfg_pull_down>;
170                 };
171         };
172 };
173
174 &i2c4 {
175         status = "okay";
176
177         /*
178          * Trackpad pin control is shared between Elan and Synaptics devices
179          * so we have to pull it up to the bus level.
180          */
181         pinctrl-names = "default";
182         pinctrl-0 = <&i2c4_xfer &trackpad_int>;
183
184         trackpad@15 {
185                 compatible = "elan,i2c_touchpad";
186                 interrupt-parent = <&gpio7>;
187                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
188                 /*
189                  * Remove the inherited pinctrl settings to avoid clashing
190                  * with bus-wide ones.
191                  */
192                 /delete-property/pinctrl-names;
193                 /delete-property/pinctrl-0;
194                 reg = <0x15>;
195                 vcc-supply = <&vcc33_io>;
196                 wakeup-source;
197         };
198
199         trackpad@2c {
200                 compatible = "hid-over-i2c";
201                 interrupt-parent = <&gpio7>;
202                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
203                 reg = <0x2c>;
204                 hid-descr-addr = <0x0020>;
205                 vcc-supply = <&vcc33_io>;
206                 wakeup-source;
207         };
208 };