Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 1 | chip soc/intel/jasperlake |
| 2 | |
Tim Chen | 1f0e6e7 | 2020-11-10 17:16:55 +0800 | [diff] [blame] | 3 | # USB Port Configuration |
| 4 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # User Facing Camera |
| 5 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # World Facing Camera |
| 6 | |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 7 | # Intel Common SoC Config |
| 8 | #+-------------------+---------------------------+ |
| 9 | #| Field | Value | |
| 10 | #+-------------------+---------------------------+ |
| 11 | #| GSPI0 | cr50 TPM. Early init is | |
| 12 | #| | required to set up a BAR | |
| 13 | #| | for TPM communication | |
| 14 | #| | before memory is up | |
| 15 | #| I2C0 | Trackpad | |
| 16 | #| I2C1 | Digitizer | |
| 17 | #| I2C2 | Touchscreen | |
Tim Chen | 161de9f | 2020-11-10 16:32:14 +0800 | [diff] [blame] | 18 | #| I2C3 | TBD | |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 19 | #| I2C4 | Audio | |
| 20 | #+-------------------+---------------------------+ |
| 21 | register "common_soc_config" = "{ |
| 22 | .gspi[0] = { |
| 23 | .speed_mhz = 1, |
| 24 | .early_init = 1, |
| 25 | }, |
| 26 | .i2c[0] = { |
| 27 | .speed = I2C_SPEED_FAST, |
Tim Chen | ed47332 | 2020-12-30 17:38:06 +0800 | [diff] [blame] | 28 | .speed_config[0] = { |
| 29 | .speed = I2C_SPEED_FAST, |
| 30 | .scl_lcnt = 190, |
| 31 | .scl_hcnt = 100, |
| 32 | .sda_hold = 40, |
| 33 | } |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 34 | }, |
| 35 | .i2c[1] = { |
| 36 | .speed = I2C_SPEED_FAST, |
| 37 | }, |
| 38 | .i2c[2] = { |
| 39 | .speed = I2C_SPEED_FAST, |
Tim Chen | ed47332 | 2020-12-30 17:38:06 +0800 | [diff] [blame] | 40 | .speed_config[0] = { |
| 41 | .speed = I2C_SPEED_FAST, |
| 42 | .scl_lcnt = 190, |
| 43 | .scl_hcnt = 100, |
| 44 | .sda_hold = 40, |
| 45 | } |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 46 | }, |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 47 | .i2c[4] = { |
| 48 | .speed = I2C_SPEED_FAST, |
Tim Chen | ed47332 | 2020-12-30 17:38:06 +0800 | [diff] [blame] | 49 | .speed_config[0] = { |
| 50 | .speed = I2C_SPEED_FAST, |
| 51 | .scl_lcnt = 190, |
| 52 | .scl_hcnt = 100, |
| 53 | .sda_hold = 40, |
| 54 | } |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 55 | }, |
| 56 | }" |
| 57 | |
Tim Chen | 161de9f | 2020-11-10 16:32:14 +0800 | [diff] [blame] | 58 | register "SerialIoI2cMode" = "{ |
| 59 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 60 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 61 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 62 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 63 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 64 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 65 | }" |
| 66 | |
David Wu | 7216053 | 2021-05-11 14:20:23 +0800 | [diff] [blame] | 67 | register "power_limits_config" = "{ |
| 68 | .tdp_pl1_override = 6, |
| 69 | .tdp_pl2_override = 12, |
| 70 | }" |
| 71 | |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 72 | device domain 0 on |
David Wu | 7216053 | 2021-05-11 14:20:23 +0800 | [diff] [blame] | 73 | device pci 04.0 on |
| 74 | chip drivers/intel/dptf |
| 75 | register "options.tsr[0].desc" = ""Memory"" |
| 76 | register "options.tsr[1].desc" = ""CPU"" |
| 77 | |
| 78 | register "policies.passive" = "{ |
| 79 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 5000), |
| 80 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 6000), |
| 81 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 55, 5000)}" |
| 82 | register "policies.critical" = "{ |
| 83 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 84 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 90, SHUTDOWN), |
| 85 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN)}" |
| 86 | register "controls.power_limits.pl1" = "{ |
| 87 | .min_power = 3000, |
| 88 | .max_power = 6000, |
| 89 | .time_window_min = 1 * MSECS_PER_SEC, |
| 90 | .time_window_max = 1 * MSECS_PER_SEC, |
| 91 | .granularity = 125,}" |
| 92 | register "controls.power_limits.pl2" = "{ |
| 93 | .min_power = 12000, |
| 94 | .max_power = 12000, |
| 95 | .time_window_min = 1 * MSECS_PER_SEC, |
| 96 | .time_window_max = 1 * MSECS_PER_SEC, |
| 97 | .granularity = 1000,}" |
| 98 | |
| 99 | ## Charger Performance Control (Control, mA) |
| 100 | register "controls.charger_perf[0]" = "{ 255, 3000 }" |
| 101 | register "controls.charger_perf[1]" = "{ 24, 1500 }" |
| 102 | register "controls.charger_perf[2]" = "{ 16, 1000 }" |
| 103 | register "controls.charger_perf[3]" = "{ 8, 500 }" |
| 104 | |
| 105 | device generic 0 on end |
| 106 | end |
| 107 | end # SA Thermal device |
Tim Chen | 1f0e6e7 | 2020-11-10 17:16:55 +0800 | [diff] [blame] | 108 | device pci 14.0 on |
| 109 | chip drivers/usb/acpi |
| 110 | device usb 0.0 on |
| 111 | chip drivers/usb/acpi |
Furquan Shaikh | e7821e8 | 2021-09-16 19:58:20 -0700 | [diff] [blame] | 112 | register "desc" = ""LTE"" |
| 113 | register "type" = "UPC_TYPE_INTERNAL" |
| 114 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 115 | register "has_power_resource" = "1" |
| 116 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)" |
| 117 | register "reset_off_delay_ms" = "20" |
| 118 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 119 | register "enable_delay_ms" = "20" |
| 120 | device usb 2.3 on |
| 121 | probe DB_PORTS DB_PORTS_LTE_HDMI |
| 122 | end |
| 123 | end |
| 124 | chip drivers/usb/acpi |
| 125 | register "desc" = ""Right Type-A Port"" |
David Wu | 82c9b70 | 2021-04-15 16:19:11 +0800 | [diff] [blame] | 126 | register "type" = "UPC_TYPE_A" |
| 127 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 128 | device usb 2.3 on |
| 129 | probe DB_PORTS DB_PORTS_1A_HDMI |
| 130 | end |
Tim Chen | 77a7520 | 2020-12-01 10:04:04 +0800 | [diff] [blame] | 131 | end |
| 132 | chip drivers/usb/acpi |
Tim Chen | 1f0e6e7 | 2020-11-10 17:16:55 +0800 | [diff] [blame] | 133 | register "desc" = ""User Facing Camera"" |
| 134 | register "type" = "UPC_TYPE_INTERNAL" |
| 135 | device usb 2.5 on end |
| 136 | end |
| 137 | chip drivers/usb/acpi |
| 138 | register "desc" = ""World Facing Camera"" |
| 139 | register "type" = "UPC_TYPE_INTERNAL" |
| 140 | device usb 2.6 on end |
| 141 | end |
Tim Chen | 77a7520 | 2020-12-01 10:04:04 +0800 | [diff] [blame] | 142 | chip drivers/usb/acpi |
Furquan Shaikh | e7821e8 | 2021-09-16 19:58:20 -0700 | [diff] [blame] | 143 | register "desc" = ""LTE"" |
| 144 | register "type" = "UPC_TYPE_INTERNAL" |
| 145 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 146 | device usb 3.3 on |
| 147 | probe DB_PORTS DB_PORTS_LTE_HDMI |
| 148 | end |
| 149 | end |
| 150 | chip drivers/usb/acpi |
| 151 | register "desc" = ""Right Type-A Port"" |
David Wu | 82c9b70 | 2021-04-15 16:19:11 +0800 | [diff] [blame] | 152 | register "type" = "UPC_TYPE_USB3_A" |
| 153 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 154 | device usb 3.3 on |
| 155 | probe DB_PORTS DB_PORTS_1A_HDMI |
| 156 | end |
Tim Chen | 77a7520 | 2020-12-01 10:04:04 +0800 | [diff] [blame] | 157 | end |
Tim Chen | 1f0e6e7 | 2020-11-10 17:16:55 +0800 | [diff] [blame] | 158 | end |
| 159 | end |
| 160 | end # USB xHCI |
Tim Chen | 2082196 | 2020-11-25 11:09:10 +0800 | [diff] [blame] | 161 | device pci 15.0 on |
| 162 | chip drivers/i2c/hid |
Matt DeVillier | 2f5aec4 | 2022-12-19 15:11:42 -0600 | [diff] [blame^] | 163 | register "generic.hid" = ""SYNA0000"" |
| 164 | register "generic.cid" = ""ACPI0C50"" |
Tim Chen | 2082196 | 2020-11-25 11:09:10 +0800 | [diff] [blame] | 165 | register "generic.desc" = ""Synaptics Touchpad"" |
| 166 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)" |
| 167 | register "generic.wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 168 | register "generic.detect" = "1" |
Tim Chen | 2082196 | 2020-11-25 11:09:10 +0800 | [diff] [blame] | 169 | register "hid_desc_reg_offset" = "0x20" |
| 170 | device i2c 0x2c on end |
| 171 | end |
| 172 | chip drivers/i2c/generic |
| 173 | register "hid" = ""ELAN0000"" |
| 174 | register "desc" = ""ELAN Touchpad"" |
| 175 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 176 | register "wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 177 | register "detect" = "1" |
Tim Chen | 2082196 | 2020-11-25 11:09:10 +0800 | [diff] [blame] | 178 | device i2c 15 on end |
| 179 | end |
| 180 | end # I2C 0 |
Tim Chen | f7140c4 | 2020-11-11 10:56:44 +0800 | [diff] [blame] | 181 | device pci 15.2 on |
David Wu | e490c78 | 2021-03-22 19:55:42 +0800 | [diff] [blame] | 182 | chip drivers/generic/gpio_keys |
| 183 | register "name" = ""PENH"" |
| 184 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_C12)" |
| 185 | register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ" |
| 186 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 187 | register "key.dev_name" = ""EJCT"" |
| 188 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 189 | register "key.linux_input_type" = "EV_SW" |
| 190 | register "key.label" = ""pen_eject"" |
| 191 | device generic 0 on end |
| 192 | end |
Tim Chen | f7140c4 | 2020-11-11 10:56:44 +0800 | [diff] [blame] | 193 | chip drivers/i2c/hid |
| 194 | register "generic.hid" = ""GDIX0000"" |
| 195 | register "generic.desc" = ""Goodix Touchscreen"" |
| 196 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
| 197 | register "generic.probed" = "1" |
| 198 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
Tim Chen | fbf6ae1 | 2020-12-23 18:49:11 +0800 | [diff] [blame] | 199 | register "generic.reset_delay_ms" = "180" |
Tim Chen | f7140c4 | 2020-11-11 10:56:44 +0800 | [diff] [blame] | 200 | register "generic.reset_off_delay_ms" = "2" |
David Wu | 2df5885 | 2021-04-24 18:34:42 +0800 | [diff] [blame] | 201 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 202 | register "generic.stop_delay_ms" = "20" |
| 203 | register "generic.stop_off_delay_ms" = "2" |
Tim Chen | f7140c4 | 2020-11-11 10:56:44 +0800 | [diff] [blame] | 204 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 205 | register "generic.enable_delay_ms" = "12" |
| 206 | register "generic.has_power_resource" = "1" |
| 207 | register "generic.disable_gpio_export_in_crs" = "1" |
| 208 | register "hid_desc_reg_offset" = "0x01" |
| 209 | device i2c 0x5d on end |
| 210 | end |
| 211 | chip drivers/i2c/hid |
| 212 | register "generic.hid" = ""ELAN6915"" |
| 213 | register "generic.desc" = ""ELAN Touchscreen"" |
| 214 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
| 215 | register "generic.probed" = "1" |
| 216 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 217 | register "generic.reset_delay_ms" = "20" |
| 218 | register "generic.reset_off_delay_ms" = "2" |
| 219 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 220 | register "generic.stop_delay_ms" = "280" |
| 221 | register "generic.stop_off_delay_ms" = "2" |
| 222 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 223 | register "generic.enable_delay_ms" = "1" |
| 224 | register "generic.has_power_resource" = "1" |
| 225 | register "generic.disable_gpio_export_in_crs" = "1" |
| 226 | register "hid_desc_reg_offset" = "0x01" |
| 227 | device i2c 15 on end |
| 228 | end |
| 229 | end # I2C 2 |
Tim Chen | 161de9f | 2020-11-10 16:32:14 +0800 | [diff] [blame] | 230 | device pci 15.3 off end # I2C 3 |
Tim Chen | 187f9d1 | 2020-11-11 13:21:54 +0800 | [diff] [blame] | 231 | device pci 19.0 on |
| 232 | chip drivers/i2c/generic |
| 233 | register "hid" = ""10EC5682"" |
| 234 | register "name" = ""RT58"" |
| 235 | register "desc" = ""Realtek RT5682"" |
| 236 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 237 | register "property_count" = "1" |
| 238 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 239 | register "property_list[0].name" = ""realtek,jd-src"" |
| 240 | register "property_list[0].integer" = "1" |
| 241 | device i2c 1a on end |
| 242 | end |
| 243 | chip drivers/i2c/generic |
| 244 | register "hid" = ""10EC1015"" |
| 245 | register "desc" = ""Realtek SPK AMP L"" |
| 246 | register "uid" = "0" |
David Wu | a003c33 | 2021-11-04 13:37:41 +0800 | [diff] [blame] | 247 | device i2c 28 on |
| 248 | probe AUDIO_AMP UNPROVISIONED |
| 249 | probe AUDIO_AMP RT1015_I2C |
| 250 | end |
Tim Chen | 187f9d1 | 2020-11-11 13:21:54 +0800 | [diff] [blame] | 251 | end |
| 252 | chip drivers/i2c/generic |
| 253 | register "hid" = ""10EC1015"" |
| 254 | register "desc" = ""Realtek SPK AMP R"" |
| 255 | register "uid" = "1" |
David Wu | a003c33 | 2021-11-04 13:37:41 +0800 | [diff] [blame] | 256 | device i2c 29 on |
| 257 | probe AUDIO_AMP UNPROVISIONED |
| 258 | probe AUDIO_AMP RT1015_I2C |
| 259 | end |
Tim Chen | 187f9d1 | 2020-11-11 13:21:54 +0800 | [diff] [blame] | 260 | end |
| 261 | end |
David Wu | a003c33 | 2021-11-04 13:37:41 +0800 | [diff] [blame] | 262 | device pci 1f.3 on |
| 263 | chip drivers/generic/alc1015 |
| 264 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 265 | device generic 0 on |
| 266 | probe AUDIO_AMP RT1015P_AUTO |
| 267 | end |
| 268 | end |
| 269 | end # Intel HDA |
Tim Chen | a693fa0 | 2020-10-20 11:11:06 +0800 | [diff] [blame] | 270 | end |
| 271 | end |