Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
| 3 | option DB_NONE 0 |
| 4 | option DB_1C_1A 1 |
| 5 | option DB_1A_HDMI 3 |
| 6 | end |
| 7 | end |
| 8 | |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 9 | chip soc/intel/alderlake |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 10 | register "sagv" = "SaGv_Enabled" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 11 | |
Reka Norman | 390c3f2 | 2022-03-30 12:44:24 +1100 | [diff] [blame] | 12 | # Bit 0 - C0 has no redriver, so enable SBU muxing in the SoC. |
| 13 | # Bit 2 - C1 has a redriver which does SBU muxing. |
| 14 | # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1. |
| 15 | register "tcss_aux_ori" = "1" |
| 16 | |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 17 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 18 | |
| 19 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WFC |
Reka Norman | a909c7f | 2022-03-04 13:18:50 +1100 | [diff] [blame] | 20 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
Jesper Lin | 49d0204 | 2022-06-17 11:32:24 +0800 | [diff] [blame^] | 21 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 22 | |
V Sowmya | fe97ad3 | 2022-05-17 14:14:39 +0530 | [diff] [blame] | 23 | # Configure external V1P05/Vnn/VnnSx Rails |
| 24 | register "ext_fivr_settings" = "{ |
| 25 | .configure_ext_fivr = 1, |
| 26 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 27 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 28 | .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 29 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL, |
| 30 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE, |
| 31 | .v1p05_voltage_mv = 1050, |
| 32 | .vnn_voltage_mv = 780, |
| 33 | .vnn_sx_voltage_mv = 1050, |
| 34 | .v1p05_icc_max_ma = 500, |
| 35 | .vnn_icc_max_ma = 500, |
| 36 | }" |
| 37 | |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 38 | # Intel Common SoC Config |
| 39 | #+-------------------+---------------------------+ |
| 40 | #| Field | Value | |
| 41 | #+-------------------+---------------------------+ |
| 42 | #| I2C0 | TPM. Early init is | |
| 43 | #| | required to set up a BAR | |
| 44 | #| | for TPM communication | |
| 45 | #| I2C1 | Touchscreen | |
| 46 | #| I2C2 | Sub-board(PSensor)/WCAM | |
| 47 | #| I2C3 | Audio | |
| 48 | #| I2C5 | Trackpad | |
| 49 | #+-------------------+---------------------------+ |
| 50 | register "common_soc_config" = "{ |
| 51 | .i2c[0] = { |
| 52 | .early_init = 1, |
| 53 | .speed = I2C_SPEED_FAST, |
| 54 | .speed_config[0] = { |
| 55 | .speed = I2C_SPEED_FAST, |
| 56 | .scl_lcnt = 158, |
| 57 | .scl_hcnt = 79, |
| 58 | .sda_hold = 7, |
| 59 | } |
| 60 | }, |
| 61 | .i2c[1] = { |
| 62 | .speed = I2C_SPEED_FAST, |
| 63 | .speed_config[0] = { |
| 64 | .speed = I2C_SPEED_FAST, |
| 65 | .scl_lcnt = 160, |
| 66 | .scl_hcnt = 79, |
| 67 | .sda_hold = 7, |
| 68 | } |
| 69 | }, |
| 70 | .i2c[3] = { |
| 71 | .speed = I2C_SPEED_FAST, |
| 72 | .speed_config[0] = { |
| 73 | .speed = I2C_SPEED_FAST, |
| 74 | .scl_lcnt = 157, |
| 75 | .scl_hcnt = 79, |
| 76 | .sda_hold = 7, |
| 77 | } |
| 78 | }, |
| 79 | .i2c[5] = { |
| 80 | .speed = I2C_SPEED_FAST, |
| 81 | .speed_config[0] = { |
| 82 | .speed = I2C_SPEED_FAST, |
| 83 | .scl_lcnt = 152, |
| 84 | .scl_hcnt = 79, |
| 85 | .sda_hold = 7, |
| 86 | } |
| 87 | }, |
| 88 | }" |
| 89 | |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 90 | device domain 0 on |
Vidya Gopalakrishnan | 295a750 | 2022-05-18 18:38:38 +0530 | [diff] [blame] | 91 | device ref dtt on |
| 92 | chip drivers/intel/dptf |
| 93 | ## sensor information |
| 94 | register "options.tsr[0].desc" = ""Memory"" |
| 95 | register "options.tsr[1].desc" = ""Charger"" |
| 96 | register "options.tsr[2].desc" = ""Ambient"" |
| 97 | |
| 98 | # TODO: below values are initial reference values only |
| 99 | ## Passive Policy |
| 100 | register "policies.passive" = "{ |
| 101 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 102 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 103 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 104 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 105 | }" |
| 106 | |
| 107 | ## Critical Policy |
| 108 | register "policies.critical" = "{ |
| 109 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 110 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 111 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 112 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 113 | }" |
| 114 | |
| 115 | register "controls.power_limits" = "{ |
| 116 | .pl1 = { |
| 117 | .min_power = 3000, |
| 118 | .max_power = 6000, |
| 119 | .time_window_min = 28 * MSECS_PER_SEC, |
| 120 | .time_window_max = 32 * MSECS_PER_SEC, |
| 121 | .granularity = 200 |
| 122 | }, |
| 123 | .pl2 = { |
| 124 | .min_power = 25000, |
| 125 | .max_power = 25000, |
| 126 | .time_window_min = 28 * MSECS_PER_SEC, |
| 127 | .time_window_max = 32 * MSECS_PER_SEC, |
| 128 | .granularity = 1000 |
| 129 | } |
| 130 | }" |
| 131 | |
| 132 | ## Charger Performance Control (Control, mA) |
| 133 | register "controls.charger_perf" = "{ |
| 134 | [0] = { 255, 1700 }, |
| 135 | [1] = { 24, 1500 }, |
| 136 | [2] = { 16, 1000 }, |
| 137 | [3] = { 8, 500 } |
| 138 | }" |
| 139 | |
| 140 | device generic 0 on end |
| 141 | end |
| 142 | end |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 143 | device ref i2c1 on |
| 144 | chip drivers/i2c/hid |
| 145 | register "generic.hid" = ""GDIX0000"" |
| 146 | register "generic.desc" = ""Goodix Touchscreen"" |
| 147 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 148 | register "generic.probed" = "1" |
| 149 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 150 | register "generic.enable_delay_ms" = "20" |
| 151 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 152 | register "generic.reset_delay_ms" = "180" |
| 153 | register "generic.reset_off_delay_ms" = "3" |
| 154 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 155 | register "generic.stop_off_delay_ms" = "1" |
| 156 | register "generic.has_power_resource" = "1" |
| 157 | register "hid_desc_reg_offset" = "0x01" |
| 158 | device i2c 5d on end |
| 159 | end |
Reka Norman | 07bb783 | 2022-04-05 19:28:17 +1000 | [diff] [blame] | 160 | chip drivers/generic/gpio_keys |
| 161 | register "name" = ""PENH"" |
| 162 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 163 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 164 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
Eric Lai | 8698a6f | 2022-05-20 09:08:35 +0800 | [diff] [blame] | 165 | register "key.wakeup_event_action" = "EV_ACT_ANY" |
Reka Norman | 07bb783 | 2022-04-05 19:28:17 +1000 | [diff] [blame] | 166 | register "key.dev_name" = ""EJCT"" |
| 167 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 168 | register "key.linux_input_type" = "EV_SW" |
| 169 | register "key.label" = ""pen_eject"" |
| 170 | device generic 0 on end |
| 171 | end |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 172 | end |
| 173 | device ref i2c3 on |
| 174 | chip drivers/i2c/generic |
| 175 | register "hid" = ""RTL5682"" |
| 176 | register "name" = ""RT58"" |
| 177 | register "desc" = ""Headset Codec"" |
| 178 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 179 | # Set the jd_src to RT5668_JD1 for jack detection |
| 180 | register "property_count" = "1" |
| 181 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 182 | register "property_list[0].name" = ""realtek,jd-src"" |
| 183 | register "property_list[0].integer" = "1" |
| 184 | device i2c 1a on end |
| 185 | end |
| 186 | chip drivers/generic/alc1015 |
| 187 | register "hid" = ""RTL1019"" |
| 188 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 189 | device generic 0 on end |
| 190 | end |
| 191 | end |
| 192 | device ref i2c5 on |
| 193 | chip drivers/i2c/generic |
| 194 | register "hid" = ""ELAN0000"" |
| 195 | register "desc" = ""ELAN Touchpad"" |
| 196 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 197 | register "wake" = "GPE0_DW2_14" |
| 198 | register "probed" = "1" |
| 199 | device i2c 15 on end |
| 200 | end |
| 201 | end |
| 202 | device ref pcie_rp4 on |
| 203 | # PCIe 4 WLAN |
| 204 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 205 | .clk_src = 2, |
| 206 | .clk_req = 2, |
| 207 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 208 | }" |
| 209 | chip drivers/wifi/generic |
| 210 | register "wake" = "GPE0_DW1_03" |
| 211 | device pci 00.0 on end |
| 212 | end |
| 213 | chip soc/intel/common/block/pcie/rtd3 |
| 214 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" |
| 215 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H20)" |
| 216 | register "srcclk_pin" = "2" |
| 217 | device generic 0 on end |
| 218 | end |
| 219 | end |
| 220 | device ref pch_espi on |
| 221 | chip ec/google/chromeec |
| 222 | use conn0 as mux_conn[0] |
| 223 | use conn1 as mux_conn[1] |
| 224 | device pnp 0c09.0 on end |
| 225 | end |
| 226 | end |
| 227 | device ref pmc hidden |
| 228 | chip drivers/intel/pmc_mux |
| 229 | device generic 0 on |
| 230 | chip drivers/intel/pmc_mux/conn |
| 231 | use usb2_port1 as usb2_port |
| 232 | use tcss_usb3_port1 as usb3_port |
| 233 | device generic 0 alias conn0 on end |
| 234 | end |
| 235 | chip drivers/intel/pmc_mux/conn |
| 236 | use usb2_port2 as usb2_port |
| 237 | use tcss_usb3_port2 as usb3_port |
Reka Norman | cb51189 | 2022-03-30 13:23:32 +1100 | [diff] [blame] | 238 | device generic 1 alias conn1 on |
| 239 | probe DB_USB DB_1C_1A |
| 240 | end |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 241 | end |
| 242 | end |
| 243 | end |
| 244 | end |
| 245 | device ref tcss_xhci on |
| 246 | chip drivers/usb/acpi |
| 247 | device ref tcss_root_hub on |
| 248 | chip drivers/usb/acpi |
| 249 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 250 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 251 | register "use_custom_pld" = "true" |
| 252 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 253 | device ref tcss_usb3_port1 on end |
| 254 | end |
| 255 | chip drivers/usb/acpi |
| 256 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 257 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 258 | register "use_custom_pld" = "true" |
| 259 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 260 | device ref tcss_usb3_port2 on end |
| 261 | end |
| 262 | end |
| 263 | end |
| 264 | end |
| 265 | device ref xhci on |
| 266 | chip drivers/usb/acpi |
| 267 | device ref xhci_root_hub on |
| 268 | chip drivers/usb/acpi |
| 269 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 270 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 271 | register "use_custom_pld" = "true" |
| 272 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 273 | device ref usb2_port1 on end |
| 274 | end |
| 275 | chip drivers/usb/acpi |
| 276 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 277 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 278 | register "use_custom_pld" = "true" |
| 279 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 280 | device ref usb2_port2 on |
| 281 | probe DB_USB DB_1C_1A |
| 282 | end |
| 283 | end |
| 284 | chip drivers/usb/acpi |
| 285 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 286 | register "type" = "UPC_TYPE_A" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 287 | register "use_custom_pld" = "true" |
| 288 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 289 | device ref usb2_port3 on end |
| 290 | end |
| 291 | chip drivers/usb/acpi |
| 292 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 293 | register "type" = "UPC_TYPE_A" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 294 | register "use_custom_pld" = "true" |
| 295 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 296 | device ref usb2_port4 on end |
| 297 | end |
| 298 | chip drivers/usb/acpi |
| 299 | register "desc" = ""USB2 UFC"" |
| 300 | register "type" = "UPC_TYPE_INTERNAL" |
| 301 | device ref usb2_port6 on end |
| 302 | end |
| 303 | chip drivers/usb/acpi |
| 304 | register "desc" = ""USB2 WFC"" |
| 305 | register "type" = "UPC_TYPE_INTERNAL" |
| 306 | device ref usb2_port7 on end |
| 307 | end |
| 308 | chip drivers/usb/acpi |
| 309 | register "desc" = ""USB2 Bluetooth"" |
| 310 | register "type" = "UPC_TYPE_INTERNAL" |
| 311 | register "reset_gpio" = |
| 312 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 313 | device ref usb2_port8 on end |
| 314 | end |
| 315 | chip drivers/usb/acpi |
Jesper Lin | 49d0204 | 2022-06-17 11:32:24 +0800 | [diff] [blame^] | 316 | register "desc" = ""CNVi Bluetooth"" |
| 317 | register "type" = "UPC_TYPE_INTERNAL" |
| 318 | register "reset_gpio" = |
| 319 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 320 | device ref usb2_port10 on end |
| 321 | end |
| 322 | chip drivers/usb/acpi |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 323 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 324 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 325 | register "use_custom_pld" = "true" |
| 326 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 327 | device ref usb3_port1 on end |
| 328 | end |
| 329 | chip drivers/usb/acpi |
| 330 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 331 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 8305593 | 2022-05-25 16:50:57 +0000 | [diff] [blame] | 332 | register "use_custom_pld" = "true" |
| 333 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Reka Norman | b63d5f8 | 2022-02-07 09:35:22 +1100 | [diff] [blame] | 334 | device ref usb3_port2 on end |
| 335 | end |
| 336 | end |
| 337 | end |
| 338 | end |
| 339 | end |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 340 | end |