Tony Huang | dc0eb65 | 2022-01-19 09:28:27 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO_CODEC_SOURCE 8 10 |
| 3 | option AUDIO_CODEC_UNPROVISIONED 0 |
| 4 | option AUDIO_CODEC_ALC5682 1 |
| 5 | option AUDIO_CODEC_ALC5682I_VS 2 |
| 6 | end |
| 7 | end |
| 8 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 9 | chip soc/intel/cannonlake |
| 10 | |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 11 | register "power_limits_config" = "{ |
| 12 | .tdp_pl1_override = 25, |
| 13 | .tdp_pl2_override = 49, |
| 14 | }" |
| 15 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 16 | # Auto-switch between X4 NVMe and X2 NVMe. |
| 17 | register "TetonGlacierMode" = "1" |
| 18 | |
| 19 | register "SerialIoDevMode" = "{ |
Tony Huang | 8a1e2e1 | 2021-01-04 16:24:13 +0800 | [diff] [blame] | 20 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 21 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 22 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 23 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 24 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 25 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 26 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 27 | [PchSerialIoIndexSPI1] = PchSerialIoPci, |
| 28 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 29 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 30 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 31 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 32 | }" |
| 33 | |
| 34 | # USB configuration |
| 35 | register "usb2_ports[0]" = "{ |
| 36 | .enable = 1, |
| 37 | .ocpin = OC2, |
| 38 | .tx_bias = USB2_BIAS_0MV, |
| 39 | .tx_emp_enable = USB2_PRE_EMP_ON, |
| 40 | .pre_emp_bias = USB2_BIAS_11P25MV, |
| 41 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 42 | }" # Type-A Port 0 |
Tony Huang | b37f2e9 | 2020-11-17 19:09:47 +0800 | [diff] [blame] | 43 | register "usb2_ports[1]" = "{ |
| 44 | .enable = 1, |
| 45 | .ocpin = OC_SKIP, |
| 46 | .tx_bias = USB2_BIAS_0MV, |
| 47 | .tx_emp_enable = USB2_PRE_EMP_ON, |
| 48 | .pre_emp_bias = USB2_BIAS_28P15MV, |
| 49 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 50 | }" # Type-C Port 0 |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 51 | register "usb2_ports[2]" = "{ |
| 52 | .enable = 1, |
| 53 | .ocpin = OC3, |
| 54 | .tx_bias = USB2_BIAS_0MV, |
| 55 | .tx_emp_enable = USB2_PRE_EMP_ON, |
| 56 | .pre_emp_bias = USB2_BIAS_28P15MV, |
| 57 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 58 | }" # Type-A Port 1 |
| 59 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" |
Tony Huang | b37f2e9 | 2020-11-17 19:09:47 +0800 | [diff] [blame] | 60 | register "usb2_ports[4]" = "{ |
| 61 | .enable = 1, |
| 62 | .ocpin = OC_SKIP, |
| 63 | .tx_bias = USB2_BIAS_0MV, |
| 64 | .tx_emp_enable = USB2_PRE_EMP_ON, |
| 65 | .pre_emp_bias = USB2_BIAS_28P15MV, |
| 66 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 67 | }" # Type-C Port 1 |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 68 | register "usb2_ports[5]" = "USB2_PORT_LONG(OC_SKIP)" # USB cam |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 69 | register "usb2_ports[6]" = "USB2_PORT_EMPTY" |
| 70 | register "usb2_ports[7]" = "USB2_PORT_EMPTY" |
| 71 | register "usb2_ports[8]" = "USB2_PORT_EMPTY" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 72 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # BT |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 73 | |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 74 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port 0 |
| 75 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Port 1 |
| 76 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port 1 |
| 77 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port 0 |
| 78 | register "usb3_ports[4]" = "USB3_PORT_EMPTY" |
| 79 | register "usb3_ports[5]" = "USB3_PORT_EMPTY" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 80 | |
| 81 | # Bitmap for Wake Enable on USB attach/detach |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 82 | register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) | |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 83 | USB_PORT_WAKE_ENABLE(3)" |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 84 | register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) | |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 85 | USB_PORT_WAKE_ENABLE(2)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 86 | |
| 87 | # Enable eMMC HS400 |
| 88 | register "ScsEmmcHs400Enabled" = "1" |
| 89 | |
| 90 | # EMMC Tx CMD Delay |
| 91 | # Refer to EDS-Vol2-14.3.7. |
| 92 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 93 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 94 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 95 | |
| 96 | # EMMC TX DATA Delay 1 |
| 97 | # Refer to EDS-Vol2-14.3.8. |
| 98 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 99 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 100 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x911" |
| 101 | |
| 102 | # EMMC TX DATA Delay 2 |
| 103 | # Refer to EDS-Vol2-14.3.9. |
| 104 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 105 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 106 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 107 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 108 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C262828" |
| 109 | |
| 110 | # EMMC RX CMD/DATA Delay 1 |
| 111 | # Refer to EDS-Vol2-14.3.10. |
| 112 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 113 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 114 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 115 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 116 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C16583b" |
| 117 | |
| 118 | # EMMC RX CMD/DATA Delay 2 |
| 119 | # Refer to EDS-Vol2-14.3.12. |
| 120 | # [17:16] stands for Rx Clock before Output Buffer, |
| 121 | # 00: Rx clock after output buffer, |
| 122 | # 01: Rx clock before output buffer, |
| 123 | # 10: Automatic selection based on working mode. |
| 124 | # 11: Reserved |
| 125 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 126 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 127 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x1001D" |
| 128 | |
| 129 | # EMMC Rx Strobe Delay |
| 130 | # Refer to EDS-Vol2-14.3.11. |
| 131 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 132 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 133 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x1515" |
| 134 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 135 | # Intel Common SoC Config |
| 136 | #+-------------------+---------------------------+ |
| 137 | #| Field | Value | |
| 138 | #+-------------------+---------------------------+ |
| 139 | #| GSPI0 | cr50 TPM. Early init is | |
| 140 | #| | required to set up a BAR | |
| 141 | #| | for TPM communication | |
| 142 | #| | before memory is up | |
Tony Huang | f60ce24 | 2020-10-12 10:45:35 +0800 | [diff] [blame] | 143 | #| I2C0 | ALC 1015 | |
| 144 | #| I2C2 | Lvds | |
| 145 | #| I2C3 | Touchscreen | |
| 146 | #| I2C4 | RT5682 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 147 | #+-------------------+---------------------------+ |
| 148 | register "common_soc_config" = "{ |
| 149 | .gspi[0] = { |
| 150 | .speed_mhz = 1, |
| 151 | .early_init = 1, |
| 152 | }, |
| 153 | .i2c[0] = { |
| 154 | .speed = I2C_SPEED_FAST, |
Tony Huang | 83e4105 | 2020-11-03 18:00:59 +0800 | [diff] [blame] | 155 | .rise_time_ns = 60, |
| 156 | .fall_time_ns = 60, |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 157 | }, |
| 158 | .i2c[2] = { |
| 159 | .speed = I2C_SPEED_FAST, |
| 160 | .rise_time_ns = 60, |
| 161 | .fall_time_ns = 60, |
| 162 | }, |
| 163 | .i2c[3] = { |
| 164 | .speed = I2C_SPEED_FAST, |
| 165 | .rise_time_ns = 60, |
| 166 | .fall_time_ns = 60, |
| 167 | }, |
| 168 | .i2c[4] = { |
| 169 | .speed = I2C_SPEED_FAST, |
| 170 | .rise_time_ns = 60, |
| 171 | .fall_time_ns = 60, |
| 172 | }, |
| 173 | }" |
| 174 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 175 | # PCIe port 11 (x2) for NVMe hybrid storage devices |
| 176 | register "PcieRpEnable[10]" = "1" |
| 177 | register "PcieRpLtrEnable[10]" = "1" |
| 178 | # Uses CLK SRC 0 |
| 179 | register "PcieClkSrcUsage[0]" = "6" |
| 180 | register "PcieClkSrcClkReq[0]" = "0" |
| 181 | |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 182 | # SATA port 1 Gen3 Strength |
| 183 | # Port1 Tx De-Emphasis = 20*log(0x20/64) = -6dB |
| 184 | register "sata_port[1].TxGen3DeEmphEnable" = "1" |
| 185 | register "sata_port[1].TxGen3DeEmph" = "0x20" |
| 186 | |
| 187 | device domain 0 on |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 188 | device ref dptf on |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 189 | chip drivers/intel/dptf |
| 190 | ## Active Policy |
| 191 | register "policies.active[0]" = "{.target=DPTF_CPU, |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 192 | .thresholds={TEMP_PCT(90, 0),}}" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 193 | register "policies.active[1]" = "{.target=DPTF_TEMP_SENSOR_0, |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 194 | .thresholds={TEMP_PCT(75, 60), |
| 195 | TEMP_PCT(65, 50), |
| 196 | TEMP_PCT(45, 40), |
| 197 | TEMP_PCT(30, 30),}}" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 198 | |
| 199 | ## Passive Policy |
Tony Huang | 043426c | 2021-05-20 16:41:28 +0800 | [diff] [blame] | 200 | register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 85, 60000)" |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 201 | register "policies.passive[1]" = "DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 76, 60000)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 202 | |
| 203 | ## Critical Policy |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 204 | register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)" |
| 205 | register "policies.critical[1]" = "DPTF_CRITICAL(TEMP_SENSOR_0, 78, SHUTDOWN)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 206 | |
| 207 | ## Power Limits Control |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 208 | # 15-25W PL1 in 1000mW increments, avg over 28-32s interval |
| 209 | # 40-49W PL2 in 1000mW increments, avg over 28-32s interval |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 210 | register "controls.power_limits.pl1" = "{ |
| 211 | .min_power = 15000, |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 212 | .max_power = 25000, |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 213 | .time_window_min = 28 * MSECS_PER_SEC, |
| 214 | .time_window_max = 32 * MSECS_PER_SEC, |
| 215 | .granularity = 1000,}" |
Tony Huang | c34c15b | 2020-12-01 18:45:13 +0800 | [diff] [blame] | 216 | register "controls.power_limits.pl2" = "{ |
| 217 | .min_power = 40000, |
| 218 | .max_power = 49000, |
| 219 | .time_window_min = 28 * MSECS_PER_SEC, |
| 220 | .time_window_max = 32 * MSECS_PER_SEC, |
| 221 | .granularity = 1000,}" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 222 | |
| 223 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 224 | register "controls.fan_perf[0]" = "{ 90, 6700, 220, 2200, }" |
| 225 | register "controls.fan_perf[1]" = "{ 80, 5800, 180, 1800, }" |
| 226 | register "controls.fan_perf[2]" = "{ 70, 5000, 145, 1450, }" |
| 227 | register "controls.fan_perf[3]" = "{ 60, 4900, 115, 1150, }" |
| 228 | register "controls.fan_perf[4]" = "{ 50, 3838, 90, 900, }" |
| 229 | register "controls.fan_perf[5]" = "{ 40, 2904, 55, 550, }" |
| 230 | register "controls.fan_perf[6]" = "{ 30, 2337, 30, 300, }" |
| 231 | register "controls.fan_perf[7]" = "{ 20, 1608, 15, 150, }" |
| 232 | register "controls.fan_perf[8]" = "{ 10, 800, 10, 100, }" |
| 233 | register "controls.fan_perf[9]" = "{ 0, 0, 0, 50, }" |
| 234 | |
| 235 | # Fan options |
| 236 | register "options.fan.fine_grained_control" = "1" |
| 237 | register "options.fan.step_size" = "2" |
| 238 | |
| 239 | device generic 0 on end |
| 240 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 241 | end |
| 242 | device ref xhci on |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 243 | chip drivers/usb/acpi |
| 244 | device usb 0.0 on |
| 245 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 246 | register "desc" = ""USB2 Type-A Port 0"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 247 | register "type" = "UPC_TYPE_A" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 248 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 249 | device usb 2.0 on end |
| 250 | end |
| 251 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 252 | register "desc" = ""USB2 Type-C Port 0"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 253 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 254 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 255 | device usb 2.1 on end |
| 256 | end |
| 257 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 258 | register "desc" = ""USB2 Type-A Port 1"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 259 | register "type" = "UPC_TYPE_A" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 260 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 261 | device usb 2.2 on end |
| 262 | end |
| 263 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 264 | device usb 2.3 off end |
| 265 | end |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 266 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 267 | register "desc" = ""USB2 Type-C Port 1"" |
| 268 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 269 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 270 | device usb 2.4 on end |
| 271 | end |
| 272 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 273 | register "desc" = ""Camera"" |
| 274 | register "type" = "UPC_TYPE_INTERNAL" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 275 | device usb 2.5 on end |
| 276 | end |
| 277 | chip drivers/usb/acpi |
| 278 | device usb 2.6 off end |
| 279 | end |
| 280 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 281 | register "desc" = ""USB3 Type-A Port 0"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 282 | register "type" = "UPC_TYPE_USB3_A" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 283 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 284 | device usb 3.0 on end |
| 285 | end |
| 286 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 287 | register "desc" = ""USB3 Type-A Port 1"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 288 | register "type" = "UPC_TYPE_USB3_A" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 289 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 290 | device usb 3.1 on end |
| 291 | end |
| 292 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 293 | register "desc" = ""USB3 Type-C Port 1"" |
| 294 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 295 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 296 | device usb 3.2 on end |
| 297 | end |
| 298 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 299 | register "desc" = ""USB3 Type-C Port 0"" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 300 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 301 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 302 | device usb 3.3 on end |
| 303 | end |
| 304 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 305 | device usb 3.4 off end |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 306 | end |
| 307 | chip drivers/usb/acpi |
Tony Huang | 51f0164 | 2020-10-07 16:23:23 +0800 | [diff] [blame] | 308 | device usb 3.5 off end |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 309 | end |
| 310 | end |
| 311 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 312 | end |
| 313 | device ref sdxc off end |
| 314 | device ref i2c0 on |
| 315 | # ALC1015 |
Tony Huang | f60ce24 | 2020-10-12 10:45:35 +0800 | [diff] [blame] | 316 | chip drivers/i2c/generic |
| 317 | register "hid" = ""10EC1015"" |
| 318 | register "desc" = ""Realtek SPK AMP L"" |
| 319 | register "uid" = "0" |
| 320 | device i2c 28 on end |
| 321 | end |
| 322 | chip drivers/i2c/generic |
| 323 | register "hid" = ""10EC1015"" |
| 324 | register "desc" = ""Realtek SPK AMP R"" |
| 325 | register "uid" = "1" |
| 326 | device i2c 29 on end |
| 327 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 328 | end |
| 329 | device ref i2c1 off end |
| 330 | device ref i2c2 on end # LVDS |
| 331 | device ref i2c3 on |
| 332 | # Touchscreen |
Tony Huang | 2e73175 | 2020-11-05 16:53:56 +0800 | [diff] [blame] | 333 | chip drivers/i2c/hid |
| 334 | register "generic.hid" = ""WDHT2002"" |
| 335 | register "generic.desc" = ""WDT Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 336 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A20_IRQ)" |
Tony Huang | 2e73175 | 2020-11-05 16:53:56 +0800 | [diff] [blame] | 337 | register "generic.probed" = "1" |
| 338 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 339 | register "generic.reset_delay_ms" = "100" |
Tony Huang | bce4f2f | 2021-04-28 15:26:43 +0800 | [diff] [blame] | 340 | register "generic.wake" = "GPE0_DW0_20" |
Tony Huang | 2e73175 | 2020-11-05 16:53:56 +0800 | [diff] [blame] | 341 | register "generic.has_power_resource" = "1" |
Tony Huang | 2e73175 | 2020-11-05 16:53:56 +0800 | [diff] [blame] | 342 | register "hid_desc_reg_offset" = "0x20" |
| 343 | device i2c 2c on end |
| 344 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 345 | end |
| 346 | device ref heci1 on end |
| 347 | device ref i2c4 on |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 348 | chip drivers/i2c/generic |
| 349 | register "hid" = ""10EC5682"" |
| 350 | register "name" = ""RT58"" |
| 351 | register "desc" = ""Realtek RT5682"" |
| 352 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 353 | register "property_count" = "1" |
| 354 | # Set the jd_src to RT5668_JD1 for jack detection |
| 355 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 356 | register "property_list[0].name" = ""realtek,jd-src"" |
| 357 | register "property_list[0].integer" = "1" |
Tony Huang | dc0eb65 | 2022-01-19 09:28:27 +0800 | [diff] [blame] | 358 | device i2c 1a on |
| 359 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED |
| 360 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682 |
| 361 | end |
| 362 | end |
| 363 | chip drivers/i2c/generic |
| 364 | register "hid" = ""RTL5682"" |
| 365 | register "name" = ""RT58"" |
| 366 | register "desc" = ""Realtek RT5682"" |
| 367 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 368 | register "property_count" = "1" |
| 369 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 370 | register "property_list[0].name" = ""realtek,jd-src"" |
| 371 | register "property_list[0].integer" = "1" |
| 372 | device i2c 1a on |
| 373 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS |
| 374 | end |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 375 | end |
Ben Zhang | f8b0eb8 | 2021-05-16 08:44:47 -0400 | [diff] [blame] | 376 | chip drivers/generic/gpio_keys |
| 377 | register "name" = ""MUTE"" |
| 378 | register "label" = ""mic_mute_switch"" |
| 379 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D16)" |
| 380 | register "key.wakeup_route" = "WAKEUP_ROUTE_DISABLED" |
| 381 | register "key.dev_name" = ""MMSW"" |
| 382 | register "key.linux_code" = "SW_MUTE_DEVICE" |
| 383 | register "key.linux_input_type" = "EV_SW" |
| 384 | register "key.label" = ""mic_mute_switch_key"" |
| 385 | device generic 0 on end |
| 386 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 387 | end |
| 388 | device ref emmc on end |
| 389 | device ref pcie_rp11 on |
| 390 | # X2 NVMe |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 391 | register "PcieRpSlotImplemented[10]" = "1" |
| 392 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 393 | device ref gspi1 off end |
| 394 | device ref hda on |
Matt DeVillier | 1d87638 | 2023-01-17 12:25:45 -0600 | [diff] [blame] | 395 | chip drivers/sof |
| 396 | register "spkr_tplg" = "rt1015" |
| 397 | register "jack_tplg" = "rt5682" |
| 398 | register "mic_tplg" = "_2ch_pdm0" |
| 399 | device generic 0 on end |
| 400 | end |
Felix Singer | d571ea2 | 2024-01-17 21:51:07 +0100 | [diff] [blame^] | 401 | end |
Tony Huang | bfb18e1 | 2020-09-01 15:45:39 +0800 | [diff] [blame] | 402 | end |
| 403 | |
| 404 | # VR Settings Configuration for 4 Domains |
| 405 | #+----------------+-------+-------+-------+-------+ |
| 406 | #| Domain/Setting | SA | IA | GTUS | GTS | |
| 407 | #+----------------+-------+-------+-------+-------+ |
| 408 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 409 | #| Psi2Threshold | 5A | 5A | 5A | 5A | |
| 410 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 411 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 412 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 413 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 414 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 415 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 416 | #| AcLoadline | 10.04 | 1.81 | 3.19 | 3.19 | |
| 417 | #| DcLoadline | 10.04 | 1.81 | 3.19 | 3.19 | |
| 418 | #+----------------+-------+-------+-------+-------+ |
| 419 | #Note: IccMax settings are moved to SoC code |
| 420 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 421 | .vr_config_enable = 1, |
| 422 | .psi1threshold = VR_CFG_AMP(20), |
| 423 | .psi2threshold = VR_CFG_AMP(5), |
| 424 | .psi3threshold = VR_CFG_AMP(1), |
| 425 | .psi3enable = 1, |
| 426 | .psi4enable = 1, |
| 427 | .imon_slope = 0x0, |
| 428 | .imon_offset = 0x0, |
| 429 | .icc_max = 0, |
| 430 | .voltage_limit = 1520, |
| 431 | .ac_loadline = 1004, |
| 432 | .dc_loadline = 1004, |
| 433 | }" |
| 434 | |
| 435 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 436 | .vr_config_enable = 1, |
| 437 | .psi1threshold = VR_CFG_AMP(20), |
| 438 | .psi2threshold = VR_CFG_AMP(5), |
| 439 | .psi3threshold = VR_CFG_AMP(1), |
| 440 | .psi3enable = 1, |
| 441 | .psi4enable = 1, |
| 442 | .imon_slope = 0x0, |
| 443 | .imon_offset = 0x0, |
| 444 | .icc_max = 0, |
| 445 | .voltage_limit = 1520, |
| 446 | .ac_loadline = 181, |
| 447 | .dc_loadline = 181, |
| 448 | }" |
| 449 | |
| 450 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 451 | .vr_config_enable = 1, |
| 452 | .psi1threshold = VR_CFG_AMP(20), |
| 453 | .psi2threshold = VR_CFG_AMP(5), |
| 454 | .psi3threshold = VR_CFG_AMP(1), |
| 455 | .psi3enable = 1, |
| 456 | .psi4enable = 1, |
| 457 | .imon_slope = 0x0, |
| 458 | .imon_offset = 0x0, |
| 459 | .icc_max = 0, |
| 460 | .voltage_limit = 1520, |
| 461 | .ac_loadline = 319, |
| 462 | .dc_loadline = 319, |
| 463 | }" |
| 464 | |
| 465 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 466 | .vr_config_enable = 1, |
| 467 | .psi1threshold = VR_CFG_AMP(20), |
| 468 | .psi2threshold = VR_CFG_AMP(5), |
| 469 | .psi3threshold = VR_CFG_AMP(1), |
| 470 | .psi3enable = 1, |
| 471 | .psi4enable = 1, |
| 472 | .imon_slope = 0x0, |
| 473 | .imon_offset = 0x0, |
| 474 | .icc_max = 0, |
| 475 | .voltage_limit = 1520, |
| 476 | .ac_loadline = 319, |
| 477 | .dc_loadline = 319, |
| 478 | }" |
| 479 | |
| 480 | end |