blob: a98d144147dcfe09d966fc1df04e66d697c684c6 [file] [log] [blame]
Felix Singerda3375e2020-09-22 20:32:33 +00001chip soc/intel/cannonlake
Michael Niewöhner0ca534e2020-12-03 23:57:22 +01002 register "s0ix_enable" = "1"
Felix Singerda3375e2020-09-22 20:32:33 +00003 register "common_soc_config" = "{
Felix Singerda3375e2020-09-22 20:32:33 +00004 /* Touchpad */
5 .i2c[0] = {
6 .speed = I2C_SPEED_FAST,
7 .rise_time_ns = 80,
8 .fall_time_ns = 110,
9 },
10 }"
11
Felix Singerda3375e2020-09-22 20:32:33 +000012# CPU (soc/intel/cannonlake/cpu.c)
13 # Power limit
14 register "power_limits_config" = "{
15 .tdp_pl1_override = 20,
16 .tdp_pl2_override = 30,
17 }"
18
Felix Singerda3375e2020-09-22 20:32:33 +000019 # Enable Enhanced Intel SpeedStep
20 register "eist_enable" = "1"
21
22# FSP Memory (soc/intel/cannonlake/romstage/fsp_params.c)
23 register "SaGv" = "SaGv_Enabled"
24 #register "enable_c6dram" = "1"
25
26# FSP Silicon (soc/intel/cannonlake/fsp_params.c)
27 # Serial I/O
28 register "SerialIoDevMode" = "{
29 [PchSerialIoIndexI2C0] = PchSerialIoPci, // Touchpad
30 [PchSerialIoIndexUART2] = PchSerialIoSkipInit, // LPSS UART
31 }"
32
33 # Misc
34 register "AcousticNoiseMitigation" = "1"
35 #register "dmipwroptimize" = "1"
36 #register "satapwroptimize" = "1"
37
38 # Power
39 register "PchPmSlpS3MinAssert" = "3" # 50ms
40 register "PchPmSlpS4MinAssert" = "1" # 1s
41 register "PchPmSlpSusMinAssert" = "2" # 500ms
42 register "PchPmSlpAMinAssert" = "4" # 2s
43
44 # Thermal
45 register "tcc_offset" = "12"
46
47# PM Util (soc/intel/cannonlake/pmutil.c)
48 # GPE configuration
49 # Note that GPE events called out in ASL code rely on this
50 # route. i.e. If this route changes then the affected GPE
51 # offset bits also need to be changed.
52 # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG)
53 register "gpe0_dw0" = "PMC_GPP_C"
54 register "gpe0_dw1" = "PMC_GPP_D"
55 register "gpe0_dw2" = "PMC_GPP_E"
56
57# Actual device tree
Arthur Heymans69cd7292022-11-07 13:52:11 +010058 device cpu_cluster 0 on end
Felix Singerda3375e2020-09-22 20:32:33 +000059
60 device domain 0 on
61 subsystemid 0x1558 0x1401 inherit
Felix Singere9da62a2020-12-06 04:56:03 +010062 device pci 00.0 on end # Host Bridge
Michael Niewöhner6efff742020-12-19 14:12:41 +010063 device pci 02.0 on # Integrated Graphics Device
64 register "gfx" = "GMA_DEFAULT_PANEL(0)"
65 register "panel_cfg" = "{
66 .up_delay_ms = 200,
67 .down_delay_ms = 50,
68 .cycle_delay_ms = 500,
69 .backlight_pwm_hz = 1000,
70 .backlight_on_delay_ms = 1,
71 .backlight_off_delay_ms = 1,
72 }"
73 end
Felix Singere9da62a2020-12-06 04:56:03 +010074 device pci 04.0 on # SA Thermal device
Felix Singerda3375e2020-09-22 20:32:33 +000075 register "Device4Enable" = "1"
76 end
Felix Singere9da62a2020-12-06 04:56:03 +010077 device pci 12.0 on end # Thermal Subsystem
78 device pci 12.5 off end # UFS SCS
79 device pci 12.6 off end # GSPI #2
80 device pci 13.0 off end # Integrated Sensor Hub
81 device pci 14.0 on # USB xHCI
Felix Singerda3375e2020-09-22 20:32:33 +000082 # USB2
83 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A port 1
84 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C port 2
85 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A port 3
86 register "usb2_ports[6]" = "USB2_PORT_MAX(OC_SKIP)" # Camera
87 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
88 # USB3
89 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A port 1
90 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C port 2
91 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A port 3
92 end
Felix Singere9da62a2020-12-06 04:56:03 +010093 device pci 14.1 off end # USB xDCI (OTG)
94 device pci 14.3 on # CNVi wifi
Furquan Shaikhedac4ef2020-10-09 08:50:14 -070095 chip drivers/wifi/generic
96 register "wake" = "GPE0_PME_B0"
97 device generic 0 on end
98 end
Felix Singere9da62a2020-12-06 04:56:03 +010099 end
100 device pci 14.5 off end # SDCard
101 device pci 15.0 on # I2C #0
Felix Singerda3375e2020-09-22 20:32:33 +0000102 chip drivers/i2c/hid
103 register "generic.hid" = ""ELAN040D""
104 register "generic.desc" = ""ELAN Touchpad""
Michael Niewöhnerd9904552020-11-25 00:38:19 +0100105 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)"
Matt DeVillier2cf52d82022-09-01 15:09:24 -0500106 register "generic.detect" = "1"
Felix Singerda3375e2020-09-22 20:32:33 +0000107 register "hid_desc_reg_offset" = "0x01"
108 device i2c 15 on end
109 end
Felix Singer310e0502020-09-30 20:05:41 +0000110 end
Felix Singere9da62a2020-12-06 04:56:03 +0100111 device pci 15.1 off end # I2C #1
112 device pci 15.2 off end # I2C #2
113 device pci 15.3 off end # I2C #3
114 device pci 16.0 off end # Management Engine Interface 1
115 device pci 16.1 off end # Management Engine Interface 2
116 device pci 16.2 off end # Management Engine IDE-R
117 device pci 16.3 off end # Management Engine KT Redirection
118 device pci 16.4 off end # Management Engine Interface 3
119 device pci 16.5 off end # Management Engine Interface 4
120 device pci 17.0 on # SATA
Felix Singerda3375e2020-09-22 20:32:33 +0000121 register "SataSalpSupport" = "1"
122 # Port 2 (J_SSD2)
123 register "SataPortsEnable[1]" = "1"
124 register "SataPortsDevSlp[1]" = "1"
125 # Port 3 (J_SSD1)
126 register "SataPortsEnable[2]" = "1"
127 register "SataPortsDevSlp[2]" = "1"
128 end
Felix Singere9da62a2020-12-06 04:56:03 +0100129 device pci 19.0 off end # I2C #4
130 device pci 19.1 off end # I2C #5
131 device pci 19.2 on end # UART #2
132 device pci 1a.0 off end # eMMC
133 device pci 1c.0 off end # PCI Express Port 1
134 device pci 1c.1 off end # PCI Express Port 2
135 device pci 1c.2 off end # PCI Express Port 3
136 device pci 1c.3 off end # PCI Express Port 4
137 device pci 1c.4 off end # PCI Express Port 5
138 device pci 1c.5 on # PCI Express Port 6
Felix Singerda3375e2020-09-22 20:32:33 +0000139 device pci 00.0 on end # x1 Card reader
140 register "PcieRpEnable[5]" = "1"
141 register "PcieRpLtrEnable[5]" = "1"
142 register "PcieClkSrcUsage[3]" = "5"
143 register "PcieClkSrcClkReq[3]" = "3"
Felix Singerda3375e2020-09-22 20:32:33 +0000144 end
Felix Singere9da62a2020-12-06 04:56:03 +0100145 device pci 1c.6 off end # PCI Express Port 7
146 device pci 1c.7 on # PCI Express Port 8
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700147 chip drivers/wifi/generic
Felix Singer8271cce2020-12-06 04:58:23 +0100148 device pci 00.0 on end
Michael Niewöhner92c15462020-09-24 10:17:58 +0200149 end
Felix Singerda3375e2020-09-22 20:32:33 +0000150 register "PcieRpEnable[7]" = "1"
151 register "PcieRpLtrEnable[7]" = "1"
152 register "PcieClkSrcUsage[2]" = "7"
153 register "PcieClkSrcClkReq[2]" = "2"
154 register "PcieRpSlotImplemented[7]" = "1"
Felix Singerda3375e2020-09-22 20:32:33 +0000155 smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" "M.2/E 2230 (J_WLAN1)" "SlotDataBusWidth1X"
156 end
Felix Singere9da62a2020-12-06 04:56:03 +0100157 device pci 1d.0 on # PCI Express Port 9
Felix Singerda3375e2020-09-22 20:32:33 +0000158 register "PcieRpEnable[8]" = "1"
159 register "PcieRpLtrEnable[8]" = "1"
160 register "PcieClkSrcUsage[4]" = "8"
161 register "PcieClkSrcClkReq[4]" = "4"
162 register "PcieRpSlotImplemented[8]" = "1"
163 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD2)" "SlotDataBusWidth4X"
164 end
Felix Singere9da62a2020-12-06 04:56:03 +0100165 device pci 1d.1 off end # PCI Express Port 10
166 device pci 1d.2 off end # PCI Express Port 11
167 device pci 1d.3 off end # PCI Express Port 12
168 device pci 1d.4 on # PCI Express Port 13
Felix Singerda3375e2020-09-22 20:32:33 +0000169 register "PcieRpEnable[12]" = "1"
170 register "PcieRpLtrEnable[12]" = "1"
171 register "PcieClkSrcUsage[5]" = "12"
172 register "PcieClkSrcClkReq[5]" = "5"
173 register "PcieRpSlotImplemented[12]" = "1"
174 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD1)" "SlotDataBusWidth4X"
175 end
Felix Singere9da62a2020-12-06 04:56:03 +0100176 device pci 1d.5 off end # PCI Express Port 14
177 device pci 1d.6 off end # PCI Express Port 15
178 device pci 1d.7 off end # PCI Express Port 16
179 device pci 1e.0 off end # UART #0
180 device pci 1e.1 off end # UART #1
181 device pci 1e.2 off end # GSPI #0
182 device pci 1e.3 off end # GSPI #1
183 device pci 1f.0 on # LPC Interface
Michael Niewöhnerdc3e7de2021-11-28 23:53:55 +0100184 chip ec/clevo/it5570e
185 device generic 0 on end
186 register "pl2_on_battery" = "15"
187 end
Felix Singerda3375e2020-09-22 20:32:33 +0000188 chip drivers/pc80/tpm # TPM
189 device pnp 0c31.0 on end
190 end
191 end
Felix Singere9da62a2020-12-06 04:56:03 +0100192 device pci 1f.1 hidden end # P2SB
193 device pci 1f.2 hidden end # Power Management Controller
194 device pci 1f.3 on # Intel HDA
Felix Singerda3375e2020-09-22 20:32:33 +0000195 register "PchHdaAudioLinkHda" = "1"
196 end
Felix Singere9da62a2020-12-06 04:56:03 +0100197 device pci 1f.4 on end # SMBus
198 device pci 1f.5 on end # PCH SPI
199 device pci 1f.6 off end # GbE
Felix Singerda3375e2020-09-22 20:32:33 +0000200 end
201end