Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 1 | fw_config |
Frank Chu | fa93c5b | 2022-11-30 18:14:40 +0800 | [diff] [blame] | 2 | field KB_BL 0 0 |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 3 | option KB_BL_ABSENT 0 |
| 4 | option KB_BL_PRESENT 1 |
| 5 | end |
Frank Chu | fa93c5b | 2022-11-30 18:14:40 +0800 | [diff] [blame] | 6 | field AUDIO 1 3 |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 7 | option AUDIO_UNKNOWN 0 |
| 8 | option ALC1019_ALC5682I_VD_I2S 1 |
| 9 | option ALC1019_ALC5682I_VS_I2S 2 |
| 10 | end |
Frank Chu | fa93c5b | 2022-11-30 18:14:40 +0800 | [diff] [blame] | 11 | field UFC 4 4 |
| 12 | option UFC_USB 0 |
| 13 | option UFC_MIPI 1 |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 14 | end |
Frank Chu | 3b23fa6 | 2023-01-06 11:20:55 +0800 | [diff] [blame] | 15 | field TOUCH 5 5 |
| 16 | option TOUCH_NONE 0 |
| 17 | option TOUCH_ELAN0001 1 |
| 18 | end |
Daniel Peng | ed62dba | 2023-09-11 17:29:54 +0800 | [diff] [blame] | 19 | field WIFI_SAR_ID 6 7 |
| 20 | option WIFI_SAR_ID_0 0 |
| 21 | option WIFI_SAR_ID_1 1 |
| 22 | end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 23 | field STORAGE 30 31 |
Frank Chu | 88019dd | 2022-11-18 16:39:36 +0800 | [diff] [blame] | 24 | option STORAGE_UNKNOWN 0 |
| 25 | option STORAGE_NVME 1 |
| 26 | option STORAGE_UFS 2 |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 27 | end |
| 28 | end |
| 29 | |
Frank Chu | 502dc54 | 2022-11-01 11:35:06 +0800 | [diff] [blame] | 30 | chip soc/intel/alderlake |
Frank Chu | 3834275 | 2023-03-06 16:38:29 +0800 | [diff] [blame] | 31 | # Acoustic settings |
| 32 | register "acoustic_noise_mitigation" = "1" |
| 33 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 34 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 35 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 36 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
Frank Chu | 502dc54 | 2022-11-01 11:35:06 +0800 | [diff] [blame] | 37 | |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 38 | # Intel Common SoC Config |
| 39 | #+-------------------+---------------------------+ |
| 40 | #| Field | Value | |
| 41 | #+-------------------+---------------------------+ |
| 42 | #| GSPI1 | Fingerprint MCU | |
| 43 | #| I2C0 | Audio | |
| 44 | #| I2C1 | cr50 TPM. Early init is | |
| 45 | #| | required to set up a BAR | |
| 46 | #| | for TPM communication | |
| 47 | #| I2C3 | TouchScreen | |
| 48 | #| I2C5 | Trackpad | |
| 49 | #+-------------------+---------------------------+ |
| 50 | register "common_soc_config" = "{ |
| 51 | .i2c[0] = { |
| 52 | .speed = I2C_SPEED_FAST, |
Frank Chu | f99f308 | 2022-12-02 11:19:03 +0800 | [diff] [blame] | 53 | .rise_time_ns = 650, |
| 54 | .fall_time_ns = 400, |
| 55 | .data_hold_time_ns = 50, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 56 | }, |
| 57 | .i2c[1] = { |
| 58 | .early_init = 1, |
| 59 | .speed = I2C_SPEED_FAST, |
Frank Chu | f99f308 | 2022-12-02 11:19:03 +0800 | [diff] [blame] | 60 | .rise_time_ns = 600, |
| 61 | .fall_time_ns = 400, |
| 62 | .data_hold_time_ns = 50, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 63 | }, |
| 64 | .i2c[3] = { |
| 65 | .speed = I2C_SPEED_FAST, |
Frank Chu | f99f308 | 2022-12-02 11:19:03 +0800 | [diff] [blame] | 66 | .rise_time_ns = 650, |
| 67 | .fall_time_ns = 400, |
| 68 | .data_hold_time_ns = 50, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 69 | }, |
| 70 | .i2c[5] = { |
| 71 | .speed = I2C_SPEED_FAST, |
Frank Chu | f99f308 | 2022-12-02 11:19:03 +0800 | [diff] [blame] | 72 | .rise_time_ns = 650, |
| 73 | .fall_time_ns = 400, |
| 74 | .data_hold_time_ns = 50, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 75 | }, |
| 76 | }" |
| 77 | register "sagv" = "SaGv_Enabled" |
Frank Chu | 68bbbf8 | 2022-12-02 11:38:44 +0800 | [diff] [blame] | 78 | |
| 79 | register "ext_fivr_settings" = "{ |
| 80 | .configure_ext_fivr = 1, |
| 81 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 82 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 83 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 84 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 85 | FIVR_VOLTAGE_MIN_RETENTION, |
| 86 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL | |
| 87 | FIVR_VOLTAGE_MIN_ACTIVE | |
| 88 | FIVR_VOLTAGE_MIN_RETENTION, |
| 89 | .v1p05_icc_max_ma = 500, |
| 90 | .vnn_sx_voltage_mv = 1250, |
| 91 | }" |
Frank Chu | 3810705 | 2023-04-21 14:33:24 +0800 | [diff] [blame] | 92 | |
| 93 | # As per Intel Advisory doc#723158, the change is required to prevent possible |
| 94 | # display flickering issue. |
Frank Chu | 3cb0927 | 2023-05-03 14:06:48 +0800 | [diff] [blame] | 95 | register "disable_dynamic_tccold_handshake" = "true" |
Frank Chu | 3810705 | 2023-04-21 14:33:24 +0800 | [diff] [blame] | 96 | |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 97 | register "serial_io_i2c_mode" = "{ |
Frank Chu | 891e6c3 | 2022-12-02 13:49:06 +0800 | [diff] [blame] | 98 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 99 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 100 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
Frank Chu | 891e6c3 | 2022-12-02 13:49:06 +0800 | [diff] [blame] | 101 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 102 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 103 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 104 | }" |
Frank Chu | 502dc54 | 2022-11-01 11:35:06 +0800 | [diff] [blame] | 105 | |
Frank Chu | 4eba742 | 2022-12-22 16:08:52 +0800 | [diff] [blame] | 106 | # SOC Aux orientation override: |
| 107 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 108 | # Bits (0,1) are allocated for TCSS Port1 configuration and Bits (2,3) for TCSS Port2. |
| 109 | # TcssAuxOri = 0101b |
| 110 | # Bit0, Bit2 set to "1" indicates no retimer on USB-C Ports |
| 111 | # Bit1, Bit3 set to "0" indicates Aux lines are not swapped on the |
| 112 | # motherboard to USB-C connector |
| 113 | register "tcss_aux_ori" = "1" |
| 114 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, |
| 115 | .pad_auxn_dc = GPP_E23}" |
| 116 | |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 117 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
| 118 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable USB2_Port 1 |
| 119 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC1)" # USB2_C2 |
| 120 | register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Port A1 |
| 121 | register "usb2_ports[4]" = "USB2_PORT_EMPTY" # Disable USB2 Port 4 |
| 122 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
| 123 | register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Disable USB2 Port 6 |
| 124 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # DCI port |
| 125 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A0 |
| 126 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 127 | |
| 128 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port A0 |
| 129 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # DCI port |
| 130 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Disable USB3 Port 2 |
| 131 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # USB3/2 Type A port A1 |
| 132 | |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 133 | register "tcss_ports[1]" = "TCSS_PORT_EMPTY" |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 134 | |
Frank Chu | e7bdc5f | 2023-01-03 15:45:14 +0800 | [diff] [blame] | 135 | register "tcc_offset" = "5" # TCC of 100 |
| 136 | |
Daniel Peng | 49d1cf9 | 2023-11-29 14:46:05 +0800 | [diff] [blame] | 137 | register "power_limits_config[RPL_P_282_242_142_15W_CORE]" = "{ |
| 138 | .tdp_pl1_override = 17, |
| 139 | .tdp_pl2_override = 55, |
| 140 | .tdp_pl4 = 114, |
| 141 | }" |
| 142 | |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 143 | device domain 0 on |
Won Chung | d68bb7c | 2023-07-31 22:31:11 +0000 | [diff] [blame] | 144 | device ref igpu on |
| 145 | chip drivers/gfx/generic |
| 146 | register "device_count" = "6" |
| 147 | # DDIA for eDP |
| 148 | register "device[0].name" = ""LCD"" |
| 149 | # DDIB for HDMI |
| 150 | register "device[1].name" = ""DD01"" |
| 151 | # TCP0 (DP-1) for port C0 |
| 152 | register "device[2].name" = ""DD02"" |
| 153 | register "device[2].use_pld" = "true" |
| 154 | register "device[2].pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 155 | # TCP1 (DP-2) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP1 |
| 156 | register "device[3].name" = ""DD03"" |
| 157 | # TCP2 (DP-3) for port C1 |
| 158 | register "device[4].name" = ""DD04"" |
| 159 | register "device[4].use_pld" = "true" |
| 160 | register "device[4].pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 161 | # TCP3 (DP-4) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP3 |
| 162 | register "device[5].name" = ""DD05"" |
| 163 | device generic 0 on end |
| 164 | end |
| 165 | end # Integrated Graphics Device |
Frank Chu | e7bdc5f | 2023-01-03 15:45:14 +0800 | [diff] [blame] | 166 | device ref dtt on |
| 167 | chip drivers/intel/dptf |
| 168 | ## sensor information |
| 169 | register "options.tsr[0].desc" = ""Charge"" |
| 170 | register "options.tsr[1].desc" = ""5V"" |
| 171 | register "options.tsr[2].desc" = ""AMB"" |
| 172 | register "options.tsr[3].desc" = ""CPU Power"" |
| 173 | |
| 174 | # TODO: below values are initial reference values only |
| 175 | ## Active Policy |
| 176 | register "policies.active" = "{ |
| 177 | [0] = { |
| 178 | .target = DPTF_CPU, |
| 179 | .thresholds = { |
| 180 | TEMP_PCT(90, 100), |
| 181 | TEMP_PCT(58, 70), |
| 182 | TEMP_PCT(55, 65), |
| 183 | TEMP_PCT(53, 60), |
| 184 | TEMP_PCT(50, 58), |
| 185 | TEMP_PCT(48, 54), |
| 186 | TEMP_PCT(43, 47), |
| 187 | TEMP_PCT(38, 42), |
| 188 | TEMP_PCT(35, 37), |
| 189 | TEMP_PCT(33, 0), |
| 190 | } |
| 191 | }, |
| 192 | }" |
| 193 | |
| 194 | ## Critical Policy |
| 195 | register "policies.critical" = "{ |
| 196 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 197 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN), |
| 198 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 70, SHUTDOWN), |
| 199 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 65, SHUTDOWN), |
| 200 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 90, SHUTDOWN), |
| 201 | }" |
| 202 | |
| 203 | register "controls.power_limits" = "{ |
| 204 | .pl1 = { |
| 205 | .min_power = 15000, |
| 206 | .max_power = 15000, |
| 207 | .time_window_min = 28 * MSECS_PER_SEC, |
| 208 | .time_window_max = 32 * MSECS_PER_SEC, |
| 209 | .granularity = 200, |
| 210 | }, |
| 211 | .pl2 = { |
| 212 | .min_power = 55000, |
| 213 | .max_power = 55000, |
| 214 | .time_window_min = 28 * MSECS_PER_SEC, |
| 215 | .time_window_max = 32 * MSECS_PER_SEC, |
| 216 | .granularity = 1000, |
| 217 | } |
| 218 | }" |
| 219 | |
| 220 | ## Charger Performance Control (Control, mA) |
| 221 | register "controls.charger_perf" = "{ |
| 222 | [0] = { 36, 2300 }, |
| 223 | [1] = { 31, 2000 }, |
| 224 | [2] = { 26, 1700 }, |
| 225 | [3] = { 20, 1300 } |
| 226 | }" |
| 227 | |
| 228 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 229 | register "controls.fan_perf" = "{ |
| 230 | [0] = { 90, 6700, 220, 2200, }, |
| 231 | [1] = { 80, 5800, 180, 1800, }, |
| 232 | [2] = { 70, 5000, 145, 1450, }, |
| 233 | [3] = { 60, 4900, 115, 1150, }, |
| 234 | [4] = { 50, 3838, 90, 900, }, |
| 235 | [5] = { 40, 2904, 55, 550, }, |
| 236 | [6] = { 30, 2337, 30, 300, }, |
| 237 | [7] = { 20, 1608, 15, 150, }, |
| 238 | [8] = { 10, 800, 10, 100, }, |
| 239 | [9] = { 0, 0, 0, 50, } |
| 240 | }" |
| 241 | |
| 242 | ## Fan options |
| 243 | register "options.fan.fine_grained_control" = "1" |
| 244 | register "options.fan.step_size" = "2" |
| 245 | |
| 246 | device generic 0 alias dptf_policy on end |
| 247 | end |
| 248 | end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 249 | device ref i2c0 on |
| 250 | chip drivers/i2c/generic |
| 251 | register "hid" = ""10EC5682"" |
| 252 | register "name" = ""RT58"" |
| 253 | register "desc" = ""Headset Codec"" |
| 254 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 255 | # Set the jd_src to RT5668_JD1 for jack detection |
| 256 | register "property_count" = "1" |
| 257 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 258 | register "property_list[0].name" = ""realtek,jd-src"" |
| 259 | register "property_list[0].integer" = "1" |
| 260 | device i2c 1a on |
| 261 | probe AUDIO AUDIO_UNKNOWN |
| 262 | probe AUDIO ALC1019_ALC5682I_VD_I2S |
| 263 | end |
| 264 | end |
| 265 | chip drivers/i2c/generic |
| 266 | register "hid" = ""RTL5682"" |
| 267 | register "name" = ""RT58"" |
| 268 | register "desc" = ""Headset Codec"" |
| 269 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 270 | # Set the jd_src to RT5668_JD1 for jack detection |
| 271 | register "property_count" = "1" |
| 272 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 273 | register "property_list[0].name" = ""realtek,jd-src"" |
| 274 | register "property_list[0].integer" = "1" |
| 275 | device i2c 1a on |
| 276 | probe AUDIO ALC1019_ALC5682I_VS_I2S |
| 277 | end |
| 278 | end |
| 279 | chip drivers/generic/alc1015 |
| 280 | register "hid" = ""RTL1019"" |
| 281 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 282 | device generic 1 on end |
| 283 | end |
| 284 | end #I2C0 |
| 285 | device ref i2c1 on |
| 286 | chip drivers/i2c/tpm |
| 287 | register "hid" = ""GOOG0005"" |
| 288 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 289 | device i2c 50 on end |
| 290 | end |
| 291 | end #I2C1 |
Frank Chu | fb43107 | 2022-11-11 15:20:25 +0800 | [diff] [blame] | 292 | device ref i2c3 on |
Frank Chu | de4727a | 2022-12-07 12:38:46 +0800 | [diff] [blame] | 293 | chip drivers/i2c/generic |
| 294 | register "hid" = ""ELAN0001"" |
| 295 | register "desc" = ""ELAN Touchscreen"" |
| 296 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 297 | register "detect" = "1" |
Frank Chu | de4727a | 2022-12-07 12:38:46 +0800 | [diff] [blame] | 298 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Frank Chu | b064146 | 2023-03-07 19:57:38 +0800 | [diff] [blame] | 299 | register "reset_delay_ms" = "150" |
Frank Chu | de4727a | 2022-12-07 12:38:46 +0800 | [diff] [blame] | 300 | register "reset_off_delay_ms" = "1" |
| 301 | register "enable_gpio" = |
Frank Chu | fb43107 | 2022-11-11 15:20:25 +0800 | [diff] [blame] | 302 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
Frank Chu | de4727a | 2022-12-07 12:38:46 +0800 | [diff] [blame] | 303 | register "enable_delay_ms" = "6" |
| 304 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 305 | register "stop_off_delay_ms" = "1" |
| 306 | register "has_power_resource" = "1" |
Frank Chu | 3b23fa6 | 2023-01-06 11:20:55 +0800 | [diff] [blame] | 307 | device i2c 10 on |
| 308 | probe TOUCH TOUCH_ELAN0001 |
| 309 | end |
Frank Chu | fb43107 | 2022-11-11 15:20:25 +0800 | [diff] [blame] | 310 | end |
| 311 | end #I2C3 |
| 312 | device ref i2c5 on |
Frank Chu | 4e37a8d | 2022-12-07 12:34:51 +0800 | [diff] [blame] | 313 | chip drivers/i2c/hid |
| 314 | register "generic.hid" = ""PIXA2342"" |
| 315 | register "generic.desc" = ""PIXA Touchpad"" |
| 316 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 317 | register "generic.wake" = "GPE0_DW2_14" |
| 318 | register "hid_desc_reg_offset" = "0x1" |
Frank Chu | fb43107 | 2022-11-11 15:20:25 +0800 | [diff] [blame] | 319 | device i2c 15 on end |
| 320 | end |
| 321 | end #I2C5 |
Frank Chu | 0029840 | 2022-12-07 12:43:00 +0800 | [diff] [blame] | 322 | device ref pcie_rp5 on |
| 323 | # Enable wlan PCIe 5 using clk 2 |
| 324 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 325 | .clk_src = 2, |
| 326 | .clk_req = 2, |
| 327 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 328 | }" |
| 329 | chip drivers/wifi/generic |
Frank Chu | 1347e2e | 2023-04-18 16:44:36 +0800 | [diff] [blame] | 330 | register "add_acpi_dma_property" = "true" |
David Ruth | 4b957b9 | 2024-01-05 19:44:45 +0000 | [diff] [blame^] | 331 | device pci 00.0 on end |
Frank Chu | 0029840 | 2022-12-07 12:43:00 +0800 | [diff] [blame] | 332 | end |
Frank Chu | 0029840 | 2022-12-07 12:43:00 +0800 | [diff] [blame] | 333 | end |
Frank Chu | 93197d2 | 2022-12-12 15:23:19 +0800 | [diff] [blame] | 334 | device ref pcie_rp8 off end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 335 | device ref pcie_rp11 on |
| 336 | # Enable NVMe SSD PCIe 11-12 using clk 1 |
| 337 | register "pch_pcie_rp[PCH_RP(11)]" = "{ |
| 338 | .clk_src = 1, |
| 339 | .clk_req = 1, |
| 340 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 341 | }" |
Frank Chu | 88019dd | 2022-11-18 16:39:36 +0800 | [diff] [blame] | 342 | probe STORAGE STORAGE_UNKNOWN |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 343 | probe STORAGE STORAGE_NVME |
| 344 | end |
| 345 | device ref ish on |
Subrata Banik | b4767ce | 2022-12-23 14:58:54 +0000 | [diff] [blame] | 346 | chip drivers/intel/ish |
| 347 | register "add_acpi_dma_property" = "true" |
| 348 | device generic 0 on end |
| 349 | end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 350 | probe STORAGE STORAGE_UFS |
| 351 | end |
| 352 | device ref ufs on |
| 353 | probe STORAGE STORAGE_UFS |
| 354 | end |
| 355 | device ref gspi1 on |
| 356 | chip drivers/spi/acpi |
| 357 | register "name" = ""CRFP"" |
| 358 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 359 | register "uid" = "1" |
| 360 | register "compat_string" = ""google,cros-ec-spi"" |
| 361 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 362 | register "wake" = "GPE0_DW2_15" |
| 363 | register "has_power_resource" = "1" |
| 364 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 365 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 366 | register "enable_delay_ms" = "3" |
Matt DeVillier | af46b47 | 2023-10-28 11:16:14 -0500 | [diff] [blame] | 367 | device spi 0 hidden end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 368 | end # FPMCU |
| 369 | end |
Frank Chu | a9921bc | 2022-11-18 16:28:31 +0800 | [diff] [blame] | 370 | device ref pch_espi on |
| 371 | chip ec/google/chromeec |
| 372 | use conn0 as mux_conn[0] |
| 373 | use conn1 as mux_conn[1] |
| 374 | device pnp 0c09.0 on end |
| 375 | end |
| 376 | end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 377 | device ref pmc hidden |
| 378 | chip drivers/intel/pmc_mux |
| 379 | device generic 0 on |
| 380 | chip drivers/intel/pmc_mux/conn |
| 381 | use usb2_port1 as usb2_port |
| 382 | use tcss_usb3_port1 as usb3_port |
| 383 | device generic 0 alias conn0 on end |
| 384 | end |
| 385 | chip drivers/intel/pmc_mux/conn |
| 386 | use usb2_port3 as usb2_port |
| 387 | use tcss_usb3_port3 as usb3_port |
Frank Chu | a9921bc | 2022-11-18 16:28:31 +0800 | [diff] [blame] | 388 | device generic 1 alias conn1 on end |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 389 | end |
| 390 | end |
| 391 | end |
| 392 | end |
| 393 | device ref tcss_xhci on |
| 394 | chip drivers/usb/acpi |
| 395 | device ref tcss_root_hub on |
| 396 | chip drivers/usb/acpi |
| 397 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 398 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 399 | register "use_custom_pld" = "true" |
| 400 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 401 | device ref tcss_usb3_port1 on end |
| 402 | end |
| 403 | chip drivers/usb/acpi |
| 404 | register "desc" = ""USB3 Type-C Port C2 (DB)"" |
| 405 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 406 | register "use_custom_pld" = "true" |
Won Chung | 7906d0e | 2023-06-01 00:26:39 +0000 | [diff] [blame] | 407 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Ron Lee | 558952a | 2022-12-13 19:48:59 +0800 | [diff] [blame] | 408 | register "usb_lpm_incapable" = "true" |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 409 | device ref tcss_usb3_port3 on end |
| 410 | end |
| 411 | end |
| 412 | end |
| 413 | end |
| 414 | device ref xhci on |
| 415 | chip drivers/usb/acpi |
| 416 | device ref xhci_root_hub on |
| 417 | chip drivers/usb/acpi |
| 418 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 419 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 420 | register "use_custom_pld" = "true" |
| 421 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 422 | device ref usb2_port1 on end |
| 423 | end |
| 424 | chip drivers/usb/acpi |
| 425 | register "desc" = ""USB2 Type-C Port C2 (DB)"" |
| 426 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 427 | register "use_custom_pld" = "true" |
Won Chung | 7906d0e | 2023-06-01 00:26:39 +0000 | [diff] [blame] | 428 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Frank Chu | 8d4cb09 | 2022-11-08 14:06:21 +0800 | [diff] [blame] | 429 | device ref usb2_port3 on end |
| 430 | end |
| 431 | chip drivers/usb/acpi |
| 432 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 433 | register "type" = "UPC_TYPE_A" |
| 434 | register "use_custom_pld" = "true" |
| 435 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 2))" |
| 436 | device ref usb2_port4 on end |
| 437 | end |
| 438 | chip drivers/usb/acpi |
| 439 | register "desc" = ""USB2 Camera"" |
| 440 | register "type" = "UPC_TYPE_INTERNAL" |
| 441 | device ref usb2_port6 on end |
| 442 | end |
| 443 | chip drivers/usb/acpi |
| 444 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 445 | register "type" = "UPC_TYPE_A" |
| 446 | register "use_custom_pld" = "true" |
| 447 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 448 | device ref usb2_port9 on end |
| 449 | end |
| 450 | chip drivers/usb/acpi |
| 451 | register "desc" = ""USB2 Bluetooth"" |
| 452 | register "type" = "UPC_TYPE_INTERNAL" |
| 453 | register "reset_gpio" = |
| 454 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 455 | device ref usb2_port10 on end |
| 456 | end |
| 457 | chip drivers/usb/acpi |
| 458 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 459 | register "type" = "UPC_TYPE_USB3_A" |
| 460 | register "use_custom_pld" = "true" |
| 461 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 462 | device ref usb3_port1 on end |
| 463 | end |
| 464 | chip drivers/usb/acpi |
| 465 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 466 | register "type" = "UPC_TYPE_USB3_A" |
| 467 | register "use_custom_pld" = "true" |
| 468 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 2))" |
| 469 | device ref usb3_port4 on end |
| 470 | end |
| 471 | end |
| 472 | end |
| 473 | end |
| 474 | end |
Frank Chu | 502dc54 | 2022-11-01 11:35:06 +0800 | [diff] [blame] | 475 | end |