1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Google Kingoftown board device tree source 4 * 5 * Copyright 2021 Google LLC. 6 */ 7 8/dts-v1/; 9 10#include "sc7180-trogdor.dtsi" 11#include "sc7180-trogdor-parade-ps8640.dtsi" 12#include <arm/cros-ec-keyboard.dtsi> 13#include "sc7180-trogdor-lte-sku.dtsi" 14 15/ { 16 model = "Google Kingoftown"; 17 compatible = "google,kingoftown", "qcom,sc7180"; 18}; 19 20&alc5682 { 21 compatible = "realtek,rt5682s"; 22 /delete-property/ VBAT-supply; 23 realtek,dmic1-clk-pin = <2>; 24 realtek,dmic-clk-rate-hz = <2048000>; 25}; 26 27&ap_tp_i2c { 28 status = "okay"; 29}; 30 31ap_ts_pen_1v8: &i2c4 { 32 status = "okay"; 33 clock-frequency = <400000>; 34 35 ap_ts: touchscreen@10 { 36 compatible = "elan,ekth3500"; 37 reg = <0x10>; 38 pinctrl-names = "default"; 39 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 40 41 interrupt-parent = <&tlmm>; 42 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 43 44 vcc33-supply = <&pp3300_ts>; 45 46 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 47 }; 48}; 49 50&keyboard_controller { 51 function-row-physmap = < 52 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 53 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 54 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 55 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 56 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 57 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 58 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 59 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 60 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 61 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 62 >; 63 linux,keymap = < 64 MATRIX_KEY(0x00, 0x02, KEY_BACK) 65 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 66 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 67 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 68 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 69 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 70 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 71 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 72 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 73 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 74 75 CROS_STD_MAIN_KEYMAP 76 >; 77}; 78 79&panel { 80 compatible = "edp-panel"; 81}; 82 83&pp3300_dx_edp { 84 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 85}; 86 87&sound { 88 compatible = "google,sc7180-trogdor"; 89 model = "sc7180-rt5682s-max98357a-1mic"; 90}; 91 92&wifi { 93 qcom,ath10k-calibration-variant = "GO_KINGOFTOWN"; 94}; 95 96/* PINCTRL - modifications to sc7180-trogdor.dtsi */ 97 98&en_pp3300_dx_edp { 99 pins = "gpio67"; 100}; 101 102/* PINCTRL - board-specific pinctrl */ 103 104&tlmm { 105 gpio-line-names = "TP_INT_L", /* 0 */ 106 "AP_RAM_ID0", 107 "AP_SKU_ID2", 108 "AP_RAM_ID1", 109 "", 110 "AP_RAM_ID2", 111 "AP_TP_I2C_SDA", 112 "AP_TP_I2C_SCL", 113 "TS_RESET_L", 114 "TS_INT_L", 115 "", /* 10 */ 116 "EDP_BRIJ_IRQ", 117 "AP_EDP_BKLTEN", 118 "", 119 "", 120 "EDP_BRIJ_I2C_SDA", 121 "EDP_BRIJ_I2C_SCL", 122 "HUB_RST_L", 123 "", 124 "", 125 "", /* 20 */ 126 "", 127 "", 128 "AMP_EN", 129 "", 130 "", 131 "", 132 "", 133 "HP_IRQ", 134 "", 135 "", /* 30 */ 136 "AP_BRD_ID2", 137 "BRIJ_SUSPEND", 138 "AP_BRD_ID0", 139 "AP_H1_SPI_MISO", 140 "AP_H1_SPI_MOSI", 141 "AP_H1_SPI_CLK", 142 "AP_H1_SPI_CS_L", 143 "BT_UART_CTS", 144 "BT_UART_RTS", 145 "BT_UART_TXD", /* 40 */ 146 "BT_UART_RXD", 147 "H1_AP_INT_ODL", 148 "", 149 "UART_AP_TX_DBG_RX", 150 "UART_DBG_TX_AP_RX", 151 "HP_I2C_SDA", 152 "HP_I2C_SCL", 153 "FORCED_USB_BOOT", 154 "AMP_BCLK", 155 "AMP_LRCLK", /* 50 */ 156 "AMP_DIN", 157 "", 158 "HP_BCLK", 159 "HP_LRCLK", 160 "HP_DOUT", 161 "HP_DIN", 162 "HP_MCLK", 163 "AP_SKU_ID0", 164 "AP_EC_SPI_MISO", 165 "AP_EC_SPI_MOSI", /* 60 */ 166 "AP_EC_SPI_CLK", 167 "AP_EC_SPI_CS_L", 168 "AP_SPI_CLK", 169 "AP_SPI_MOSI", 170 "AP_SPI_MISO", 171 /* 172 * AP_FLASH_WP_L is crossystem ABI. Schematics 173 * call it BIOS_FLASH_WP_L. 174 */ 175 "AP_FLASH_WP_L", 176 "EN_PP3300_DX_EDP", 177 "AP_SPI_CS0_L", 178 "", 179 "", /* 70 */ 180 "", 181 "", 182 "", 183 "EN_FP_RAILS", 184 "UIM2_DATA", 185 "UIM2_CLK", 186 "UIM2_RST", 187 "UIM2_PRESENT_L", 188 "UIM1_DATA", 189 "UIM1_CLK", /* 80 */ 190 "UIM1_RST", 191 "", 192 "CODEC_PWR_EN", 193 "HUB_EN", 194 "", 195 "", 196 "", 197 "", 198 "", 199 "AP_SKU_ID1", /* 90 */ 200 "AP_RST_REQ", 201 "", 202 "AP_BRD_ID1", 203 "AP_EC_INT_L", 204 "", 205 "", 206 "", 207 "", 208 "", 209 "", /* 100 */ 210 "", 211 "", 212 "", 213 "EDP_BRIJ_EN", 214 "", 215 "", 216 "", 217 "", 218 "", 219 "", /* 110 */ 220 "", 221 "", 222 "", 223 "", 224 "AP_TS_PEN_I2C_SDA", 225 "AP_TS_PEN_I2C_SCL", 226 "DP_HOT_PLUG_DET", 227 "EC_IN_RW_ODL"; 228}; 229