0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Google Quackingstick 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 ppvar_lcd: ppvar-lcd {
0017 compatible = "regulator-fixed";
0018 regulator-name = "ppvar_lcd";
0019
0020 gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>;
0021 enable-active-high;
0022 pinctrl-names = "default";
0023 pinctrl-0 = <&ppvar_lcd_en>;
0024
0025 vin-supply = <&pp5000_a>;
0026 };
0027
0028 v1p8_disp: v1p8-disp {
0029 compatible = "regulator-fixed";
0030 regulator-name = "v1p8_disp";
0031
0032 gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>;
0033 enable-active-high;
0034 pinctrl-names = "default";
0035 pinctrl-0 = <&pp1800_disp_on>;
0036
0037 vin-supply = <&pp3300_a>;
0038 };
0039 };
0040
0041 &backlight {
0042 pwms = <&cros_ec_pwm 0>;
0043 };
0044
0045 &camcc {
0046 status = "okay";
0047 };
0048
0049 &cros_ec {
0050 keyboard-controller {
0051 compatible = "google,cros-ec-keyb-switches";
0052 };
0053 };
0054
0055 &dsi0 {
0056 panel: panel@0 {
0057 /* Compatible will be filled in per-board */
0058 reg = <0>;
0059 enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>;
0060 pinctrl-names = "default";
0061 pinctrl-0 = <&lcd_rst>;
0062 avdd-supply = <&ppvar_lcd>;
0063 pp1800-supply = <&v1p8_disp>;
0064 pp3300-supply = <&pp3300_dx_edp>;
0065 backlight = <&backlight>;
0066 rotation = <270>;
0067
0068 ports {
0069 #address-cells = <1>;
0070 #size-cells = <0>;
0071 port@0 {
0072 reg = <0>;
0073 panel_in: endpoint {
0074 remote-endpoint = <&dsi0_out>;
0075 };
0076 };
0077 };
0078 };
0079
0080 ports {
0081 port@1 {
0082 endpoint {
0083 remote-endpoint = <&panel_in>;
0084 data-lanes = <0 1 2 3>;
0085 };
0086 };
0087 };
0088 };
0089
0090 &gpio_keys {
0091 status = "okay";
0092 };
0093
0094 &i2c4 {
0095 status = "okay";
0096 clock-frequency = <400000>;
0097
0098 ap_ts: touchscreen@10 {
0099 compatible = "hid-over-i2c";
0100 reg = <0x10>;
0101 pinctrl-names = "default";
0102 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
0103
0104 interrupt-parent = <&tlmm>;
0105 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
0106
0107 post-power-on-delay-ms = <20>;
0108 hid-descr-addr = <0x0001>;
0109
0110 vdd-supply = <&pp3300_ts>;
0111 };
0112 };
0113
0114 &sdhc_2 {
0115 status = "okay";
0116 };
0117
0118 &pp1800_uf_cam {
0119 status = "okay";
0120 };
0121
0122 &pp1800_wf_cam {
0123 status = "okay";
0124 };
0125
0126 &pp2800_uf_cam {
0127 status = "okay";
0128 };
0129
0130 &pp2800_wf_cam {
0131 status = "okay";
0132 };
0133
0134 /*
0135 * No eDP on this board but it's logically the same signal so just give it
0136 * a new name and assign the proper GPIO.
0137 */
0138 pp3300_disp_on: &pp3300_dx_edp {
0139 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
0140 };
0141
0142 /* PINCTRL - modifications to sc7180-trogdor.dtsi */
0143
0144 /*
0145 * No eDP on this board but it's logically the same signal so just give it
0146 * a new name and assign the proper GPIO.
0147 */
0148
0149 tp_en: &en_pp3300_dx_edp {
0150 pinmux {
0151 pins = "gpio67";
0152 };
0153
0154 pinconf {
0155 pins = "gpio67";
0156 };
0157 };
0158
0159 /* PINCTRL - board-specific pinctrl */
0160
0161 &tlmm {
0162 gpio-line-names = "HUB_RST_L",
0163 "AP_RAM_ID0",
0164 "AP_SKU_ID2",
0165 "AP_RAM_ID1",
0166 "",
0167 "AP_RAM_ID2",
0168 "UF_CAM_EN",
0169 "WF_CAM_EN",
0170 "TS_RESET_L",
0171 "TS_INT_L",
0172 "",
0173 "",
0174 "AP_EDP_BKLTEN",
0175 "UF_CAM_MCLK",
0176 "WF_CAM_CLK",
0177 "EDP_BRIJ_I2C_SDA",
0178 "EDP_BRIJ_I2C_SCL",
0179 "UF_CAM_SDA",
0180 "UF_CAM_SCL",
0181 "WF_CAM_SDA",
0182 "WF_CAM_SCL",
0183 "",
0184 "",
0185 "AMP_EN",
0186 "P_SENSOR_INT_L",
0187 "AP_SAR_SENSOR_SDA",
0188 "AP_SAR_SENSOR_SCL",
0189 "",
0190 "HP_IRQ",
0191 "WF_CAM_RST_L",
0192 "UF_CAM_RST_L",
0193 "AP_BRD_ID2",
0194 "",
0195 "AP_BRD_ID0",
0196 "AP_H1_SPI_MISO",
0197 "AP_H1_SPI_MOSI",
0198 "AP_H1_SPI_CLK",
0199 "AP_H1_SPI_CS_L",
0200 "",
0201 "",
0202 "",
0203 "",
0204 "H1_AP_INT_ODL",
0205 "",
0206 "UART_AP_TX_DBG_RX",
0207 "UART_DBG_TX_AP_RX",
0208 "HP_I2C_SDA",
0209 "HP_I2C_SCL",
0210 "FORCED_USB_BOOT",
0211 "",
0212 "",
0213 "AMP_DIN",
0214 "PEN_DET_ODL",
0215 "HP_BCLK",
0216 "HP_LRCLK",
0217 "HP_DOUT",
0218 "HP_DIN",
0219 "HP_MCLK",
0220 "AP_SKU_ID0",
0221 "AP_EC_SPI_MISO",
0222 "AP_EC_SPI_MOSI",
0223 "AP_EC_SPI_CLK",
0224 "AP_EC_SPI_CS_L",
0225 "AP_SPI_CLK",
0226 "AP_SPI_MOSI",
0227 "AP_SPI_MISO",
0228 /*
0229 * AP_FLASH_WP_L is crossystem ABI. Schematics
0230 * call it BIOS_FLASH_WP_L.
0231 */
0232 "AP_FLASH_WP_L",
0233 "EN_PP3300_DX_EDP",
0234 "AP_SPI_CS0_L",
0235 "SD_CD_ODL",
0236 "",
0237 "",
0238 "",
0239 "",
0240 "",
0241 "UIM2_DATA",
0242 "UIM2_CLK",
0243 "UIM2_RST",
0244 "UIM2_PRESENT_L",
0245 "UIM1_DATA",
0246 "UIM1_CLK",
0247 "UIM1_RST",
0248 "",
0249 "CODEC_PWR_EN",
0250 "HUB_EN",
0251 "",
0252 "PP1800_DISP_ON",
0253 "LCD_RST",
0254 "PPVAR_LCD_EN",
0255 "",
0256 "AP_SKU_ID1",
0257 "AP_RST_REQ",
0258 "",
0259 "AP_BRD_ID1",
0260 "AP_EC_INT_L",
0261 "",
0262 "",
0263 "",
0264 "",
0265 "",
0266 "",
0267 "",
0268 "",
0269 "",
0270 "",
0271 "",
0272 "",
0273 "",
0274 "",
0275 "",
0276 "",
0277 "",
0278 "",
0279 "",
0280 "",
0281 "AP_TS_I2C_SDA",
0282 "AP_TS_I2C_SCL",
0283 "DP_HOT_PLUG_DET",
0284 "EC_IN_RW_ODL";
0285
0286 lcd_rst: lcd-rst {
0287 pinmux {
0288 pins = "gpio87";
0289 function = "gpio";
0290 };
0291
0292 pinconf {
0293 pins = "gpio87";
0294 drive-strength = <2>;
0295 bias-disable;
0296 };
0297 };
0298
0299 ppvar_lcd_en: ppvar-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 pp1800_disp_on: pp1800-disp-on {
0313 pinmux {
0314 pins = "gpio86";
0315 function = "gpio";
0316 };
0317
0318 pinconf {
0319 pins = "gpio86";
0320 drive-strength = <2>;
0321 bias-disable;
0322 };
0323 };
0324 };