0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Google Mrbland board device tree source
0004 *
0005 * Copyright 2021 Google LLC.
0006 */
0007
0008 /dts-v1/;
0009
0010 #include "sc7180-trogdor.dtsi"
0011
0012 /* This board only has 1 USB Type-C port. */
0013 /delete-node/ &usb_c1;
0014
0015 / {
0016 avdd_lcd: avdd-lcd {
0017 compatible = "regulator-fixed";
0018 regulator-name = "avdd_lcd";
0019
0020 gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>;
0021 enable-active-high;
0022 pinctrl-names = "default";
0023 pinctrl-0 = <&avdd_lcd_en>;
0024
0025 vin-supply = <&pp5000_a>;
0026 };
0027
0028 avee_lcd: avee-lcd {
0029 compatible = "regulator-fixed";
0030 regulator-name = "avee_lcd";
0031
0032 gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>;
0033 enable-active-high;
0034 pinctrl-names = "default";
0035 pinctrl-0 = <&avee_lcd_en>;
0036
0037 vin-supply = <&pp5000_a>;
0038 };
0039
0040 v1p8_mipi: v1p8-mipi {
0041 compatible = "regulator-fixed";
0042 regulator-name = "v1p8_mipi";
0043
0044 gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>;
0045 enable-active-high;
0046 pinctrl-names = "default";
0047 pinctrl-0 = <&mipi_1800_en>;
0048
0049 vin-supply = <&pp3300_a>;
0050 };
0051 };
0052
0053 &backlight {
0054 pwms = <&cros_ec_pwm 0>;
0055 };
0056
0057 &camcc {
0058 status = "okay";
0059 };
0060
0061 &cros_ec {
0062 keyboard-controller {
0063 compatible = "google,cros-ec-keyb-switches";
0064 };
0065 };
0066
0067 &dsi0 {
0068
0069 panel: panel@0 {
0070 /* Compatible will be filled in per-board */
0071 reg = <0>;
0072 enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>;
0073 pinctrl-names = "default";
0074 pinctrl-0 = <&vdd_reset_1800>;
0075 avdd-supply = <&avdd_lcd>;
0076 avee-supply = <&avee_lcd>;
0077 pp1800-supply = <&v1p8_mipi>;
0078 pp3300-supply = <&pp3300_dx_edp>;
0079 backlight = <&backlight>;
0080 rotation = <270>;
0081
0082 ports {
0083 #address-cells = <1>;
0084 #size-cells = <0>;
0085 port@0 {
0086 reg = <0>;
0087 panel_in: endpoint {
0088 remote-endpoint = <&dsi0_out>;
0089 };
0090 };
0091 };
0092 };
0093
0094 ports {
0095 port@1 {
0096 endpoint {
0097 remote-endpoint = <&panel_in>;
0098 data-lanes = <0 1 2 3>;
0099 };
0100 };
0101 };
0102 };
0103
0104 &gpio_keys {
0105 status = "okay";
0106 };
0107
0108 &i2c4 {
0109 status = "okay";
0110 clock-frequency = <400000>;
0111
0112 ap_ts: touchscreen@5d {
0113 compatible = "goodix,gt7375p";
0114 reg = <0x5d>;
0115 pinctrl-names = "default";
0116 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
0117
0118 interrupt-parent = <&tlmm>;
0119 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
0120
0121 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
0122
0123 vdd-supply = <&pp3300_ts>;
0124 };
0125 };
0126
0127 &pp1800_uf_cam {
0128 status = "okay";
0129 };
0130
0131 &pp1800_wf_cam {
0132 status = "okay";
0133 };
0134
0135 &pp2800_uf_cam {
0136 status = "okay";
0137 };
0138
0139 &pp2800_wf_cam {
0140 status = "okay";
0141 };
0142
0143 &wifi {
0144 qcom,ath10k-calibration-variant = "GO_MRBLAND";
0145 };
0146
0147 /*
0148 * No eDP on this board but it's logically the same signal so just give it
0149 * a new name and assign the proper GPIO.
0150 */
0151 pp3300_disp_on: &pp3300_dx_edp {
0152 gpio = <&tlmm 85 GPIO_ACTIVE_HIGH>;
0153 };
0154
0155 /* PINCTRL - modifications to sc7180-trogdor.dtsi */
0156
0157 /*
0158 * No eDP on this board but it's logically the same signal so just give it
0159 * a new name and assign the proper GPIO.
0160 */
0161
0162 tp_en: &en_pp3300_dx_edp {
0163 pinmux {
0164 pins = "gpio85";
0165 };
0166
0167 pinconf {
0168 pins = "gpio85";
0169 };
0170 };
0171
0172 /* PINCTRL - board-specific pinctrl */
0173
0174 &tlmm {
0175 gpio-line-names = "HUB_RST_L",
0176 "AP_RAM_ID0",
0177 "AP_SKU_ID2",
0178 "AP_RAM_ID1",
0179 "",
0180 "AP_RAM_ID2",
0181 "UF_CAM_EN",
0182 "WF_CAM_EN",
0183 "TS_RESET_L",
0184 "TS_INT_L",
0185 "",
0186 "",
0187 "AP_EDP_BKLTEN",
0188 "UF_CAM_MCLK",
0189 "WF_CAM_CLK",
0190 "",
0191 "",
0192 "UF_CAM_SDA",
0193 "UF_CAM_SCL",
0194 "WF_CAM_SDA",
0195 "WF_CAM_SCL",
0196 "AVEE_LCD_EN",
0197 "",
0198 "AMP_EN",
0199 "",
0200 "",
0201 "",
0202 "",
0203 "HP_IRQ",
0204 "WF_CAM_RST_L",
0205 "UF_CAM_RST_L",
0206 "AP_BRD_ID2",
0207 "",
0208 "AP_BRD_ID0",
0209 "AP_H1_SPI_MISO",
0210 "AP_H1_SPI_MOSI",
0211 "AP_H1_SPI_CLK",
0212 "AP_H1_SPI_CS_L",
0213 "BT_UART_CTS",
0214 "BT_UART_RTS",
0215 "BT_UART_TXD",
0216 "BT_UART_RXD",
0217 "H1_AP_INT_ODL",
0218 "",
0219 "UART_AP_TX_DBG_RX",
0220 "UART_DBG_TX_AP_RX",
0221 "HP_I2C_SDA",
0222 "HP_I2C_SCL",
0223 "FORCED_USB_BOOT",
0224 "AMP_BCLK",
0225 "AMP_LRCLK",
0226 "AMP_DIN",
0227 "PEN_DET_ODL",
0228 "HP_BCLK",
0229 "HP_LRCLK",
0230 "HP_DOUT",
0231 "HP_DIN",
0232 "HP_MCLK",
0233 "AP_SKU_ID0",
0234 "AP_EC_SPI_MISO",
0235 "AP_EC_SPI_MOSI",
0236 "AP_EC_SPI_CLK",
0237 "AP_EC_SPI_CS_L",
0238 "AP_SPI_CLK",
0239 "AP_SPI_MOSI",
0240 "AP_SPI_MISO",
0241 /*
0242 * AP_FLASH_WP_L is crossystem ABI. Schematics
0243 * call it BIOS_FLASH_WP_L.
0244 */
0245 "AP_FLASH_WP_L",
0246 "",
0247 "AP_SPI_CS0_L",
0248 "",
0249 "",
0250 "",
0251 "",
0252 "WLAN_SW_CTRL",
0253 "",
0254 "REPORT_E",
0255 "",
0256 "ID0",
0257 "",
0258 "ID1",
0259 "",
0260 "",
0261 "",
0262 "CODEC_PWR_EN",
0263 "HUB_EN",
0264 "TP_EN",
0265 "MIPI_1.8V_EN",
0266 "VDD_RESET_1.8V",
0267 "AVDD_LCD_EN",
0268 "",
0269 "AP_SKU_ID1",
0270 "AP_RST_REQ",
0271 "",
0272 "AP_BRD_ID1",
0273 "AP_EC_INT_L",
0274 "SDM_GRFC_3",
0275 "",
0276 "",
0277 "BOOT_CONFIG_4",
0278 "BOOT_CONFIG_2",
0279 "",
0280 "",
0281 "",
0282 "",
0283 "",
0284 "",
0285 "",
0286 "BOOT_CONFIG_3",
0287 "WCI2_LTE_COEX_TXD",
0288 "WCI2_LTE_COEX_RXD",
0289 "",
0290 "",
0291 "",
0292 "",
0293 "FORCED_USB_BOOT_POL",
0294 "AP_TS_PEN_I2C_SDA",
0295 "AP_TS_PEN_I2C_SCL",
0296 "DP_HOT_PLUG_DET",
0297 "EC_IN_RW_ODL";
0298
0299 avdd_lcd_en: avdd-lcd-en {
0300 pinmux {
0301 pins = "gpio88";
0302 function = "gpio";
0303 };
0304
0305 pinconf {
0306 pins = "gpio88";
0307 drive-strength = <2>;
0308 bias-disable;
0309 };
0310 };
0311
0312 avee_lcd_en: avee-lcd-en {
0313 pinmux {
0314 pins = "gpio21";
0315 function = "gpio";
0316 };
0317
0318 pinconf {
0319 pins = "gpio21";
0320 drive-strength = <2>;
0321 bias-disable;
0322 };
0323 };
0324
0325 mipi_1800_en: mipi-1800-en {
0326 pinmux {
0327 pins = "gpio86";
0328 function = "gpio";
0329 };
0330
0331 pinconf {
0332 pins = "gpio86";
0333 drive-strength = <2>;
0334 bias-disable;
0335 };
0336 };
0337
0338 vdd_reset_1800: vdd-reset-1800 {
0339 pinmux {
0340 pins = "gpio87";
0341 function = "gpio";
0342 };
0343
0344 pinconf {
0345 pins = "gpio87";
0346 drive-strength = <2>;
0347 bias-disable;
0348 };
0349 };
0350 };