1b97ee269SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2b97ee269SEmmanuel Vadot/* 3b97ee269SEmmanuel Vadot * Google Mrbland board device tree source 4b97ee269SEmmanuel Vadot * 5b97ee269SEmmanuel Vadot * Copyright 2021 Google LLC. 6b97ee269SEmmanuel Vadot */ 7b97ee269SEmmanuel Vadot 8b97ee269SEmmanuel Vadot/dts-v1/; 9b97ee269SEmmanuel Vadot 10b97ee269SEmmanuel Vadot#include "sc7180-trogdor.dtsi" 11b97ee269SEmmanuel Vadot 12b97ee269SEmmanuel Vadot/* This board only has 1 USB Type-C port. */ 13b97ee269SEmmanuel Vadot/delete-node/ &usb_c1; 14b97ee269SEmmanuel Vadot 15b97ee269SEmmanuel Vadot/ { 16*8bab661aSEmmanuel Vadot avdd_lcd: avdd-lcd-regulator { 17b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 18b97ee269SEmmanuel Vadot regulator-name = "avdd_lcd"; 19b97ee269SEmmanuel Vadot 20b97ee269SEmmanuel Vadot gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>; 21b97ee269SEmmanuel Vadot enable-active-high; 22b97ee269SEmmanuel Vadot pinctrl-names = "default"; 23b97ee269SEmmanuel Vadot pinctrl-0 = <&avdd_lcd_en>; 24b97ee269SEmmanuel Vadot 25b97ee269SEmmanuel Vadot vin-supply = <&pp5000_a>; 26b97ee269SEmmanuel Vadot }; 27b97ee269SEmmanuel Vadot 28*8bab661aSEmmanuel Vadot avee_lcd: avee-lcd-regulator { 29b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 30b97ee269SEmmanuel Vadot regulator-name = "avee_lcd"; 31b97ee269SEmmanuel Vadot 32b97ee269SEmmanuel Vadot gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>; 33b97ee269SEmmanuel Vadot enable-active-high; 34b97ee269SEmmanuel Vadot pinctrl-names = "default"; 35b97ee269SEmmanuel Vadot pinctrl-0 = <&avee_lcd_en>; 36b97ee269SEmmanuel Vadot 37b97ee269SEmmanuel Vadot vin-supply = <&pp5000_a>; 38b97ee269SEmmanuel Vadot }; 39b97ee269SEmmanuel Vadot 40*8bab661aSEmmanuel Vadot v1p8_mipi: v1p8-mipi-regulator { 41b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 42b97ee269SEmmanuel Vadot regulator-name = "v1p8_mipi"; 43b97ee269SEmmanuel Vadot 44b97ee269SEmmanuel Vadot gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; 45b97ee269SEmmanuel Vadot enable-active-high; 46b97ee269SEmmanuel Vadot pinctrl-names = "default"; 47b97ee269SEmmanuel Vadot pinctrl-0 = <&mipi_1800_en>; 48b97ee269SEmmanuel Vadot 49b97ee269SEmmanuel Vadot vin-supply = <&pp3300_a>; 50b97ee269SEmmanuel Vadot }; 51b97ee269SEmmanuel Vadot}; 52b97ee269SEmmanuel Vadot 53b97ee269SEmmanuel Vadot&backlight { 54b97ee269SEmmanuel Vadot pwms = <&cros_ec_pwm 0>; 55b97ee269SEmmanuel Vadot}; 56b97ee269SEmmanuel Vadot 57b97ee269SEmmanuel Vadot&camcc { 58b97ee269SEmmanuel Vadot status = "okay"; 59b97ee269SEmmanuel Vadot}; 60b97ee269SEmmanuel Vadot 61b97ee269SEmmanuel Vadot&cros_ec { 62b97ee269SEmmanuel Vadot keyboard-controller { 63b97ee269SEmmanuel Vadot compatible = "google,cros-ec-keyb-switches"; 64b97ee269SEmmanuel Vadot }; 65b97ee269SEmmanuel Vadot}; 66b97ee269SEmmanuel Vadot 67b97ee269SEmmanuel Vadot&dsi0 { 68b97ee269SEmmanuel Vadot 69b97ee269SEmmanuel Vadot panel: panel@0 { 70b97ee269SEmmanuel Vadot /* Compatible will be filled in per-board */ 71b97ee269SEmmanuel Vadot reg = <0>; 72b97ee269SEmmanuel Vadot enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; 73b97ee269SEmmanuel Vadot pinctrl-names = "default"; 74b97ee269SEmmanuel Vadot pinctrl-0 = <&vdd_reset_1800>; 75b97ee269SEmmanuel Vadot avdd-supply = <&avdd_lcd>; 76b97ee269SEmmanuel Vadot avee-supply = <&avee_lcd>; 77b97ee269SEmmanuel Vadot pp1800-supply = <&v1p8_mipi>; 78b97ee269SEmmanuel Vadot pp3300-supply = <&pp3300_dx_edp>; 79b97ee269SEmmanuel Vadot backlight = <&backlight>; 80b97ee269SEmmanuel Vadot rotation = <270>; 81b97ee269SEmmanuel Vadot 82b97ee269SEmmanuel Vadot ports { 83b97ee269SEmmanuel Vadot #address-cells = <1>; 84b97ee269SEmmanuel Vadot #size-cells = <0>; 85b97ee269SEmmanuel Vadot port@0 { 86b97ee269SEmmanuel Vadot reg = <0>; 87b97ee269SEmmanuel Vadot panel_in: endpoint { 88b97ee269SEmmanuel Vadot remote-endpoint = <&dsi0_out>; 89b97ee269SEmmanuel Vadot }; 90b97ee269SEmmanuel Vadot }; 91b97ee269SEmmanuel Vadot }; 92b97ee269SEmmanuel Vadot }; 93b97ee269SEmmanuel Vadot 94b97ee269SEmmanuel Vadot ports { 95b97ee269SEmmanuel Vadot port@1 { 96b97ee269SEmmanuel Vadot endpoint { 97b97ee269SEmmanuel Vadot remote-endpoint = <&panel_in>; 98b97ee269SEmmanuel Vadot data-lanes = <0 1 2 3>; 99b97ee269SEmmanuel Vadot }; 100b97ee269SEmmanuel Vadot }; 101b97ee269SEmmanuel Vadot }; 102b97ee269SEmmanuel Vadot}; 103b97ee269SEmmanuel Vadot 104b97ee269SEmmanuel Vadot&gpio_keys { 105b97ee269SEmmanuel Vadot status = "okay"; 106b97ee269SEmmanuel Vadot}; 107b97ee269SEmmanuel Vadot 108b97ee269SEmmanuel Vadot&i2c4 { 109b97ee269SEmmanuel Vadot status = "okay"; 110b97ee269SEmmanuel Vadot clock-frequency = <400000>; 111b97ee269SEmmanuel Vadot 112b97ee269SEmmanuel Vadot ap_ts: touchscreen@5d { 113b97ee269SEmmanuel Vadot compatible = "goodix,gt7375p"; 114b97ee269SEmmanuel Vadot reg = <0x5d>; 115b97ee269SEmmanuel Vadot pinctrl-names = "default"; 116b97ee269SEmmanuel Vadot pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 117b97ee269SEmmanuel Vadot 118b97ee269SEmmanuel Vadot interrupt-parent = <&tlmm>; 119b97ee269SEmmanuel Vadot interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 120b97ee269SEmmanuel Vadot 121b97ee269SEmmanuel Vadot reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 122b97ee269SEmmanuel Vadot 123b97ee269SEmmanuel Vadot vdd-supply = <&pp3300_ts>; 124b97ee269SEmmanuel Vadot }; 125b97ee269SEmmanuel Vadot}; 126b97ee269SEmmanuel Vadot 127b97ee269SEmmanuel Vadot&pp1800_uf_cam { 128b97ee269SEmmanuel Vadot status = "okay"; 129b97ee269SEmmanuel Vadot}; 130b97ee269SEmmanuel Vadot 131b97ee269SEmmanuel Vadot&pp1800_wf_cam { 132b97ee269SEmmanuel Vadot status = "okay"; 133b97ee269SEmmanuel Vadot}; 134b97ee269SEmmanuel Vadot 135b97ee269SEmmanuel Vadot&pp2800_uf_cam { 136b97ee269SEmmanuel Vadot status = "okay"; 137b97ee269SEmmanuel Vadot}; 138b97ee269SEmmanuel Vadot 139b97ee269SEmmanuel Vadot&pp2800_wf_cam { 140b97ee269SEmmanuel Vadot status = "okay"; 141b97ee269SEmmanuel Vadot}; 142b97ee269SEmmanuel Vadot 143b97ee269SEmmanuel Vadot&wifi { 144b97ee269SEmmanuel Vadot qcom,ath10k-calibration-variant = "GO_MRBLAND"; 145b97ee269SEmmanuel Vadot}; 146b97ee269SEmmanuel Vadot 147b97ee269SEmmanuel Vadot/* 148b97ee269SEmmanuel Vadot * No eDP on this board but it's logically the same signal so just give it 149b97ee269SEmmanuel Vadot * a new name and assign the proper GPIO. 150b97ee269SEmmanuel Vadot */ 151b97ee269SEmmanuel Vadotpp3300_disp_on: &pp3300_dx_edp { 152b97ee269SEmmanuel Vadot gpio = <&tlmm 85 GPIO_ACTIVE_HIGH>; 153b97ee269SEmmanuel Vadot}; 154b97ee269SEmmanuel Vadot 155b97ee269SEmmanuel Vadot/* PINCTRL - modifications to sc7180-trogdor.dtsi */ 156b97ee269SEmmanuel Vadot 157b97ee269SEmmanuel Vadot/* 158b97ee269SEmmanuel Vadot * No eDP on this board but it's logically the same signal so just give it 159b97ee269SEmmanuel Vadot * a new name and assign the proper GPIO. 160b97ee269SEmmanuel Vadot */ 161b97ee269SEmmanuel Vadot 162b97ee269SEmmanuel Vadottp_en: &en_pp3300_dx_edp { 163b97ee269SEmmanuel Vadot pins = "gpio85"; 164b97ee269SEmmanuel Vadot}; 165b97ee269SEmmanuel Vadot 166b97ee269SEmmanuel Vadot/* PINCTRL - board-specific pinctrl */ 167b97ee269SEmmanuel Vadot 168b97ee269SEmmanuel Vadot&tlmm { 169b97ee269SEmmanuel Vadot gpio-line-names = "HUB_RST_L", 170b97ee269SEmmanuel Vadot "AP_RAM_ID0", 171b97ee269SEmmanuel Vadot "AP_SKU_ID2", 172b97ee269SEmmanuel Vadot "AP_RAM_ID1", 173b97ee269SEmmanuel Vadot "", 174b97ee269SEmmanuel Vadot "AP_RAM_ID2", 175b97ee269SEmmanuel Vadot "UF_CAM_EN", 176b97ee269SEmmanuel Vadot "WF_CAM_EN", 177b97ee269SEmmanuel Vadot "TS_RESET_L", 178b97ee269SEmmanuel Vadot "TS_INT_L", 179b97ee269SEmmanuel Vadot "", 180b97ee269SEmmanuel Vadot "", 181b97ee269SEmmanuel Vadot "AP_EDP_BKLTEN", 182b97ee269SEmmanuel Vadot "UF_CAM_MCLK", 183b97ee269SEmmanuel Vadot "WF_CAM_CLK", 184b97ee269SEmmanuel Vadot "", 185b97ee269SEmmanuel Vadot "", 186b97ee269SEmmanuel Vadot "UF_CAM_SDA", 187b97ee269SEmmanuel Vadot "UF_CAM_SCL", 188b97ee269SEmmanuel Vadot "WF_CAM_SDA", 189b97ee269SEmmanuel Vadot "WF_CAM_SCL", 190b97ee269SEmmanuel Vadot "AVEE_LCD_EN", 191b97ee269SEmmanuel Vadot "", 192b97ee269SEmmanuel Vadot "AMP_EN", 193b97ee269SEmmanuel Vadot "", 194b97ee269SEmmanuel Vadot "", 195b97ee269SEmmanuel Vadot "", 196b97ee269SEmmanuel Vadot "", 197b97ee269SEmmanuel Vadot "HP_IRQ", 198b97ee269SEmmanuel Vadot "WF_CAM_RST_L", 199b97ee269SEmmanuel Vadot "UF_CAM_RST_L", 200b97ee269SEmmanuel Vadot "AP_BRD_ID2", 201b97ee269SEmmanuel Vadot "", 202b97ee269SEmmanuel Vadot "AP_BRD_ID0", 203b97ee269SEmmanuel Vadot "AP_H1_SPI_MISO", 204b97ee269SEmmanuel Vadot "AP_H1_SPI_MOSI", 205b97ee269SEmmanuel Vadot "AP_H1_SPI_CLK", 206b97ee269SEmmanuel Vadot "AP_H1_SPI_CS_L", 207b97ee269SEmmanuel Vadot "BT_UART_CTS", 208b97ee269SEmmanuel Vadot "BT_UART_RTS", 209b97ee269SEmmanuel Vadot "BT_UART_TXD", 210b97ee269SEmmanuel Vadot "BT_UART_RXD", 211b97ee269SEmmanuel Vadot "H1_AP_INT_ODL", 212b97ee269SEmmanuel Vadot "", 213b97ee269SEmmanuel Vadot "UART_AP_TX_DBG_RX", 214b97ee269SEmmanuel Vadot "UART_DBG_TX_AP_RX", 215b97ee269SEmmanuel Vadot "HP_I2C_SDA", 216b97ee269SEmmanuel Vadot "HP_I2C_SCL", 217b97ee269SEmmanuel Vadot "FORCED_USB_BOOT", 218b97ee269SEmmanuel Vadot "AMP_BCLK", 219b97ee269SEmmanuel Vadot "AMP_LRCLK", 220b97ee269SEmmanuel Vadot "AMP_DIN", 221b97ee269SEmmanuel Vadot "PEN_DET_ODL", 222b97ee269SEmmanuel Vadot "HP_BCLK", 223b97ee269SEmmanuel Vadot "HP_LRCLK", 224b97ee269SEmmanuel Vadot "HP_DOUT", 225b97ee269SEmmanuel Vadot "HP_DIN", 226b97ee269SEmmanuel Vadot "HP_MCLK", 227b97ee269SEmmanuel Vadot "AP_SKU_ID0", 228b97ee269SEmmanuel Vadot "AP_EC_SPI_MISO", 229b97ee269SEmmanuel Vadot "AP_EC_SPI_MOSI", 230b97ee269SEmmanuel Vadot "AP_EC_SPI_CLK", 231b97ee269SEmmanuel Vadot "AP_EC_SPI_CS_L", 232b97ee269SEmmanuel Vadot "AP_SPI_CLK", 233b97ee269SEmmanuel Vadot "AP_SPI_MOSI", 234b97ee269SEmmanuel Vadot "AP_SPI_MISO", 235b97ee269SEmmanuel Vadot /* 236b97ee269SEmmanuel Vadot * AP_FLASH_WP_L is crossystem ABI. Schematics 237b97ee269SEmmanuel Vadot * call it BIOS_FLASH_WP_L. 238b97ee269SEmmanuel Vadot */ 239b97ee269SEmmanuel Vadot "AP_FLASH_WP_L", 240b97ee269SEmmanuel Vadot "", 241b97ee269SEmmanuel Vadot "AP_SPI_CS0_L", 242b97ee269SEmmanuel Vadot "", 243b97ee269SEmmanuel Vadot "", 244b97ee269SEmmanuel Vadot "", 245b97ee269SEmmanuel Vadot "", 246b97ee269SEmmanuel Vadot "WLAN_SW_CTRL", 247b97ee269SEmmanuel Vadot "", 248b97ee269SEmmanuel Vadot "REPORT_E", 249b97ee269SEmmanuel Vadot "", 250b97ee269SEmmanuel Vadot "ID0", 251b97ee269SEmmanuel Vadot "", 252b97ee269SEmmanuel Vadot "ID1", 253b97ee269SEmmanuel Vadot "", 254b97ee269SEmmanuel Vadot "", 255b97ee269SEmmanuel Vadot "", 256b97ee269SEmmanuel Vadot "CODEC_PWR_EN", 257b97ee269SEmmanuel Vadot "HUB_EN", 258b97ee269SEmmanuel Vadot "TP_EN", 259b97ee269SEmmanuel Vadot "MIPI_1.8V_EN", 260b97ee269SEmmanuel Vadot "VDD_RESET_1.8V", 261b97ee269SEmmanuel Vadot "AVDD_LCD_EN", 262b97ee269SEmmanuel Vadot "", 263b97ee269SEmmanuel Vadot "AP_SKU_ID1", 264b97ee269SEmmanuel Vadot "AP_RST_REQ", 265b97ee269SEmmanuel Vadot "", 266b97ee269SEmmanuel Vadot "AP_BRD_ID1", 267b97ee269SEmmanuel Vadot "AP_EC_INT_L", 268b97ee269SEmmanuel Vadot "SDM_GRFC_3", 269b97ee269SEmmanuel Vadot "", 270b97ee269SEmmanuel Vadot "", 271b97ee269SEmmanuel Vadot "BOOT_CONFIG_4", 272b97ee269SEmmanuel Vadot "BOOT_CONFIG_2", 273b97ee269SEmmanuel Vadot "", 274b97ee269SEmmanuel Vadot "", 275b97ee269SEmmanuel Vadot "", 276b97ee269SEmmanuel Vadot "", 277b97ee269SEmmanuel Vadot "", 278b97ee269SEmmanuel Vadot "", 279b97ee269SEmmanuel Vadot "", 280b97ee269SEmmanuel Vadot "BOOT_CONFIG_3", 281b97ee269SEmmanuel Vadot "WCI2_LTE_COEX_TXD", 282b97ee269SEmmanuel Vadot "WCI2_LTE_COEX_RXD", 283b97ee269SEmmanuel Vadot "", 284b97ee269SEmmanuel Vadot "", 285b97ee269SEmmanuel Vadot "", 286b97ee269SEmmanuel Vadot "", 287b97ee269SEmmanuel Vadot "FORCED_USB_BOOT_POL", 288b97ee269SEmmanuel Vadot "AP_TS_PEN_I2C_SDA", 289b97ee269SEmmanuel Vadot "AP_TS_PEN_I2C_SCL", 290b97ee269SEmmanuel Vadot "DP_HOT_PLUG_DET", 291b97ee269SEmmanuel Vadot "EC_IN_RW_ODL"; 292b97ee269SEmmanuel Vadot 293*8bab661aSEmmanuel Vadot avdd_lcd_en: avdd-lcd-en-state { 294b97ee269SEmmanuel Vadot pins = "gpio88"; 295b97ee269SEmmanuel Vadot function = "gpio"; 296b97ee269SEmmanuel Vadot drive-strength = <2>; 297b97ee269SEmmanuel Vadot bias-disable; 298b97ee269SEmmanuel Vadot }; 299b97ee269SEmmanuel Vadot 300*8bab661aSEmmanuel Vadot avee_lcd_en: avee-lcd-en-state { 301b97ee269SEmmanuel Vadot pins = "gpio21"; 302b97ee269SEmmanuel Vadot function = "gpio"; 303b97ee269SEmmanuel Vadot drive-strength = <2>; 304b97ee269SEmmanuel Vadot bias-disable; 305b97ee269SEmmanuel Vadot }; 306b97ee269SEmmanuel Vadot 307*8bab661aSEmmanuel Vadot mipi_1800_en: mipi-1800-en-state { 308b97ee269SEmmanuel Vadot pins = "gpio86"; 309b97ee269SEmmanuel Vadot function = "gpio"; 310b97ee269SEmmanuel Vadot drive-strength = <2>; 311b97ee269SEmmanuel Vadot bias-disable; 312b97ee269SEmmanuel Vadot }; 313b97ee269SEmmanuel Vadot 314*8bab661aSEmmanuel Vadot vdd_reset_1800: vdd-reset-1800-state { 315b97ee269SEmmanuel Vadot pins = "gpio87"; 316b97ee269SEmmanuel Vadot function = "gpio"; 317b97ee269SEmmanuel Vadot drive-strength = <2>; 318b97ee269SEmmanuel Vadot bias-disable; 319b97ee269SEmmanuel Vadot }; 320b97ee269SEmmanuel Vadot}; 321