Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 1 | chip soc/intel/jasperlake |
| 2 | |
| 3 | # USB Port Configuration |
| 4 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
| 5 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WF Camera |
| 6 | |
| 7 | register "SerialIoI2cMode" = "{ |
| 8 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 13 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 14 | }" |
| 15 | |
| 16 | # Intel Common SoC Config |
| 17 | #+-------------------+---------------------------+ |
| 18 | #| Field | Value | |
| 19 | #+-------------------+---------------------------+ |
| 20 | #| GSPI0 | cr50 TPM. Early init is | |
| 21 | #| | required to set up a BAR | |
| 22 | #| | for TPM communication | |
| 23 | #| | before memory is up | |
| 24 | #| I2C0 | Trackpad | |
| 25 | #| I2C1 | Digitizer | |
| 26 | #| I2C2 | Touchscreen | |
| 27 | #| I2C3 | | |
| 28 | #| I2C4 | Audio | |
| 29 | #| I2C5 | P-Sensor | |
| 30 | #+-------------------+---------------------------+ |
| 31 | register "common_soc_config" = "{ |
| 32 | .gspi[0] = { |
| 33 | .speed_mhz = 1, |
| 34 | .early_init = 1, |
| 35 | }, |
| 36 | .i2c[0] = { |
| 37 | .speed = I2C_SPEED_FAST, |
Tony Huang | e4aa07e | 2021-05-13 15:06:59 +0800 | [diff] [blame] | 38 | .rise_time_ns = 212, |
| 39 | .fall_time_ns = 38, |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 40 | }, |
| 41 | .i2c[1] = { |
| 42 | .speed = I2C_SPEED_FAST, |
| 43 | }, |
| 44 | .i2c[2] = { |
| 45 | .speed = I2C_SPEED_FAST, |
Tony Huang | e4aa07e | 2021-05-13 15:06:59 +0800 | [diff] [blame] | 46 | .rise_time_ns = 212, |
| 47 | .fall_time_ns = 38, |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 48 | }, |
| 49 | .i2c[4] = { |
| 50 | .speed = I2C_SPEED_FAST, |
Tony Huang | e4aa07e | 2021-05-13 15:06:59 +0800 | [diff] [blame] | 51 | .rise_time_ns = 212, |
| 52 | .fall_time_ns = 38, |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 53 | }, |
| 54 | .i2c[5] = { |
| 55 | .speed = I2C_SPEED_FAST, |
Tony Huang | e4aa07e | 2021-05-13 15:06:59 +0800 | [diff] [blame] | 56 | .rise_time_ns = 212, |
| 57 | .fall_time_ns = 38, |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 58 | }, |
| 59 | }" |
| 60 | |
Robert Chen | 6978a21 | 2021-09-22 16:49:51 +0800 | [diff] [blame^] | 61 | register "power_limits_config" = "{ |
| 62 | .tdp_pl1_override = 6, |
| 63 | .tdp_pl2_override = 20, |
| 64 | }" |
| 65 | |
| 66 | register "tcc_offset" = "20" # TCC of 85C |
| 67 | |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 68 | device domain 0 on |
Robert Chen | 6978a21 | 2021-09-22 16:49:51 +0800 | [diff] [blame^] | 69 | device pci 04.0 on |
| 70 | chip drivers/intel/dptf |
| 71 | # Default DPTF Policy for all drawcia boards if not overridden |
| 72 | register "options.tsr[0].desc" = ""Memory"" |
| 73 | register "options.tsr[1].desc" = ""Ambient"" |
| 74 | register "options.tsr[2].desc" = ""Charger"" |
| 75 | register "options.tsr[3].desc" = ""5V regulator"" |
| 76 | ## Passive Policy |
| 77 | register "policies.passive" = "{ |
| 78 | [0] = DPTF_PASSIVE(CPU, CPU, 80, 1000), |
| 79 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 70, 4000), |
| 80 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 51, 1000), |
| 81 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 5000), |
| 82 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 60, 1000) |
| 83 | }" |
| 84 | ## Critical Policy |
| 85 | register "policies.critical" = "{ |
| 86 | [0] = DPTF_CRITICAL(CPU, 119, SHUTDOWN), |
| 87 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 115, SHUTDOWN), |
| 88 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 115, SHUTDOWN), |
| 89 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 115, SHUTDOWN), |
| 90 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 115, SHUTDOWN) |
| 91 | }" |
| 92 | register "controls.power_limits" = "{ |
| 93 | .pl1 = { |
| 94 | .min_power = 3800, |
| 95 | .max_power = 5800, |
| 96 | .time_window_min = 1 * MSECS_PER_SEC, |
| 97 | .time_window_max = 1 * MSECS_PER_SEC, |
| 98 | .granularity = 200, |
| 99 | }, |
| 100 | .pl2 = { |
| 101 | .min_power = 20000, |
| 102 | .max_power = 20000, |
| 103 | .time_window_min = 1 * MSECS_PER_SEC, |
| 104 | .time_window_max = 1 * MSECS_PER_SEC, |
| 105 | .granularity = 1000, |
| 106 | } |
| 107 | }" |
| 108 | ## Charger Performance Control (Control, mA) |
| 109 | register "controls.charger_perf" = "{ |
| 110 | [0] = { 255, 3000 }, |
| 111 | [1] = { 24, 1500 }, |
| 112 | [2] = { 16, 1000 }, |
| 113 | [3] = { 8, 500 } |
| 114 | }" |
| 115 | device generic 0 alias dptf_policy on end |
| 116 | end |
| 117 | end # SA Thermal device |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 118 | device pci 14.0 on |
| 119 | chip drivers/usb/acpi |
| 120 | device usb 0.0 on |
| 121 | chip drivers/usb/acpi |
Furquan Shaikh | e7821e8 | 2021-09-16 19:58:20 -0700 | [diff] [blame] | 122 | register "desc" = ""LTE"" |
| 123 | register "type" = "UPC_TYPE_INTERNAL" |
| 124 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 125 | register "has_power_resource" = "1" |
| 126 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)" |
| 127 | register "reset_off_delay_ms" = "20" |
| 128 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 129 | register "enable_delay_ms" = "20" |
| 130 | device usb 2.3 on |
| 131 | probe DB_PORTS DB_PORTS_1C_LTE |
| 132 | end |
| 133 | end |
| 134 | chip drivers/usb/acpi |
| 135 | register "desc" = ""Right Type-A Port"" |
Tony Huang | 856b579 | 2021-05-19 16:59:17 +0800 | [diff] [blame] | 136 | register "type" = "UPC_TYPE_A" |
| 137 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 138 | device usb 2.3 on |
Tony Huang | 856b579 | 2021-05-19 16:59:17 +0800 | [diff] [blame] | 139 | probe DB_PORTS DB_PORTS_1C_1A |
| 140 | end |
Tony Huang | a1165fd | 2021-04-09 13:38:59 +0800 | [diff] [blame] | 141 | end |
| 142 | chip drivers/usb/acpi |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 143 | register "desc" = ""UFCamera"" |
| 144 | register "type" = "UPC_TYPE_INTERNAL" |
| 145 | device usb 2.5 on end |
| 146 | end |
| 147 | chip drivers/usb/acpi |
| 148 | register "desc" = ""WFCamera"" |
| 149 | register "type" = "UPC_TYPE_INTERNAL" |
| 150 | device usb 2.6 on end |
| 151 | end |
Tony Huang | a1165fd | 2021-04-09 13:38:59 +0800 | [diff] [blame] | 152 | chip drivers/usb/acpi |
Furquan Shaikh | e7821e8 | 2021-09-16 19:58:20 -0700 | [diff] [blame] | 153 | register "desc" = ""LTE"" |
| 154 | register "type" = "UPC_TYPE_INTERNAL" |
Tony Huang | 856b579 | 2021-05-19 16:59:17 +0800 | [diff] [blame] | 155 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 156 | device usb 3.3 on |
| 157 | probe DB_PORTS DB_PORTS_1C_LTE |
Furquan Shaikh | e7821e8 | 2021-09-16 19:58:20 -0700 | [diff] [blame] | 158 | end |
| 159 | end |
| 160 | chip drivers/usb/acpi |
| 161 | register "desc" = ""Right Type-A Port"" |
| 162 | register "type" = "UPC_TYPE_USB3_A" |
| 163 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 164 | device usb 3.3 on |
Tony Huang | 856b579 | 2021-05-19 16:59:17 +0800 | [diff] [blame] | 165 | probe DB_PORTS DB_PORTS_1C_1A |
| 166 | end |
Tony Huang | a1165fd | 2021-04-09 13:38:59 +0800 | [diff] [blame] | 167 | end |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 168 | end |
| 169 | end |
| 170 | end # USB xHCI |
| 171 | device pci 15.0 on |
| 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" |
| 177 | register "probed" = "1" |
| 178 | device i2c 15 on end |
| 179 | end |
| 180 | end #I2C 0 |
Tony Huang | 5f5ea02 | 2021-02-23 13:28:42 +0800 | [diff] [blame] | 181 | device pci 15.2 on |
| 182 | chip drivers/i2c/generic |
| 183 | register "hid" = ""ELAN0001"" |
| 184 | register "desc" = ""ELAN Touchscreen"" |
| 185 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
| 186 | register "probed" = "1" |
| 187 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" |
| 188 | register "reset_delay_ms" = "20" |
| 189 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 190 | register "enable_delay_ms" = "1" |
| 191 | register "has_power_resource" = "1" |
| 192 | device i2c 10 on end |
| 193 | end |
| 194 | chip drivers/i2c/hid |
| 195 | register "generic.hid" = ""ELAN2513"" |
| 196 | register "generic.desc" = ""ELAN Touchscreen"" |
| 197 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
| 198 | register "generic.probed" = "1" |
| 199 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" |
| 200 | register "generic.reset_delay_ms" = "20" |
| 201 | register "generic.reset_off_delay_ms" = "2" |
| 202 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 203 | register "generic.enable_delay_ms" = "10" |
| 204 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 205 | register "generic.stop_delay_ms" = "130" |
| 206 | register "generic.has_power_resource" = "1" |
| 207 | register "hid_desc_reg_offset" = "0x01" |
| 208 | device i2c 15 on end |
| 209 | end |
| 210 | end # I2C 2 |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 211 | device pci 15.3 off end #I2C 3 |
| 212 | device pci 19.0 on |
| 213 | chip drivers/i2c/generic |
| 214 | register "hid" = ""10EC5682"" |
| 215 | register "name" = ""RT58"" |
| 216 | register "desc" = ""Realtek RT5682"" |
| 217 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 218 | register "property_count" = "1" |
| 219 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 220 | register "property_list[0].name" = ""realtek,jd-src"" |
| 221 | register "property_list[0].integer" = "1" |
| 222 | device i2c 1a on end |
| 223 | end |
| 224 | end #I2C 4 |
Tony Huang | 66713d0c | 2021-06-02 14:00:49 +0800 | [diff] [blame] | 225 | device pci 19.1 on |
| 226 | chip drivers/i2c/sx9324 |
| 227 | register "desc" = ""SAR Proximity Sensor"" |
| 228 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E11_IRQ)" |
| 229 | register "uid" = "2" |
| 230 | register "reg_gnrl_ctrl0" = "0x0a" |
| 231 | register "reg_gnrl_ctrl1" = "0x22" |
| 232 | register "reg_afe_ctrl0" = "0x20" |
| 233 | register "reg_afe_ctrl3" = "0x01" |
| 234 | register "reg_afe_ctrl4" = "0x47" |
| 235 | register "reg_afe_ctrl6" = "0x00" |
| 236 | register "reg_afe_ctrl7" = "0x47" |
| 237 | register "reg_afe_ctrl8" = "0x12" |
| 238 | register "reg_afe_ctrl9" = "0x0f" |
| 239 | register "reg_afe_ph0" = "0x37" |
| 240 | register "reg_afe_ph1" = "0x29" |
| 241 | register "reg_afe_ph2" = "0x1f" |
| 242 | register "reg_afe_ph3" = "0x3d" |
| 243 | register "reg_prox_ctrl0" = "0x0b" |
| 244 | register "reg_prox_ctrl1" = "0x0b" |
| 245 | register "reg_prox_ctrl2" = "0x20" |
| 246 | register "reg_prox_ctrl3" = "0x20" |
| 247 | register "reg_prox_ctrl4" = "0x0c" |
| 248 | register "reg_prox_ctrl5" = "0x00" |
| 249 | register "reg_prox_ctrl6" = "0x2d" |
| 250 | register "reg_prox_ctrl7" = "0xc0" |
| 251 | register "reg_adv_ctrl0" = "0x00" |
| 252 | register "reg_adv_ctrl1" = "0x00" |
| 253 | register "reg_adv_ctrl2" = "0x00" |
| 254 | register "reg_adv_ctrl3" = "0x00" |
| 255 | register "reg_adv_ctrl4" = "0x00" |
| 256 | register "reg_adv_ctrl5" = "0x05" |
| 257 | register "reg_adv_ctrl6" = "0x00" |
| 258 | register "reg_adv_ctrl7" = "0x00" |
| 259 | register "reg_adv_ctrl8" = "0x00" |
| 260 | register "reg_adv_ctrl9" = "0x00" |
| 261 | register "reg_adv_ctrl10" = "0x00" |
| 262 | register "reg_adv_ctrl11" = "0x00" |
| 263 | register "reg_adv_ctrl12" = "0x00" |
| 264 | register "reg_adv_ctrl13" = "0x00" |
| 265 | register "reg_adv_ctrl14" = "0x80" |
| 266 | register "reg_adv_ctrl15" = "0x0c" |
| 267 | register "reg_adv_ctrl16" = "0x04" |
| 268 | register "reg_adv_ctrl17" = "0x70" |
| 269 | register "reg_adv_ctrl18" = "0x40" |
| 270 | register "reg_adv_ctrl19" = "0x00" |
| 271 | register "reg_adv_ctrl20" = "0x00" |
| 272 | register "reg_irq_cfg0" = "0x00" |
| 273 | register "reg_irq_cfg1" = "0x80" |
| 274 | register "reg_irq_cfg2" = "0x00" |
| 275 | device i2c 28 on end |
| 276 | end |
| 277 | end # I2C 5 |
Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame] | 278 | device pci 1f.3 on |
| 279 | chip drivers/generic/max98357a |
| 280 | register "hid" = ""MX98360A"" |
| 281 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 282 | device generic 0 on end |
| 283 | end |
| 284 | end # Intel HDA |
| 285 | end |
| 286 | end |