treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / boot / dts / rk3288-veyron-jaq.dts
bloba4966e505a2fb98be9d58ae15c017851f3bc7288
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Google Veyron Jaq Rev 1+ board device tree source
4  *
5  * Copyright 2015 Google, Inc
6  */
8 /dts-v1/;
10 #include "rk3288-veyron-chromebook.dtsi"
11 #include "cros-ec-sbs.dtsi"
13 / {
14         model = "Google Jaq";
15         compatible = "google,veyron-jaq-rev5", "google,veyron-jaq-rev4",
16                      "google,veyron-jaq-rev3", "google,veyron-jaq-rev2",
17                      "google,veyron-jaq-rev1", "google,veyron-jaq",
18                      "google,veyron", "rockchip,rk3288";
21 &backlight {
22         /* Jaq panel PWM must be >= 3%, so start non-zero brightness at 8 */
23         brightness-levels = <0 8 255>;
24         num-interpolated-steps = <247>;
27 &rk808 {
28         pinctrl-names = "default";
29         pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
30         dvs-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>,
31                     <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
33         regulators {
34                 mic_vcc: LDO_REG2 {
35                         regulator-name = "mic_vcc";
36                         regulator-always-on;
37                         regulator-boot-on;
38                         regulator-min-microvolt = <1800000>;
39                         regulator-max-microvolt = <1800000>;
40                         regulator-state-mem {
41                                 regulator-off-in-suspend;
42                         };
43                 };
44         };
47 &sdmmc {
48         disable-wp;
49         pinctrl-names = "default";
50         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
51                         &sdmmc_bus4>;
54 &vcc_5v {
55         enable-active-high;
56         gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;
57         pinctrl-names = "default";
58         pinctrl-0 = <&drv_5v>;
61 &vcc50_hdmi {
62         enable-active-high;
63         gpio = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>;
64         pinctrl-names = "default";
65         pinctrl-0 = <&vcc50_hdmi_en>;
68 &gpio0 {
69         gpio-line-names = "PMIC_SLEEP_AP",
70                           "DDRIO_PWROFF",
71                           "DDRIO_RETEN",
72                           "TS3A227E_INT_L",
73                           "PMIC_INT_L",
74                           "PWR_KEY_L",
75                           "AP_LID_INT_L",
76                           "EC_IN_RW",
78                           "AC_PRESENT_AP",
79                           /*
80                            * RECOVERY_SW_L is Chrome OS ABI.  Schematics call
81                            * it REC_MODE_L.
82                            */
83                           "RECOVERY_SW_L",
84                           "OTP_OUT",
85                           "HOST1_PWR_EN",
86                           "USBOTG_PWREN_H",
87                           "AP_WARM_RESET_H",
88                           "nFALUT2",
89                           "I2C0_SDA_PMIC",
91                           "I2C0_SCL_PMIC",
92                           "SUSPEND_L",
93                           "USB_INT";
96 &gpio2 {
97         gpio-line-names = "CONFIG0",
98                           "CONFIG1",
99                           "CONFIG2",
100                           "",
101                           "",
102                           "",
103                           "",
104                           "CONFIG3",
106                           "",
107                           "EMMC_RST_L",
108                           "",
109                           "",
110                           "BL_PWR_EN",
111                           "AVDD_1V8_DISP_EN";
114 &gpio3 {
115         gpio-line-names = "FLASH0_D0",
116                           "FLASH0_D1",
117                           "FLASH0_D2",
118                           "FLASH0_D3",
119                           "FLASH0_D4",
120                           "FLASH0_D5",
121                           "FLASH0_D6",
122                           "FLASH0_D7",
124                           "",
125                           "",
126                           "",
127                           "",
128                           "",
129                           "",
130                           "",
131                           "",
133                           "FLASH0_CS2/EMMC_CMD",
134                           "",
135                           "FLASH0_DQS/EMMC_CLKO";
138 &gpio4 {
139         gpio-line-names = "",
140                           "",
141                           "",
142                           "",
143                           "",
144                           "",
145                           "",
146                           "",
148                           "",
149                           "",
150                           "",
151                           "",
152                           "",
153                           "",
154                           "",
155                           "",
157                           "UART0_RXD",
158                           "UART0_TXD",
159                           "UART0_CTS",
160                           "UART0_RTS",
161                           "SDIO0_D0",
162                           "SDIO0_D1",
163                           "SDIO0_D2",
164                           "SDIO0_D3",
166                           "SDIO0_CMD",
167                           "SDIO0_CLK",
168                           "BT_DEV_WAKE",        /* Maybe missing from mighty? */
169                           "",
170                           "WIFI_ENABLE_H",
171                           "BT_ENABLE_L",
172                           "WIFI_HOST_WAKE",
173                           "BT_HOST_WAKE";
176 &gpio5 {
177         gpio-line-names = "",
178                           "",
179                           "",
180                           "",
181                           "",
182                           "",
183                           "",
184                           "",
186                           "",
187                           "",
188                           "",
189                           "",
190                           "SPI0_CLK",
191                           "SPI0_CS0",
192                           "SPI0_TXD",
193                           "SPI0_RXD",
195                           "",
196                           "",
197                           "",
198                           "VCC50_HDMI_EN";
201 &gpio6 {
202         gpio-line-names = "I2S0_SCLK",
203                           "I2S0_LRCK_RX",
204                           "I2S0_LRCK_TX",
205                           "I2S0_SDI",
206                           "I2S0_SDO0",
207                           "HP_DET_H",
208                           "ALS_INT",
209                           "INT_CODEC",
211                           "I2S0_CLK",
212                           "I2C2_SDA",
213                           "I2C2_SCL",
214                           "MICDET",
215                           "",
216                           "",
217                           "",
218                           "",
220                           "SDMMC_D0",
221                           "SDMMC_D1",
222                           "SDMMC_D2",
223                           "SDMMC_D3",
224                           "SDMMC_CLK",
225                           "SDMMC_CMD";
228 &gpio7 {
229         gpio-line-names = "LCDC_BL",
230                           "PWM_LOG",
231                           "BL_EN",
232                           "TRACKPAD_INT",
233                           "TPM_INT_H",
234                           "SDMMC_DET_L",
235                           /*
236                            * AP_FLASH_WP_L is Chrome OS ABI.  Schematics call
237                            * it FW_WP_AP.
238                            */
239                           "AP_FLASH_WP_L",
240                           "EC_INT",
242                           "CPU_NMI",
243                           "DVSOK",
244                           "SDMMC_WP",           /* mighty only */
245                           "EDP_HPD",
246                           "DVS1",
247                           "nFALUT1",            /* nFAULT1 on jaq */
248                           "LCD_EN",
249                           "DVS2",
251                           "VCC5V_GOOD_H",
252                           "I2C4_SDA_TP",
253                           "I2C4_SCL_TP",
254                           "I2C5_SDA_HDMI",
255                           "I2C5_SCL_HDMI",
256                           "5V_DRV",
257                           "UART2_RXD",
258                           "UART2_TXD";
261 &gpio8 {
262         gpio-line-names = "RAM_ID0",
263                           "RAM_ID1",
264                           "RAM_ID2",
265                           "RAM_ID3",
266                           "I2C1_SDA_TPM",
267                           "I2C1_SCL_TPM",
268                           "SPI2_CLK",
269                           "SPI2_CS0",
271                           "SPI2_RXD",
272                           "SPI2_TXD";
275 &pinctrl {
276         buck-5v {
277                 drv_5v: drv-5v {
278                         rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
279                 };
280         };
282         hdmi {
283                 vcc50_hdmi_en: vcc50-hdmi-en {
284                         rockchip,pins = <5 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
285                 };
286         };
288         pmic {
289                 dvs_1: dvs-1 {
290                         rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
291                 };
293                 dvs_2: dvs-2 {
294                         rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
295                 };
296         };