blob: fbe6c1f21df06155e5032e1d5890c4f40c466a27 [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
Furquan Shaikh88880722017-05-01 14:23:37 -07006 # Deep Sx states
7 register "deep_s3_enable_ac" = "0"
Furquan Shaikhd37107e2017-11-08 11:28:10 -08008 register "deep_s3_enable_dc" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -07009 register "deep_s5_enable_ac" = "1"
10 register "deep_s5_enable_dc" = "1"
Furquan Shaikh9d867af2017-12-03 21:45:47 -080011 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 -070012
13 # GPE configuration
14 # Note that GPE events called out in ASL code rely on this
15 # route. i.e. If this route changes then the affected GPE
16 # offset bits also need to be changed.
17 register "gpe0_dw0" = "GPP_B"
18 register "gpe0_dw1" = "GPP_D"
19 register "gpe0_dw2" = "GPP_E"
20
21 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
22 register "gen1_dec" = "0x00fc0801"
23 register "gen2_dec" = "0x000c0201"
24 # EC memory map range is 0x900-0x9ff
25 register "gen3_dec" = "0x00fc0901"
26
27 # Enable DPTF
28 register "dptf_enable" = "1"
29
Rajat Jain2671afc2017-07-20 19:31:01 -070030 # Enable S0ix
Felix Singer743242b2023-06-16 01:33:25 +020031 register "s0ix_enable" = true
Rajat Jain2671afc2017-07-20 19:31:01 -070032
Furquan Shaikh88880722017-05-01 14:23:37 -070033 # FSP Configuration
Furquan Shaikh88880722017-05-01 14:23:37 -070034 register "SataSalpSupport" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070035 register "SataPortsEnable[0]" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070036 register "DspEnable" = "1"
37 register "IoBufferOwnership" = "3"
Furquan Shaikh88880722017-05-01 14:23:37 -070038 register "SsicPortEnable" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070039 register "ScsEmmcHs400Enabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070040 register "SkipExtGfxScan" = "1"
Angel Pons6fadde02021-04-04 16:11:53 +020041 register "SaGv" = "SaGv_Enabled"
Furquan Shaikh88880722017-05-01 14:23:37 -070042 register "PmConfigSlpS3MinAssert" = "2" # 50ms
43 register "PmConfigSlpS4MinAssert" = "1" # 1s
44 register "PmConfigSlpSusMinAssert" = "1" # 500ms
45 register "PmConfigSlpAMinAssert" = "3" # 2s
Furquan Shaikh88880722017-05-01 14:23:37 -070046
Furquan Shaikh88880722017-05-01 14:23:37 -070047 # VR Settings Configuration for 4 Domains
48 #+----------------+-------+-------+-------+-------+
49 #| Domain/Setting | SA | IA | GTUS | GTS |
50 #+----------------+-------+-------+-------+-------+
51 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053052 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070053 #| Psi3Threshold | 1A | 1A | 1A | 1A |
54 #| Psi3Enable | 1 | 1 | 1 | 1 |
55 #| Psi4Enable | 1 | 1 | 1 | 1 |
56 #| ImonSlope | 0 | 0 | 0 | 0 |
57 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053058 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070059 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053060 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
61 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070062 #+----------------+-------+-------+-------+-------+
63 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
64 .vr_config_enable = 1,
65 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053066 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070067 .psi3threshold = VR_CFG_AMP(1),
68 .psi3enable = 1,
69 .psi4enable = 1,
70 .imon_slope = 0x0,
71 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053072 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070073 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053074 .ac_loadline = 1500,
75 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -070076 }"
77
78 register "domain_vr_config[VR_IA_CORE]" = "{
79 .vr_config_enable = 1,
80 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053081 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070082 .psi3threshold = VR_CFG_AMP(1),
83 .psi3enable = 1,
84 .psi4enable = 1,
85 .imon_slope = 0x0,
86 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053087 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -070088 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053089 .ac_loadline = 570,
90 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -070091 }"
92
93 register "domain_vr_config[VR_GT_UNSLICED]" = "{
94 .vr_config_enable = 1,
95 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053096 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070097 .psi3threshold = VR_CFG_AMP(1),
98 .psi3enable = 1,
99 .psi4enable = 1,
100 .imon_slope = 0x0,
101 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530102 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700103 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530104 .ac_loadline = 550,
105 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700106 }"
107
108 register "domain_vr_config[VR_GT_SLICED]" = "{
109 .vr_config_enable = 1,
110 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530111 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700112 .psi3threshold = VR_CFG_AMP(1),
113 .psi3enable = 1,
114 .psi4enable = 1,
115 .imon_slope = 0x0,
116 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530117 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700118 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530119 .ac_loadline = 550,
120 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700121 }"
122
123 # Enable Root port 1.
124 register "PcieRpEnable[0]" = "1"
125 # Enable CLKREQ#
126 register "PcieRpClkReqSupport[0]" = "1"
127 # RP 1 uses SRCCLKREQ1#
128 register "PcieRpClkReqNumber[0]" = "1"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530129 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530130 register "PcieRpAdvancedErrorReporting[0]" = "1"
131 # RP 1, Enable Latency Tolerance Reporting Mechanism
132 register "PcieRpLtrEnable[0]" = "1"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400133 # RP 1 uses CLK SRC 1
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530134 register "PcieRpClkSrcNumber[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700135
136 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
137 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
138 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800139 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700140 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
141 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
142
143 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
144 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
145 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
Furquan Shaikh88880722017-05-01 14:23:37 -0700146
Subrata Banikc4986eb2018-05-09 14:55:09 +0530147 # Intel Common SoC Config
148 #+-------------------+---------------------------+
149 #| Field | Value |
150 #+-------------------+---------------------------+
Subrata Banikc4986eb2018-05-09 14:55:09 +0530151 #| I2C0 | Touchscreen |
152 #| I2C1 | cr50 TPM. Early init is |
153 #| | required to set up a BAR |
154 #| | for TPM communication |
155 #| | before memory is up |
156 #| I2C2 | Camera |
157 #| I2C4 | Camera |
158 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530159 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530160 #+-------------------+---------------------------+
161 register "common_soc_config" = "{
Subrata Banikc4986eb2018-05-09 14:55:09 +0530162 .i2c[0] = {
Furquan Shaikheeab2712017-08-28 14:32:05 -0700163 .speed = I2C_SPEED_FAST,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530164 .speed_config[0] = {
165 .speed = I2C_SPEED_FAST,
166 .scl_lcnt = 180,
167 .scl_hcnt = 85,
168 .sda_hold = 36,
169 },
170 },
171 .i2c[1] = {
172 .early_init = 1,
173 .speed = I2C_SPEED_FAST,
174 .speed_config[0] = {
175 .speed = I2C_SPEED_FAST,
176 .scl_lcnt = 190,
177 .scl_hcnt = 90,
178 .sda_hold = 36,
179 },
180 },
181 .i2c[2] = {
182 .speed = I2C_SPEED_FAST,
183 .speed_config[0] = {
184 .speed = I2C_SPEED_FAST,
185 .scl_lcnt = 192,
186 .scl_hcnt = 90,
187 .sda_hold = 36,
188 },
189 },
190 .i2c[4] = {
191 .speed = I2C_SPEED_FAST,
192 .speed_config[0] = {
193 .speed = I2C_SPEED_FAST,
194 .scl_lcnt = 190,
195 .scl_hcnt = 90,
196 .sda_hold = 36,
197 },
198 },
199 .i2c[5] = {
200 .speed = I2C_SPEED_FAST,
201 .speed_config[0] = {
202 .speed = I2C_SPEED_FAST,
203 .scl_lcnt = 190,
204 .scl_hcnt = 90,
205 .sda_hold = 36,
206 },
Furquan Shaikheeab2712017-08-28 14:32:05 -0700207 },
Subrata Banikc077b222019-08-01 10:50:35 +0530208 .pch_thermal_trip = 75,
Furquan Shaikheeab2712017-08-28 14:32:05 -0700209 }"
210
Subrata Banikc4986eb2018-05-09 14:55:09 +0530211 # Touchscreen
212 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
213
Furquan Shaikheeab2712017-08-28 14:32:05 -0700214 # H1
Furquan Shaikheeab2712017-08-28 14:32:05 -0700215 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
216 # for TPM communication before memory is up.
Subrata Banikc4986eb2018-05-09 14:55:09 +0530217 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700218
219 # Camera
220 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700221
Furquan Shaikheeab2712017-08-28 14:32:05 -0700222 # Camera
223 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700224
225 # Audio
226 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Furquan Shaikh88880722017-05-01 14:23:37 -0700227
Furquan Shaikh88880722017-05-01 14:23:37 -0700228 # Must leave UART0 enabled or SD/eMMC will not work as PCI
229 register "SerialIoDevMode" = "{
230 [PchSerialIoIndexI2C0] = PchSerialIoPci,
231 [PchSerialIoIndexI2C1] = PchSerialIoPci,
232 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800233 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700234 [PchSerialIoIndexI2C4] = PchSerialIoPci,
235 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Furquan Shaikh763b4062017-12-04 12:17:24 -0800236 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700237 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Angel Pons08564942021-06-04 18:55:03 +0200238 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Furquan Shaikh88880722017-05-01 14:23:37 -0700239 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
240 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
241 }"
242
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530243 # PL2 override 15W for KBL-Y
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530244 register "power_limits_config" = "{
245 .tdp_pl2_override = 15,
246 .psys_pmax = 45,
247 }"
Furquan Shaikh88880722017-05-01 14:23:37 -0700248 register "tcc_offset" = "10" # TCC of 90C
249
250 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100251 register "sdcard_cd_gpio" = "GPP_E15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700252
Arthur Heymans69cd7292022-11-07 13:52:11 +0100253 device cpu_cluster 0 on end
Furquan Shaikh88880722017-05-01 14:23:37 -0700254 device domain 0 on
255 device pci 00.0 on end # Host Bridge
256 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200257 device pci 04.0 on end # SA thermal subsystem
Felix Singer4d5c4e02020-07-29 22:28:37 +0200258 device pci 05.0 on end # SA IMGU
Furquan Shaikh88880722017-05-01 14:23:37 -0700259 device pci 14.0 on end # USB xHCI
Furquan Shaikh7ca40062018-04-25 17:59:09 -0700260 device pci 14.1 on end # USB xDCI (OTG)
Furquan Shaikh88880722017-05-01 14:23:37 -0700261 device pci 14.2 on end # Thermal Subsystem
Felix Singere2186672020-07-29 23:20:52 +0200262 device pci 14.3 on end # Camera
Furquan Shaikh88880722017-05-01 14:23:37 -0700263 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800264 chip drivers/i2c/hid
265 register "generic.hid" = ""WCOMCOHO""
266 register "generic.desc" = ""WCOM Touchscreen""
267 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
Matt DeVillier86425c82022-03-28 23:45:14 -0500268 register "generic.detect" = "1"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800269 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700270 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800271 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
272 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700273 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800274 register "generic.has_power_resource" = "1"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800275 register "hid_desc_reg_offset" = "0x1"
276 device i2c 0xA on end
277 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700278 end # I2C #0
279 device pci 15.1 on
280 chip drivers/i2c/tpm
281 register "hid" = ""GOOG0005""
282 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
283 device i2c 50 on end
284 end
285 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530286 device pci 15.2 on end # I2C #2
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800287 device pci 15.3 off end # I2C #3
Furquan Shaikh88880722017-05-01 14:23:37 -0700288 device pci 16.0 on end # Management Engine Interface 1
289 device pci 16.1 off end # Management Engine Interface 2
290 device pci 16.2 off end # Management Engine IDE-R
291 device pci 16.3 off end # Management Engine KT Redirection
292 device pci 16.4 off end # Management Engine Interface 3
293 device pci 17.0 off end # SATA
294 device pci 19.0 on end # UART #2
295 device pci 19.1 on
296 chip drivers/i2c/max98927
297 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700298 register "vmon_slot_no" = "4"
299 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700300 register "uid" = "0"
301 register "desc" = ""SSM4567 Right Speaker Amp""
302 register "name" = ""MAXR""
303 device i2c 39 on end
304 end
305 chip drivers/i2c/max98927
306 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700307 register "vmon_slot_no" = "6"
308 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700309 register "uid" = "1"
310 register "desc" = ""SSM4567 Left Speaker Amp""
311 register "name" = ""MAXL""
312 device i2c 3A on end
313 end
314 chip drivers/i2c/generic
315 register "hid" = ""10EC5663""
316 register "name" = ""RT53""
317 register "desc" = ""Realtek RT5663""
318 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
319 register "probed" = "1"
320 device i2c 13 on end
321 end
322 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530323 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700324 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700325 chip drivers/wifi/generic
Furquan Shaikh88880722017-05-01 14:23:37 -0700326 register "wake" = "GPE0_PCI_EXP"
327 device pci 00.0 on end
328 end
329 end # PCI Express Port 1
330 device pci 1c.1 off end # PCI Express Port 2
331 device pci 1c.2 off end # PCI Express Port 3
332 device pci 1c.3 off end # PCI Express Port 4
333 device pci 1c.4 off end # PCI Express Port 5
334 device pci 1c.5 off end # PCI Express Port 6
335 device pci 1c.6 off end # PCI Express Port 7
336 device pci 1c.7 off end # PCI Express Port 8
337 device pci 1d.0 off end # PCI Express Port 9
338 device pci 1d.1 off end # PCI Express Port 10
339 device pci 1d.2 off end # PCI Express Port 11
340 device pci 1d.3 off end # PCI Express Port 12
341 device pci 1e.0 on end # UART #0
342 device pci 1e.1 off end # UART #1
Furquan Shaikh763b4062017-12-04 12:17:24 -0800343 device pci 1e.2 off end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700344 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700345 device pci 1e.4 on end # eMMC
346 device pci 1e.5 off end # SDIO
347 device pci 1e.6 on end # SDCard
348 device pci 1f.0 on
349 chip ec/google/chromeec
350 device pnp 0c09.0 on end
351 end
352 end # LPC Interface
353 device pci 1f.1 on end # P2SB
354 device pci 1f.2 on end # Power Management Controller
355 device pci 1f.3 on end # Intel HDA
356 device pci 1f.4 on end # SMBus
357 device pci 1f.5 on end # PCH SPI
358 device pci 1f.6 off end # GbE
359 end
360end