blob: cd8c48071a0b45e071084a7354892543092fd0b3 [file] [log] [blame]
Sean Rhodes17441a32021-07-05 16:03:15 +01001chip soc/intel/tigerlake
2# CPU
3 # Enable Enhanced Intel SpeedStep
4 register "eist_enable" = "1"
5
6 # Graphics
Sean Rhodes17441a32021-07-05 16:03:15 +01007 # Not used but timings left for reference
8 # register "panel_cfg" = "{
Sean Rhodesfa7970a2022-07-03 22:38:24 +01009 # .up_delay_ms = 2000, // T3
10 # .backlight_on_delay_ms = 0, // T7
11 # .backlight_off_delay_ms = 2000, // T9
12 # .down_delay_ms = 500, // T10
13 # .cycle_delay_ms = 500, // T12
14 # .backlight_pwm_hz = 200, // PWM
Sean Rhodes17441a32021-07-05 16:03:15 +010015 # }"
16
17 # FSP Memory
18 register "CnviBtCore" = "true"
19 register "CnviBtAudioOffload" = "1"
20 register "enable_c6dram" = "1"
Sean Rhodes17441a32021-07-05 16:03:15 +010021 register "SaGv" = "SaGv_Enabled"
Subrata Banikc045b092022-01-03 19:35:35 +000022 register "TcssD3ColdDisable" = "1"
Sean Rhodes17441a32021-07-05 16:03:15 +010023
24 # FSP Silicon
25 # Serial I/O
26 register "SerialIoI2cMode" = "{
27 [PchSerialIoIndexI2C0] = PchSerialIoPci,
Sean Rhodes51ab5e42021-12-20 21:35:05 +000028 [PchSerialIoIndexI2C4] = PchSerialIoSkipInit,
Sean Rhodes17441a32021-07-05 16:03:15 +010029 }"
30
31 register "SerialIoUartMode" = "{
32 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
33 }"
34
35 # Power
36 register "PchPmSlpS3MinAssert" = "2" # 50ms
37 register "PchPmSlpS4MinAssert" = "3" # 1s
38 register "PchPmSlpSusMinAssert" = "3" # 500ms
39 register "PchPmSlpAMinAssert" = "3" # 2s
40
Sean Rhodes17441a32021-07-05 16:03:15 +010041 # PM Util
42 # GPE configuration
43 # Note that GPE events called out in ASL code rely on this
44 # route. i.e. If this route changes then the affected GPE
45 # offset bits also need to be changed.
46 # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG)
47 register "pmc_gpe0_dw0" = "GPP_B"
48 register "pmc_gpe0_dw1" = "GPP_C"
49 register "pmc_gpe0_dw2" = "GPP_E"
50
51 # Enable the correct decode ranges on the LPC bus.
52 register "lpc_ioe" = "LPC_IOE_EC_4E_4F |
53 LPC_IOE_SUPERIO_2E_2F |
54 LPC_IOE_KBC_60_64 |
55 LPC_IOE_EC_62_66 |
56 LPC_IOE_LGE_200"
57
58 # PCIe Clock
59 register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED"
60 register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED"
61 register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED"
62 register "PcieClkSrcClkReq[4]" = "PCIE_CLK_NOTUSED"
63 register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED"
64 register "PcieClkSrcClkReq[6]" = "PCIE_CLK_NOTUSED"
65
66# Actual device tree.
Arthur Heymans69cd7292022-11-07 13:52:11 +010067 device cpu_cluster 0 on end
Sean Rhodes17441a32021-07-05 16:03:15 +010068
69 device domain 0 on
Sean Rhodes655f2e02022-08-24 22:32:12 +010070 device ref igpu on end
71 device ref dptf on end
72 device ref tbt_pcie_rp0 on end
73 device ref gna on end
74 device ref north_xhci on
Sean Rhodes17441a32021-07-05 16:03:15 +010075 register "UsbTcPortEn" = "1"
76 register "TcssXhciEn" = "1"
77 register "TcssAuxOri" = "0"
78 end
Sean Rhodes655f2e02022-08-24 22:32:12 +010079 device ref tbt_dma0 on
Sean Rhodes17441a32021-07-05 16:03:15 +010080 chip drivers/intel/usb4/retimer
81 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)"
82 use tcss_usb3_port1 as dfp[0].typec_port
83 device generic 0 on end
84 end
85 end
Sean Rhodes655f2e02022-08-24 22:32:12 +010086 device ref south_xhci on
Sean Rhodes17441a32021-07-05 16:03:15 +010087 # Motherboard USB Type C
88 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
Sean Rhodes2e217252022-05-26 20:52:41 +010089 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
90
Sean Rhodes17441a32021-07-05 16:03:15 +010091 # Motherboard USB 3.0
92 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
Sean Rhodes2e217252022-05-26 20:52:41 +010093 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
94
Sean Rhodes17441a32021-07-05 16:03:15 +010095 # Daughterboard USB 3.0
96 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
Sean Rhodes2e217252022-05-26 20:52:41 +010097 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
98
Sean Rhodes17441a32021-07-05 16:03:15 +010099 # Daughterboard SD Card
100 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
Sean Rhodes2e217252022-05-26 20:52:41 +0100101
Sean Rhodes2eb2dce2022-05-26 20:56:14 +0100102 # Webcam
103 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
104
Sean Rhodes17441a32021-07-05 16:03:15 +0100105 # Internal Bluetooth
106 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)"
Sean Rhodes17441a32021-07-05 16:03:15 +0100107 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100108 device ref shared_ram on end
109 device ref cnvi_wifi on
Sean Rhodes17441a32021-07-05 16:03:15 +0100110 chip drivers/wifi/generic
111 register "wake" = "GPE0_PME_B0"
112 device generic 0 on end
113 end
114 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100115 device ref i2c0 on
Sean Rhodes17441a32021-07-05 16:03:15 +0100116 chip drivers/i2c/hid
117 register "generic.hid" = ""STAR0001""
118 register "generic.desc" = ""Touchpad""
119 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C8_IRQ)"
Matt DeVillier2cf52d82022-09-01 15:09:24 -0500120 register "generic.detect" = "1"
Sean Rhodes17441a32021-07-05 16:03:15 +0100121 register "hid_desc_reg_offset" = "0x20"
122 device i2c 2c on end
123 end
124 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100125 device ref heci1 on end
126 device ref sata on
Sean Rhodes17441a32021-07-05 16:03:15 +0100127 register "SataSalpSupport" = "1"
128 # Port 1
129 register "SataPortsEnable[1]" = "1"
130 register "SataPortsDevSlp[1]" = "1"
131 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100132 device ref i2c4 on end
133 device ref uart2 on end
134 device ref pcie_rp9 on
Sean Rhodes17441a32021-07-05 16:03:15 +0100135 register "HybridStorageMode" = "0"
136 register "PcieRpEnable[8]" = "1"
137 register "PcieRpLtrEnable[8]" = "1"
138 register "PcieClkSrcUsage[3]" = "0x08"
139 register "PcieClkSrcClkReq[3]" = "3"
Michael Niewöhner45b60802022-01-08 20:47:11 +0100140 register "PcieRpSlotImplemented[8]" = "1"
Sean Rhodes17441a32021-07-05 16:03:15 +0100141 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
Stephen Edworthy66d94ba2022-03-31 09:09:32 +0100142 chip soc/intel/common/block/pcie/rtd3
143 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)"
144 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
145 register "srcclk_pin" = "3"
146 device generic 0 on end
147 end
Sean Rhodes17441a32021-07-05 16:03:15 +0100148 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100149 device ref gspi1 on end
150 device ref pch_espi on
Sean Rhodes17441a32021-07-05 16:03:15 +0100151 register "gen1_dec" = "0x000c1641"
152 register "gen2_dec" = "0x000c0681"
153 register "gen3_dec" = "0x000c0081"
Sean Rhodes17441a32021-07-05 16:03:15 +0100154 chip drivers/pc80/tpm
155 device pnp 0c31.0 on end
Sean Rhodesfa7970a2022-07-03 22:38:24 +0100156 end
Sean Rhodes17441a32021-07-05 16:03:15 +0100157
158 chip ec/starlabs/merlin
159 # Port pair 4Eh/4Fh
160 device pnp 4e.00 on end # IO Interface
161 device pnp 4e.01 off end # Com 1
162 device pnp 4e.02 off end # Com 2
163 device pnp 4e.04 off end # System Wake-Up
164 device pnp 4e.05 off end # PS/2 Mouse
165 device pnp 4e.06 on # PS/2 Keyboard
166 io 0x60 = 0x0060
167 io 0x62 = 0x0064
168 irq 0x70 = 1
169 end
170 device pnp 4e.0a off end # Consumer IR
171 device pnp 4e.0f off end # Shared Memory/Flash Interface
172 device pnp 4e.10 off end # RTC-like Timer
173 device pnp 4e.11 off end # Power Management Channel 1
174 device pnp 4e.12 off end # Power Management Channel 2
175 device pnp 4e.13 off end # Serial Peripheral Interface
176 device pnp 4e.14 off end # Platform EC Interface
177 device pnp 4e.17 off end # Power Management Channel 3
178 device pnp 4e.18 off end # Power Management Channel 4
179 device pnp 4e.19 off end # Power Management Channel 5
180 end
181 end
Sean Rhodes25cd8e52022-08-24 22:44:28 +0100182 device ref p2sb on end
Sean Rhodesdc522d22022-10-03 11:19:52 +0100183 device ref pmc hidden
184 chip drivers/intel/pmc_mux
185 device generic 0 on
186 chip drivers/intel/pmc_mux/conn
187 use usb2_port1 as usb2_port
188 use tcss_usb3_port1 as usb3_port
189 device generic 0 alias conn0 on end
190 end
191 end
192 end
193 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100194 device ref hda on
Sean Rhodes17441a32021-07-05 16:03:15 +0100195 register "PchHdaAudioLinkHdaEnable" = "1"
196 end
Sean Rhodes655f2e02022-08-24 22:32:12 +0100197 device ref smbus on end
Sean Rhodes17441a32021-07-05 16:03:15 +0100198 end
199end