Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
| 3 | option DB_USB_ABSENT 0 |
| 4 | option DB_USB3_WITH_A 1 |
| 5 | end |
| 6 | field DB_SD 2 3 |
| 7 | option DB_SD_ABSENT 0 |
| 8 | option DB_SD_OZ711LV2LN 1 |
| 9 | option DB_SD_GL9750 2 |
| 10 | option DB_SD_RTS5232S 3 |
| 11 | end |
| 12 | field KB_BL 4 |
| 13 | option KB_BL_ABSENT 0 |
| 14 | option KB_BL_PRESENT 1 |
| 15 | end |
| 16 | field AUDIO 5 7 |
| 17 | option AUDIO_UNKNOWN 0 |
Joey Peng | af69af9 | 2021-12-30 16:14:25 +0800 | [diff] [blame] | 18 | option AUDIO_MAX98357_ALC5682I_I2S_2WAY 1 |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 19 | end |
| 20 | field KB_LAYOUT 8 9 |
| 21 | option KB_LAYOUT_DEFAULT 0 |
| 22 | end |
| 23 | field WIFI_SAR_ID 10 11 |
| 24 | option WIFI_SAR_ID_0 0 |
| 25 | option WIFI_SAR_ID_1 1 |
| 26 | option WIFI_SAR_ID_2 2 |
| 27 | option WIFI_SAR_ID_3 3 |
| 28 | end |
| 29 | field BOOT_NVME_MASK 12 |
| 30 | option BOOT_NVME_DISABLED 0 |
| 31 | option BOOT_NVME_ENABLED 1 |
| 32 | end |
| 33 | field BOOT_EMMC_MASK 13 |
| 34 | option BOOT_EMMC_DISABLED 0 |
| 35 | option BOOT_EMMC_ENABLED 1 |
| 36 | end |
| 37 | end |
Joey Peng | 900758b | 2021-11-25 11:45:06 +0800 | [diff] [blame] | 38 | chip soc/intel/alderlake |
leo.chou | 9077d65 | 2022-04-07 16:34:20 +0800 | [diff] [blame] | 39 | # Acoustic settings |
| 40 | register "acoustic_noise_mitigation" = "1" |
| 41 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 42 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 43 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 44 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 45 | register "ext_fivr_settings" = "{ |
| 46 | .configure_ext_fivr = 1, |
| 47 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 48 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 49 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 50 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 51 | FIVR_VOLTAGE_MIN_RETENTION, |
| 52 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 53 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 54 | FIVR_VOLTAGE_MIN_RETENTION, |
| 55 | .v1p05_icc_max_ma = 500, |
| 56 | .vnn_sx_voltage_mv = 1250, |
| 57 | }" |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 58 | register "tcss_aux_ori" = "1" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 59 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 60 | register "sagv" = "SaGv_Enabled" |
Joey Peng | 900758b | 2021-11-25 11:45:06 +0800 | [diff] [blame] | 61 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 62 | register "platform_pmax" = "145" |
Joey Peng | 900758b | 2021-11-25 11:45:06 +0800 | [diff] [blame] | 63 | |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 64 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable Port 1 |
| 65 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC2)" # DB USB2_C1 |
| 66 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" #DB Type-A Port A1 |
| 67 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" # Disable M.2 WWAN |
| 68 | |
| 69 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC4)" # USB3/2 Type A port A1 |
| 70 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Disable M.2 WWAN |
| 71 | |
| 72 | # Intel Common SoC Config |
| 73 | #+-------------------+---------------------------+ |
| 74 | #| Field | Value | |
| 75 | #+-------------------+---------------------------+ |
| 76 | #| I2C0 | Audio | |
Joey Peng | 51ede8a | 2022-01-18 15:22:05 +0800 | [diff] [blame] | 77 | #| I2C1 | cr50 TPM. Early init is | |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 78 | #| | required to set up a BAR | |
| 79 | #| | for TPM communication | |
Joey Peng | 51ede8a | 2022-01-18 15:22:05 +0800 | [diff] [blame] | 80 | #| I2C3 | Touchscreen | |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 81 | #| I2C5 | Trackpad | |
| 82 | #+-------------------+---------------------------+ |
| 83 | register "common_soc_config" = "{ |
| 84 | .i2c[0] = { |
| 85 | .speed = I2C_SPEED_FAST, |
| 86 | }, |
| 87 | .i2c[1] = { |
Joey Peng | 51ede8a | 2022-01-18 15:22:05 +0800 | [diff] [blame] | 88 | .early_init = 1, |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 89 | .speed = I2C_SPEED_FAST, |
Joey Peng | 51ede8a | 2022-01-18 15:22:05 +0800 | [diff] [blame] | 90 | .rise_time_ns = 600, |
| 91 | .fall_time_ns = 400, |
| 92 | .data_hold_time_ns = 50, |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 93 | }, |
| 94 | .i2c[3] = { |
| 95 | .early_init = 1, |
| 96 | .speed = I2C_SPEED_FAST, |
| 97 | }, |
| 98 | .i2c[5] = { |
| 99 | .speed = I2C_SPEED_FAST, |
| 100 | }, |
| 101 | }" |
| 102 | # I2C Port Config |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 103 | register "serial_io_i2c_mode" = "{ |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 104 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 105 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 106 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 107 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 108 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 109 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 110 | }" |
| 111 | device domain 0 on |
| 112 | device ref dtt on |
| 113 | chip drivers/intel/dptf |
| 114 | ## sensor information |
| 115 | register "options.tsr[0].desc" = ""DRAM_SOC"" |
| 116 | register "options.tsr[1].desc" = ""Ambient"" |
| 117 | register "options.tsr[2].desc" = ""Charger"" |
| 118 | register "options.tsr[3].desc" = ""WWAN"" |
| 119 | |
| 120 | # TODO: below values are initial reference values only |
| 121 | ## Active Policy |
| 122 | register "policies.active" = "{ |
| 123 | [0] = { |
| 124 | .target = DPTF_CPU, |
| 125 | .thresholds = { |
| 126 | TEMP_PCT(85, 90), |
| 127 | TEMP_PCT(80, 74), |
| 128 | TEMP_PCT(75, 74), |
| 129 | TEMP_PCT(70, 74), |
| 130 | TEMP_PCT(65, 74), |
| 131 | } |
| 132 | }, |
| 133 | [1] = { |
| 134 | .target = DPTF_TEMP_SENSOR_1, |
| 135 | .thresholds = { |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 136 | TEMP_PCT(57, 70), |
| 137 | TEMP_PCT(54, 60), |
| 138 | TEMP_PCT(48, 60), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 139 | TEMP_PCT(45, 45), |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 140 | TEMP_PCT(42, 39), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 141 | } |
| 142 | }, |
| 143 | [2] = { |
| 144 | .target = DPTF_TEMP_SENSOR_2, |
| 145 | .thresholds = { |
Joey Peng | e58de0d | 2022-03-21 14:55:22 +0800 | [diff] [blame] | 146 | TEMP_PCT(57, 70), |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 147 | TEMP_PCT(54, 60), |
| 148 | TEMP_PCT(48, 60), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 149 | TEMP_PCT(45, 45), |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 150 | TEMP_PCT(42, 39), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 151 | } |
| 152 | }, |
| 153 | [3] = { |
| 154 | .target = DPTF_TEMP_SENSOR_3, |
| 155 | .thresholds = { |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 156 | TEMP_PCT(57, 70), |
| 157 | TEMP_PCT(54, 60), |
| 158 | TEMP_PCT(48, 60), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 159 | TEMP_PCT(45, 45), |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 160 | TEMP_PCT(42, 39), |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 161 | } |
| 162 | } |
| 163 | }" |
| 164 | |
| 165 | ## Passive Policy |
| 166 | register "policies.passive" = "{ |
| 167 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 168 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 6000), |
| 169 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 90, 6000), |
| 170 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 90, 6000), |
| 171 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 6000), |
| 172 | }" |
| 173 | |
| 174 | ## Critical Policy |
| 175 | register "policies.critical" = "{ |
| 176 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 177 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 178 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 179 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 180 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 100, SHUTDOWN), |
| 181 | }" |
| 182 | |
| 183 | register "controls.power_limits" = "{ |
| 184 | .pl1 = { |
| 185 | .min_power = 3000, |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 186 | .max_power = 15000, |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 187 | .time_window_min = 28 * MSECS_PER_SEC, |
| 188 | .time_window_max = 32 * MSECS_PER_SEC, |
| 189 | .granularity = 200, |
| 190 | }, |
| 191 | .pl2 = { |
| 192 | .min_power = 55000, |
| 193 | .max_power = 55000, |
| 194 | .time_window_min = 28 * MSECS_PER_SEC, |
| 195 | .time_window_max = 32 * MSECS_PER_SEC, |
| 196 | .granularity = 1000, |
| 197 | } |
| 198 | }" |
| 199 | |
| 200 | ## Charger Performance Control (Control, mA) |
| 201 | register "controls.charger_perf" = "{ |
| 202 | [0] = { 255, 1700 }, |
| 203 | [1] = { 24, 1500 }, |
| 204 | [2] = { 16, 1000 }, |
| 205 | [3] = { 8, 500 } |
| 206 | }" |
| 207 | |
| 208 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 209 | register "controls.fan_perf" = "{ |
| 210 | [0] = { 100, 6000, 220, 2200, }, |
| 211 | [1] = { 92, 5500, 180, 1800, }, |
| 212 | [2] = { 85, 5000, 145, 1450, }, |
Joey Peng | b65c301 | 2022-01-24 16:16:15 +0800 | [diff] [blame] | 213 | [3] = { 70, 4400, 115, 1150, }, |
| 214 | [4] = { 60, 3900, 90, 900, }, |
| 215 | [5] = { 45, 3300, 55, 550, }, |
| 216 | [6] = { 39, 3000, 30, 300, }, |
| 217 | [7] = { 33, 2900, 15, 150, }, |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 218 | [8] = { 10, 800, 10, 100, }, |
| 219 | [9] = { 0, 0, 0, 50, } |
| 220 | }" |
| 221 | |
| 222 | ## Fan options |
| 223 | register "options.fan.fine_grained_control" = "1" |
| 224 | register "options.fan.step_size" = "2" |
| 225 | |
| 226 | device generic 0 alias dptf_policy on end |
| 227 | end |
| 228 | end |
| 229 | device ref pcie4_0 on |
| 230 | # Enable CPU PCIE RP 1 using CLK 0 |
| 231 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 232 | .clk_req = 0, |
| 233 | .clk_src = 0, |
Tracy Wu | ec877d6 | 2022-01-13 21:53:02 +0800 | [diff] [blame] | 234 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 235 | }" |
Joey Peng | 0251ecd | 2022-01-18 15:30:32 +0800 | [diff] [blame] | 236 | probe BOOT_NVME_MASK BOOT_NVME_ENABLED |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 237 | end |
| 238 | device ref tbt_pcie_rp0 off end |
| 239 | device ref tbt_pcie_rp1 off end |
| 240 | device ref tbt_pcie_rp2 off end |
| 241 | device ref i2c0 on |
| 242 | chip drivers/i2c/generic |
| 243 | register "hid" = ""10EC5682"" |
| 244 | register "name" = ""RT58"" |
| 245 | register "desc" = ""Headset Codec"" |
| 246 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 247 | # Set the jd_src to RT5668_JD1 for jack detection |
| 248 | register "property_count" = "1" |
| 249 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 250 | register "property_list[0].name" = ""realtek,jd-src"" |
| 251 | register "property_list[0].integer" = "1" |
| 252 | device i2c 1a on |
Joey Peng | af69af9 | 2021-12-30 16:14:25 +0800 | [diff] [blame] | 253 | probe AUDIO AUDIO_MAX98357_ALC5682I_I2S_2WAY |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 254 | end |
| 255 | end |
| 256 | end |
| 257 | device ref i2c1 on |
Joey Peng | 51ede8a | 2022-01-18 15:22:05 +0800 | [diff] [blame] | 258 | chip drivers/i2c/tpm |
| 259 | register "hid" = ""GOOG0005"" |
| 260 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 261 | device i2c 50 on end |
| 262 | end |
| 263 | end |
| 264 | device ref i2c3 on |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 265 | chip drivers/i2c/hid |
| 266 | register "generic.hid" = ""GDIX0000"" |
| 267 | register "generic.desc" = ""Goodix Touchscreen"" |
| 268 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 269 | register "generic.probed" = "1" |
| 270 | register "generic.reset_gpio" = |
| 271 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 272 | # Parameter T5 >= 180ms |
| 273 | register "generic.reset_delay_ms" = "180" |
| 274 | # Parameter T2 >= 1ms |
| 275 | register "generic.reset_off_delay_ms" = "3" |
| 276 | register "generic.enable_gpio" = |
| 277 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 278 | # Parameter T1 >= 20ms |
| 279 | register "generic.enable_delay_ms" = "20" |
| 280 | register "generic.stop_gpio" = |
| 281 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)" |
| 282 | # Parameter T4 >= 1ms |
| 283 | register "generic.stop_off_delay_ms" = "1" |
| 284 | register "generic.has_power_resource" = "1" |
| 285 | register "hid_desc_reg_offset" = "0x01" |
| 286 | device i2c 5d on end |
| 287 | end |
| 288 | chip drivers/i2c/generic |
| 289 | register "hid" = ""ELAN0001"" |
| 290 | register "desc" = ""ELAN Touchscreen"" |
| 291 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 292 | register "probed" = "1" |
| 293 | register "reset_gpio" = |
| 294 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 295 | register "reset_delay_ms" = "20" |
| 296 | register "enable_gpio" = |
| 297 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 298 | register "enable_delay_ms" = "1" |
| 299 | register "has_power_resource" = "1" |
| 300 | device i2c 10 on end |
| 301 | end |
| 302 | end |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 303 | device ref i2c5 on |
| 304 | chip drivers/i2c/generic |
| 305 | register "hid" = ""ELAN0000"" |
| 306 | register "desc" = ""ELAN Touchpad"" |
| 307 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 308 | register "wake" = "GPE0_DW2_14" |
| 309 | register "probed" = "1" |
| 310 | device i2c 15 on end |
| 311 | end |
| 312 | chip drivers/i2c/hid |
| 313 | register "generic.hid" = ""PNP0C50"" |
| 314 | register "generic.desc" = ""Synaptics Touchpad"" |
| 315 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 316 | register "generic.wake" = "GPE0_DW2_14" |
| 317 | register "generic.probed" = "1" |
| 318 | register "hid_desc_reg_offset" = "0x20" |
| 319 | device i2c 2c on end |
| 320 | end |
| 321 | end |
| 322 | device ref hda on |
| 323 | chip drivers/generic/max98357a |
| 324 | register "hid" = ""MX98357A"" |
| 325 | register "sdmode_gpio" = |
| 326 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 327 | register "sdmode_delay" = "5" |
| 328 | device generic 0 on |
Joey Peng | af69af9 | 2021-12-30 16:14:25 +0800 | [diff] [blame] | 329 | probe AUDIO AUDIO_MAX98357_ALC5682I_I2S_2WAY |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 330 | end |
| 331 | end |
| 332 | end |
| 333 | device ref pcie_rp5 on |
| 334 | chip soc/intel/common/block/pcie/rtd3 |
| 335 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" |
| 336 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H20)" |
| 337 | register "srcclk_pin" = "2" |
| 338 | device generic 0 on end |
| 339 | end |
| 340 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 341 | .clk_src = 2, |
| 342 | .clk_req = 2, |
| 343 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 344 | }" |
| 345 | end |
| 346 | device ref pcie_rp6 off end |
| 347 | device ref pcie_rp8 on |
| 348 | chip soc/intel/common/block/pcie/rtd3 |
| 349 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 350 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 351 | register "srcclk_pin" = "3" |
| 352 | device generic 0 on |
| 353 | probe DB_SD DB_SD_OZ711LV2LN |
| 354 | probe DB_SD DB_SD_GL9750 |
| 355 | probe DB_SD DB_SD_RTS5232S |
| 356 | end |
| 357 | end |
| 358 | end |
Joey Peng | 0251ecd | 2022-01-18 15:30:32 +0800 | [diff] [blame] | 359 | device ref pcie_rp9 on |
| 360 | # Enable NVMe PCIE 9 using clk 0 |
| 361 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 362 | .clk_src = 0, |
| 363 | .clk_req = 0, |
| 364 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 365 | }" |
| 366 | chip soc/intel/common/block/pcie/rtd3 |
| 367 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D11)" |
| 368 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B4)" |
| 369 | register "srcclk_pin" = "0" |
| 370 | device generic 0 on |
| 371 | probe BOOT_EMMC_MASK BOOT_EMMC_ENABLED |
| 372 | end |
| 373 | end |
| 374 | probe BOOT_EMMC_MASK BOOT_EMMC_ENABLED |
| 375 | end |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 376 | device ref pch_espi on |
| 377 | chip ec/google/chromeec |
| 378 | use conn0 as mux_conn[0] |
| 379 | use conn1 as mux_conn[1] |
| 380 | device pnp 0c09.0 on end |
| 381 | end |
| 382 | end |
| 383 | device ref pmc hidden |
| 384 | chip drivers/intel/pmc_mux |
| 385 | device generic 0 on |
| 386 | chip drivers/intel/pmc_mux/conn |
Felix Held | 30f4c53 | 2021-12-24 02:09:45 +0100 | [diff] [blame] | 387 | use usb2_port1 as usb2_port |
| 388 | use tcss_usb3_port1 as usb3_port |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 389 | device generic 0 alias conn0 on end |
| 390 | end |
| 391 | chip drivers/intel/pmc_mux/conn |
Felix Held | 30f4c53 | 2021-12-24 02:09:45 +0100 | [diff] [blame] | 392 | use usb2_port3 as usb2_port |
| 393 | use tcss_usb3_port3 as usb3_port |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 394 | device generic 2 alias conn1 on end |
| 395 | end |
| 396 | end |
| 397 | end |
| 398 | end |
| 399 | device ref tcss_xhci on |
| 400 | chip drivers/usb/acpi |
| 401 | device ref tcss_root_hub on |
| 402 | chip drivers/usb/acpi |
| 403 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 404 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 405 | register "use_custom_pld" = "true" |
| 406 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 407 | device ref tcss_usb3_port1 on end |
| 408 | end |
| 409 | chip drivers/usb/acpi |
| 410 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 411 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 412 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 413 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 414 | device ref tcss_usb3_port3 on |
| 415 | probe DB_USB DB_USB3_WITH_A |
| 416 | end |
| 417 | end |
| 418 | end |
| 419 | end |
| 420 | end |
| 421 | device ref xhci on |
| 422 | chip drivers/usb/acpi |
| 423 | device ref xhci_root_hub on |
| 424 | chip drivers/usb/acpi |
| 425 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 426 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 427 | register "use_custom_pld" = "true" |
| 428 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 429 | device ref usb2_port1 on end |
| 430 | end |
| 431 | chip drivers/usb/acpi |
| 432 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 433 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 434 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 435 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 436 | device ref usb2_port3 on |
| 437 | probe DB_USB DB_USB3_WITH_A |
| 438 | end |
| 439 | end |
| 440 | chip drivers/usb/acpi |
| 441 | register "desc" = ""USB2 Camera"" |
| 442 | register "type" = "UPC_TYPE_INTERNAL" |
| 443 | device ref usb2_port6 on |
| 444 | end |
| 445 | end |
| 446 | chip drivers/usb/acpi |
| 447 | register "desc" = ""USB2 Type-A Port (DB)"" |
| 448 | register "type" = "UPC_TYPE_A" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 449 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 450 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 451 | device ref usb2_port7 on |
| 452 | probe DB_USB DB_USB3_WITH_A |
| 453 | end |
| 454 | end |
| 455 | chip drivers/usb/acpi |
| 456 | register "desc" = ""USB2 Type-A Port (MLB)"" |
| 457 | register "type" = "UPC_TYPE_A" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 458 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 459 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 460 | device ref usb2_port9 on end |
| 461 | end |
| 462 | chip drivers/usb/acpi |
| 463 | register "desc" = ""USB2 Bluetooth"" |
| 464 | register "type" = "UPC_TYPE_INTERNAL" |
| 465 | register "reset_gpio" = |
| 466 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 467 | device ref usb2_port10 on end |
| 468 | end |
| 469 | chip drivers/usb/acpi |
| 470 | register "desc" = ""USB3 Type-A Port (MLB)"" |
| 471 | register "type" = "UPC_TYPE_USB3_A" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 472 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 473 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 474 | device ref usb3_port1 on end |
| 475 | end |
| 476 | chip drivers/usb/acpi |
| 477 | register "desc" = ""USB3 Type-A Port (DB)"" |
| 478 | register "type" = "UPC_TYPE_USB3_A" |
Subrata Banik | d55a082 | 2022-02-16 19:34:52 +0530 | [diff] [blame] | 479 | register "use_custom_pld" = "true" |
Won Chung | 575b4e9 | 2022-05-23 23:04:30 +0000 | [diff] [blame^] | 480 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | 82a283d | 2021-12-09 17:04:54 +0800 | [diff] [blame] | 481 | device ref usb3_port3 on |
| 482 | probe DB_USB DB_USB3_WITH_A |
| 483 | end |
| 484 | end |
| 485 | end |
| 486 | end |
| 487 | end |
| 488 | end |
Joey Peng | 900758b | 2021-11-25 11:45:06 +0800 | [diff] [blame] | 489 | end |