Mac Chiang | fd07fa2 | 2022-01-26 03:34:49 -0500 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO 0 2 |
| 3 | option AUDIO_UNKNOWN 0 |
| 4 | option NAU88L25B_I2S 1 |
| 5 | end |
| 6 | end |
| 7 | |
Zhuohao Lee | c0308eb | 2021-07-16 20:29:27 +0800 | [diff] [blame] | 8 | chip soc/intel/alderlake |
Derek Huang | 3d2df35 | 2022-10-21 10:39:36 +0000 | [diff] [blame] | 9 | register "sagv" = "SaGv_Enabled" |
| 10 | |
Subrata Banik | 3d469fa | 2021-09-10 00:21:23 +0530 | [diff] [blame] | 11 | device domain 0 on |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 12 | device ref dtt on |
| 13 | chip drivers/intel/dptf |
| 14 | ## sensor information |
| 15 | register "options.tsr[0].desc" = ""DRAM"" |
| 16 | register "options.tsr[1].desc" = ""Charger"" |
Zhuohao Lee | c0308eb | 2021-07-16 20:29:27 +0800 | [diff] [blame] | 17 | |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 18 | # TODO: below values are initial reference values only |
| 19 | ## Active Policy |
| 20 | register "policies.active" = "{ |
| 21 | [0] = { |
| 22 | .target = DPTF_CPU, |
| 23 | .thresholds = { |
| 24 | TEMP_PCT(85, 90), |
| 25 | TEMP_PCT(80, 80), |
| 26 | TEMP_PCT(75, 70), |
| 27 | } |
| 28 | } |
| 29 | }" |
| 30 | |
| 31 | ## Passive Policy |
| 32 | register "policies.passive" = "{ |
| 33 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 34 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 35 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 36 | }" |
| 37 | |
| 38 | ## Critical Policy |
| 39 | register "policies.critical" = "{ |
| 40 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 41 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 42 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 43 | }" |
| 44 | |
| 45 | register "controls.power_limits" = "{ |
| 46 | .pl1 = { |
| 47 | .min_power = 3000, |
| 48 | .max_power = 15000, |
| 49 | .time_window_min = 28 * MSECS_PER_SEC, |
| 50 | .time_window_max = 32 * MSECS_PER_SEC, |
| 51 | .granularity = 200, |
| 52 | }, |
| 53 | .pl2 = { |
| 54 | .min_power = 55000, |
| 55 | .max_power = 55000, |
| 56 | .time_window_min = 28 * MSECS_PER_SEC, |
| 57 | .time_window_max = 32 * MSECS_PER_SEC, |
| 58 | .granularity = 1000, |
| 59 | } |
| 60 | }" |
| 61 | |
| 62 | ## Charger Performance Control (Control, mA) |
| 63 | register "controls.charger_perf" = "{ |
| 64 | [0] = { 255, 1700 }, |
| 65 | [1] = { 24, 1500 }, |
| 66 | [2] = { 16, 1000 }, |
| 67 | [3] = { 8, 500 } |
| 68 | }" |
| 69 | |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 70 | device generic 0 alias dptf_policy on end |
| 71 | end |
| 72 | end |
Alan Huang | a7ebca3 | 2021-11-10 13:16:53 +0800 | [diff] [blame] | 73 | device ref pcie_rp7 on |
| 74 | chip drivers/net |
Rory Liu | 58ce8b7 | 2021-12-15 11:22:05 +0800 | [diff] [blame] | 75 | register "wake" = "GPE0_DW0_07" |
Rory Liu | 58e016e | 2021-12-22 17:05:15 +0800 | [diff] [blame] | 76 | register "led_feature" = "0xe0" |
| 77 | register "customized_led0" = "0x23f" |
| 78 | register "customized_led2" = "0x028" |
Alan Huang | aae362c | 2022-01-19 11:57:34 +0800 | [diff] [blame] | 79 | register "enable_aspm_l1_2" = "1" |
Kapil Porwal | 39f5042 | 2022-11-26 02:38:38 +0530 | [diff] [blame] | 80 | register "add_acpi_dma_property" = "true" |
Matt DeVillier | 5b4bbe5 | 2023-11-19 16:22:21 -0600 | [diff] [blame^] | 81 | device pci 00.0 on end |
Alan Huang | a7ebca3 | 2021-11-10 13:16:53 +0800 | [diff] [blame] | 82 | end |
| 83 | end # RTL8125 Ethernet NIC |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 84 | device ref pcie4_0 on |
| 85 | # Enable CPU PCIE RP 1 using CLK 0 |
| 86 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 87 | .clk_req = 0, |
| 88 | .clk_src = 0, |
Tracy Wu | ec877d6 | 2022-01-13 21:53:02 +0800 | [diff] [blame] | 89 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 90 | }" |
| 91 | end |
| 92 | device ref tcss_dma0 on |
| 93 | chip drivers/intel/usb4/retimer |
| 94 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 95 | use tcss_usb3_port1 as dfp[0].typec_port |
| 96 | device generic 0 on end |
| 97 | end |
| 98 | end |
| 99 | device ref tcss_dma1 on |
| 100 | chip drivers/intel/usb4/retimer |
| 101 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 102 | use tcss_usb3_port3 as dfp[0].typec_port |
| 103 | device generic 0 on end |
| 104 | end |
| 105 | end |
| 106 | device ref cnvi_wifi on |
| 107 | chip drivers/wifi/generic |
| 108 | register "wake" = "GPE0_PME_B0" |
| 109 | device generic 0 on end |
| 110 | end |
| 111 | end |
| 112 | device ref i2c0 on |
| 113 | chip drivers/i2c/nau8825 |
| 114 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 115 | register "jkdet_enable" = "1" |
| 116 | register "jkdet_pull_enable" = "0" |
| 117 | register "jkdet_pull_up" = "0" |
| 118 | register "jkdet_polarity" = "1" # ActiveLow |
| 119 | register "vref_impedance" = "2" # 125kOhm |
| 120 | register "micbias_voltage" = "6" # 2.754 |
| 121 | register "sar_threshold_num" = "4" |
| 122 | register "sar_threshold[0]" = "0x0C" |
| 123 | register "sar_threshold[1]" = "0x1C" |
| 124 | register "sar_threshold[2]" = "0x38" |
| 125 | register "sar_threshold[3]" = "0x60" |
| 126 | register "sar_hysteresis" = "1" |
| 127 | register "sar_voltage" = "6" |
| 128 | register "sar_compare_time" = "0" # 500ns |
| 129 | register "sar_sampling_time" = "0" # 2us |
| 130 | register "short_key_debounce" = "2" # 100ms |
| 131 | register "jack_insert_debounce" = "7" # 512ms |
| 132 | register "jack_eject_debounce" = "7" # 512ms |
| 133 | device i2c 1a on end |
| 134 | end |
| 135 | end |
| 136 | device ref pcie_rp8 on |
| 137 | chip soc/intel/common/block/pcie/rtd3 |
| 138 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 139 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 140 | register "srcclk_pin" = "3" |
| 141 | device generic 0 on end |
| 142 | end |
| 143 | end #PCIE8 SD card |
| 144 | device ref gspi1 on |
| 145 | chip drivers/spi/acpi |
| 146 | register "name" = ""CRFP"" |
| 147 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 148 | register "uid" = "1" |
| 149 | register "compat_string" = ""google,cros-ec-spi"" |
| 150 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 151 | register "wake" = "GPE0_DW2_15" |
Tarun Tuli | 2b523ce | 2022-08-29 13:39:58 -0400 | [diff] [blame] | 152 | register "has_power_resource" = "1" |
| 153 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 154 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 155 | register "enable_delay_ms" = "3" |
Matt DeVillier | af46b47 | 2023-10-28 11:16:14 -0500 | [diff] [blame] | 156 | device spi 0 hidden end |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 157 | end # FPMCU |
| 158 | end |
| 159 | device ref pch_espi on |
| 160 | chip ec/google/chromeec |
| 161 | use conn0 as mux_conn[0] |
| 162 | use conn1 as mux_conn[1] |
| 163 | use conn2 as mux_conn[2] |
| 164 | device pnp 0c09.0 on end |
| 165 | end |
| 166 | end |
| 167 | device ref pmc hidden |
| 168 | chip drivers/intel/pmc_mux |
| 169 | device generic 0 on |
| 170 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 171 | use usb2_port1 as usb2_port |
| 172 | use tcss_usb3_port1 as usb3_port |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 173 | device generic 0 alias conn0 on end |
| 174 | end |
| 175 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 176 | use usb2_port2 as usb2_port |
| 177 | use tcss_usb3_port2 as usb3_port |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 178 | device generic 1 alias conn1 on end |
| 179 | end |
| 180 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 181 | use usb2_port3 as usb2_port |
| 182 | use tcss_usb3_port3 as usb3_port |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 183 | device generic 2 alias conn2 on end |
| 184 | end |
| 185 | end |
| 186 | end |
| 187 | end |
| 188 | device ref tcss_xhci on |
| 189 | chip drivers/usb/acpi |
| 190 | device ref tcss_root_hub on |
| 191 | chip drivers/usb/acpi |
| 192 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 193 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 194 | register "use_custom_pld" = "true" |
| 195 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 196 | device ref tcss_usb3_port1 on end |
| 197 | end |
| 198 | chip drivers/usb/acpi |
| 199 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 200 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 201 | register "use_custom_pld" = "true" |
| 202 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 203 | device ref tcss_usb3_port2 on end |
| 204 | end |
| 205 | chip drivers/usb/acpi |
| 206 | register "desc" = ""USB3 Type-C Port C2 (MLB)"" |
| 207 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 208 | register "use_custom_pld" = "true" |
| 209 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 210 | device ref tcss_usb3_port3 on end |
| 211 | end |
| 212 | end |
| 213 | end |
| 214 | end |
| 215 | device ref xhci on |
| 216 | chip drivers/usb/acpi |
| 217 | device ref xhci_root_hub on |
| 218 | chip drivers/usb/acpi |
| 219 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 220 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 221 | register "use_custom_pld" = "true" |
| 222 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 223 | device ref usb2_port1 on end |
| 224 | end |
| 225 | chip drivers/usb/acpi |
| 226 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 227 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 228 | register "use_custom_pld" = "true" |
| 229 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 230 | device ref usb2_port2 on end |
| 231 | end |
| 232 | chip drivers/usb/acpi |
| 233 | register "desc" = ""USB2 Type-C Port C2 (MLB)"" |
| 234 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 235 | register "use_custom_pld" = "true" |
| 236 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 237 | device ref usb2_port3 on end |
| 238 | end |
| 239 | chip drivers/usb/acpi |
| 240 | register "desc" = ""USB2 NFC"" |
| 241 | register "type" = "UPC_TYPE_INTERNAL" |
| 242 | device ref usb2_port5 on end |
| 243 | end |
| 244 | chip drivers/usb/acpi |
| 245 | register "desc" = ""USB2 Type-A Port A3 (MLB)"" |
| 246 | register "type" = "UPC_TYPE_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 247 | register "use_custom_pld" = "true" |
| 248 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(5, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 249 | device ref usb2_port6 on end |
| 250 | end |
| 251 | chip drivers/usb/acpi |
| 252 | register "desc" = ""USB2 Type-A Port A2 (MLB)"" |
| 253 | register "type" = "UPC_TYPE_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 254 | register "use_custom_pld" = "true" |
| 255 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(6, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 256 | device ref usb2_port7 on end |
| 257 | end |
| 258 | chip drivers/usb/acpi |
| 259 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 260 | register "type" = "UPC_TYPE_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 261 | register "use_custom_pld" = "true" |
| 262 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 263 | device ref usb2_port8 on end |
| 264 | end |
| 265 | chip drivers/usb/acpi |
| 266 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 267 | register "type" = "UPC_TYPE_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 268 | register "use_custom_pld" = "true" |
| 269 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 270 | device ref usb2_port9 on end |
| 271 | end |
| 272 | chip drivers/usb/acpi |
| 273 | register "desc" = ""USB2 Bluetooth"" |
| 274 | register "type" = "UPC_TYPE_INTERNAL" |
| 275 | register "reset_gpio" = |
| 276 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 277 | device ref usb2_port10 on end |
| 278 | end |
| 279 | chip drivers/usb/acpi |
| 280 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 281 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 282 | register "use_custom_pld" = "true" |
| 283 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 284 | device ref usb3_port1 on end |
| 285 | end |
| 286 | chip drivers/usb/acpi |
| 287 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 288 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 289 | register "use_custom_pld" = "true" |
| 290 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 291 | device ref usb3_port2 on end |
| 292 | end |
| 293 | chip drivers/usb/acpi |
| 294 | register "desc" = ""USB3 Type-A Port A2 (MLB)"" |
| 295 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 296 | register "use_custom_pld" = "true" |
| 297 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(6, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 298 | device ref usb3_port3 on end |
| 299 | end |
| 300 | chip drivers/usb/acpi |
| 301 | register "desc" = ""USB3 Type-A Port A3 (MLB)"" |
| 302 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 18c2720 | 2022-05-27 22:37:10 +0000 | [diff] [blame] | 303 | register "use_custom_pld" = "true" |
| 304 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(5, 1))" |
Alan Huang | 07bf6ff | 2021-10-05 18:09:53 +0800 | [diff] [blame] | 305 | device ref usb3_port4 on end |
| 306 | end |
| 307 | end |
| 308 | end |
| 309 | end |
| 310 | end |
Zhuohao Lee | c0308eb | 2021-07-16 20:29:27 +0800 | [diff] [blame] | 311 | end |