Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
| 3 | option DB_USB_ABSENT 0 |
| 4 | option DB_USB3_NO_A 1 |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 5 | option DB_USB3_1C_1A 2 |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 6 | end |
| 7 | field DB_SD 2 3 |
| 8 | option DB_SD_ABSENT 0 |
| 9 | option DB_SD_OZ711LV2LN 1 |
| 10 | end |
| 11 | field KB_BL 4 |
| 12 | option KB_BL_ABSENT 0 |
| 13 | option KB_BL_PRESENT 1 |
| 14 | end |
| 15 | field AUDIO 5 7 |
| 16 | option AUDIO_UNKNOWN 0 |
| 17 | option AUDIO_MAX98357_ALC5682I_I2S 1 |
Joey Peng | e874375 | 2021-10-13 15:46:02 +0800 | [diff] [blame] | 18 | option AUDIO_MAX98357_ALC5682I_VS_I2S 2 |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +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 |
Joey Peng | 51a43f9 | 2022-03-21 16:58:23 +0800 | [diff] [blame] | 37 | field THERMAL 16 |
| 38 | option THERMAL_FAN_TABLE_0 0 |
| 39 | option THERMAL_FAN_TABLE_1 1 |
| 40 | end |
Dan Callaghan | b00bfd0 | 2021-10-28 21:26:12 +1100 | [diff] [blame] | 41 | field HPS 17 |
| 42 | option HPS_ABSENT 0 |
| 43 | option HPS_PRESENT 1 |
| 44 | end |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 45 | end |
Kevin Chang | 819afd8 | 2021-07-16 19:37:06 +0800 | [diff] [blame] | 46 | chip soc/intel/alderlake |
Kevin Chang | ccd0905 | 2022-01-20 14:39:54 +0800 | [diff] [blame] | 47 | # Acoustic settings |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 48 | register "acoustic_noise_mitigation" = "1" |
| 49 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 50 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 51 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 52 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
leo.chou | 616c07c | 2022-05-18 09:11:31 +0800 | [diff] [blame] | 53 | register "PreWake" = "100" |
Kevin Chang | 70701eb | 2021-11-04 19:35:31 +0800 | [diff] [blame] | 54 | register "ext_fivr_settings" = "{ |
| 55 | .configure_ext_fivr = 1, |
| 56 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 57 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 58 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 59 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 60 | FIVR_VOLTAGE_MIN_RETENTION, |
| 61 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 62 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 63 | FIVR_VOLTAGE_MIN_RETENTION, |
| 64 | .v1p05_icc_max_ma = 500, |
| 65 | .vnn_sx_voltage_mv = 1250, |
| 66 | }" |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 67 | register "tcss_aux_ori" = "1" |
Joey Peng | 46f769d | 2021-09-14 22:06:34 +0800 | [diff] [blame] | 68 | 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] | 69 | register "sagv" = "SaGv_Enabled" |
Joey Peng | 46f769d | 2021-09-14 22:06:34 +0800 | [diff] [blame] | 70 | |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 71 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable Port 1 |
| 72 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC2)" # DB USB2_C1 |
| 73 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" # Disable M.2 WWAN |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 74 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # DB Type-A Port A1 |
| 75 | |
| 76 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port A1 |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 77 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Disable M.2 WWAN |
Kevin Chang | 819afd8 | 2021-07-16 19:37:06 +0800 | [diff] [blame] | 78 | |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 79 | # Intel Common SoC Config |
| 80 | #+-------------------+---------------------------+ |
| 81 | #| Field | Value | |
| 82 | #+-------------------+---------------------------+ |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 83 | #| GSPI1 | Fingerprint MCU | |
| 84 | #| I2C0 | Audio | |
Kevin Chang | 8550fbc | 2021-12-24 10:28:59 +0800 | [diff] [blame] | 85 | #| I2C1 | cr50 TPM. Early init is | |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 86 | #| | required to set up a BAR | |
| 87 | #| | for TPM communication | |
Kevin Chang | 8550fbc | 2021-12-24 10:28:59 +0800 | [diff] [blame] | 88 | #| I2C2 | HPS | |
| 89 | #| I2C3 | Touchscreen | |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 90 | #| I2C5 | Trackpad | |
| 91 | #+-------------------+---------------------------+ |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 92 | register "common_soc_config" = "{ |
| 93 | .i2c[0] = { |
| 94 | .speed = I2C_SPEED_FAST, |
| 95 | }, |
| 96 | .i2c[1] = { |
Kevin Chang | 8550fbc | 2021-12-24 10:28:59 +0800 | [diff] [blame] | 97 | .early_init = 1, |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 98 | .speed = I2C_SPEED_FAST, |
Kevin Chang | 8550fbc | 2021-12-24 10:28:59 +0800 | [diff] [blame] | 99 | .rise_time_ns = 600, |
| 100 | .fall_time_ns = 400, |
| 101 | .data_hold_time_ns = 50, |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 102 | }, |
| 103 | .i2c[2] = { |
| 104 | .speed = I2C_SPEED_FAST, |
| 105 | }, |
| 106 | .i2c[3] = { |
| 107 | .early_init = 1, |
| 108 | .speed = I2C_SPEED_FAST, |
| 109 | }, |
| 110 | .i2c[5] = { |
Joey Peng | 4337349 | 2022-01-20 18:50:43 +0800 | [diff] [blame] | 111 | .rise_time_ns = 650, |
| 112 | .fall_time_ns = 400, |
| 113 | .data_hold_time_ns = 500, |
| 114 | .speed_config[0] = { |
| 115 | .speed = I2C_SPEED_FAST, |
| 116 | .scl_lcnt = 160, |
| 117 | .scl_hcnt = 70, |
| 118 | .sda_hold = 40, |
| 119 | } |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 120 | }, |
| 121 | }" |
| 122 | # I2C Port Config |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 123 | register "serial_io_i2c_mode" = "{ |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 124 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 125 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 126 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 127 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 128 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 129 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 130 | }" |
| 131 | device domain 0 on |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 132 | device ref dtt on |
| 133 | chip drivers/intel/dptf |
| 134 | ## sensor information |
| 135 | register "options.tsr[0].desc" = ""DRAM_SOC"" |
| 136 | register "options.tsr[1].desc" = ""Ambient"" |
| 137 | register "options.tsr[2].desc" = ""Charger"" |
| 138 | register "options.tsr[3].desc" = ""WWAN"" |
| 139 | |
| 140 | # TODO: below values are initial reference values only |
| 141 | ## Active Policy |
| 142 | register "policies.active" = "{ |
| 143 | [0] = { |
| 144 | .target = DPTF_CPU, |
| 145 | .thresholds = { |
| 146 | TEMP_PCT(85, 90), |
| 147 | TEMP_PCT(80, 74), |
| 148 | TEMP_PCT(75, 74), |
| 149 | TEMP_PCT(70, 74), |
| 150 | TEMP_PCT(65, 74), |
| 151 | } |
| 152 | }, |
| 153 | [1] = { |
| 154 | .target = DPTF_TEMP_SENSOR_1, |
| 155 | .thresholds = { |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 156 | TEMP_PCT(50, 70), |
| 157 | TEMP_PCT(47, 58), |
| 158 | TEMP_PCT(45, 47), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 159 | TEMP_PCT(42, 45), |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 160 | TEMP_PCT(39, 39), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 161 | } |
| 162 | }, |
| 163 | [2] = { |
| 164 | .target = DPTF_TEMP_SENSOR_2, |
| 165 | .thresholds = { |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 166 | TEMP_PCT(50, 70), |
| 167 | TEMP_PCT(47, 58), |
| 168 | TEMP_PCT(45, 47), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 169 | TEMP_PCT(42, 45), |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 170 | TEMP_PCT(39, 39), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 171 | } |
| 172 | }, |
| 173 | [3] = { |
| 174 | .target = DPTF_TEMP_SENSOR_3, |
| 175 | .thresholds = { |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 176 | TEMP_PCT(50, 70), |
| 177 | TEMP_PCT(47, 58), |
| 178 | TEMP_PCT(45, 47), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 179 | TEMP_PCT(42, 45), |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 180 | TEMP_PCT(39, 39), |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 181 | } |
| 182 | } |
| 183 | }" |
| 184 | |
| 185 | ## Passive Policy |
| 186 | register "policies.passive" = "{ |
| 187 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 188 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 6000), |
| 189 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 90, 6000), |
| 190 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 90, 6000), |
| 191 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 6000), |
| 192 | }" |
| 193 | |
| 194 | ## Critical Policy |
| 195 | register "policies.critical" = "{ |
| 196 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 197 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 198 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 199 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 200 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 100, SHUTDOWN), |
| 201 | }" |
| 202 | |
| 203 | register "controls.power_limits" = "{ |
| 204 | .pl1 = { |
| 205 | .min_power = 3000, |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 206 | .max_power = 15000, |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 207 | .time_window_min = 28 * MSECS_PER_SEC, |
| 208 | .time_window_max = 32 * MSECS_PER_SEC, |
| 209 | .granularity = 200, |
| 210 | }, |
| 211 | .pl2 = { |
| 212 | .min_power = 55000, |
| 213 | .max_power = 55000, |
| 214 | .time_window_min = 28 * MSECS_PER_SEC, |
| 215 | .time_window_max = 32 * MSECS_PER_SEC, |
| 216 | .granularity = 1000, |
| 217 | } |
| 218 | }" |
| 219 | |
| 220 | ## Charger Performance Control (Control, mA) |
| 221 | register "controls.charger_perf" = "{ |
| 222 | [0] = { 255, 1700 }, |
| 223 | [1] = { 24, 1500 }, |
| 224 | [2] = { 16, 1000 }, |
| 225 | [3] = { 8, 500 } |
| 226 | }" |
| 227 | |
| 228 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 229 | register "controls.fan_perf" = "{ |
| 230 | [0] = { 100, 6000, 220, 2200, }, |
| 231 | [1] = { 92, 5500, 180, 1800, }, |
| 232 | [2] = { 85, 5000, 145, 1450, }, |
Kevin Chang | 219bda7 | 2021-12-27 20:05:40 +0800 | [diff] [blame] | 233 | [3] = { 70, 4400, 115, 1150, }, |
| 234 | [4] = { 56, 3900, 90, 900, }, |
| 235 | [5] = { 45, 3300, 55, 550, }, |
| 236 | [6] = { 38, 3000, 30, 300, }, |
| 237 | [7] = { 33, 2900, 15, 150, }, |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 238 | [8] = { 10, 800, 10, 100, }, |
| 239 | [9] = { 0, 0, 0, 50, } |
| 240 | }" |
| 241 | |
| 242 | ## Fan options |
| 243 | register "options.fan.fine_grained_control" = "1" |
| 244 | register "options.fan.step_size" = "2" |
| 245 | |
Joey Peng | 51a43f9 | 2022-03-21 16:58:23 +0800 | [diff] [blame] | 246 | device generic 0 on |
| 247 | probe THERMAL THERMAL_FAN_TABLE_0 |
| 248 | end |
| 249 | end |
| 250 | chip drivers/intel/dptf |
| 251 | ## sensor information |
| 252 | register "options.tsr[0].desc" = ""DRAM_SOC"" |
| 253 | register "options.tsr[1].desc" = ""Ambient"" |
| 254 | register "options.tsr[2].desc" = ""Charger"" |
| 255 | register "options.tsr[3].desc" = ""WWAN"" |
| 256 | |
| 257 | ## Active Policy |
| 258 | register "policies.active" = "{ |
| 259 | [0] = { |
| 260 | .target = DPTF_CPU, |
| 261 | .thresholds = { |
| 262 | TEMP_PCT(85, 90), |
| 263 | TEMP_PCT(80, 74), |
| 264 | TEMP_PCT(75, 74), |
| 265 | TEMP_PCT(70, 74), |
| 266 | TEMP_PCT(65, 74), |
| 267 | } |
| 268 | }, |
| 269 | [1] = { |
| 270 | .target = DPTF_TEMP_SENSOR_1, |
| 271 | .thresholds = { |
| 272 | TEMP_PCT(57, 70), |
| 273 | TEMP_PCT(54, 60), |
| 274 | TEMP_PCT(48, 60), |
| 275 | TEMP_PCT(45, 45), |
| 276 | TEMP_PCT(42, 39), |
| 277 | } |
| 278 | }, |
| 279 | [2] = { |
| 280 | .target = DPTF_TEMP_SENSOR_2, |
| 281 | .thresholds = { |
| 282 | TEMP_PCT(57, 70), |
| 283 | TEMP_PCT(54, 50), |
| 284 | TEMP_PCT(48, 60), |
| 285 | TEMP_PCT(45, 45), |
| 286 | TEMP_PCT(42, 39), |
| 287 | } |
| 288 | }, |
| 289 | [3] = { |
| 290 | .target = DPTF_TEMP_SENSOR_3, |
| 291 | .thresholds = { |
| 292 | TEMP_PCT(57, 70), |
| 293 | TEMP_PCT(54, 60), |
| 294 | TEMP_PCT(48, 60), |
| 295 | TEMP_PCT(45, 45), |
| 296 | TEMP_PCT(42, 39), |
| 297 | } |
| 298 | } |
| 299 | }" |
| 300 | |
| 301 | ## Passive Policy |
| 302 | register "policies.passive" = "{ |
| 303 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 304 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 6000), |
| 305 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 90, 6000), |
| 306 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 90, 6000), |
| 307 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 6000), |
| 308 | }" |
| 309 | |
| 310 | ## Critical Policy |
| 311 | register "policies.critical" = "{ |
| 312 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 313 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 314 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 315 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 316 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 100, SHUTDOWN), |
| 317 | }" |
| 318 | |
| 319 | register "controls.power_limits" = "{ |
| 320 | .pl1 = { |
| 321 | .min_power = 3000, |
| 322 | .max_power = 15000, |
| 323 | .time_window_min = 28 * MSECS_PER_SEC, |
| 324 | .time_window_max = 32 * MSECS_PER_SEC, |
| 325 | .granularity = 200, |
| 326 | }, |
| 327 | .pl2 = { |
| 328 | .min_power = 55000, |
| 329 | .max_power = 55000, |
| 330 | .time_window_min = 28 * MSECS_PER_SEC, |
| 331 | .time_window_max = 32 * MSECS_PER_SEC, |
| 332 | .granularity = 1000, |
| 333 | } |
| 334 | }" |
| 335 | |
| 336 | ## Charger Performance Control (Control, mA) |
| 337 | register "controls.charger_perf" = "{ |
| 338 | [0] = { 255, 1700 }, |
| 339 | [1] = { 24, 1500 }, |
| 340 | [2] = { 16, 1000 }, |
| 341 | [3] = { 8, 500 } |
| 342 | }" |
| 343 | |
| 344 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 345 | register "controls.fan_perf" = "{ |
| 346 | [0] = { 100, 6000, 220, 2200, }, |
| 347 | [1] = { 92, 5500, 180, 1800, }, |
| 348 | [2] = { 85, 5000, 145, 1450, }, |
| 349 | [3] = { 70, 4400, 115, 1150, }, |
| 350 | [4] = { 56, 3900, 90, 900, }, |
| 351 | [5] = { 45, 3300, 55, 550, }, |
| 352 | [6] = { 38, 3000, 30, 300, }, |
| 353 | [7] = { 33, 2900, 15, 150, }, |
| 354 | [8] = { 10, 800, 10, 100, }, |
| 355 | [9] = { 0, 0, 0, 50, } |
| 356 | }" |
| 357 | |
| 358 | ## Fan options |
| 359 | register "options.fan.fine_grained_control" = "1" |
| 360 | register "options.fan.step_size" = "2" |
| 361 | |
| 362 | device generic 1 on |
| 363 | probe THERMAL THERMAL_FAN_TABLE_1 |
| 364 | end |
Kevin Chang | e3bb49e | 2021-10-15 13:51:49 +0800 | [diff] [blame] | 365 | end |
| 366 | end |
Joey Peng | 7bca1e4 | 2021-11-08 15:21:32 +0800 | [diff] [blame] | 367 | device ref pcie4_0 on |
| 368 | # Enable CPU PCIE RP 1 using CLK 0 |
| 369 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 370 | .clk_req = 0, |
| 371 | .clk_src = 0, |
Tracy Wu | ec877d6 | 2022-01-13 21:53:02 +0800 | [diff] [blame] | 372 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Joey Peng | 7bca1e4 | 2021-11-08 15:21:32 +0800 | [diff] [blame] | 373 | }" |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 374 | probe BOOT_NVME_MASK BOOT_NVME_ENABLED |
Joey Peng | 7bca1e4 | 2021-11-08 15:21:32 +0800 | [diff] [blame] | 375 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 376 | device ref tbt_pcie_rp0 off end |
| 377 | device ref tbt_pcie_rp1 off end |
| 378 | device ref tbt_pcie_rp2 off end |
| 379 | device ref i2c0 on |
| 380 | chip drivers/i2c/generic |
| 381 | register "hid" = ""10EC5682"" |
| 382 | register "name" = ""RT58"" |
| 383 | register "desc" = ""Headset Codec"" |
| 384 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 385 | # Set the jd_src to RT5668_JD1 for jack detection |
| 386 | register "property_count" = "1" |
| 387 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 388 | register "property_list[0].name" = ""realtek,jd-src"" |
| 389 | register "property_list[0].integer" = "1" |
| 390 | device i2c 1a on |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 391 | probe AUDIO AUDIO_MAX98357_ALC5682I_I2S |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 392 | end |
| 393 | end |
Joey Peng | e874375 | 2021-10-13 15:46:02 +0800 | [diff] [blame] | 394 | chip drivers/i2c/generic |
| 395 | register "hid" = ""RTL5682"" |
| 396 | register "name" = ""RT58"" |
| 397 | register "desc" = ""Headset Codec"" |
| 398 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 399 | # Set the jd_src to RT5668_JD1 for jack detection |
| 400 | register "property_count" = "1" |
| 401 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 402 | register "property_list[0].name" = ""realtek,jd-src"" |
| 403 | register "property_list[0].integer" = "1" |
| 404 | device i2c 1a on |
| 405 | probe AUDIO AUDIO_MAX98357_ALC5682I_VS_I2S |
| 406 | end |
| 407 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 408 | end |
| 409 | device ref i2c1 on |
Kevin Chang | 8550fbc | 2021-12-24 10:28:59 +0800 | [diff] [blame] | 410 | chip drivers/i2c/tpm |
| 411 | register "hid" = ""GOOG0005"" |
| 412 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 413 | device i2c 50 on end |
| 414 | end |
| 415 | end |
| 416 | device ref i2c2 on |
| 417 | chip drivers/i2c/generic |
| 418 | register "hid" = ""GOOG0020"" |
| 419 | register "desc" = ""Chrome OS HPS"" |
| 420 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E7)" # EN_HPS_PWR |
| 421 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E3_IRQ)" # HPS_INT_ODL |
| 422 | # HPS uses I2C addresses 0x30 and 0x51. |
| 423 | # The address we provide here is not significant because |
| 424 | # neither coreboot nor Linux have a driver for HPS, |
| 425 | # it's only used from userspace. |
| 426 | device i2c 30 on |
| 427 | probe HPS HPS_PRESENT |
| 428 | end |
| 429 | end |
| 430 | end |
| 431 | device ref i2c3 on |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 432 | chip drivers/i2c/hid |
| 433 | register "generic.hid" = ""GDIX0000"" |
| 434 | register "generic.desc" = ""Goodix Touchscreen"" |
| 435 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 436 | register "generic.probed" = "1" |
| 437 | register "generic.reset_gpio" = |
| 438 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 439 | # Parameter T5 >= 180ms |
| 440 | register "generic.reset_delay_ms" = "180" |
| 441 | # Parameter T2 >= 1ms |
| 442 | register "generic.reset_off_delay_ms" = "3" |
| 443 | register "generic.enable_gpio" = |
| 444 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 445 | # Parameter T1 >= 20ms |
| 446 | register "generic.enable_delay_ms" = "20" |
| 447 | register "generic.stop_gpio" = |
| 448 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)" |
| 449 | # Parameter T4 >= 1ms |
| 450 | register "generic.stop_off_delay_ms" = "1" |
| 451 | register "generic.has_power_resource" = "1" |
Tim Wawrzynczak | a7e85d4 | 2021-12-16 11:17:07 -0700 | [diff] [blame] | 452 | register "generic.disable_gpio_export_in_crs" = "1" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 453 | register "hid_desc_reg_offset" = "0x01" |
| 454 | device i2c 5d on end |
| 455 | end |
| 456 | chip drivers/i2c/generic |
| 457 | register "hid" = ""ELAN0001"" |
| 458 | register "desc" = ""ELAN Touchscreen"" |
| 459 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 460 | register "probed" = "1" |
| 461 | register "reset_gpio" = |
| 462 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 463 | register "reset_delay_ms" = "20" |
| 464 | register "enable_gpio" = |
| 465 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 466 | register "enable_delay_ms" = "1" |
| 467 | register "has_power_resource" = "1" |
Tim Wawrzynczak | a7e85d4 | 2021-12-16 11:17:07 -0700 | [diff] [blame] | 468 | register "disable_gpio_export_in_crs" = "1" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 469 | device i2c 10 on end |
| 470 | end |
| 471 | end |
| 472 | device ref i2c5 on |
| 473 | chip drivers/i2c/generic |
| 474 | register "hid" = ""ELAN0000"" |
| 475 | register "desc" = ""ELAN Touchpad"" |
| 476 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
Joey Peng | 0087de8 | 2021-11-16 13:51:12 +0800 | [diff] [blame] | 477 | register "wake" = "GPE0_DW2_14" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 478 | register "probed" = "1" |
| 479 | device i2c 15 on end |
| 480 | end |
| 481 | chip drivers/i2c/hid |
| 482 | register "generic.hid" = ""PNP0C50"" |
| 483 | register "generic.desc" = ""Synaptics Touchpad"" |
| 484 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
Joey Peng | 0087de8 | 2021-11-16 13:51:12 +0800 | [diff] [blame] | 485 | register "generic.wake" = "GPE0_DW2_14" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 486 | register "generic.probed" = "1" |
| 487 | register "hid_desc_reg_offset" = "0x20" |
| 488 | device i2c 2c on end |
| 489 | end |
| 490 | end |
| 491 | device ref hda on |
| 492 | chip drivers/generic/max98357a |
| 493 | register "hid" = ""MX98357A"" |
| 494 | register "sdmode_gpio" = |
| 495 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 496 | register "sdmode_delay" = "5" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 497 | device generic 0 on |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 498 | probe AUDIO AUDIO_MAX98357_ALC5682I_I2S |
Joey Peng | b0c1e73 | 2021-10-27 15:38:08 +0800 | [diff] [blame] | 499 | probe AUDIO AUDIO_MAX98357_ALC5682I_VS_I2S |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 500 | end |
| 501 | end |
| 502 | end |
| 503 | device ref pcie_rp5 on |
| 504 | chip soc/intel/common/block/pcie/rtd3 |
| 505 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" |
| 506 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H20)" |
| 507 | register "srcclk_pin" = "2" |
| 508 | device generic 0 on end |
| 509 | end |
| 510 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 511 | .clk_src = 2, |
| 512 | .clk_req = 2, |
| 513 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 514 | }" |
| 515 | end |
| 516 | device ref pcie_rp6 off end |
| 517 | device ref pcie_rp8 on |
| 518 | chip soc/intel/common/block/pcie/rtd3 |
| 519 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 520 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 521 | register "srcclk_pin" = "3" |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 522 | device generic 0 on |
| 523 | probe DB_SD DB_SD_OZ711LV2LN |
| 524 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 525 | end |
| 526 | end |
| 527 | device ref pcie_rp9 on |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 528 | # Enable NVMe PCIE 9 using clk 0 |
| 529 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 530 | .clk_src = 0, |
| 531 | .clk_req = 0, |
| 532 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Kevin Chang | 1f54599 | 2022-03-22 11:22:02 +0800 | [diff] [blame] | 533 | .pcie_rp_aspm = ASPM_L1, |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 534 | }" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 535 | chip soc/intel/common/block/pcie/rtd3 |
| 536 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D11)" |
| 537 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B4)" |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 538 | register "srcclk_pin" = "0" |
Subrata Banik | f887879 | 2022-06-20 06:46:03 +0000 | [diff] [blame^] | 539 | register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 540 | device generic 0 on |
| 541 | probe BOOT_EMMC_MASK BOOT_EMMC_ENABLED |
| 542 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 543 | end |
Kevin Chang | f1edd4f | 2021-12-24 20:45:00 +0800 | [diff] [blame] | 544 | probe BOOT_EMMC_MASK BOOT_EMMC_ENABLED |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 545 | end |
| 546 | device ref gspi1 on |
| 547 | chip drivers/spi/acpi |
| 548 | register "name" = ""CRFP"" |
| 549 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 550 | register "uid" = "1" |
| 551 | register "compat_string" = ""google,cros-ec-spi"" |
| 552 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 553 | register "wake" = "GPE0_DW2_15" |
| 554 | device spi 0 on end |
| 555 | end # FPMCU |
| 556 | end |
| 557 | device ref pch_espi on |
| 558 | chip ec/google/chromeec |
| 559 | use conn0 as mux_conn[0] |
| 560 | use conn1 as mux_conn[1] |
| 561 | device pnp 0c09.0 on end |
| 562 | end |
| 563 | end |
| 564 | device ref pmc hidden |
| 565 | chip drivers/intel/pmc_mux |
| 566 | device generic 0 on |
| 567 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 568 | use usb2_port1 as usb2_port |
| 569 | use tcss_usb3_port1 as usb3_port |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 570 | device generic 0 alias conn0 on end |
| 571 | end |
| 572 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 573 | use usb2_port3 as usb2_port |
| 574 | use tcss_usb3_port3 as usb3_port |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 575 | device generic 2 alias conn1 on end |
| 576 | end |
| 577 | end |
| 578 | end |
| 579 | end |
| 580 | device ref tcss_xhci on |
| 581 | chip drivers/usb/acpi |
| 582 | device ref tcss_root_hub on |
| 583 | chip drivers/usb/acpi |
| 584 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 585 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 586 | register "use_custom_pld" = "true" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 587 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 588 | device ref tcss_usb3_port1 on end |
| 589 | end |
| 590 | chip drivers/usb/acpi |
| 591 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 592 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 593 | register "use_custom_pld" = "true" |
Won Chung | 0d30339 | 2022-05-23 22:57:55 +0000 | [diff] [blame] | 594 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 595 | device ref tcss_usb3_port3 on |
| 596 | probe DB_USB DB_USB3_NO_A |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 597 | probe DB_USB DB_USB3_1C_1A |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 598 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 599 | end |
| 600 | end |
| 601 | end |
| 602 | end |
| 603 | device ref xhci on |
| 604 | chip drivers/usb/acpi |
| 605 | device ref xhci_root_hub on |
| 606 | chip drivers/usb/acpi |
| 607 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 608 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 609 | register "use_custom_pld" = "true" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 610 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 611 | device ref usb2_port1 on end |
| 612 | end |
| 613 | chip drivers/usb/acpi |
| 614 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 615 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 616 | register "use_custom_pld" = "true" |
Won Chung | 0d30339 | 2022-05-23 22:57:55 +0000 | [diff] [blame] | 617 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 618 | device ref usb2_port3 on |
| 619 | probe DB_USB DB_USB3_NO_A |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 620 | probe DB_USB DB_USB3_1C_1A |
Joey Peng | fe2d0ec | 2021-09-02 14:19:37 +0800 | [diff] [blame] | 621 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 622 | end |
| 623 | chip drivers/usb/acpi |
| 624 | register "desc" = ""USB2 Camera"" |
| 625 | register "type" = "UPC_TYPE_INTERNAL" |
| 626 | device ref usb2_port6 on |
| 627 | end |
| 628 | end |
| 629 | chip drivers/usb/acpi |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 630 | register "desc" = ""USB2 Type-A Port (DB)"" |
| 631 | register "type" = "UPC_TYPE_A" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 632 | register "use_custom_pld" = "true" |
Won Chung | 0d30339 | 2022-05-23 22:57:55 +0000 | [diff] [blame] | 633 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 634 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 635 | device ref usb2_port7 on |
| 636 | probe DB_USB DB_USB3_1C_1A |
| 637 | end |
| 638 | end |
| 639 | chip drivers/usb/acpi |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 640 | register "desc" = ""USB2 Type-A Port (MLB)"" |
| 641 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 642 | register "use_custom_pld" = "true" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 643 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 644 | device ref usb2_port9 on end |
| 645 | end |
| 646 | chip drivers/usb/acpi |
| 647 | register "desc" = ""USB2 Bluetooth"" |
| 648 | register "type" = "UPC_TYPE_INTERNAL" |
| 649 | register "reset_gpio" = |
| 650 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 651 | device ref usb2_port10 on end |
| 652 | end |
| 653 | chip drivers/usb/acpi |
| 654 | register "desc" = ""USB3 Type-A Port (MLB)"" |
| 655 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 656 | register "use_custom_pld" = "true" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 657 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 658 | device ref usb3_port1 on end |
| 659 | end |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 660 | chip drivers/usb/acpi |
| 661 | register "desc" = ""USB3 Type-A Port (DB)"" |
| 662 | register "type" = "UPC_TYPE_USB3_A" |
Subrata Banik | f04faa1 | 2022-02-16 19:17:29 +0530 | [diff] [blame] | 663 | register "use_custom_pld" = "true" |
Won Chung | 0d30339 | 2022-05-23 22:57:55 +0000 | [diff] [blame] | 664 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Joey Peng | efe0fe2 | 2022-01-27 10:59:38 +0800 | [diff] [blame] | 665 | device ref usb3_port3 on |
| 666 | probe DB_USB DB_USB3_1C_1A |
| 667 | end |
| 668 | end |
Joey Peng | e026035 | 2021-08-04 17:44:18 +0800 | [diff] [blame] | 669 | end |
| 670 | end |
| 671 | end |
| 672 | end |
Kevin Chang | 819afd8 | 2021-07-16 19:37:06 +0800 | [diff] [blame] | 673 | end |