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