John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 2 |
| 3 | option USB_ABSENT 0 |
| 4 | option USB3_PS8815 1 |
| 5 | end |
| 6 | field STYLUS 5 |
| 7 | option STYLUS_ABSENT 0 |
| 8 | option STYLUS_PRESENT 1 |
| 9 | end |
| 10 | field AUDIO_AMP 7 9 |
| 11 | option UNPROVISIONED 0 |
| 12 | option MAX98360_ALC5682VS_I2S_2WAY 1 |
| 13 | end |
| 14 | end |
| 15 | |
John Su | 8ef9187 | 2022-04-21 15:53:10 +0800 | [diff] [blame] | 16 | chip soc/intel/alderlake |
John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 17 | register "sagv" = "SaGv_Enabled" |
John Su | 8ef9187 | 2022-04-21 15:53:10 +0800 | [diff] [blame] | 18 | |
John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 19 | # FIVR configurations for brya are disabled since the board doesn't have V1p05 and Vnn |
| 20 | # bypass rails implemented. |
| 21 | register "ext_fivr_settings" = "{ |
| 22 | .configure_ext_fivr = 1, |
| 23 | }" |
John Su | 8ef9187 | 2022-04-21 15:53:10 +0800 | [diff] [blame] | 24 | |
John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 25 | register "usb2_ports[0]" = "USB2_PORT_EMPTY" |
| 26 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" |
| 27 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" |
| 28 | |
| 29 | register "tcss_ports[0]" = "TCSS_PORT_EMPTY" |
| 30 | |
| 31 | register "serial_io_i2c_mode" = "{ |
| 32 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 33 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 34 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 35 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 36 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 37 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 38 | }" |
| 39 | |
| 40 | register "serial_io_gspi_mode" = "{ |
| 41 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 42 | [PchSerialIoIndexGSPI1] = PchSerialIoDisabled, |
| 43 | }" |
| 44 | |
| 45 | # As per Intel Advisory doc#723158, the change is required to prevent possible |
| 46 | # display flickering issue. |
| 47 | register "usb2_phy_sus_pg_disable" = "1" |
| 48 | |
| 49 | # Intel Common SoC Config |
| 50 | #+-------------------+---------------------------+ |
| 51 | #| Field | Value | |
| 52 | #+-------------------+---------------------------+ |
| 53 | #| I2C0 | Audio | |
| 54 | #| I2C1 | cr50 TPM. Early init is | |
| 55 | #| | required to set up a BAR | |
| 56 | #| | for TPM communication | |
| 57 | #| I2C3 | Touchscreen | |
| 58 | #| I2C5 | Trackpad | |
| 59 | #+-------------------+---------------------------+ |
| 60 | register "common_soc_config" = "{ |
| 61 | .i2c[0] = { |
| 62 | .speed = I2C_SPEED_FAST, |
| 63 | .rise_time_ns = 550, |
| 64 | .fall_time_ns = 400, |
| 65 | .data_hold_time_ns = 50, |
| 66 | }, |
| 67 | .i2c[1] = { |
| 68 | .early_init = 1, |
| 69 | .speed = I2C_SPEED_FAST, |
| 70 | .rise_time_ns = 550, |
| 71 | .fall_time_ns = 400, |
| 72 | .data_hold_time_ns = 50, |
| 73 | }, |
| 74 | .i2c[3] = { |
| 75 | .speed = I2C_SPEED_FAST, |
| 76 | .rise_time_ns = 550, |
| 77 | .fall_time_ns = 400, |
| 78 | .data_hold_time_ns = 50, |
| 79 | }, |
| 80 | .i2c[5] = { |
| 81 | .speed = I2C_SPEED_FAST, |
| 82 | .rise_time_ns = 550, |
| 83 | .fall_time_ns = 400, |
| 84 | .data_hold_time_ns = 50, |
| 85 | }, |
| 86 | }" |
| 87 | |
| 88 | device domain 0 on |
| 89 | device ref dtt on |
| 90 | chip drivers/intel/dptf |
| 91 | ## sensor information |
| 92 | register "options.tsr[0].desc" = ""DRAM_SOC"" |
| 93 | register "options.tsr[1].desc" = ""Ambient"" |
| 94 | register "options.tsr[2].desc" = ""Charger"" |
| 95 | |
| 96 | ## Active Policy |
| 97 | register "policies.active" = "{ |
| 98 | [0] = { |
| 99 | .target = DPTF_TEMP_SENSOR_1, |
| 100 | .thresholds = { |
| 101 | TEMP_PCT(48, 76), |
| 102 | TEMP_PCT(45, 65), |
| 103 | TEMP_PCT(42, 53), |
| 104 | TEMP_PCT(39, 45), |
| 105 | TEMP_PCT(36, 39), |
| 106 | TEMP_PCT(33, 34), |
| 107 | } |
| 108 | } |
| 109 | }" |
| 110 | |
| 111 | ## Passive Policy |
| 112 | register "policies.passive" = "{ |
| 113 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 5000), |
| 114 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 70, 5000), |
| 115 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 60, 5000), |
| 116 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 70, 5000), |
| 117 | }" |
| 118 | |
| 119 | ## Critical Policy |
| 120 | register "policies.critical" = "{ |
| 121 | [0] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN), |
| 122 | [1] = DPTF_CRITICAL(TEMP_SENSOR_1, 70, SHUTDOWN), |
| 123 | [2] = DPTF_CRITICAL(TEMP_SENSOR_2, 80, SHUTDOWN), |
| 124 | }" |
| 125 | |
| 126 | register "controls.power_limits" = "{ |
| 127 | .pl1 = { |
| 128 | .min_power = 13000, |
| 129 | .max_power = 15000, |
| 130 | .time_window_min = 28 * MSECS_PER_SEC, |
| 131 | .time_window_max = 28 * MSECS_PER_SEC, |
| 132 | .granularity = 200, |
| 133 | }, |
| 134 | .pl2 = { |
| 135 | .min_power = 55000, |
| 136 | .max_power = 55000, |
| 137 | .time_window_min = 32 * MSECS_PER_SEC, |
| 138 | .time_window_max = 32 * MSECS_PER_SEC, |
| 139 | .granularity = 1000, |
| 140 | } |
| 141 | }" |
| 142 | |
| 143 | ## Charger Performance Control (Control, mA) |
| 144 | register "controls.charger_perf" = "{ |
| 145 | [0] = { 255, 1700 }, |
| 146 | [1] = { 24, 1500 }, |
| 147 | [2] = { 16, 1000 }, |
| 148 | [3] = { 8, 500 } |
| 149 | }" |
| 150 | |
| 151 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 152 | register "controls.fan_perf" = "{ |
| 153 | [0] = { 90, 6700, 220, 2200, }, |
| 154 | [1] = { 80, 5800, 180, 1800, }, |
| 155 | [2] = { 70, 5000, 145, 1450, }, |
| 156 | [3] = { 60, 4900, 115, 1150, }, |
| 157 | [4] = { 50, 3838, 90, 900, }, |
| 158 | [5] = { 40, 2904, 55, 550, }, |
| 159 | [6] = { 30, 2337, 30, 300, }, |
| 160 | [7] = { 20, 1608, 15, 150, }, |
| 161 | [8] = { 10, 800, 10, 100, }, |
| 162 | [9] = { 0, 0, 0, 50, } |
| 163 | }" |
| 164 | |
| 165 | ## Fan options |
| 166 | register "options.fan.fine_grained_control" = "1" |
| 167 | register "options.fan.step_size" = "2" |
| 168 | |
| 169 | device generic 0 alias dptf_policy on end |
| 170 | end |
| 171 | end |
| 172 | device ref tbt_pcie_rp0 off end |
| 173 | device ref tbt_pcie_rp1 off end |
| 174 | device ref tbt_pcie_rp2 off end |
| 175 | device ref cnvi_wifi on |
| 176 | chip drivers/wifi/generic |
| 177 | register "wake" = "GPE0_PME_B0" |
| 178 | device generic 0 on end |
| 179 | end |
| 180 | end |
| 181 | device ref tcss_dma0 off end |
| 182 | device ref tcss_dma1 off end |
| 183 | device ref pcie_rp6 off end |
| 184 | device ref pcie_rp8 on |
| 185 | chip soc/intel/common/block/pcie/rtd3 |
| 186 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 187 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 188 | register "srcclk_pin" = "3" |
| 189 | device generic 0 on end |
| 190 | end |
| 191 | end #PCIE8 SD card |
| 192 | device ref i2c0 on |
| 193 | chip drivers/i2c/generic |
| 194 | register "hid" = ""RTL5682"" |
| 195 | register "name" = ""RT58"" |
| 196 | register "desc" = ""Headset Codec"" |
| 197 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 198 | # Set the jd_src to RT5668_JD1 for jack detection |
| 199 | register "property_count" = "1" |
| 200 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 201 | register "property_list[0].name" = ""realtek,jd-src"" |
| 202 | register "property_list[0].integer" = "1" |
| 203 | device i2c 1a on |
| 204 | probe AUDIO_AMP MAX98360_ALC5682VS_I2S_2WAY |
| 205 | end |
| 206 | end |
| 207 | end #I2C0 |
| 208 | device ref i2c1 on |
| 209 | chip drivers/i2c/tpm |
| 210 | register "hid" = ""GOOG0005"" |
| 211 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 212 | device i2c 50 on end |
| 213 | end |
| 214 | end #I2C1 |
| 215 | device ref i2c3 on |
| 216 | chip drivers/i2c/hid |
| 217 | register "generic.hid" = ""ELAN9008"" |
| 218 | register "generic.desc" = ""ELAN Touchscreen"" |
| 219 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 220 | register "generic.probed" = "1" |
| 221 | register "generic.reset_gpio" = |
| 222 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 223 | register "generic.reset_delay_ms" = "300" |
| 224 | register "generic.reset_off_delay_ms" = "1" |
| 225 | register "generic.enable_gpio" = |
| 226 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 227 | register "generic.enable_delay_ms" = "6" |
| 228 | register "generic.stop_gpio" = |
| 229 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 230 | register "generic.stop_off_delay_ms" = "1" |
| 231 | register "generic.has_power_resource" = "1" |
| 232 | register "generic.disable_gpio_export_in_crs" = "1" |
| 233 | register "hid_desc_reg_offset" = "0x01" |
| 234 | device i2c 10 on end |
| 235 | end |
| 236 | chip drivers/generic/gpio_keys |
| 237 | register "name" = ""PENH"" |
| 238 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_A7)" |
| 239 | register "key.wake_gpe" = "GPE0_DW0_08" |
| 240 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 241 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 242 | register "key.dev_name" = ""EJCT"" |
| 243 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 244 | register "key.linux_input_type" = "EV_SW" |
| 245 | register "key.label" = ""pen_eject"" |
| 246 | device generic 0 on |
| 247 | probe STYLUS STYLUS_PRESENT |
| 248 | end |
| 249 | end |
| 250 | end #I2C3 |
| 251 | device ref i2c5 on |
| 252 | chip drivers/i2c/generic |
| 253 | register "hid" = ""ELAN0000"" |
| 254 | register "desc" = ""ELAN Touchpad"" |
| 255 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 256 | register "wake" = "GPE0_DW2_14" |
| 257 | register "probed" = "1" |
| 258 | device i2c 15 on end |
| 259 | end |
| 260 | end #I2C5 |
| 261 | device ref hda on |
| 262 | chip drivers/generic/max98357a |
| 263 | register "hid" = ""MX98360A"" |
| 264 | register "sdmode_gpio" = |
| 265 | "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 pch_espi on |
| 271 | chip ec/google/chromeec |
| 272 | use conn1 as mux_conn[1] |
| 273 | use conn2 as mux_conn[0] |
| 274 | device pnp 0c09.0 on end |
| 275 | end |
| 276 | end |
| 277 | device ref pmc hidden |
| 278 | chip drivers/intel/pmc_mux |
| 279 | device generic 0 on |
| 280 | chip drivers/intel/pmc_mux/conn |
John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 281 | use usb2_port3 as usb2_port |
| 282 | use tcss_usb3_port3 as usb3_port |
| 283 | device generic 2 alias conn2 on end |
| 284 | end |
John Su | 8279f6e | 2022-05-27 17:09:45 +0800 | [diff] [blame^] | 285 | chip drivers/intel/pmc_mux/conn |
| 286 | use usb2_port2 as usb2_port |
| 287 | use tcss_usb3_port2 as usb3_port |
| 288 | device generic 1 alias conn1 on end |
| 289 | end |
John Su | af092ac | 2022-05-13 17:06:42 +0800 | [diff] [blame] | 290 | end |
| 291 | end |
| 292 | end |
| 293 | device ref tcss_xhci on |
| 294 | chip drivers/usb/acpi |
| 295 | device ref tcss_root_hub on |
| 296 | chip drivers/usb/acpi |
| 297 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 298 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 299 | register "use_custom_pld" = "true" |
| 300 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 301 | device ref tcss_usb3_port2 on end |
| 302 | end |
| 303 | chip drivers/usb/acpi |
| 304 | register "desc" = ""USB3 Type-C Port C2 (MLB)"" |
| 305 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 306 | register "use_custom_pld" = "true" |
| 307 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 308 | device ref tcss_usb3_port3 on end |
| 309 | end |
| 310 | end |
| 311 | end |
| 312 | end |
| 313 | device ref xhci on |
| 314 | chip drivers/usb/acpi |
| 315 | device ref xhci_root_hub on |
| 316 | chip drivers/usb/acpi |
| 317 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 318 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 319 | register "use_custom_pld" = "true" |
| 320 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 321 | device ref usb2_port2 on end |
| 322 | end |
| 323 | chip drivers/usb/acpi |
| 324 | register "desc" = ""USB2 Type-C Port C2 (MLB)"" |
| 325 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 326 | register "use_custom_pld" = "true" |
| 327 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 328 | device ref usb2_port3 on end |
| 329 | end |
| 330 | chip drivers/usb/acpi |
| 331 | register "desc" = ""USB2 Camera"" |
| 332 | register "type" = "UPC_TYPE_INTERNAL" |
| 333 | device ref usb2_port6 on end |
| 334 | end |
| 335 | chip drivers/usb/acpi |
| 336 | register "desc" = ""USB2 Type-A Port A0 (DB)"" |
| 337 | register "type" = "UPC_TYPE_A" |
| 338 | register "use_custom_pld" = "true" |
| 339 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 340 | device ref usb2_port9 on end |
| 341 | end |
| 342 | chip drivers/usb/acpi |
| 343 | register "desc" = ""USB2 Bluetooth"" |
| 344 | register "type" = "UPC_TYPE_INTERNAL" |
| 345 | register "reset_gpio" = |
| 346 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 347 | device ref usb2_port10 on end |
| 348 | end |
| 349 | chip drivers/usb/acpi |
| 350 | register "desc" = ""USB3 Type-A Port A0 (DB)"" |
| 351 | register "type" = "UPC_TYPE_USB3_A" |
| 352 | register "use_custom_pld" = "true" |
| 353 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 354 | device ref usb3_port1 on end |
| 355 | end |
| 356 | end |
| 357 | end |
| 358 | end |
| 359 | end |
John Su | 8ef9187 | 2022-04-21 15:53:10 +0800 | [diff] [blame] | 360 | end |