blob: 4ae412d15564cafdfa20b1ab4440de3ab3a75425 [file] [log] [blame]
Tim Crawford427487b2021-02-25 11:06:35 -07001chip soc/intel/cannonlake
2 register "common_soc_config" = "{
Tim Crawford427487b2021-02-25 11:06:35 -07003 // Touchpad I2C bus
4 .i2c[0] = {
5 .speed = I2C_SPEED_FAST,
6 .rise_time_ns = 80,
7 .fall_time_ns = 110,
8 },
9 }"
10
11# CPU (soc/intel/cannonlake/cpu.c)
12 # Power limit
13 register "power_limits_config" = "{
14 .tdp_pl1_override = 45,
15 .tdp_pl2_override = 90,
16 }"
17
18 # Enable Enhanced Intel SpeedStep
19 register "eist_enable" = "1"
20
21# FSP Memory (soc/intel/cannonlake/romstage/fsp_params.c)
22 register "enable_c6dram" = "1"
23
24# FSP Silicon (soc/intel/cannonlake/fsp_params.c)
Tim Crawford427487b2021-02-25 11:06:35 -070025 # Misc
26 register "AcousticNoiseMitigation" = "1"
27
28 # Power
29 register "PchPmSlpS3MinAssert" = "3" # 50ms
30 register "PchPmSlpS4MinAssert" = "1" # 1s
31 register "PchPmSlpSusMinAssert" = "4" # 4s
32 register "PchPmSlpAMinAssert" = "4" # 2s
33
34 # Thermal
35 register "tcc_offset" = "8"
36
37 # Serial IRQ Continuous
38 register "serirq_mode" = "SERIRQ_CONTINUOUS"
39
40# PM Util (soc/intel/cannonlake/pmutil.c)
41 # GPE configuration
42 # Note that GPE events called out in ASL code rely on this
43 # route. i.e. If this route changes then the affected GPE
44 # offset bits also need to be changed.
45 register "gpe0_dw0" = "PMC_GPP_K"
46 register "gpe0_dw1" = "PMC_GPP_G"
47 register "gpe0_dw2" = "PMC_GPP_E"
48
49# Actual device tree
Arthur Heymans69cd7292022-11-07 13:52:11 +010050 device cpu_cluster 0 on end
Tim Crawford427487b2021-02-25 11:06:35 -070051
52 device domain 0 on
Tim Crawford427487b2021-02-25 11:06:35 -070053 device pci 00.0 on end # Host Bridge
54 device pci 01.0 on # GPU Port
55 # PCI Express Graphics #0 x16, Clock 8 (NVIDIA GPU)
56 register "PcieClkSrcUsage[8]" = "0x40"
57 register "PcieClkSrcClkReq[8]" = "8"
58 end
59 device pci 02.0 on # Integrated Graphics Device
60 register "gfx" = "GMA_DEFAULT_PANEL(0)"
61 end
62 device pci 04.0 on # SA Thermal device
63 register "Device4Enable" = "1"
64 end
65 device pci 12.0 on end # Thermal Subsystem
66 device pci 12.5 off end # UFS SCS
67 device pci 12.6 off end # GSPI #2
68 device pci 13.0 off end # Integrated Sensor Hub
69 device pci 14.0 on # USB xHCI
Felix Singerd1632532023-10-26 15:02:46 +020070 register "usb2_ports" = "{
71 [0] = USB2_PORT_MID(OC_SKIP), /* USB 3 Right */
72 [1] = USB2_PORT_MID(OC_SKIP), /* USB 3 Left */
73 [2] = USB2_PORT_TYPE_C(OC_SKIP), /* Type-C */
74 [5] = USB2_PORT_MID(OC_SKIP), /* USB 2 Left */
75 [7] = USB2_PORT_MID(OC_SKIP), /* Camera */
76 [9] = USB2_PORT_MID(OC_SKIP), /* Fingerprint */
77 [13] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */
78 }"
79 register "usb3_ports" = "{
80 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Right */
81 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Left */
82 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C */
83 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C */
84 }"
Tim Crawford427487b2021-02-25 11:06:35 -070085 end
86 device pci 14.1 off end # USB xDCI (OTG)
87 device pci 14.2 on end # Shared SRAM
88 device pci 14.3 on # CNVi wifi
89 chip drivers/wifi/generic
90 register "wake" = "GPE0_PME_B0"
91 device generic 0 on end
92 end
93 end
94 device pci 14.5 off end # SDCard
Tim Crawford427487b2021-02-25 11:06:35 -070095 device pci 15.1 on end # I2C #1
96 device pci 15.2 off end # I2C #2
97 device pci 15.3 off end # I2C #3
Tim Crawfordc3ced8f2021-10-27 15:14:54 -060098 device pci 16.0 on end # Management Engine Interface 1
Tim Crawford427487b2021-02-25 11:06:35 -070099 device pci 16.1 off end # Management Engine Interface 2
100 device pci 16.2 off end # Management Engine IDE-R
101 device pci 16.3 off end # Management Engine KT Redirection
102 device pci 16.4 off end # Management Engine Interface 3
103 device pci 16.5 off end # Management Engine Interface 4
104 device pci 17.0 on # SATA
Felix Singerd1632532023-10-26 15:02:46 +0200105 register "SataPortsEnable" = "{
106 [1] = 1, /* SSD (SATA1A) */
107 [4] = 1, /* HDD (SATA4) */
108 }"
Tim Crawford427487b2021-02-25 11:06:35 -0700109 end
110 device pci 19.0 off end # I2C #4
111 device pci 19.1 off end # I2C #5
112 device pci 19.2 on end # UART #2
113 device pci 1a.0 off end # eMMC
114 device pci 1b.0 off end # PCI Express Port 17
115 device pci 1b.1 off end # PCI Express Port 18
116 device pci 1b.2 off end # PCI Express Port 19
117 device pci 1b.3 off end # PCI Express Port 20
118 device pci 1b.4 on # PCI Express Port 21
119 # PCI Express root port #21 x4, Clock 11 (SSD2)
120 register "PcieRpEnable[20]" = "1"
121 register "PcieRpLtrEnable[20]" = "1"
122 register "PcieClkSrcUsage[11]" = "20"
123 register "PcieClkSrcClkReq[11]" = "11"
124 register "PcieRpSlotImplemented[20]" = "1"
125 end
126 device pci 1b.5 off end # PCI Express Port 22
127 device pci 1b.6 off end # PCI Express Port 23
128 device pci 1b.7 off end # PCI Express Port 24
129 device pci 1c.0 off end # PCI Express Port 1
130 device pci 1c.1 off end # PCI Express Port 2
131 device pci 1c.2 off end # PCI Express Port 3
132 device pci 1c.3 off end # PCI Express Port 4
133 device pci 1c.4 off end # PCI Express Port 5
134 device pci 1c.5 off end # PCI Express Port 6
135 device pci 1c.6 off end # PCI Express Port 7
136 device pci 1c.7 off end # PCI Express Port 8
137 device pci 1d.0 on # PCI Express Port 9
138 # PCI Express root port #9 x4, Clock 10 (SSD)
139 register "PcieRpEnable[8]" = "1"
140 register "PcieRpLtrEnable[8]" = "1"
141 register "PcieClkSrcUsage[10]" = "8"
142 register "PcieClkSrcClkReq[10]" = "10"
143 register "PcieRpSlotImplemented[8]" = "1"
144 end
145 device pci 1d.1 off end # PCI Express Port 10
146 device pci 1d.2 off end # PCI Express Port 11
147 device pci 1d.3 off end # PCI Express Port 12
148 device pci 1d.4 off end # PCI Express Port 13
149 device pci 1d.5 on # PCI Express Port 14
150 # PCI Express root port #14 x1, Clock 6 (WLAN)
151 register "PcieRpEnable[13]" = "1"
152 register "PcieRpLtrEnable[13]" = "1"
153 register "PcieClkSrcUsage[6]" = "13"
154 register "PcieClkSrcClkReq[6]" = "6"
155 register "PcieRpSlotImplemented[13]" = "1"
156 end
157 device pci 1d.6 on # PCI Express Port 15
158 # PCI Express root port #15 x1, Clock 5 (LAN)
159 register "PcieRpEnable[14]" = "1"
160 register "PcieRpLtrEnable[14]" = "1"
161 register "PcieClkSrcUsage[5]" = "14"
162 register "PcieClkSrcClkReq[5]" = "5"
163 register "PcieRpSlotImplemented[14]" = "1"
164 end
165 device pci 1d.7 off end # PCI Express Port 16
166 device pci 1e.0 off end # UART #0
167 device pci 1e.1 off end # UART #1
168 device pci 1e.2 off end # GSPI #0
169 device pci 1e.3 off end # GSPI #1
Tim Crawford0893b872021-10-27 17:52:35 -0600170 device pci 1f.0 on # LPC Interface
Michael Niewöhnerc5f1dc92021-04-10 22:51:15 +0200171 register "gen1_dec" = "0x00040069"
172 register "gen2_dec" = "0x00fc0e01"
173 register "gen3_dec" = "0x00fc0f01"
Tim Crawford427487b2021-02-25 11:06:35 -0700174 chip drivers/pc80/tpm
175 device pnp 0c31.0 on end
176 end
177 end
178 device pci 1f.1 off end # P2SB
Tim Wawrzynczakb7b51152021-07-01 08:38:30 -0600179 device pci 1f.2 hidden end # Power Management Controller
Tim Crawford427487b2021-02-25 11:06:35 -0700180 device pci 1f.3 on # Intel HDA
181 register "PchHdaAudioLinkHda" = "1"
182 register "PchHdaAudioLinkDmic0" = "1"
183 register "PchHdaAudioLinkDmic1" = "1"
184 end
185 device pci 1f.4 on end # SMBus
186 device pci 1f.5 on end # PCH SPI
187 device pci 1f.6 off end # GbE
188 end
189end