Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 2 | register "TcssAuxOri" = "1" |
| 3 | register "IomTypeCPortPadCfg[0]" = "0x090E000A" |
| 4 | register "IomTypeCPortPadCfg[1]" = "0x090E000D" |
John Zhao | 90e5626 | 2020-08-14 21:18:27 -0700 | [diff] [blame] | 5 | register "DdiPort1Hpd" = "0" |
| 6 | register "DdiPort2Hpd" = "0" |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 7 | |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 8 | device domain 0 on |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 9 | device ref dptf on |
Terry Chen | 53a6950 | 2020-10-06 20:09:15 +0800 | [diff] [blame] | 10 | chip drivers/intel/dptf |
| 11 | ## Active Policy |
| 12 | register "policies.active" = "{ |
| 13 | [0] = {.target = DPTF_CPU, |
| 14 | .thresholds = {TEMP_PCT(85, 90), |
| 15 | TEMP_PCT(80, 69), |
| 16 | TEMP_PCT(75, 56), |
| 17 | TEMP_PCT(70, 46), |
| 18 | TEMP_PCT(65, 36),}}, |
| 19 | [1] = {.target = DPTF_TEMP_SENSOR_0, |
| 20 | .thresholds = {TEMP_PCT(53, 90), |
| 21 | TEMP_PCT(50, 69), |
| 22 | TEMP_PCT(48, 56), |
| 23 | TEMP_PCT(45, 46), |
| 24 | TEMP_PCT(42, 36),}}, |
| 25 | [2] = {.target = DPTF_TEMP_SENSOR_1, |
| 26 | .thresholds = {TEMP_PCT(50, 90), |
| 27 | TEMP_PCT(47, 69), |
| 28 | TEMP_PCT(45, 56), |
| 29 | TEMP_PCT(42, 46), |
| 30 | TEMP_PCT(39, 36),}}, |
| 31 | [3] = {.target = DPTF_TEMP_SENSOR_2, |
| 32 | .thresholds = {TEMP_PCT(53, 90), |
| 33 | TEMP_PCT(50, 69), |
| 34 | TEMP_PCT(48, 56), |
| 35 | TEMP_PCT(45, 46), |
| 36 | TEMP_PCT(42, 36),}}, |
| 37 | [4] = {.target = DPTF_TEMP_SENSOR_3, |
| 38 | .thresholds = {TEMP_PCT(53, 90), |
| 39 | TEMP_PCT(50, 69), |
| 40 | TEMP_PCT(48, 56), |
| 41 | TEMP_PCT(45, 46), |
| 42 | TEMP_PCT(42, 36),}}}" |
| 43 | device generic 0 on end |
| 44 | end |
| 45 | end # DPTF 0x9A03 |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 46 | device ref ipu on end # IPU 0x9A19 |
| 47 | device ref i2c0 on |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 48 | chip drivers/i2c/generic |
| 49 | register "hid" = ""10EC5682"" |
| 50 | register "name" = ""RT58"" |
| 51 | register "desc" = ""Headset Codec"" |
| 52 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 53 | # Set the jd_src to RT5668_JD1 for jack detection |
| 54 | register "property_count" = "1" |
| 55 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 56 | register "property_list[0].name" = ""realtek,jd-src"" |
| 57 | register "property_list[0].integer" = "1" |
| 58 | device i2c 1a on |
| 59 | probe AUDIO MAX98357_ALC5682I_I2S |
| 60 | probe AUDIO MAX98373_ALC5682I_I2S |
| 61 | end |
| 62 | end |
| 63 | chip drivers/i2c/max98373 |
| 64 | register "vmon_slot_no" = "0" |
| 65 | register "imon_slot_no" = "1" |
| 66 | register "uid" = "0" |
| 67 | register "desc" = ""Right Speaker Amp"" |
| 68 | register "name" = ""MAXR"" |
| 69 | device i2c 31 on |
| 70 | probe AUDIO MAX98373_ALC5682I_I2S |
| 71 | end |
| 72 | end |
| 73 | chip drivers/i2c/max98373 |
| 74 | register "vmon_slot_no" = "2" |
| 75 | register "imon_slot_no" = "3" |
| 76 | register "uid" = "1" |
| 77 | register "desc" = ""Left Speaker Amp"" |
| 78 | register "name" = ""MAXL"" |
| 79 | device i2c 32 on |
| 80 | probe AUDIO MAX98373_ALC5682I_I2S |
| 81 | end |
| 82 | end |
| 83 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 84 | device ref i2c1 on |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 85 | chip drivers/i2c/hid |
| 86 | register "generic.hid" = ""GDIX0000"" |
| 87 | register "generic.desc" = ""Goodix Touchscreen"" |
| 88 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 89 | register "generic.probed" = "1" |
| 90 | register "generic.reset_gpio" = |
| 91 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
Caveh Jalali | eb9337c | 2020-08-06 00:55:40 -0700 | [diff] [blame] | 92 | # Parameter T3 >= 10ms |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 93 | register "generic.reset_delay_ms" = "120" |
Caveh Jalali | eb9337c | 2020-08-06 00:55:40 -0700 | [diff] [blame] | 94 | # Parameter T2 >= 1ms |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 95 | register "generic.reset_off_delay_ms" = "3" |
| 96 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
Caveh Jalali | eb9337c | 2020-08-06 00:55:40 -0700 | [diff] [blame] | 97 | # Parameter T1 >= 10ms |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 98 | register "generic.enable_delay_ms" = "12" |
Caveh Jalali | eb9337c | 2020-08-06 00:55:40 -0700 | [diff] [blame] | 99 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)" |
| 100 | # Parameter T4 >= 1ms |
| 101 | register "generic.stop_off_delay_ms" = "1" |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 102 | register "generic.has_power_resource" = "1" |
| 103 | register "hid_desc_reg_offset" = "0x01" |
| 104 | device i2c 14 on end |
| 105 | end |
| 106 | chip drivers/i2c/hid |
| 107 | register "generic.hid" = ""ELAN90FC"" |
| 108 | register "generic.desc" = ""ELAN Touchscreen"" |
| 109 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 110 | register "generic.probed" = "1" |
| 111 | register "generic.reset_gpio" = |
| 112 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 113 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 114 | register "generic.reset_delay_ms" = "20" |
| 115 | register "generic.has_power_resource" = "1" |
| 116 | register "generic.disable_gpio_export_in_crs" = "1" |
| 117 | register "hid_desc_reg_offset" = "0x01" |
| 118 | device i2c 10 on end |
| 119 | end |
Alex Levin | ff1c5be | 2020-07-23 11:55:12 -0700 | [diff] [blame] | 120 | chip drivers/generic/gpio_keys |
| 121 | register "name" = ""PENH"" |
| 122 | # GPP_B3 is the IRQ source, and GPP_E1 is the wake source |
Alex Levin | e968e37 | 2020-07-31 13:05:57 -0700 | [diff] [blame] | 123 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_B3)" |
Alex Levin | ff1c5be | 2020-07-23 11:55:12 -0700 | [diff] [blame] | 124 | register "key.wake_gpe" = "GPE0_DW2_01" |
| 125 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 126 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 127 | register "key.dev_name" = ""EJCT"" |
| 128 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 129 | register "key.linux_input_type" = "EV_SW" |
| 130 | register "key.label" = ""pen_eject"" |
| 131 | device generic 0 on end |
| 132 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 133 | end |
| 134 | device ref i2c2 on |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 135 | chip drivers/i2c/sx9310 |
| 136 | register "desc" = ""SAR0 Proximity Sensor"" |
| 137 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 138 | register "speed" = "I2C_SPEED_FAST" |
| 139 | register "uid" = "0" |
| 140 | register "reg_prox_ctrl0" = "0x10" |
| 141 | register "reg_prox_ctrl1" = "0x00" |
| 142 | register "reg_prox_ctrl2" = "0x84" |
| 143 | register "reg_prox_ctrl3" = "0x0e" |
| 144 | register "reg_prox_ctrl4" = "0x07" |
| 145 | register "reg_prox_ctrl5" = "0xc6" |
| 146 | register "reg_prox_ctrl6" = "0x20" |
| 147 | register "reg_prox_ctrl7" = "0x0d" |
| 148 | register "reg_prox_ctrl8" = "0x8d" |
| 149 | register "reg_prox_ctrl9" = "0x43" |
| 150 | register "reg_prox_ctrl10" = "0x1f" |
| 151 | register "reg_prox_ctrl11" = "0x00" |
| 152 | register "reg_prox_ctrl12" = "0x00" |
| 153 | register "reg_prox_ctrl13" = "0x00" |
| 154 | register "reg_prox_ctrl14" = "0x00" |
| 155 | register "reg_prox_ctrl15" = "0x00" |
| 156 | register "reg_prox_ctrl16" = "0x00" |
| 157 | register "reg_prox_ctrl17" = "0x00" |
| 158 | register "reg_prox_ctrl18" = "0x00" |
| 159 | register "reg_prox_ctrl19" = "0x00" |
| 160 | register "reg_sar_ctrl0" = "0x50" |
| 161 | register "reg_sar_ctrl1" = "0x8a" |
| 162 | register "reg_sar_ctrl2" = "0x3c" |
| 163 | device i2c 28 on end |
| 164 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 165 | end |
| 166 | device ref i2c5 on |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 167 | chip drivers/i2c/generic |
| 168 | register "hid" = ""ELAN0000"" |
| 169 | register "desc" = ""ELAN Touchpad"" |
| 170 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 171 | register "wake" = "GPE0_DW2_15" |
| 172 | register "probed" = "1" |
| 173 | device i2c 15 on end |
| 174 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 175 | end |
| 176 | device ref hda on |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 177 | chip drivers/generic/max98357a |
| 178 | register "hid" = ""MX98357A"" |
| 179 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 180 | register "sdmode_delay" = "5" |
| 181 | device generic 0 on |
| 182 | probe AUDIO MAX98357_ALC5682I_I2S |
| 183 | end |
| 184 | end |
| 185 | chip drivers/intel/soundwire |
| 186 | device generic 0 on |
| 187 | probe AUDIO MAX98373_ALC5682_SNDW |
| 188 | chip drivers/soundwire/alc5682 |
| 189 | # SoundWire Link 0 ID 1 |
| 190 | register "desc" = ""Headset Codec"" |
| 191 | device generic 0.1 on end |
| 192 | end |
| 193 | chip drivers/soundwire/max98373 |
| 194 | # SoundWire Link 1 ID 3 |
| 195 | register "desc" = ""Left Speaker Amp"" |
| 196 | device generic 1.3 on end |
| 197 | end |
| 198 | chip drivers/soundwire/max98373 |
| 199 | # SoundWire Link 1 ID 7 |
| 200 | register "desc" = ""Right Speaker Amp"" |
| 201 | device generic 1.7 on end |
| 202 | end |
| 203 | end |
| 204 | end |
| 205 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 206 | device ref pmc hidden |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 207 | # The pmc_mux chip driver is a placeholder for the |
| 208 | # PMC.MUX device in the ACPI hierarchy. |
| 209 | chip drivers/intel/pmc_mux |
| 210 | device generic 0 on |
Tim Wawrzynczak | e414ce4 | 2020-07-03 09:36:11 -0600 | [diff] [blame] | 211 | chip drivers/intel/pmc_mux/conn |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 212 | register "usb2_port_number" = "9" |
| 213 | register "usb3_port_number" = "1" |
| 214 | # SBU & HSL follow CC |
| 215 | device generic 0 on end |
| 216 | end |
Tim Wawrzynczak | e414ce4 | 2020-07-03 09:36:11 -0600 | [diff] [blame] | 217 | chip drivers/intel/pmc_mux/conn |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 218 | register "usb2_port_number" = "4" |
| 219 | register "usb3_port_number" = "2" |
| 220 | # SBU is fixed, HSL follows CC |
| 221 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
Caveh Jalali | c04654d | 2020-07-24 23:14:34 -0700 | [diff] [blame] | 222 | device generic 1 on |
| 223 | probe DB_USB USB4_GEN2 |
| 224 | probe DB_USB USB3_ACTIVE |
| 225 | probe DB_USB USB4_GEN3 |
| 226 | probe DB_USB USB3_NO_A |
| 227 | end |
| 228 | end |
| 229 | chip drivers/intel/pmc_mux/conn |
| 230 | register "usb2_port_number" = "4" |
| 231 | register "usb3_port_number" = "2" |
| 232 | # SBU & HSL follow CC |
| 233 | device generic 1 on |
| 234 | probe DB_USB USB3_PASSIVE |
| 235 | end |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 236 | end |
| 237 | end |
| 238 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame^] | 239 | end |
Nick Vaccaro | fbb0232 | 2020-06-19 17:57:00 -0700 | [diff] [blame] | 240 | end |
| 241 | end |