Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 1 | fw_config |
Dtrain Hsu | 764167b | 2023-05-18 17:34:56 +0800 | [diff] [blame] | 2 | field DB_LTE 1 1 |
| 3 | option LTE_ABSENT 0 |
| 4 | option LTE_PRESENT 1 |
| 5 | end |
Dtrain Hsu | 9be583e | 2023-05-18 17:32:01 +0800 | [diff] [blame] | 6 | field TOUCHPAD 8 9 |
| 7 | option TOUCHPAD_UNKNOWN 0 |
| 8 | option TOUCHPAD_EKT3744 1 |
| 9 | option TOUCHPAD_GT7863 2 |
| 10 | end |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 11 | field TOUCHSCREEN 10 12 |
| 12 | option TOUCHSCREEN_UNKNOWN 0 |
| 13 | option TOUCHSCREEN_NONE 1 |
| 14 | option TOUCHSCREEN_EKTH7D18 2 |
| 15 | option TOUCHSCREEN_GT7996F 3 |
| 16 | option TOUCHSCREEN_EKTH5012 4 |
| 17 | option TOUCHSCREEN_WDT8752A 5 |
| 18 | option TOUCHSCREEN_GTCH7502 6 |
| 19 | end |
| 20 | end |
| 21 | |
van_chen | e5fa3b1 | 2023-03-13 14:57:00 +0800 | [diff] [blame] | 22 | chip soc/intel/alderlake |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 23 | register "sagv" = "SaGv_Enabled" |
van_chen | e5fa3b1 | 2023-03-13 14:57:00 +0800 | [diff] [blame] | 24 | |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 25 | # EMMC Tx CMD Delay |
| 26 | # Refer to EDS-Vol2-42.3.7. |
| 27 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 28 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 29 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x00000505" |
| 30 | |
| 31 | # EMMC TX DATA Delay 1 |
| 32 | # Refer to EDS-Vol2-42.3.8. |
| 33 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 34 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
Dtrain Hsu | 5ef3796 | 2023-05-26 13:54:05 +0800 | [diff] [blame] | 35 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x00000909" |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 36 | |
| 37 | # EMMC TX DATA Delay 2 |
| 38 | # Refer to EDS-Vol2-42.3.9. |
| 39 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 40 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 41 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 42 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
Dtrain Hsu | 5ef3796 | 2023-05-26 13:54:05 +0800 | [diff] [blame] | 43 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1c272828" |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 44 | |
| 45 | # EMMC RX CMD/DATA Delay 1 |
| 46 | # Refer to EDS-Vol2-42.3.10. |
| 47 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 48 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 49 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 50 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
Dtrain Hsu | 5ef3796 | 2023-05-26 13:54:05 +0800 | [diff] [blame] | 51 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1c171835" |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 52 | |
| 53 | # EMMC RX CMD/DATA Delay 2 |
| 54 | # Refer to EDS-Vol2-42.3.12. |
| 55 | # [17:16] stands for Rx Clock before Output Buffer, |
| 56 | # 00: Rx clock after output buffer, |
| 57 | # 01: Rx clock before output buffer, |
| 58 | # 10: Automatic selection based on working mode. |
| 59 | # 11: Reserved |
| 60 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 61 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
Dtrain Hsu | 5ef3796 | 2023-05-26 13:54:05 +0800 | [diff] [blame] | 62 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x00010025" |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 63 | |
| 64 | # EMMC Rx Strobe Delay |
| 65 | # Refer to EDS-Vol2-42.3.11. |
| 66 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 67 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
Dtrain Hsu | 5ef3796 | 2023-05-26 13:54:05 +0800 | [diff] [blame] | 68 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x00001111" |
Dtrain Hsu | 995772f | 2023-05-03 17:24:16 +0800 | [diff] [blame] | 69 | |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 70 | # SOC Aux orientation override: |
| 71 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 72 | # Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. |
| 73 | # TcssAuxOri = 0101b |
| 74 | # Bit0,Bit2 set to "1" indicates no retimer on USBC Ports |
| 75 | # Bit1,Bit3 set to "0" indicates Aux lines are not swapped on the |
| 76 | # motherboard to USBC connector |
| 77 | |
| 78 | register "tcss_aux_ori" = "5" |
| 79 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 80 | register "typec_aux_bias_pads[1]" = "{.pad_auxp_dc = GPP_A21, .pad_auxn_dc = GPP_A22}" |
| 81 | |
| 82 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # World Facing Camera |
| 83 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 84 | |
| 85 | register "serial_io_i2c_mode" = "{ |
| 86 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 87 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 88 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 89 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 90 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 91 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 92 | }" |
| 93 | |
Dtrain Hsu | 7e07ab9 | 2023-04-11 13:44:10 +0800 | [diff] [blame] | 94 | # Configure external V1P05/Vnn/VnnSx Rails |
| 95 | register "ext_fivr_settings" = "{ |
| 96 | .configure_ext_fivr = 1, |
| 97 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0, |
| 98 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 99 | .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 100 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL, |
| 101 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE, |
| 102 | .v1p05_voltage_mv = 1050, |
| 103 | .vnn_voltage_mv = 780, |
| 104 | .vnn_sx_voltage_mv = 1050, |
| 105 | .v1p05_icc_max_ma = 500, |
| 106 | .vnn_icc_max_ma = 500, |
| 107 | }" |
| 108 | |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 109 | # Intel Common SoC Config |
| 110 | #+-------------------+---------------------------+ |
| 111 | #| Field | Value | |
| 112 | #+-------------------+---------------------------+ |
| 113 | #| I2C0 | TPM. Early init is | |
| 114 | #| | required to set up a BAR | |
| 115 | #| | for TPM communication | |
| 116 | #| I2C1 | Touchscreen | |
| 117 | #| I2C2 | | |
| 118 | #| I2C3 | Audio | |
| 119 | #| I2C5 | Trackpad | |
| 120 | #+-------------------+---------------------------+ |
| 121 | register "common_soc_config" = "{ |
| 122 | .i2c[0] = { |
| 123 | .early_init = 1, |
| 124 | .speed = I2C_SPEED_FAST_PLUS, |
| 125 | .speed_config[0] = { |
| 126 | .speed = I2C_SPEED_FAST_PLUS, |
| 127 | .scl_lcnt = 55, |
| 128 | .scl_hcnt = 30, |
| 129 | .sda_hold = 7, |
| 130 | } |
| 131 | }, |
| 132 | .i2c[1] = { |
| 133 | .speed = I2C_SPEED_FAST, |
| 134 | .speed_config[0] = { |
| 135 | .speed = I2C_SPEED_FAST, |
| 136 | .scl_lcnt = 158, |
| 137 | .scl_hcnt = 79, |
| 138 | .sda_hold = 7, |
| 139 | } |
| 140 | }, |
| 141 | .i2c[3] = { |
| 142 | .speed = I2C_SPEED_FAST, |
| 143 | .speed_config[0] = { |
| 144 | .speed = I2C_SPEED_FAST, |
| 145 | .scl_lcnt = 158, |
| 146 | .scl_hcnt = 79, |
| 147 | .sda_hold = 7, |
| 148 | } |
| 149 | }, |
| 150 | .i2c[5] = { |
| 151 | .speed = I2C_SPEED_FAST, |
| 152 | .speed_config[0] = { |
| 153 | .speed = I2C_SPEED_FAST, |
| 154 | .scl_lcnt = 158, |
| 155 | .scl_hcnt = 79, |
| 156 | .sda_hold = 7, |
| 157 | } |
| 158 | }, |
| 159 | }" |
| 160 | |
| 161 | device domain 0 on |
Dtrain Hsu | 1b3b098 | 2023-05-24 16:11:44 +0800 | [diff] [blame] | 162 | device ref dtt on |
| 163 | chip drivers/intel/dptf |
| 164 | ## sensor information |
| 165 | register "options.tsr[0].desc" = ""CPU_VR"" |
| 166 | register "options.tsr[1].desc" = ""Charger"" |
| 167 | register "options.tsr[2].desc" = ""Ambient"" |
| 168 | |
| 169 | ## Passive Policy |
| 170 | register "policies.passive" = "{ |
| 171 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 172 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 85, 5000), |
| 173 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 85, 5000), |
| 174 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 85, 5000), |
| 175 | }" |
| 176 | ## Critical Policy |
| 177 | register "policies.critical" = "{ |
| 178 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 179 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 98, SHUTDOWN), |
| 180 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 98, SHUTDOWN), |
| 181 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 98, SHUTDOWN), |
| 182 | }" |
| 183 | |
| 184 | register "controls.power_limits" = "{ |
| 185 | .pl1 = { |
| 186 | .min_power = 3000, |
| 187 | .max_power = 6000, |
| 188 | .time_window_min = 28 * MSECS_PER_SEC, |
| 189 | .time_window_max = 28 * MSECS_PER_SEC, |
| 190 | .granularity = 250 |
| 191 | }, |
| 192 | .pl2 = { |
| 193 | .min_power = 25000, |
| 194 | .max_power = 25000, |
| 195 | .time_window_min = 28 * MSECS_PER_SEC, |
| 196 | .time_window_max = 28 * MSECS_PER_SEC, |
| 197 | .granularity = 1000 |
| 198 | } |
| 199 | }" |
| 200 | |
| 201 | ## Charger Performance Control (Control, mA) |
| 202 | register "controls.charger_perf" = "{ |
| 203 | [0] = { 255, 1700 }, |
| 204 | [1] = { 24, 1500 }, |
| 205 | [2] = { 16, 1000 }, |
| 206 | [3] = { 8, 500 } |
| 207 | }" |
| 208 | device generic 0 on end |
| 209 | end |
| 210 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 211 | device ref cnvi_wifi on |
| 212 | chip drivers/wifi/generic |
| 213 | register "wake" = "GPE0_PME_B0" |
| 214 | register "enable_cnvi_ddr_rfim" = "true" |
Dtrain Hsu | 7a75908 | 2023-05-26 16:57:48 +0800 | [diff] [blame] | 215 | register "add_acpi_dma_property" = "true" |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 216 | device generic 0 on end |
| 217 | end |
| 218 | end |
| 219 | device ref i2c1 on |
| 220 | chip drivers/i2c/hid |
| 221 | register "generic.hid" = ""WDHT0002"" |
| 222 | register "generic.desc" = ""WDT Touchscreen"" |
| 223 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 224 | register "generic.detect" = "1" |
| 225 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 226 | register "generic.reset_delay_ms" = "20" |
| 227 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 228 | register "generic.stop_delay_ms" = "130" |
| 229 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 230 | register "generic.enable_delay_ms" = "1" |
| 231 | register "generic.has_power_resource" = "1" |
| 232 | register "hid_desc_reg_offset" = "0x20" |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 233 | device i2c 2c on |
| 234 | probe TOUCHSCREEN TOUCHSCREEN_UNKNOWN |
| 235 | probe TOUCHSCREEN TOUCHSCREEN_WDT8752A |
| 236 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 237 | end |
| 238 | chip drivers/i2c/generic |
| 239 | register "hid" = ""ELAN0001"" |
| 240 | register "desc" = ""ELAN Touchscreen"" |
| 241 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 242 | register "detect" = "1" |
| 243 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 244 | register "reset_delay_ms" = "20" |
| 245 | register "reset_off_delay_ms" = "2" |
| 246 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 247 | register "stop_delay_ms" = "280" |
| 248 | register "stop_off_delay_ms" = "2" |
| 249 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 250 | register "enable_delay_ms" = "1" |
| 251 | register "has_power_resource" = "1" |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 252 | device i2c 10 on |
| 253 | probe TOUCHSCREEN TOUCHSCREEN_UNKNOWN |
| 254 | probe TOUCHSCREEN TOUCHSCREEN_EKTH5012 |
| 255 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 256 | end |
| 257 | chip drivers/i2c/hid |
| 258 | register "generic.hid" = ""ELAN900C"" |
| 259 | register "generic.desc" = ""ELAN Touchscreen"" |
| 260 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 261 | register "generic.detect" = "1" |
| 262 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 263 | register "generic.reset_delay_ms" = "300" |
| 264 | register "generic.reset_off_delay_ms" = "1" |
| 265 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 266 | register "generic.stop_delay_ms" = "300" |
| 267 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 268 | register "generic.enable_delay_ms" = "6" |
| 269 | register "generic.has_power_resource" = "1" |
| 270 | register "hid_desc_reg_offset" = "0x01" |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 271 | device i2c 16 on |
| 272 | probe TOUCHSCREEN TOUCHSCREEN_UNKNOWN |
| 273 | probe TOUCHSCREEN TOUCHSCREEN_EKTH7D18 |
| 274 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 275 | end |
| 276 | chip drivers/i2c/hid |
| 277 | register "generic.hid" = ""GXTP7996"" |
| 278 | register "generic.desc" = ""Goodix Touchscreen"" |
| 279 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 280 | register "generic.detect" = "1" |
| 281 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 282 | register "generic.reset_delay_ms" = "100" |
| 283 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 284 | register "generic.stop_delay_ms" = "300" |
| 285 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 286 | register "generic.enable_delay_ms" = "10" |
| 287 | register "generic.has_power_resource" = "1" |
| 288 | register "hid_desc_reg_offset" = "0x01" |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 289 | device i2c 5d on |
| 290 | probe TOUCHSCREEN TOUCHSCREEN_UNKNOWN |
| 291 | probe TOUCHSCREEN TOUCHSCREEN_GT7996F |
| 292 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 293 | end |
| 294 | chip drivers/i2c/hid |
| 295 | register "generic.hid" = ""GTCH7502"" |
| 296 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 297 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 298 | register "generic.detect" = "1" |
| 299 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 300 | register "generic.reset_delay_ms" = "100" |
| 301 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 302 | register "generic.stop_delay_ms" = "30" |
| 303 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 304 | register "generic.enable_delay_ms" = "30" |
| 305 | register "generic.has_power_resource" = "1" |
| 306 | register "hid_desc_reg_offset" = "0x01" |
Dtrain Hsu | a6d337b | 2023-05-18 17:28:42 +0800 | [diff] [blame] | 307 | device i2c 40 on |
| 308 | probe TOUCHSCREEN TOUCHSCREEN_UNKNOWN |
| 309 | probe TOUCHSCREEN TOUCHSCREEN_GTCH7502 |
| 310 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 311 | end |
| 312 | end |
| 313 | device ref i2c3 on |
| 314 | chip drivers/i2c/cs42l42 |
| 315 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 316 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B15)" |
| 317 | register "ts_inv" = "true" |
| 318 | register "ts_dbnc_rise" = "RISE_DEB_1000_MS" |
| 319 | register "ts_dbnc_fall" = "FALL_DEB_0_MS" |
| 320 | register "btn_det_init_dbnce" = "100" |
| 321 | register "btn_det_event_dbnce" = "10" |
| 322 | register "bias_lvls[0]" = "15" |
| 323 | register "bias_lvls[1]" = "8" |
| 324 | register "bias_lvls[2]" = "4" |
| 325 | register "bias_lvls[3]" = "1" |
| 326 | register "hs_bias_ramp_rate" = "HSBIAS_RAMP_SLOW" |
| 327 | register "hs_bias_sense_disable" = "true" |
| 328 | device i2c 48 on end |
| 329 | end |
| 330 | end |
| 331 | device ref i2c5 on |
| 332 | chip drivers/i2c/generic |
| 333 | register "hid" = ""ELAN0000"" |
| 334 | register "desc" = ""ELAN Touchpad"" |
| 335 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 336 | register "wake" = "GPE0_DW2_14" |
| 337 | register "detect" = "1" |
Dtrain Hsu | 9be583e | 2023-05-18 17:32:01 +0800 | [diff] [blame] | 338 | device i2c 15 on |
| 339 | probe TOUCHPAD TOUCHPAD_UNKNOWN |
| 340 | probe TOUCHPAD TOUCHPAD_EKT3744 |
| 341 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 342 | end |
| 343 | chip drivers/i2c/hid |
| 344 | register "generic.hid" = ""GXTP7863"" |
| 345 | register "generic.desc" = ""Goodix Touchpad"" |
| 346 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 347 | register "generic.wake" = "GPE0_DW2_14" |
| 348 | register "generic.detect" = "1" |
| 349 | register "hid_desc_reg_offset" = "0x20" |
Dtrain Hsu | 9be583e | 2023-05-18 17:32:01 +0800 | [diff] [blame] | 350 | device i2c 2c on |
| 351 | probe TOUCHPAD TOUCHPAD_UNKNOWN |
| 352 | probe TOUCHPAD TOUCHPAD_GT7863 |
| 353 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 354 | end |
| 355 | end |
Dtrain Hsu | 1659218 | 2023-06-05 10:00:41 +0800 | [diff] [blame^] | 356 | device ref pcie_rp7 off end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 357 | device ref hda on |
| 358 | chip drivers/generic/max98357a |
| 359 | register "hid" = ""MX98360A"" |
| 360 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 361 | register "sdmode_delay" = "5" |
| 362 | device generic 0 on end |
| 363 | end |
| 364 | end |
| 365 | device ref pch_espi on |
| 366 | chip ec/google/chromeec |
| 367 | use conn0 as mux_conn[0] |
| 368 | use conn1 as mux_conn[1] |
| 369 | device pnp 0c09.0 on end |
| 370 | end |
| 371 | end |
| 372 | device ref pmc hidden |
| 373 | chip drivers/intel/pmc_mux |
| 374 | device generic 0 on |
| 375 | chip drivers/intel/pmc_mux/conn |
| 376 | use usb2_port1 as usb2_port |
| 377 | use tcss_usb3_port1 as usb3_port |
| 378 | device generic 0 alias conn0 on end |
| 379 | end |
| 380 | chip drivers/intel/pmc_mux/conn |
| 381 | use usb2_port2 as usb2_port |
| 382 | use tcss_usb3_port2 as usb3_port |
| 383 | device generic 1 alias conn1 on end |
| 384 | end |
| 385 | end |
| 386 | end |
| 387 | end |
| 388 | device ref tcss_xhci on |
| 389 | chip drivers/usb/acpi |
| 390 | device ref tcss_root_hub on |
| 391 | chip drivers/usb/acpi |
| 392 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 393 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 394 | register "use_custom_pld" = "true" |
| 395 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 396 | device ref tcss_usb3_port1 on end |
| 397 | end |
| 398 | chip drivers/usb/acpi |
| 399 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 400 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 401 | register "use_custom_pld" = "true" |
| 402 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
| 403 | device ref tcss_usb3_port2 on end |
| 404 | end |
| 405 | end |
| 406 | end |
| 407 | end |
| 408 | device ref xhci on |
| 409 | chip drivers/usb/acpi |
| 410 | device ref xhci_root_hub on |
| 411 | chip drivers/usb/acpi |
| 412 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 413 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 414 | register "use_custom_pld" = "true" |
| 415 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 416 | device ref usb2_port1 on end |
| 417 | end |
| 418 | chip drivers/usb/acpi |
| 419 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 420 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 421 | register "use_custom_pld" = "true" |
| 422 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
| 423 | device ref usb2_port2 on end |
| 424 | end |
| 425 | chip drivers/usb/acpi |
| 426 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 427 | register "type" = "UPC_TYPE_A" |
| 428 | register "use_custom_pld" = "true" |
| 429 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 430 | device ref usb2_port3 on end |
| 431 | end |
| 432 | chip drivers/usb/acpi |
| 433 | register "desc" = ""USB2 WWAN"" |
| 434 | register "type" = "UPC_TYPE_INTERNAL" |
Dtrain Hsu | 764167b | 2023-05-18 17:34:56 +0800 | [diff] [blame] | 435 | device ref usb2_port4 on |
| 436 | probe DB_LTE LTE_PRESENT |
| 437 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 438 | end |
| 439 | chip drivers/usb/acpi |
| 440 | register "desc" = ""USB2 User Facing Camera"" |
| 441 | register "type" = "UPC_TYPE_INTERNAL" |
| 442 | device ref usb2_port6 on end |
| 443 | end |
| 444 | chip drivers/usb/acpi |
| 445 | register "desc" = ""USB2 World Facing Camera"" |
| 446 | register "type" = "UPC_TYPE_INTERNAL" |
| 447 | device ref usb2_port7 on end |
| 448 | end |
| 449 | chip drivers/usb/acpi |
| 450 | register "desc" = ""USB2 Bluetooth"" |
| 451 | register "type" = "UPC_TYPE_INTERNAL" |
| 452 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 453 | device ref usb2_port10 on end |
| 454 | end |
| 455 | chip drivers/usb/acpi |
| 456 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 457 | register "type" = "UPC_TYPE_USB3_A" |
| 458 | register "use_custom_pld" = "true" |
| 459 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 460 | device ref usb3_port1 on end |
| 461 | end |
| 462 | chip drivers/usb/acpi |
| 463 | register "desc" = ""USB3 WWAN"" |
| 464 | register "type" = "UPC_TYPE_INTERNAL" |
Dtrain Hsu | 764167b | 2023-05-18 17:34:56 +0800 | [diff] [blame] | 465 | device ref usb3_port2 on |
| 466 | probe DB_LTE LTE_PRESENT |
| 467 | end |
Van Chen | dea2c47 | 2023-03-21 09:34:18 +0800 | [diff] [blame] | 468 | end |
| 469 | end |
| 470 | end |
| 471 | end |
van_chen | e5fa3b1 | 2023-03-13 14:57:00 +0800 | [diff] [blame] | 472 | end |
van_chen | e5fa3b1 | 2023-03-13 14:57:00 +0800 | [diff] [blame] | 473 | end |