Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 1 | chip soc/intel/alderlake |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame^] | 2 | register "sagv" = "SaGv_Enabled" |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 3 | |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame^] | 4 | # Bit 0 - C0 has no redriver, so enable SBU muxing in the SoC. |
| 5 | # Bit 2 - C1 has a redriver which does SBU muxing. |
| 6 | # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1. |
| 7 | register "tcss_aux_ori" = "1" |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 8 | |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame^] | 9 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 10 | |
| 11 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # USB2 WWAN |
| 12 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
| 13 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 14 | |
| 15 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 WWAN |
| 16 | |
| 17 | # Configure external V1P05/Vnn/VnnSx Rails |
| 18 | register "ext_fivr_settings" = "{ |
| 19 | .configure_ext_fivr = 1, |
| 20 | }" |
| 21 | |
| 22 | # Intel Common SoC Config |
| 23 | #+-------------------+---------------------------+ |
| 24 | #| Field | Value | |
| 25 | #+-------------------+---------------------------+ |
| 26 | #| I2C0 | TPM. Early init is | |
| 27 | #| | required to set up a BAR | |
| 28 | #| | for TPM communication | |
| 29 | #| I2C1 | Touchscreen | |
| 30 | #| I2C2 | WCAM | |
| 31 | #| I2C3 | Audio | |
| 32 | #| I2C5 | Trackpad | |
| 33 | #+-------------------+---------------------------+ |
| 34 | register "common_soc_config" = "{ |
| 35 | .i2c[0] = { |
| 36 | .early_init = 1, |
| 37 | .speed = I2C_SPEED_FAST_PLUS, |
| 38 | }, |
| 39 | .i2c[1] = { |
| 40 | .speed = I2C_SPEED_FAST, |
| 41 | }, |
| 42 | .i2c[2] = { |
| 43 | .speed = I2C_SPEED_FAST, |
| 44 | }, |
| 45 | .i2c[3] = { |
| 46 | .speed = I2C_SPEED_FAST, |
| 47 | }, |
| 48 | .i2c[5] = { |
| 49 | .speed = I2C_SPEED_FAST, |
| 50 | }, |
| 51 | }" |
| 52 | |
| 53 | device domain 0 on |
| 54 | device ref dtt on |
| 55 | chip drivers/intel/dptf |
| 56 | ## sensor information |
| 57 | register "options.tsr[0].desc" = ""CPU"" |
| 58 | register "options.tsr[1].desc" = ""5V Regulator"" |
| 59 | register "options.tsr[2].desc" = ""Charger"" |
| 60 | |
| 61 | # TODO: below values are initial reference values only |
| 62 | ## Passive Policy |
| 63 | register "policies.passive" = "{ |
| 64 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 65 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 66 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 67 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 68 | }" |
| 69 | |
| 70 | ## Critical Policy |
| 71 | register "policies.critical" = "{ |
| 72 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 73 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 74 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 75 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 76 | }" |
| 77 | |
| 78 | register "controls.power_limits" = "{ |
| 79 | .pl1 = { |
| 80 | .min_power = 3000, |
| 81 | .max_power = 6000, |
| 82 | .time_window_min = 28 * MSECS_PER_SEC, |
| 83 | .time_window_max = 32 * MSECS_PER_SEC, |
| 84 | .granularity = 200 |
| 85 | }, |
| 86 | .pl2 = { |
| 87 | .min_power = 25000, |
| 88 | .max_power = 25000, |
| 89 | .time_window_min = 28 * MSECS_PER_SEC, |
| 90 | .time_window_max = 32 * MSECS_PER_SEC, |
| 91 | .granularity = 1000 |
| 92 | } |
| 93 | }" |
| 94 | |
| 95 | ## Charger Performance Control (Control, mA) |
| 96 | register "controls.charger_perf" = "{ |
| 97 | [0] = { 255, 1700 }, |
| 98 | [1] = { 24, 1500 }, |
| 99 | [2] = { 16, 1000 }, |
| 100 | [3] = { 8, 500 } |
| 101 | }" |
| 102 | |
| 103 | device generic 0 on end |
| 104 | end |
| 105 | end |
| 106 | device ref ipu on |
| 107 | chip drivers/intel/mipi_camera |
| 108 | register "acpi_uid" = "0x50000" |
| 109 | register "acpi_name" = ""IPU0"" |
| 110 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 111 | |
| 112 | register "cio2_num_ports" = "1" |
| 113 | register "cio2_lanes_used" = "{2}" # 2 CSI Camera lanes are used |
| 114 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 115 | register "cio2_prt[0]" = "1" |
| 116 | device generic 0 on end |
| 117 | end |
| 118 | end |
| 119 | device ref cnvi_wifi on |
| 120 | chip drivers/wifi/generic |
| 121 | register "enable_cnvi_ddr_rfim" = "true" |
| 122 | device generic 0 on end |
| 123 | end |
| 124 | end |
| 125 | device ref i2c1 on |
| 126 | chip drivers/i2c/hid |
| 127 | register "generic.hid" = ""ELAN2513"" |
| 128 | register "generic.desc" = ""ELAN Touchscreen"" |
| 129 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 130 | register "generic.probed" = "1" |
| 131 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 132 | register "generic.reset_delay_ms" = "20" |
| 133 | register "generic.reset_off_delay_ms" = "2" |
| 134 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 135 | register "generic.stop_delay_ms" = "280" |
| 136 | register "generic.stop_off_delay_ms" = "2" |
| 137 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 138 | register "generic.enable_delay_ms" = "1" |
| 139 | register "generic.has_power_resource" = "1" |
| 140 | register "hid_desc_reg_offset" = "0x01" |
| 141 | device i2c 15 on end |
| 142 | end |
| 143 | chip drivers/generic/gpio_keys |
| 144 | register "name" = ""PENH"" |
| 145 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 146 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 147 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 148 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 149 | register "key.dev_name" = ""EJCT"" |
| 150 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 151 | register "key.linux_input_type" = "EV_SW" |
| 152 | register "key.label" = ""pen_eject"" |
| 153 | device generic 0 on end |
| 154 | end |
| 155 | end |
| 156 | device ref i2c2 on |
| 157 | chip drivers/intel/mipi_camera |
| 158 | register "acpi_hid" = ""OVTI8856"" |
| 159 | register "acpi_uid" = "0" |
| 160 | register "acpi_name" = ""CAM0"" |
| 161 | register "chip_name" = ""Ov 8856 Camera"" |
| 162 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 163 | register "has_power_resource" = "1" |
| 164 | |
| 165 | register "ssdb.lanes_used" = "2" |
| 166 | register "ssdb.link_used" = "1" |
| 167 | register "ssdb.vcm_type" = "0x0C" |
| 168 | register "vcm_name" = ""VCM0"" |
| 169 | register "num_freq_entries" = "2" |
| 170 | register "link_freq[0]" = "720000000" |
| 171 | register "link_freq[1]" = "360000000" |
| 172 | register "remote_name" = ""IPU0"" |
| 173 | |
| 174 | #Controls |
| 175 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 176 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 177 | |
| 178 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 179 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 180 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 181 | |
| 182 | #_ON |
| 183 | register "on_seq.ops_cnt" = "5" |
| 184 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 185 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 186 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 187 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 188 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 189 | |
| 190 | #_OFF |
| 191 | register "off_seq.ops_cnt" = "4" |
| 192 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 193 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 194 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 195 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 196 | |
| 197 | device i2c 10 on end |
| 198 | end |
| 199 | chip drivers/intel/mipi_camera |
| 200 | register "acpi_uid" = "3" |
| 201 | register "acpi_name" = ""VCM0"" |
| 202 | register "chip_name" = ""DW AF DAC"" |
| 203 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 204 | |
| 205 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 206 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 207 | |
| 208 | device i2c 0C on end |
| 209 | end |
| 210 | chip drivers/intel/mipi_camera |
| 211 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 212 | register "acpi_uid" = "1" |
| 213 | register "acpi_name" = ""NVM0"" |
| 214 | register "chip_name" = ""GT24C08"" |
| 215 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 216 | |
| 217 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 218 | |
| 219 | register "nvm_size" = "0x2000" |
| 220 | register "nvm_pagesize" = "1" |
| 221 | register "nvm_readonly" = "1" |
| 222 | register "nvm_width" = "0x10" |
| 223 | register "nvm_compat" = ""atmel,24c08"" |
| 224 | |
| 225 | device i2c 50 on end |
| 226 | end |
| 227 | end |
| 228 | device ref i2c3 on |
| 229 | chip drivers/i2c/generic |
| 230 | register "hid" = ""RTL5682"" |
| 231 | register "name" = ""RT58"" |
| 232 | register "desc" = ""Headset Codec"" |
| 233 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 234 | # Set the jd_src to RT5668_JD1 for jack detection |
| 235 | register "property_count" = "1" |
| 236 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 237 | register "property_list[0].name" = ""realtek,jd-src"" |
| 238 | register "property_list[0].integer" = "1" |
| 239 | device i2c 1a on end |
| 240 | end |
| 241 | end |
| 242 | device ref i2c5 on |
| 243 | chip drivers/i2c/generic |
| 244 | register "hid" = ""ELAN0000"" |
| 245 | register "desc" = ""ELAN Touchpad"" |
| 246 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 247 | register "wake" = "GPE0_DW2_14" |
| 248 | register "detect" = "1" |
| 249 | device i2c 15 on end |
| 250 | end |
| 251 | chip drivers/i2c/hid |
| 252 | register "generic.hid" = ""SYNA0000"" |
| 253 | register "generic.cid" = ""ACPI0C50"" |
| 254 | register "generic.desc" = ""Synaptics Touchpad"" |
| 255 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 256 | register "generic.wake" = "GPE0_DW2_14" |
| 257 | register "generic.detect" = "1" |
| 258 | register "hid_desc_reg_offset" = "0x20" |
| 259 | device i2c 0x2c on end |
| 260 | end |
| 261 | end |
| 262 | device ref hda on |
| 263 | chip drivers/generic/max98357a |
| 264 | register "hid" = ""MX98360A"" |
| 265 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 266 | register "sdmode_delay" = "5" |
| 267 | device generic 0 on end |
| 268 | end |
| 269 | end |
| 270 | device ref pcie_rp4 on |
| 271 | # PCIe 4 WLAN |
| 272 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 273 | .clk_src = 2, |
| 274 | .clk_req = 2, |
| 275 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 276 | }" |
| 277 | chip drivers/wifi/generic |
| 278 | register "wake" = "GPE0_DW1_03" |
| 279 | register "add_acpi_dma_property" = "true" |
| 280 | device pci 00.0 on end |
| 281 | end |
| 282 | end |
| 283 | device ref pcie_rp7 off end #PCIE7 no SD card |
| 284 | device ref emmc on end |
| 285 | device ref ish on |
| 286 | chip drivers/intel/ish |
| 287 | register "add_acpi_dma_property" = "true" |
| 288 | device generic 0 on end |
| 289 | end |
| 290 | end |
| 291 | device ref ufs on end |
| 292 | device ref pch_espi on |
| 293 | chip ec/google/chromeec |
| 294 | use conn0 as mux_conn[0] |
| 295 | use conn1 as mux_conn[1] |
| 296 | device pnp 0c09.0 on end |
| 297 | end |
| 298 | end |
| 299 | device ref pmc hidden |
| 300 | chip drivers/intel/pmc_mux |
| 301 | device generic 0 on |
| 302 | chip drivers/intel/pmc_mux/conn |
| 303 | use usb2_port1 as usb2_port |
| 304 | use tcss_usb3_port1 as usb3_port |
| 305 | device generic 0 alias conn0 on end |
| 306 | end |
| 307 | chip drivers/intel/pmc_mux/conn |
| 308 | use usb2_port2 as usb2_port |
| 309 | use tcss_usb3_port2 as usb3_port |
| 310 | device generic 1 alias conn1 on end |
| 311 | end |
| 312 | end |
| 313 | end |
| 314 | end |
| 315 | device ref tcss_xhci on |
| 316 | chip drivers/usb/acpi |
| 317 | device ref tcss_root_hub on |
| 318 | chip drivers/usb/acpi |
| 319 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 320 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 321 | register "use_custom_pld" = "true" |
| 322 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 323 | device ref tcss_usb3_port1 on end |
| 324 | end |
| 325 | chip drivers/usb/acpi |
| 326 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 327 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 328 | register "use_custom_pld" = "true" |
| 329 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 330 | device ref tcss_usb3_port2 on end |
| 331 | end |
| 332 | end |
| 333 | end |
| 334 | end |
| 335 | device ref xhci on |
| 336 | chip drivers/usb/acpi |
| 337 | device ref xhci_root_hub on |
| 338 | chip drivers/usb/acpi |
| 339 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 340 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 341 | register "use_custom_pld" = "true" |
| 342 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 343 | device ref usb2_port1 on end |
| 344 | end |
| 345 | chip drivers/usb/acpi |
| 346 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 347 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 348 | register "use_custom_pld" = "true" |
| 349 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 350 | device ref usb2_port2 on end |
| 351 | end |
| 352 | chip drivers/usb/acpi |
| 353 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 354 | register "type" = "UPC_TYPE_A" |
| 355 | register "use_custom_pld" = "true" |
| 356 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 357 | device ref usb2_port3 on end |
| 358 | end |
| 359 | chip drivers/usb/acpi |
| 360 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 361 | register "type" = "UPC_TYPE_A" |
| 362 | register "use_custom_pld" = "true" |
| 363 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
| 364 | device ref usb2_port4 on end |
| 365 | end |
| 366 | chip drivers/usb/acpi |
| 367 | register "desc" = ""USB2 WWAN"" |
| 368 | register "type" = "UPC_TYPE_INTERNAL" |
| 369 | device ref usb2_port5 on end |
| 370 | end |
| 371 | chip drivers/usb/acpi |
| 372 | register "desc" = ""USB2 UFC"" |
| 373 | register "type" = "UPC_TYPE_INTERNAL" |
| 374 | device ref usb2_port6 on end |
| 375 | end |
| 376 | chip drivers/usb/acpi |
| 377 | register "desc" = ""USB2 Bluetooth"" |
| 378 | register "type" = "UPC_TYPE_INTERNAL" |
| 379 | register "reset_gpio" = |
| 380 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 381 | device ref usb2_port8 on end |
| 382 | end |
| 383 | chip drivers/usb/acpi |
| 384 | register "desc" = ""CNVi Bluetooth"" |
| 385 | register "type" = "UPC_TYPE_INTERNAL" |
| 386 | register "reset_gpio" = |
| 387 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 388 | device ref usb2_port10 on end |
| 389 | end |
| 390 | chip drivers/usb/acpi |
| 391 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 392 | register "type" = "UPC_TYPE_USB3_A" |
| 393 | register "use_custom_pld" = "true" |
| 394 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 395 | device ref usb3_port1 on end |
| 396 | end |
| 397 | chip drivers/usb/acpi |
| 398 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 399 | register "type" = "UPC_TYPE_USB3_A" |
| 400 | register "use_custom_pld" = "true" |
| 401 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
| 402 | device ref usb3_port2 on end |
| 403 | end |
| 404 | chip drivers/usb/acpi |
| 405 | register "desc" = ""USB3 WWAN"" |
| 406 | register "type" = "UPC_TYPE_INTERNAL" |
| 407 | device ref usb3_port3 on end |
| 408 | end |
| 409 | end |
| 410 | end |
| 411 | end |
| 412 | end |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 413 | end |