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