blob: ae521655cce42b5d61ad440e17b44b12cbe61976 [file] [log] [blame]
Tim Crawford8093b77c2024-05-29 16:31:17 -06001# SPDX-License-Identifier: GPL-2.0-only
2
Tim Crawfordfdc8fd32021-01-26 11:50:36 -07003chip soc/intel/cannonlake
4 register "common_soc_config" = "{
Tim Crawfordfdc8fd32021-01-26 11:50:36 -07005 // Touchpad I2C bus
6 .i2c[0] = {
7 .speed = I2C_SPEED_FAST,
8 .rise_time_ns = 80,
9 .fall_time_ns = 110,
10 },
11 }"
12
13# CPU (soc/intel/cannonlake/cpu.c)
14 # Power limit
15 register "power_limits_config" = "{
16 .tdp_pl1_override = 45,
17 .tdp_pl2_override = 78,
18 }"
19
20 # Enable Enhanced Intel SpeedStep
21 register "eist_enable" = "1"
22
23# FSP Memory (soc/intel/cannonlake/romstage/fsp_params.c)
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 I2C bus
30 [PchSerialIoIndexI2C1] = PchSerialIoPci,
31 [PchSerialIoIndexUART2] = PchSerialIoPci, // Debug console
32 }"
33
34 # Misc
35 register "AcousticNoiseMitigation" = "1"
36
37 # Power
38 register "PchPmSlpS3MinAssert" = "3" # 50ms
39 register "PchPmSlpS4MinAssert" = "1" # 1s
40 register "PchPmSlpSusMinAssert" = "4" # 4s
41 register "PchPmSlpAMinAssert" = "4" # 2s
42
43 # Thermal
44 register "tcc_offset" = "13"
45
46 # Serial IRQ Continuous
47 register "serirq_mode" = "SERIRQ_CONTINUOUS"
48
49# PM Util (soc/intel/cannonlake/pmutil.c)
50 # GPE configuration
51 # Note that GPE events called out in ASL code rely on this
52 # route. i.e. If this route changes then the affected GPE
53 # offset bits also need to be changed.
54 register "gpe0_dw0" = "PMC_GPP_B"
55 register "gpe0_dw1" = "PMC_GPP_G"
56 register "gpe0_dw2" = "PMC_GPP_E"
57
58# Actual device tree
Arthur Heymans69cd7292022-11-07 13:52:11 +010059 device cpu_cluster 0 on end
Tim Crawfordfdc8fd32021-01-26 11:50:36 -070060
61 device domain 0 on
62 subsystemid 0x1558 0x95e6 inherit
63 device pci 00.0 on end # Host Bridge
64 device pci 01.0 on # GPU Port
65 # PCI Express Graphics #0 x16, Clock 8 (NVIDIA GPU)
66 register "PcieClkSrcUsage[8]" = "0x40"
67 register "PcieClkSrcClkReq[8]" = "8"
68 end
69 device pci 02.0 on # Integrated Graphics Device
70 register "gfx" = "GMA_DEFAULT_PANEL(0)"
71 end
72 device pci 04.0 on # SA Thermal device
73 register "Device4Enable" = "1"
74 end
75 device pci 12.0 on end # Thermal Subsystem
76 device pci 12.5 off end # UFS SCS
77 device pci 12.6 off end # GSPI #2
78 device pci 13.0 off end # Integrated Sensor Hub
79 device pci 14.0 on # USB xHCI
Felix Singerd1632532023-10-26 15:02:46 +020080 register "usb2_ports" = "{
81 [0] = USB2_PORT_TYPE_C(OC_SKIP), /* Type-C */
82 [1] = USB2_PORT_TYPE_C(OC_SKIP), /* Type-C/DP */
83 [2] = USB2_PORT_MID(OC_SKIP), /* USB 3 Right */
84 [3] = USB2_PORT_MID(OC_SKIP), /* USB 3 Left */
85 [4] = USB2_PORT_MID(OC_SKIP), /* Per-key RGB */
86 [6] = USB2_PORT_MID(OC_SKIP), /* 3G/LTE */
87 [7] = USB2_PORT_MID(OC_SKIP), /* Camera */
88 [9] = USB2_PORT_MID(OC_SKIP), /* Fingerprint */
89 [13] = USB2_PORT_MID(OC_SKIP), /* WLAN/Bluetooth */
90 }"
91 register "usb3_ports" = "{
92 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C */
93 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C/DP */
94 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Right */
95 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Left */
96 [6] = USB3_PORT_DEFAULT(OC_SKIP), /* 3G/LTE */
97 }"
Tim Crawfordfdc8fd32021-01-26 11:50:36 -070098 end
99 device pci 14.1 off end # USB xDCI (OTG)
100 device pci 14.2 on end # Shared SRAM
101 device pci 14.3 on # CNVi wifi
102 #chip drivers/intel/wifi
103 # register "wake" = "PME_B0_EN_BIT"
104 #end
105 end
106 device pci 14.5 off end # SDCard
107 device pci 15.0 on # I2C #0
108 # I2C HID not supported on PNP0f13
109 end
110 device pci 15.1 on end # I2C #1
111 device pci 15.2 off end # I2C #2
112 device pci 15.3 off end # I2C #3
Tim Crawfordc3ced8f2021-10-27 15:14:54 -0600113 device pci 16.0 on end # Management Engine Interface 1
Tim Crawfordfdc8fd32021-01-26 11:50:36 -0700114 device pci 16.1 off end # Management Engine Interface 2
115 device pci 16.2 off end # Management Engine IDE-R
116 device pci 16.3 off end # Management Engine KT Redirection
117 device pci 16.4 off end # Management Engine Interface 3
118 device pci 16.5 off end # Management Engine Interface 4
119 device pci 17.0 on # SATA
Felix Singerd1632532023-10-26 15:02:46 +0200120 register "SataPortsEnable" = "{
121 [1] = 1, /* SSD (SATA1A) */
122 [4] = 1, /* HDD (SATA4) */
123 }"
Tim Crawfordfdc8fd32021-01-26 11:50:36 -0700124 end
125 device pci 19.0 off end # I2C #4
126 device pci 19.1 off end # I2C #5
127 device pci 19.2 on end # UART #2
128 device pci 1a.0 off end # eMMC
129 device pci 1b.0 off end # PCI Express Port 17
130 device pci 1b.1 off end # PCI Express Port 18
131 device pci 1b.2 off end # PCI Express Port 19
132 device pci 1b.3 off end # PCI Express Port 20
133 device pci 1b.4 on # PCI Express Port 21
134 # PCI Express root port #21 x4, Clock 11 (SSD2)
135 register "PcieRpEnable[20]" = "1"
136 register "PcieRpLtrEnable[20]" = "1"
137 register "PcieClkSrcUsage[11]" = "20"
138 register "PcieClkSrcClkReq[11]" = "11"
139 end
140 device pci 1b.5 off end # PCI Express Port 22
141 device pci 1b.6 off end # PCI Express Port 23
142 device pci 1b.7 off end # PCI Express Port 24
143 device pci 1c.0 off end # PCI Express Port 1
144 device pci 1c.1 off end # PCI Express Port 2
145 device pci 1c.2 off end # PCI Express Port 3
146 device pci 1c.3 off end # PCI Express Port 4
147 device pci 1c.4 off end # PCI Express Port 5
148 device pci 1c.5 off end # PCI Express Port 6
149 device pci 1c.6 off end # PCI Express Port 7
150 device pci 1c.7 off end # PCI Express Port 8
151 device pci 1d.0 on # PCI Express Port 9
152 # PCI Express root port #9 x4, Clock 12 (SSD)
153 register "PcieRpEnable[8]" = "1"
154 register "PcieRpLtrEnable[8]" = "1"
155 register "PcieClkSrcUsage[12]" = "8"
156 register "PcieClkSrcClkReq[12]" = "12"
157 end
158 device pci 1d.1 off end # PCI Express Port 10
159 device pci 1d.2 off end # PCI Express Port 11
160 device pci 1d.3 off end # PCI Express Port 12
161 device pci 1d.4 off end # PCI Express Port 13
162 device pci 1d.5 on # PCI Express Port 14
163 # PCI Express root port #14 x1, Clock 13 (WLAN)
164 register "PcieRpEnable[13]" = "1"
165 register "PcieRpLtrEnable[13]" = "1"
166 register "PcieClkSrcUsage[13]" = "13"
167 register "PcieClkSrcClkReq[13]" = "13"
168 end
169 device pci 1d.6 on # PCI Express Port 15
170 # PCI Express root port #15 x1, Clock 14 (GLAN)
171 register "PcieRpEnable[14]" = "1"
172 register "PcieRpLtrEnable[14]" = "1"
173 register "PcieClkSrcUsage[14]" = "14"
174 register "PcieClkSrcClkReq[14]" = "14"
175 end
176 device pci 1d.7 on # PCI Express Port 16
177 # PCI Express root port #16 x1, Clock 15 (Card Reader)
178 register "PcieRpEnable[15]" = "1"
179 register "PcieRpLtrEnable[15]" = "1"
180 register "PcieClkSrcUsage[15]" = "15"
181 register "PcieClkSrcClkReq[15]" = "15"
182 end
183 device pci 1e.0 off end # UART #0
184 device pci 1e.1 off end # UART #1
185 device pci 1e.2 off end # GSPI #0
186 device pci 1e.3 off end # GSPI #1
187 device pci 1f.0 on # LPC Interface
Michael Niewöhnerc5f1dc92021-04-10 22:51:15 +0200188 register "gen1_dec" = "0x00040069"
189 register "gen2_dec" = "0x00fc0e01"
190 register "gen3_dec" = "0x00fc0f01"
Tim Crawfordfdc8fd32021-01-26 11:50:36 -0700191 chip drivers/pc80/tpm
192 device pnp 0c31.0 on end
193 end
194 end
195 device pci 1f.1 off end # P2SB
Tim Wawrzynczakb7b51152021-07-01 08:38:30 -0600196 device pci 1f.2 hidden end # Power Management Controller
Tim Crawfordfdc8fd32021-01-26 11:50:36 -0700197 device pci 1f.3 on # Intel HDA
198 subsystemid 0x1558 0x96e1
199 register "PchHdaAudioLinkHda" = "1"
200 end
Tim Crawforda346fd92021-02-08 23:01:53 -0700201 device pci 1f.4 on # SMBus
202 chip drivers/i2c/tas5825m
203 register "id" = "0"
204 device i2c 4e on end # (8bit address: 0x9c)
205 end # tas5825m
206 end
Tim Crawfordfdc8fd32021-01-26 11:50:36 -0700207 device pci 1f.5 on end # PCH SPI
208 device pci 1f.6 off end # GbE
209 end
210end