Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field LTE 6 |
| 3 | option LTE_ABSENT 0 |
| 4 | option LTE_PRESENT 1 |
| 5 | end |
| 6 | field SD_CARD 7 |
| 7 | option SD_ABSENT 0 |
| 8 | option SD_PRESENT 1 |
| 9 | end |
| 10 | field STYLUS 8 |
| 11 | option STYLUS_ABSENT 0 |
| 12 | option STYLUS_PRESENT 1 |
| 13 | end |
| 14 | field WFC 9 |
| 15 | option WFC_ABSENT 0 |
| 16 | option WFC_PRESENT 1 |
| 17 | end |
Leo Chou | ce0315c | 2022-08-17 18:19:32 +0800 | [diff] [blame] | 18 | field THERMAL 10 11 |
| 19 | option THERMAL_FAN_TABLE_0 0 |
| 20 | option THERMAL_FAN_TABLE_1 1 |
| 21 | option THERMAL_FAN_TABLE_2 2 |
| 22 | option THERMAL_FAN_TABLE_3 3 |
| 23 | end |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 24 | field AUDIO 12 14 |
| 25 | option ALC1019_ALC5682IVS 0 |
Leo Chou | 7c0a1fb | 2022-08-24 17:16:59 +0800 | [diff] [blame] | 26 | option MAX98357_ALC5682I 1 |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 27 | end |
Leo Chou | 50b45d3 | 2022-08-18 18:17:57 +0800 | [diff] [blame] | 28 | field EXT_VR 15 |
| 29 | option EXT_VR_PRESENT 0 |
| 30 | option EXT_VR_ABSENT 1 |
| 31 | end |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 32 | |
| 33 | end |
| 34 | |
Stanley Wu | 8e36104 | 2022-06-08 15:56:23 +0800 | [diff] [blame] | 35 | chip soc/intel/alderlake |
Leo Chou | 3893c84 | 2022-08-16 13:57:44 +0800 | [diff] [blame] | 36 | # Acoustic settings |
| 37 | register "acoustic_noise_mitigation" = "1" |
| 38 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 39 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 40 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 41 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
| 42 | register "PreWake" = "100" |
| 43 | |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 44 | register "sagv" = "SaGv_Enabled" |
Stanley Wu | 8e36104 | 2022-06-08 15:56:23 +0800 | [diff] [blame] | 45 | |
Leo Chou | 4531edf | 2022-10-04 13:32:57 +0800 | [diff] [blame] | 46 | # EMMC Tx CMD Delay |
| 47 | # Refer to EDS-Vol2-42.3.7. |
| 48 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 49 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 50 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 51 | |
| 52 | # EMMC TX DATA Delay 1 |
| 53 | # Refer to EDS-Vol2-42.3.8. |
| 54 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 55 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 56 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 57 | |
| 58 | # EMMC TX DATA Delay 2 |
| 59 | # Refer to EDS-Vol2-42.3.9. |
| 60 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 61 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 62 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 63 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 64 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C2A2828" |
| 65 | |
| 66 | # EMMC RX CMD/DATA Delay 1 |
| 67 | # Refer to EDS-Vol2-42.3.10. |
| 68 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 69 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 70 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 71 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 72 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C1B1D1B" |
| 73 | |
| 74 | # EMMC RX CMD/DATA Delay 2 |
| 75 | # Refer to EDS-Vol2-42.3.12. |
| 76 | # [17:16] stands for Rx Clock before Output Buffer, |
| 77 | # 00: Rx clock after output buffer, |
| 78 | # 01: Rx clock before output buffer, |
| 79 | # 10: Automatic selection based on working mode. |
| 80 | # 11: Reserved |
| 81 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 82 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 83 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10049" |
| 84 | |
| 85 | # EMMC Rx Strobe Delay |
| 86 | # Refer to EDS-Vol2-42.3.11. |
| 87 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 88 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 89 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x11515" |
| 90 | |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 91 | # SOC Aux orientation override: |
| 92 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 93 | # Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. |
| 94 | # TcssAuxOri = 0101b |
| 95 | # Bit0,Bit2 set to "1" indicates no retimer on USBC Ports |
| 96 | # Bit1,Bit3 set to "0" indicates Aux lines are not swapped on the |
| 97 | # motherboard to USBC connector |
| 98 | register "tcss_aux_ori" = "5" |
Stanley Wu | 8e36104 | 2022-06-08 15:56:23 +0800 | [diff] [blame] | 99 | |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 100 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 101 | |
Stanley Wu | 5675173 | 2022-07-12 14:11:43 +0800 | [diff] [blame] | 102 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WFC Camera |
Leo Chou | f92ea61 | 2022-07-22 15:55:59 +0800 | [diff] [blame] | 103 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 104 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 105 | |
Stanley Wu | c8ffc82 | 2022-08-05 19:34:57 +0800 | [diff] [blame] | 106 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 port for WWAN |
| 107 | |
Leo Chou | 50b45d3 | 2022-08-18 18:17:57 +0800 | [diff] [blame] | 108 | # FIVR configurations for Pujjoteen are disabled since the board doesn't have V1p05 and Vnn |
| 109 | # bypass rails implemented. |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 110 | register "ext_fivr_settings" = "{ |
| 111 | .configure_ext_fivr = 1, |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 112 | }" |
| 113 | |
| 114 | # Intel Common SoC Config |
| 115 | #+-------------------+---------------------------+ |
| 116 | #| Field | Value | |
| 117 | #+-------------------+---------------------------+ |
| 118 | #| I2C0 | TPM. Early init is | |
| 119 | #| | required to set up a BAR | |
| 120 | #| | for TPM communication | |
| 121 | #| I2C1 | Touchscreen | |
| 122 | #| I2C2 | Sub-board(PSensor)/WCAM | |
| 123 | #| I2C3 | Audio | |
| 124 | #| I2C5 | Trackpad | |
| 125 | #+-------------------+---------------------------+ |
| 126 | register "common_soc_config" = "{ |
| 127 | .i2c[0] = { |
| 128 | .early_init = 1, |
Leo Chou | f7e52a7 | 2022-10-04 15:42:39 +0800 | [diff] [blame] | 129 | .speed = I2C_SPEED_FAST_PLUS, |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 130 | .speed_config[0] = { |
Leo Chou | f7e52a7 | 2022-10-04 15:42:39 +0800 | [diff] [blame] | 131 | .speed = I2C_SPEED_FAST_PLUS, |
| 132 | .scl_lcnt = 55, |
| 133 | .scl_hcnt = 30, |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 134 | .sda_hold = 7, |
| 135 | } |
| 136 | }, |
| 137 | .i2c[1] = { |
| 138 | .speed = I2C_SPEED_FAST, |
| 139 | .speed_config[0] = { |
| 140 | .speed = I2C_SPEED_FAST, |
| 141 | .scl_lcnt = 157, |
| 142 | .scl_hcnt = 79, |
| 143 | .sda_hold = 7, |
| 144 | } |
| 145 | }, |
| 146 | .i2c[2] = { |
| 147 | .speed = I2C_SPEED_FAST, |
| 148 | .speed_config[0] = { |
| 149 | .speed = I2C_SPEED_FAST, |
| 150 | .scl_lcnt = 157, |
| 151 | .scl_hcnt = 79, |
| 152 | .sda_hold = 7, |
| 153 | } |
| 154 | }, |
| 155 | .i2c[3] = { |
| 156 | .speed = I2C_SPEED_FAST, |
| 157 | .speed_config[0] = { |
| 158 | .speed = I2C_SPEED_FAST, |
| 159 | .scl_lcnt = 158, |
| 160 | .scl_hcnt = 79, |
| 161 | .sda_hold = 7, |
| 162 | } |
| 163 | }, |
| 164 | .i2c[5] = { |
| 165 | .speed = I2C_SPEED_FAST, |
| 166 | .speed_config[0] = { |
| 167 | .speed = I2C_SPEED_FAST, |
| 168 | .scl_lcnt = 158, |
| 169 | .scl_hcnt = 79, |
| 170 | .sda_hold = 7, |
| 171 | } |
| 172 | }, |
| 173 | }" |
| 174 | |
| 175 | device domain 0 on |
Leo Chou | ce0315c | 2022-08-17 18:19:32 +0800 | [diff] [blame] | 176 | device ref dtt on |
| 177 | chip drivers/intel/dptf |
| 178 | ## sensor information |
| 179 | register "options.tsr[0].desc" = ""CPU"" |
| 180 | register "options.tsr[1].desc" = ""DDR"" |
| 181 | register "options.tsr[2].desc" = ""5VCharger"" |
| 182 | |
| 183 | |
| 184 | ## Passive Policy |
| 185 | register "policies.passive" = "{ |
| 186 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 10000), |
| 187 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 60000), |
| 188 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 80, 60000), |
| 189 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 15000), |
| 190 | }" |
| 191 | |
| 192 | ## Critical Policy |
| 193 | register "policies.critical" = "{ |
| 194 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 195 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 196 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 197 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 198 | }" |
| 199 | |
| 200 | register "controls.power_limits" = "{ |
| 201 | .pl1 = { |
| 202 | .min_power = 3000, |
| 203 | .max_power = 6000, |
| 204 | .time_window_min = 1 * MSECS_PER_SEC, |
| 205 | .time_window_max = 1 * MSECS_PER_SEC, |
| 206 | .granularity = 200, |
| 207 | }, |
| 208 | .pl2 = { |
| 209 | .min_power = 20000, |
| 210 | .max_power = 20000, |
| 211 | .time_window_min = 1 * MSECS_PER_SEC, |
| 212 | .time_window_max = 1 * MSECS_PER_SEC, |
| 213 | .granularity = 1000, |
| 214 | } |
| 215 | }" |
| 216 | |
| 217 | ## Charger Performance Control (Control, mA) |
| 218 | register "controls.charger_perf" = "{ |
| 219 | [0] = { 255, 3000 }, |
| 220 | [1] = { 24, 2000 }, |
| 221 | [2] = { 16, 1500 }, |
| 222 | [3] = { 8, 1000 } |
| 223 | }" |
| 224 | |
| 225 | device generic 0 on |
| 226 | probe THERMAL THERMAL_FAN_TABLE_0 |
| 227 | end |
| 228 | end |
| 229 | chip drivers/intel/dptf |
| 230 | ## sensor information |
| 231 | register "options.tsr[0].desc" = ""CPU"" |
| 232 | register "options.tsr[1].desc" = ""DDR"" |
| 233 | register "options.tsr[2].desc" = ""5VCharger"" |
| 234 | |
| 235 | # TODO: below values are initial reference values only |
| 236 | ## Active Policy |
| 237 | register "policies.active" = "{ |
| 238 | [0] = { |
| 239 | .target = DPTF_CPU, |
| 240 | .thresholds = { |
| 241 | TEMP_PCT(80, 100), |
| 242 | TEMP_PCT(75, 98), |
| 243 | TEMP_PCT(70, 86), |
| 244 | TEMP_PCT(65, 70), |
| 245 | TEMP_PCT(60, 70), |
| 246 | } |
| 247 | }, |
| 248 | [1] = { |
| 249 | .target = DPTF_TEMP_SENSOR_1, |
| 250 | .thresholds = { |
| 251 | TEMP_PCT(50, 70), |
| 252 | TEMP_PCT(47, 58), |
| 253 | TEMP_PCT(45, 47), |
| 254 | TEMP_PCT(42, 45), |
| 255 | TEMP_PCT(39, 39), |
| 256 | } |
| 257 | }, |
| 258 | [2] = { |
| 259 | .target = DPTF_TEMP_SENSOR_2, |
| 260 | .thresholds = { |
| 261 | TEMP_PCT(50, 70), |
| 262 | TEMP_PCT(47, 58), |
| 263 | TEMP_PCT(45, 47), |
| 264 | TEMP_PCT(42, 45), |
| 265 | TEMP_PCT(39, 39), |
| 266 | } |
| 267 | }, |
| 268 | }" |
| 269 | |
| 270 | ## Passive Policy |
| 271 | register "policies.passive" = "{ |
| 272 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 273 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 6000), |
| 274 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 90, 6000), |
| 275 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 90, 6000), |
| 276 | }" |
| 277 | |
| 278 | ## Critical Policy |
| 279 | register "policies.critical" = "{ |
| 280 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 281 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 282 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 283 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 284 | }" |
| 285 | |
| 286 | register "controls.power_limits" = "{ |
| 287 | .pl1 = { |
| 288 | .min_power = 3000, |
| 289 | .max_power = 15000, |
| 290 | .time_window_min = 28 * MSECS_PER_SEC, |
| 291 | .time_window_max = 32 * MSECS_PER_SEC, |
| 292 | .granularity = 200, |
| 293 | }, |
| 294 | .pl2 = { |
| 295 | .min_power = 35000, |
| 296 | .max_power = 35000, |
| 297 | .time_window_min = 28 * MSECS_PER_SEC, |
| 298 | .time_window_max = 32 * MSECS_PER_SEC, |
| 299 | .granularity = 1000, |
| 300 | } |
| 301 | }" |
| 302 | |
| 303 | ## Charger Performance Control (Control, mA) |
| 304 | register "controls.charger_perf" = "{ |
| 305 | [0] = { 255, 1700 }, |
| 306 | [1] = { 24, 1500 }, |
| 307 | [2] = { 16, 1000 }, |
| 308 | [3] = { 8, 500 } |
| 309 | }" |
| 310 | |
| 311 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 312 | register "controls.fan_perf" = "{ |
| 313 | [0] = { 100, 6000, 220, 2200, }, |
| 314 | [1] = { 92, 5500, 180, 1800, }, |
| 315 | [2] = { 85, 5000, 145, 1450, }, |
| 316 | [3] = { 70, 4400, 115, 1150, }, |
| 317 | [4] = { 56, 3900, 90, 900, }, |
| 318 | [5] = { 45, 3300, 55, 550, }, |
| 319 | [6] = { 39, 3000, 30, 300, }, |
| 320 | [7] = { 33, 2900, 15, 150, }, |
| 321 | [8] = { 10, 800, 10, 100, }, |
| 322 | [9] = { 0, 0, 0, 50, } |
| 323 | }" |
| 324 | |
| 325 | ## Fan options |
| 326 | register "options.fan.fine_grained_control" = "1" |
| 327 | register "options.fan.step_size" = "2" |
| 328 | |
| 329 | device generic 1 on |
| 330 | probe THERMAL THERMAL_FAN_TABLE_1 |
| 331 | end |
| 332 | end |
| 333 | end |
| 334 | |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 335 | device ref i2c1 on |
| 336 | chip drivers/i2c/hid |
Leo Chou | 32882c9 | 2022-11-10 15:12:17 +0800 | [diff] [blame] | 337 | register "generic.hid" = ""ELAN901C"" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 338 | register "generic.desc" = ""ELAN Touchscreen"" |
| 339 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 340 | register "generic.probed" = "1" |
| 341 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 342 | register "generic.reset_delay_ms" = "20" |
| 343 | register "generic.reset_off_delay_ms" = "2" |
| 344 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 345 | register "generic.stop_delay_ms" = "280" |
| 346 | register "generic.stop_off_delay_ms" = "2" |
| 347 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 348 | register "generic.enable_delay_ms" = "1" |
| 349 | register "generic.has_power_resource" = "1" |
| 350 | register "generic.disable_gpio_export_in_crs" = "1" |
| 351 | register "hid_desc_reg_offset" = "0x01" |
| 352 | device i2c 10 on end |
| 353 | end |
| 354 | chip drivers/i2c/hid |
| 355 | register "generic.hid" = ""GTCH7503"" |
| 356 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 357 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 358 | register "generic.probed" = "1" |
| 359 | register "generic.reset_gpio" = |
| 360 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 361 | register "generic.reset_delay_ms" = "50" |
| 362 | register "generic.enable_gpio" = |
| 363 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 364 | register "generic.enable_delay_ms" = "1" |
| 365 | register "generic.has_power_resource" = "1" |
| 366 | register "generic.disable_gpio_export_in_crs" = "1" |
| 367 | register "hid_desc_reg_offset" = "0x01" |
| 368 | device i2c 40 on end |
| 369 | end |
| 370 | chip drivers/generic/gpio_keys |
| 371 | register "name" = ""PENH"" |
| 372 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 373 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 374 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 375 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 376 | register "key.dev_name" = ""EJCT"" |
| 377 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 378 | register "key.linux_input_type" = "EV_SW" |
| 379 | register "key.label" = ""pen_eject"" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 380 | device generic 0 on |
| 381 | probe STYLUS STYLUS_PRESENT |
| 382 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 383 | end |
| 384 | end |
| 385 | device ref i2c2 on |
| 386 | chip drivers/i2c/sx9324 |
| 387 | register "desc" = ""SAR Proximity Sensor"" |
| 388 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_H19_IRQ)" |
| 389 | register "speed" = "I2C_SPEED_FAST" |
| 390 | register "uid" = "1" |
| 391 | register "reg_gnrl_ctrl0" = "0x16" |
| 392 | register "reg_gnrl_ctrl1" = "0x21" |
| 393 | register "reg_afe_ctrl0" = "0x00" |
| 394 | register "reg_afe_ctrl1" = "0x10" |
| 395 | register "reg_afe_ctrl2" = "0x00" |
| 396 | register "reg_afe_ctrl3" = "0x00" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 397 | register "reg_afe_ctrl4" = "0x47" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 398 | register "reg_afe_ctrl5" = "0x00" |
| 399 | register "reg_afe_ctrl6" = "0x00" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 400 | register "reg_afe_ctrl7" = "0x47" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 401 | register "reg_afe_ctrl8" = "0x12" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 402 | register "reg_afe_ctrl9" = "0x08" |
| 403 | register "reg_afe_ph0" = "0x3d" |
| 404 | register "reg_afe_ph1" = "0x1b" |
| 405 | register "reg_afe_ph2" = "0x1f" |
| 406 | register "reg_afe_ph3" = "0x3d" |
| 407 | register "reg_prox_ctrl0" = "0x0a" |
| 408 | register "reg_prox_ctrl1" = "0x0a" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 409 | register "reg_prox_ctrl2" = "0x90" |
| 410 | register "reg_prox_ctrl3" = "0x60" |
| 411 | register "reg_prox_ctrl4" = "0x0c" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 412 | register "reg_prox_ctrl5" = "0x00" |
| 413 | register "reg_prox_ctrl6" = "0x19" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 414 | register "reg_prox_ctrl7" = "0x58" |
| 415 | register "reg_adv_ctrl0" = "0x00" |
| 416 | register "reg_adv_ctrl1" = "0x00" |
| 417 | register "reg_adv_ctrl2" = "0x00" |
| 418 | register "reg_adv_ctrl3" = "0x00" |
| 419 | register "reg_adv_ctrl4" = "0x00" |
| 420 | register "reg_adv_ctrl5" = "0x05" |
| 421 | register "reg_adv_ctrl6" = "0x00" |
| 422 | register "reg_adv_ctrl7" = "0x00" |
| 423 | register "reg_adv_ctrl8" = "0x00" |
| 424 | register "reg_adv_ctrl9" = "0x00" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 425 | register "reg_adv_ctrl10" = "0x00" |
| 426 | register "reg_adv_ctrl11" = "0x00" |
| 427 | register "reg_adv_ctrl12" = "0x00" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 428 | register "reg_adv_ctrl13" = "0x00" |
| 429 | register "reg_adv_ctrl14" = "0x80" |
| 430 | register "reg_adv_ctrl15" = "0x0c" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 431 | register "reg_adv_ctrl16" = "0x08" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 432 | register "reg_adv_ctrl17" = "0x56" |
| 433 | register "reg_adv_ctrl18" = "0x33" |
Victor Ding | 970e33a | 2022-11-08 06:53:17 +0000 | [diff] [blame] | 434 | register "reg_adv_ctrl19" = "0x00" |
| 435 | register "reg_adv_ctrl20" = "0x00" |
| 436 | |
| 437 | register "ph0_pin" = "{1, 3, 3}" |
| 438 | register "ph1_pin" = "{3, 2, 1}" |
| 439 | register "ph2_pin" = "{3, 3, 1}" |
| 440 | register "ph3_pin" = "{1, 3, 3}" |
| 441 | register "ph01_resolution" = "1024" |
| 442 | register "ph23_resolution" = "1024" |
| 443 | register "startup_sensor" = "1" |
| 444 | register "ph01_proxraw_strength" = "2" |
| 445 | register "ph23_proxraw_strength" = "2" |
| 446 | register "avg_pos_strength" = "256" |
| 447 | register "cs_idle_sleep" = ""hi-z"" |
| 448 | register "int_comp_resistor" = ""lowest"" |
| 449 | register "input_precharge_resistor_ohms" = "4000" |
| 450 | register "input_analog_gain" = "1" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 451 | device i2c 28 on |
| 452 | probe LTE LTE_PRESENT |
| 453 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 454 | end |
| 455 | end |
| 456 | device ref i2c3 on |
| 457 | chip drivers/i2c/generic |
Leo Chou | 7c0a1fb | 2022-08-24 17:16:59 +0800 | [diff] [blame] | 458 | register "hid" = ""10EC5682"" |
| 459 | register "name" = ""RT58"" |
| 460 | register "desc" = ""Headset Codec"" |
| 461 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 462 | # Set the jd_src to RT5668_JD1 for jack detection |
| 463 | register "property_count" = "1" |
| 464 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 465 | register "property_list[0].name" = ""realtek,jd-src"" |
| 466 | register "property_list[0].integer" = "1" |
| 467 | device i2c 1a on |
| 468 | probe AUDIO MAX98357_ALC5682I |
| 469 | end |
| 470 | end |
| 471 | chip drivers/i2c/generic |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 472 | register "hid" = ""RTL5682"" |
| 473 | register "name" = ""RT58"" |
| 474 | register "desc" = ""Headset Codec"" |
| 475 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 476 | # Set the jd_src to RT5668_JD1 for jack detection |
| 477 | register "property_count" = "1" |
| 478 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 479 | register "property_list[0].name" = ""realtek,jd-src"" |
| 480 | register "property_list[0].integer" = "1" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 481 | device i2c 1a on |
| 482 | probe AUDIO ALC1019_ALC5682IVS |
| 483 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 484 | end |
| 485 | chip drivers/generic/alc1015 |
| 486 | register "hid" = ""RTL1019"" |
| 487 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 488 | device generic 0 on |
| 489 | probe AUDIO ALC1019_ALC5682IVS |
| 490 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 491 | end |
| 492 | end |
| 493 | device ref i2c5 on |
| 494 | chip drivers/i2c/generic |
| 495 | register "hid" = ""ELAN0000"" |
| 496 | register "desc" = ""ELAN Touchpad"" |
| 497 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 498 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 499 | register "detect" = "1" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 500 | device i2c 15 on end |
| 501 | end |
| 502 | chip drivers/i2c/hid |
| 503 | register "generic.hid" = ""PNP0C50"" |
| 504 | register "generic.desc" = ""Synaptics Touchpad"" |
| 505 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 506 | register "generic.wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 507 | register "generic.detect" = "1" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 508 | register "hid_desc_reg_offset" = "0x20" |
| 509 | device i2c 0x2c on end |
| 510 | end |
| 511 | end |
Leo Chou | 7c0a1fb | 2022-08-24 17:16:59 +0800 | [diff] [blame] | 512 | device ref hda on |
| 513 | chip drivers/generic/max98357a |
| 514 | register "hid" = ""MX98360A"" |
| 515 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 516 | register "sdmode_delay" = "5" |
| 517 | device generic 0 on |
| 518 | probe AUDIO MAX98357_ALC5682I |
| 519 | end |
| 520 | end |
| 521 | end |
Leo Chou | f92ea61 | 2022-07-22 15:55:59 +0800 | [diff] [blame] | 522 | device ref pcie_rp4 on |
| 523 | # PCIe 4 WLAN |
| 524 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 525 | .clk_src = 2, |
| 526 | .clk_req = 2, |
| 527 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 528 | }" |
| 529 | chip drivers/wifi/generic |
| 530 | register "wake" = "GPE0_DW1_03" |
Reka Norman | afa72ee | 2022-08-30 10:27:45 +1000 | [diff] [blame] | 531 | register "is_untrusted" = "true" |
Leo Chou | f92ea61 | 2022-07-22 15:55:59 +0800 | [diff] [blame] | 532 | device pci 00.0 on end |
| 533 | end |
| 534 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 535 | device ref pcie_rp7 on |
| 536 | # Enable SD Card PCIe 7 using clk 3 |
| 537 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 538 | .clk_src = 3, |
| 539 | .clk_req = 3, |
| 540 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 541 | }" |
| 542 | chip soc/intel/common/block/pcie/rtd3 |
| 543 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 544 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H12)" |
| 545 | register "srcclk_pin" = "3" |
Leo Chou | 3e8f8c1 | 2022-11-16 10:07:23 +0800 | [diff] [blame^] | 546 | register "enable_delay_ms" = "50" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 547 | device generic 0 on end |
| 548 | end |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 549 | probe SD_CARD SD_PRESENT |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 550 | end |
| 551 | device ref pch_espi on |
| 552 | chip ec/google/chromeec |
| 553 | use conn0 as mux_conn[0] |
| 554 | device pnp 0c09.0 on end |
| 555 | end |
| 556 | end |
| 557 | device ref pmc hidden |
| 558 | chip drivers/intel/pmc_mux |
| 559 | device generic 0 on |
| 560 | chip drivers/intel/pmc_mux/conn |
| 561 | use usb2_port1 as usb2_port |
| 562 | use tcss_usb3_port1 as usb3_port |
| 563 | device generic 0 alias conn0 on end |
| 564 | end |
| 565 | end |
| 566 | end |
| 567 | end |
| 568 | device ref tcss_xhci on |
| 569 | chip drivers/usb/acpi |
| 570 | device ref tcss_root_hub on |
| 571 | chip drivers/usb/acpi |
| 572 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 573 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 574 | register "use_custom_pld" = "true" |
| 575 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 576 | device ref tcss_usb3_port1 on end |
| 577 | end |
| 578 | end |
| 579 | end |
| 580 | end |
| 581 | device ref xhci on |
| 582 | chip drivers/usb/acpi |
| 583 | device ref xhci_root_hub on |
| 584 | chip drivers/usb/acpi |
| 585 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 586 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 587 | register "use_custom_pld" = "true" |
| 588 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 589 | device ref usb2_port1 on end |
| 590 | end |
| 591 | chip drivers/usb/acpi |
| 592 | register "desc" = ""USB2 WWAN"" |
| 593 | register "type" = "UPC_TYPE_INTERNAL" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 594 | device ref usb2_port2 on |
| 595 | probe LTE LTE_PRESENT |
| 596 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 597 | end |
| 598 | chip drivers/usb/acpi |
| 599 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 600 | register "type" = "UPC_TYPE_A" |
| 601 | register "use_custom_pld" = "true" |
| 602 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 603 | device ref usb2_port3 on end |
| 604 | end |
| 605 | chip drivers/usb/acpi |
| 606 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 607 | register "type" = "UPC_TYPE_A" |
| 608 | register "use_custom_pld" = "true" |
| 609 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 610 | device ref usb2_port4 on end |
| 611 | end |
| 612 | chip drivers/usb/acpi |
| 613 | register "desc" = ""USB2 UFC"" |
| 614 | register "type" = "UPC_TYPE_INTERNAL" |
| 615 | device ref usb2_port6 on end |
| 616 | end |
| 617 | chip drivers/usb/acpi |
| 618 | register "desc" = ""USB2 WFC"" |
| 619 | register "type" = "UPC_TYPE_INTERNAL" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 620 | device ref usb2_port7 on |
| 621 | probe WFC WFC_PRESENT |
| 622 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 623 | end |
| 624 | chip drivers/usb/acpi |
| 625 | register "desc" = ""USB2 Bluetooth"" |
| 626 | register "type" = "UPC_TYPE_INTERNAL" |
| 627 | register "reset_gpio" = |
| 628 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
Leo Chou | f92ea61 | 2022-07-22 15:55:59 +0800 | [diff] [blame] | 629 | device ref usb2_port8 on end |
| 630 | end |
| 631 | chip drivers/usb/acpi |
| 632 | register "desc" = ""CNVi Bluetooth"" |
| 633 | register "type" = "UPC_TYPE_INTERNAL" |
| 634 | register "reset_gpio" = |
| 635 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 636 | device ref usb2_port10 on end |
| 637 | end |
| 638 | chip drivers/usb/acpi |
| 639 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 640 | register "type" = "UPC_TYPE_USB3_A" |
| 641 | register "use_custom_pld" = "true" |
| 642 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 643 | device ref usb3_port1 on end |
| 644 | end |
| 645 | chip drivers/usb/acpi |
| 646 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 647 | register "type" = "UPC_TYPE_USB3_A" |
| 648 | register "use_custom_pld" = "true" |
| 649 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 650 | device ref usb3_port2 on end |
| 651 | end |
| 652 | chip drivers/usb/acpi |
| 653 | register "desc" = ""USB3 WWAN"" |
| 654 | register "type" = "UPC_TYPE_INTERNAL" |
Stanley Wu | 38155a1 | 2022-08-15 16:51:11 +0800 | [diff] [blame] | 655 | device ref usb3_port3 on |
| 656 | probe LTE LTE_PRESENT |
| 657 | end |
Stanley Wu | 8b9bc48 | 2022-06-20 21:52:19 +0800 | [diff] [blame] | 658 | end |
| 659 | end |
| 660 | end |
| 661 | end |
| 662 | end |
Stanley Wu | 8e36104 | 2022-06-08 15:56:23 +0800 | [diff] [blame] | 663 | end |