blob: d274e15be1ab13964f2ceedbacfb410e552f5504 [file] [log] [blame]
Furquan Shaikh88880722017-05-01 14:23:37 -07001chip soc/intel/skylake
2
Matt DeVillier8f424722019-11-27 22:55:43 -06003 # IGD Displays
4 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
5
Matt DeVillierf5d159672019-11-30 16:29:58 -06006 register "panel_cfg" = "{
7 .up_delay_ms = 100,
8 .down_delay_ms = 500,
9 .cycle_delay_ms = 500,
10 .backlight_on_delay_ms = 1,
11 .backlight_off_delay_ms = 200,
12 .backlight_pwm_hz = 1000,
13 }"
14
Furquan Shaikh88880722017-05-01 14:23:37 -070015 # Deep Sx states
16 register "deep_s3_enable_ac" = "0"
Furquan Shaikhd37107e2017-11-08 11:28:10 -080017 register "deep_s3_enable_dc" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070018 register "deep_s5_enable_ac" = "1"
19 register "deep_s5_enable_dc" = "1"
Furquan Shaikh9d867af2017-12-03 21:45:47 -080020 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
Furquan Shaikh88880722017-05-01 14:23:37 -070021
22 # GPE configuration
23 # Note that GPE events called out in ASL code rely on this
24 # route. i.e. If this route changes then the affected GPE
25 # offset bits also need to be changed.
26 register "gpe0_dw0" = "GPP_B"
27 register "gpe0_dw1" = "GPP_D"
28 register "gpe0_dw2" = "GPP_E"
29
30 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
31 register "gen1_dec" = "0x00fc0801"
32 register "gen2_dec" = "0x000c0201"
33 # EC memory map range is 0x900-0x9ff
34 register "gen3_dec" = "0x00fc0901"
35
36 # Enable DPTF
37 register "dptf_enable" = "1"
38
Rajat Jain2671afc2017-07-20 19:31:01 -070039 # Enable S0ix
Felix Singer743242b2023-06-16 01:33:25 +020040 register "s0ix_enable" = true
Rajat Jain2671afc2017-07-20 19:31:01 -070041
Furquan Shaikh88880722017-05-01 14:23:37 -070042 # FSP Configuration
Furquan Shaikh88880722017-05-01 14:23:37 -070043 register "SataSalpSupport" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070044 register "SataPortsEnable[0]" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070045 register "DspEnable" = "1"
46 register "IoBufferOwnership" = "3"
Furquan Shaikh88880722017-05-01 14:23:37 -070047 register "ScsEmmcHs400Enabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070048 register "SkipExtGfxScan" = "1"
Angel Pons6fadde02021-04-04 16:11:53 +020049 register "SaGv" = "SaGv_Enabled"
Furquan Shaikh88880722017-05-01 14:23:37 -070050 register "PmConfigSlpS3MinAssert" = "2" # 50ms
51 register "PmConfigSlpS4MinAssert" = "1" # 1s
52 register "PmConfigSlpSusMinAssert" = "1" # 500ms
53 register "PmConfigSlpAMinAssert" = "3" # 2s
Furquan Shaikh88880722017-05-01 14:23:37 -070054
Furquan Shaikh88880722017-05-01 14:23:37 -070055 # VR Settings Configuration for 4 Domains
56 #+----------------+-------+-------+-------+-------+
57 #| Domain/Setting | SA | IA | GTUS | GTS |
58 #+----------------+-------+-------+-------+-------+
59 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053060 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070061 #| Psi3Threshold | 1A | 1A | 1A | 1A |
62 #| Psi3Enable | 1 | 1 | 1 | 1 |
63 #| Psi4Enable | 1 | 1 | 1 | 1 |
64 #| ImonSlope | 0 | 0 | 0 | 0 |
65 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053066 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070067 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053068 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
69 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070070 #+----------------+-------+-------+-------+-------+
71 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
72 .vr_config_enable = 1,
73 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053074 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070075 .psi3threshold = VR_CFG_AMP(1),
76 .psi3enable = 1,
77 .psi4enable = 1,
78 .imon_slope = 0x0,
79 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053080 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070081 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053082 .ac_loadline = 1500,
83 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -070084 }"
85
86 register "domain_vr_config[VR_IA_CORE]" = "{
87 .vr_config_enable = 1,
88 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053089 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070090 .psi3threshold = VR_CFG_AMP(1),
91 .psi3enable = 1,
92 .psi4enable = 1,
93 .imon_slope = 0x0,
94 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053095 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -070096 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053097 .ac_loadline = 570,
98 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -070099 }"
100
101 register "domain_vr_config[VR_GT_UNSLICED]" = "{
102 .vr_config_enable = 1,
103 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530104 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700105 .psi3threshold = VR_CFG_AMP(1),
106 .psi3enable = 1,
107 .psi4enable = 1,
108 .imon_slope = 0x0,
109 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530110 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700111 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530112 .ac_loadline = 550,
113 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700114 }"
115
116 register "domain_vr_config[VR_GT_SLICED]" = "{
117 .vr_config_enable = 1,
118 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530119 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700120 .psi3threshold = VR_CFG_AMP(1),
121 .psi3enable = 1,
122 .psi4enable = 1,
123 .imon_slope = 0x0,
124 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530125 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700126 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530127 .ac_loadline = 550,
128 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700129 }"
130
131 # Enable Root port 1.
132 register "PcieRpEnable[0]" = "1"
133 # Enable CLKREQ#
134 register "PcieRpClkReqSupport[0]" = "1"
135 # RP 1 uses SRCCLKREQ1#
136 register "PcieRpClkReqNumber[0]" = "1"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530137 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530138 register "PcieRpAdvancedErrorReporting[0]" = "1"
139 # RP 1, Enable Latency Tolerance Reporting Mechanism
140 register "PcieRpLtrEnable[0]" = "1"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400141 # RP 1 uses CLK SRC 1
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530142 register "PcieRpClkSrcNumber[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700143
144 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
145 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
146 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800147 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700148 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
149 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
150
151 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
152 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
153 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
Furquan Shaikh88880722017-05-01 14:23:37 -0700154
Subrata Banikc4986eb2018-05-09 14:55:09 +0530155 # Intel Common SoC Config
156 #+-------------------+---------------------------+
157 #| Field | Value |
158 #+-------------------+---------------------------+
Subrata Banikc4986eb2018-05-09 14:55:09 +0530159 #| I2C0 | Touchscreen |
160 #| I2C1 | cr50 TPM. Early init is |
161 #| | required to set up a BAR |
162 #| | for TPM communication |
163 #| | before memory is up |
164 #| I2C2 | Camera |
165 #| I2C4 | Camera |
166 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530167 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530168 #+-------------------+---------------------------+
169 register "common_soc_config" = "{
Subrata Banikc4986eb2018-05-09 14:55:09 +0530170 .i2c[0] = {
Furquan Shaikheeab2712017-08-28 14:32:05 -0700171 .speed = I2C_SPEED_FAST,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530172 .speed_config[0] = {
173 .speed = I2C_SPEED_FAST,
174 .scl_lcnt = 180,
175 .scl_hcnt = 85,
176 .sda_hold = 36,
177 },
178 },
179 .i2c[1] = {
180 .early_init = 1,
181 .speed = I2C_SPEED_FAST,
182 .speed_config[0] = {
183 .speed = I2C_SPEED_FAST,
184 .scl_lcnt = 190,
185 .scl_hcnt = 90,
186 .sda_hold = 36,
187 },
188 },
189 .i2c[2] = {
190 .speed = I2C_SPEED_FAST,
191 .speed_config[0] = {
192 .speed = I2C_SPEED_FAST,
193 .scl_lcnt = 192,
194 .scl_hcnt = 90,
195 .sda_hold = 36,
196 },
197 },
198 .i2c[4] = {
199 .speed = I2C_SPEED_FAST,
200 .speed_config[0] = {
201 .speed = I2C_SPEED_FAST,
202 .scl_lcnt = 190,
203 .scl_hcnt = 90,
204 .sda_hold = 36,
205 },
206 },
207 .i2c[5] = {
208 .speed = I2C_SPEED_FAST,
209 .speed_config[0] = {
210 .speed = I2C_SPEED_FAST,
211 .scl_lcnt = 190,
212 .scl_hcnt = 90,
213 .sda_hold = 36,
214 },
Furquan Shaikheeab2712017-08-28 14:32:05 -0700215 },
Subrata Banikc077b222019-08-01 10:50:35 +0530216 .pch_thermal_trip = 75,
Furquan Shaikheeab2712017-08-28 14:32:05 -0700217 }"
218
Subrata Banikc4986eb2018-05-09 14:55:09 +0530219 # Touchscreen
220 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
221
Furquan Shaikheeab2712017-08-28 14:32:05 -0700222 # H1
Furquan Shaikheeab2712017-08-28 14:32:05 -0700223 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
224 # for TPM communication before memory is up.
Subrata Banikc4986eb2018-05-09 14:55:09 +0530225 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700226
227 # Camera
228 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700229
Furquan Shaikheeab2712017-08-28 14:32:05 -0700230 # Camera
231 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700232
233 # Audio
234 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Furquan Shaikh88880722017-05-01 14:23:37 -0700235
Furquan Shaikh88880722017-05-01 14:23:37 -0700236 # Must leave UART0 enabled or SD/eMMC will not work as PCI
237 register "SerialIoDevMode" = "{
238 [PchSerialIoIndexI2C0] = PchSerialIoPci,
239 [PchSerialIoIndexI2C1] = PchSerialIoPci,
240 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800241 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700242 [PchSerialIoIndexI2C4] = PchSerialIoPci,
243 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Furquan Shaikh763b4062017-12-04 12:17:24 -0800244 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700245 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Angel Pons08564942021-06-04 18:55:03 +0200246 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Furquan Shaikh88880722017-05-01 14:23:37 -0700247 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
248 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
249 }"
250
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530251 # PL2 override 15W for KBL-Y
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530252 register "power_limits_config" = "{
253 .tdp_pl2_override = 15,
254 .psys_pmax = 45,
255 }"
Furquan Shaikh88880722017-05-01 14:23:37 -0700256 register "tcc_offset" = "10" # TCC of 90C
257
258 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100259 register "sdcard_cd_gpio" = "GPP_E15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700260
Furquan Shaikh88880722017-05-01 14:23:37 -0700261 device domain 0 on
Marvin Evers059476d2023-12-04 02:28:25 +0100262 device ref system_agent on end
263 device ref igpu on end
264 device ref sa_thermal on end
265 device ref imgu on end
266 device ref south_xhci on end
267 device ref south_xdci on end
268 device ref thermal on end
269 device ref cio on end
270 device ref i2c0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800271 chip drivers/i2c/hid
272 register "generic.hid" = ""WCOMCOHO""
273 register "generic.desc" = ""WCOM Touchscreen""
274 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Matt DeVillier86425c82022-03-28 23:45:14 -0500275 register "generic.detect" = "1"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800276 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700277 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800278 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
279 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700280 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800281 register "generic.has_power_resource" = "1"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800282 register "hid_desc_reg_offset" = "0x1"
283 device i2c 0xA on end
284 end
Marvin Evers059476d2023-12-04 02:28:25 +0100285 end
286 device ref i2c1 on
Furquan Shaikh88880722017-05-01 14:23:37 -0700287 chip drivers/i2c/tpm
288 register "hid" = ""GOOG0005""
289 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
290 device i2c 50 on end
291 end
Marvin Evers059476d2023-12-04 02:28:25 +0100292 end
293 device ref i2c2 on end
294 device ref i2c3 off end
295 device ref heci1 on end
296 device ref heci2 off end
297 device ref csme_ider off end
298 device ref csme_ktr off end
299 device ref heci3 off end
300 device ref sata off end
301 device ref uart2 on end
302 device ref i2c5 on
Furquan Shaikh88880722017-05-01 14:23:37 -0700303 chip drivers/i2c/max98927
304 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700305 register "vmon_slot_no" = "4"
306 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700307 register "uid" = "0"
308 register "desc" = ""SSM4567 Right Speaker Amp""
309 register "name" = ""MAXR""
310 device i2c 39 on end
311 end
312 chip drivers/i2c/max98927
313 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700314 register "vmon_slot_no" = "6"
315 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700316 register "uid" = "1"
317 register "desc" = ""SSM4567 Left Speaker Amp""
318 register "name" = ""MAXL""
319 device i2c 3A on end
320 end
321 chip drivers/i2c/generic
322 register "hid" = ""10EC5663""
323 register "name" = ""RT53""
324 register "desc" = ""Realtek RT5663""
325 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
326 register "probed" = "1"
327 device i2c 13 on end
328 end
Marvin Evers059476d2023-12-04 02:28:25 +0100329 end
330 device ref i2c4 on end
331 device ref pcie_rp1 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700332 chip drivers/wifi/generic
Furquan Shaikh88880722017-05-01 14:23:37 -0700333 register "wake" = "GPE0_PCI_EXP"
334 device pci 00.0 on end
335 end
Marvin Evers059476d2023-12-04 02:28:25 +0100336 end
337 device ref pcie_rp2 off end
338 device ref pcie_rp3 off end
339 device ref pcie_rp4 off end
340 device ref pcie_rp5 off end
341 device ref pcie_rp6 off end
342 device ref pcie_rp7 off end
343 device ref pcie_rp8 off end
344 device ref pcie_rp9 off end
345 device ref pcie_rp10 off end
346 device ref pcie_rp11 off end
347 device ref pcie_rp12 off end
348 device ref uart0 on end
349 device ref uart1 off end
350 device ref gspi0 off end
351 device ref gspi1 off end
352 device ref emmc on end
353 device ref sdio off end
354 device ref sdxc on end
355 device ref lpc_espi on
Furquan Shaikh88880722017-05-01 14:23:37 -0700356 chip ec/google/chromeec
357 device pnp 0c09.0 on end
358 end
Marvin Evers059476d2023-12-04 02:28:25 +0100359 end
360 device ref p2sb on end
361 device ref pmc on end
362 device ref hda on end
363 device ref smbus on end
364 device ref fast_spi on end
365 device ref gbe off end
Furquan Shaikh88880722017-05-01 14:23:37 -0700366 end
367end