Shon Wang | deb54cc | 2024-03-11 14:51:08 +0800 | [diff] [blame] | 1 | chip soc/intel/alderlake |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 2 | register "sagv" = "SaGv_Enabled" |
Shon Wang | deb54cc | 2024-03-11 14:51:08 +0800 | [diff] [blame] | 3 | |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 4 | # Intel Common SoC Config |
| 5 | #+-------------------+---------------------------+ |
| 6 | #| Field | Value | |
| 7 | #+-------------------+---------------------------+ |
| 8 | #| GSPI1 | NC | |
| 9 | #| I2C0 | Audio | |
| 10 | #| I2C1 | cr50 TPM. Early init is | |
| 11 | #| | required to set up a BAR | |
| 12 | #| | for TPM communication | |
| 13 | #| I2C3 | NC | |
| 14 | #| I2C5 | NC | |
| 15 | #+-------------------+---------------------------+ |
| 16 | register "common_soc_config" = "{ |
| 17 | .i2c[0] = { |
| 18 | .speed = I2C_SPEED_FAST, |
| 19 | .rise_time_ns = 600, |
| 20 | .fall_time_ns = 400, |
| 21 | .data_hold_time_ns = 50, |
| 22 | }, |
| 23 | .i2c[1] = { |
| 24 | .early_init = 1, |
| 25 | .speed = I2C_SPEED_FAST, |
| 26 | .rise_time_ns = 600, |
| 27 | .fall_time_ns = 400, |
| 28 | .data_hold_time_ns = 50, |
| 29 | }, |
| 30 | }" |
Shon Wang | deb54cc | 2024-03-11 14:51:08 +0800 | [diff] [blame] | 31 | |
Shon Wang | f857d30 | 2024-06-04 20:19:09 +0800 | [diff] [blame^] | 32 | register "usb2_ports[0]" = "USB2_PORT_MAX_TYPE_C(OC2)" # set to Max for USB2_C0 |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 33 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A2 |
| 34 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A3 |
| 35 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # USB2 Port 3 - Port 5 for OPS interface |
| 36 | register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Disable Port 6 |
| 37 | |
| 38 | register "usb3_ports[2]" = "USB3_PORT_EMPTY " # Disable Port 2 |
| 39 | # USB3 Port 3 for OPS interface |
| 40 | |
| 41 | register "tcss_ports[1]" = "TCSS_PORT_EMPTY" # Disable Port1 |
| 42 | register "tcss_ports[2]" = "TCSS_PORT_EMPTY" # Disable Port2 |
| 43 | |
| 44 | register "serial_io_gspi_mode" = "{ |
| 45 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 46 | [PchSerialIoIndexGSPI1] = PchSerialIoDisabled, |
| 47 | }" |
| 48 | |
| 49 | register "ddi_ports_config" = "{ |
| 50 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 51 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 52 | [DDI_PORT_1] = DDI_ENABLE_HPD, |
| 53 | [DDI_PORT_3] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 54 | }" |
| 55 | |
| 56 | device domain 0 on |
| 57 | device ref dtt on |
| 58 | chip drivers/intel/dptf |
| 59 | ## sensor information |
| 60 | register "options.tsr[0].desc" = ""DRAM"" |
| 61 | register "options.tsr[1].desc" = ""Charger"" |
| 62 | |
| 63 | # TODO: below values are initial reference values only |
| 64 | ## Active Policy |
| 65 | register "policies.active" = "{ |
| 66 | [0] = { |
| 67 | .target = DPTF_CPU, |
| 68 | .thresholds = { |
| 69 | TEMP_PCT(85, 90), |
| 70 | TEMP_PCT(80, 80), |
| 71 | TEMP_PCT(75, 70), |
| 72 | } |
| 73 | } |
| 74 | }" |
| 75 | |
| 76 | ## Passive Policy |
| 77 | register "policies.passive" = "{ |
| 78 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 79 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 80 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 81 | }" |
| 82 | |
| 83 | ## Critical Policy |
| 84 | register "policies.critical" = "{ |
| 85 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 86 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 87 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 88 | }" |
| 89 | |
| 90 | register "controls.power_limits" = "{ |
| 91 | .pl1 = { |
| 92 | .min_power = 3000, |
| 93 | .max_power = 15000, |
| 94 | .time_window_min = 28 * MSECS_PER_SEC, |
| 95 | .time_window_max = 32 * MSECS_PER_SEC, |
| 96 | .granularity = 200, |
| 97 | }, |
| 98 | .pl2 = { |
| 99 | .min_power = 55000, |
| 100 | .max_power = 55000, |
| 101 | .time_window_min = 28 * MSECS_PER_SEC, |
| 102 | .time_window_max = 32 * MSECS_PER_SEC, |
| 103 | .granularity = 1000, |
| 104 | } |
| 105 | }" |
| 106 | |
| 107 | ## Charger Performance Control (Control, mA) |
| 108 | register "controls.charger_perf" = "{ |
| 109 | [0] = { 255, 1700 }, |
| 110 | [1] = { 24, 1500 }, |
| 111 | [2] = { 16, 1000 }, |
| 112 | [3] = { 8, 500 } |
| 113 | }" |
| 114 | |
| 115 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 116 | register "controls.fan_perf" = "{ |
| 117 | [0] = { 90, 6700, 220, 2200, }, |
| 118 | [1] = { 80, 5800, 180, 1800, }, |
| 119 | [2] = { 70, 5000, 145, 1450, }, |
| 120 | [3] = { 60, 4900, 115, 1150, }, |
| 121 | [4] = { 50, 3838, 90, 900, }, |
| 122 | [5] = { 40, 2904, 55, 550, }, |
| 123 | [6] = { 30, 2337, 30, 300, }, |
| 124 | [7] = { 20, 1608, 15, 150, }, |
| 125 | [8] = { 10, 800, 10, 100, }, |
| 126 | [9] = { 0, 0, 0, 50, } |
| 127 | }" |
| 128 | |
| 129 | ## Fan options |
| 130 | register "options.fan.fine_grained_control" = "1" |
| 131 | register "options.fan.step_size" = "2" |
| 132 | |
| 133 | device generic 0 alias dptf_policy on end |
| 134 | end |
| 135 | end |
| 136 | device ref pcie4_0 on |
| 137 | # Enable CPU PCIE RP 1 using CLK 0 |
| 138 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 139 | .clk_req = 0, |
| 140 | .clk_src = 0, |
| 141 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 142 | }" |
| 143 | end #NVME |
| 144 | device ref tbt_pcie_rp1 off end |
| 145 | device ref tbt_pcie_rp2 off end |
| 146 | |
| 147 | device ref tcss_dma0 on |
| 148 | chip drivers/intel/usb4/retimer |
| 149 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 150 | use tcss_usb3_port1 as dfp[0].typec_port |
| 151 | device generic 0 on end |
| 152 | end |
| 153 | end |
| 154 | device ref tcss_dma1 off end |
| 155 | device ref cnvi_wifi on |
| 156 | chip drivers/wifi/generic |
| 157 | register "wake" = "GPE0_PME_B0" |
| 158 | device generic 0 on end |
| 159 | end |
| 160 | end |
| 161 | device ref i2c0 on |
| 162 | chip drivers/i2c/generic |
Shon Wang | b870b66 | 2024-06-03 10:50:14 +0800 | [diff] [blame] | 163 | register "hid" = ""RTL5682"" |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 164 | register "name" = ""RT58"" |
Shon Wang | b870b66 | 2024-06-03 10:50:14 +0800 | [diff] [blame] | 165 | register "desc" = ""Headset Codec"" |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 166 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
Shon Wang | b870b66 | 2024-06-03 10:50:14 +0800 | [diff] [blame] | 167 | # Set the jd_src to RT5668_JD1 for jack detection |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 168 | register "property_count" = "1" |
| 169 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
Shon Wang | b870b66 | 2024-06-03 10:50:14 +0800 | [diff] [blame] | 170 | register "property_list[0].name" = ""realtek,jd-src"" |
| 171 | register "property_list[0].integer" = "1" |
Shon Wang | 0da12e0 | 2024-03-27 18:53:38 +0800 | [diff] [blame] | 172 | device i2c 1a on end |
| 173 | end |
| 174 | end # I2C0 |
| 175 | device ref i2c1 on |
| 176 | chip drivers/i2c/tpm |
| 177 | register "hid" = ""GOOG0005"" |
| 178 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 179 | device i2c 50 on end |
| 180 | end |
| 181 | end # I2C1 |
| 182 | device ref pcie_rp7 on |
| 183 | chip drivers/net |
| 184 | register "wake" = "GPE0_DW0_07" |
| 185 | register "customized_leds" = "0x060f" |
| 186 | register "enable_aspm_l1_2" = "1" |
| 187 | register "add_acpi_dma_property" = "true" |
| 188 | device pci 00.0 on end |
| 189 | end |
| 190 | end # RTL8111 Ethernet NIC |
| 191 | device ref pcie_rp8 off end # disable SD reader |
| 192 | device ref gspi1 off end |
| 193 | device ref pch_espi on |
| 194 | chip ec/google/chromeec |
| 195 | use conn0 as mux_conn[0] |
| 196 | device pnp 0c09.0 on end |
| 197 | end |
| 198 | end |
| 199 | device ref pmc hidden |
| 200 | chip drivers/intel/pmc_mux |
| 201 | device generic 0 on |
| 202 | chip drivers/intel/pmc_mux/conn |
| 203 | use usb2_port1 as usb2_port |
| 204 | use tcss_usb3_port1 as usb3_port |
| 205 | device generic 0 alias conn0 on end |
| 206 | end |
| 207 | end |
| 208 | end |
| 209 | end |
| 210 | device ref tcss_xhci on |
| 211 | chip drivers/usb/acpi |
| 212 | device ref tcss_root_hub on |
| 213 | chip drivers/usb/acpi |
| 214 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 215 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 216 | register "use_custom_pld" = "true" |
| 217 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 218 | device ref tcss_usb3_port1 on end |
| 219 | end |
| 220 | end |
| 221 | end |
| 222 | end |
| 223 | device ref xhci on |
| 224 | chip drivers/usb/acpi |
| 225 | device ref xhci_root_hub on |
| 226 | chip drivers/usb/acpi |
| 227 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 228 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 229 | register "use_custom_pld" = "true" |
| 230 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 231 | device ref usb2_port1 on end |
| 232 | end |
| 233 | chip drivers/usb/acpi |
| 234 | register "desc" = ""USB2 Type-A Port A3 (MLB)"" |
| 235 | register "type" = "UPC_TYPE_A" |
| 236 | register "use_custom_pld" = "true" |
| 237 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 238 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER" |
| 239 | device ref usb2_port2 on end |
| 240 | end |
| 241 | chip drivers/usb/acpi |
| 242 | register "desc" = ""USB2 Type-A Port A2 (MLB)"" |
| 243 | register "type" = "UPC_TYPE_A" |
| 244 | register "use_custom_pld" = "true" |
| 245 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, LEFT, ACPI_PLD_GROUP(3, 1))" |
| 246 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER" |
| 247 | device ref usb2_port3 on end |
| 248 | end |
| 249 | chip drivers/usb/acpi |
| 250 | register "desc" = ""USB2 OPS interface TX25A"" |
| 251 | register "type" = "UPC_TYPE_A" |
| 252 | register "use_custom_pld" = "true" |
| 253 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(4, 1))" |
| 254 | device ref usb2_port4 on end |
| 255 | end |
| 256 | chip drivers/usb/acpi |
| 257 | register "desc" = ""USB2 OPS interface TX25A"" |
| 258 | register "type" = "UPC_TYPE_A" |
| 259 | register "use_custom_pld" = "true" |
| 260 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(5, 1))" |
| 261 | device ref usb2_port5 on end |
| 262 | end |
| 263 | chip drivers/usb/acpi |
| 264 | register "desc" = ""USB2 OPS interface TX25A"" |
| 265 | register "type" = "UPC_TYPE_A" |
| 266 | register "use_custom_pld" = "true" |
| 267 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(6, 1))" |
| 268 | device ref usb2_port6 on end |
| 269 | end |
| 270 | chip drivers/usb/acpi |
| 271 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 272 | register "type" = "UPC_TYPE_A" |
| 273 | register "use_custom_pld" = "true" |
| 274 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(7, 1))" |
| 275 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER" |
| 276 | device ref usb2_port8 on end |
| 277 | end |
| 278 | chip drivers/usb/acpi |
| 279 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 280 | register "type" = "UPC_TYPE_A" |
| 281 | register "use_custom_pld" = "true" |
| 282 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(8, 1))" |
| 283 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER" |
| 284 | device ref usb2_port9 on end |
| 285 | end |
| 286 | chip drivers/usb/acpi |
| 287 | register "desc" = ""USB2 Bluetooth"" |
| 288 | register "type" = "UPC_TYPE_INTERNAL" |
| 289 | register "reset_gpio" = |
| 290 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 291 | device ref usb2_port10 on end |
| 292 | end |
| 293 | chip drivers/usb/acpi |
| 294 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 295 | register "type" = "UPC_TYPE_USB3_A" |
| 296 | register "use_custom_pld" = "true" |
| 297 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(8, 1))" |
| 298 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER" |
| 299 | device ref usb3_port1 on end |
| 300 | end |
| 301 | chip drivers/usb/acpi |
| 302 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 303 | register "type" = "UPC_TYPE_USB3_A" |
| 304 | register "use_custom_pld" = "true" |
| 305 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(7, 1))" |
| 306 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER" |
| 307 | device ref usb3_port2 on end |
| 308 | end |
| 309 | chip drivers/usb/acpi |
| 310 | register "desc" = ""USB3 OPS interface TX25A"" |
| 311 | register "type" = "UPC_TYPE_USB3_A" |
| 312 | register "use_custom_pld" = "true" |
| 313 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(4, 1))" |
| 314 | device ref usb3_port4 on end |
| 315 | end |
| 316 | end |
| 317 | end |
| 318 | end |
| 319 | end |
Shon Wang | deb54cc | 2024-03-11 14:51:08 +0800 | [diff] [blame] | 320 | end |