mb/starlabs: Rename LabTop to StarBook
[coreboot.git] / src / mainboard / starlabs / starbook / variants / tgl / devicetree.cb
blobc5f7040058f4a38d7b2a7ee99e627866e53f7aa9
1 chip soc/intel/tigerlake
2 # CPU
3 # Enable Enhanced Intel SpeedStep
4 register "eist_enable" = "1"
6 # Graphics
7 # Not used but timings left for reference
8 # register "panel_cfg" = "{
9 # .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
15 # }"
17 # FSP Memory
18 register "CnviBtCore" = "true"
19 register "CnviBtAudioOffload" = "1"
20 register "enable_c6dram" = "1"
21 register "SaGv" = "SaGv_Enabled"
22 register "TcssD3ColdDisable" = "1"
24 # FSP Silicon
25 # Serial I/O
26 register "SerialIoI2cMode" = "{
27 [PchSerialIoIndexI2C0] = PchSerialIoPci,
28 [PchSerialIoIndexI2C4] = PchSerialIoSkipInit,
31 register "SerialIoUartMode" = "{
32 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
35 # Power
36 register "PchPmSlpS3MinAssert" = "2" # 50ms
37 register "PchPmSlpS4MinAssert" = "3" # 1s
38 register "PchPmSlpSusMinAssert" = "3" # 500ms
39 register "PchPmSlpAMinAssert" = "3" # 2s
41 # 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"
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"
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"
66 # Actual device tree.
67 device cpu_cluster 0 on
68 device lapic 0 on end
69 end
71 device domain 0 on
72 device pci 00.0 on end # Host Bridge
73 device pci 02.0 on end # Integrated Graphics Device
74 device pci 04.0 on end # SA Thermal Device
75 device pci 05.0 off end # IPU
76 device pci 06.0 off end # PEG60
77 device pci 07.0 on end # TBT_PCIe0
78 device pci 07.1 off end # TBT_PCIe1
79 device pci 07.2 off end # TBT_PCIe2
80 device pci 07.3 off end # TBT_PCIe3
81 device pci 08.0 on end # Gaussian Mixture Model
82 device pci 09.0 off end # NPK
83 device pci 0a.0 off end # Crash-log SRAM
84 device pci 0d.0 on # USB xHCI
85 register "UsbTcPortEn" = "1"
86 register "TcssXhciEn" = "1"
87 register "TcssAuxOri" = "0"
88 end
89 device pci 0d.1 off end # USB xDCI (OTG)
90 device pci 0d.2 on # TBT DMA0
91 chip drivers/intel/usb4/retimer
92 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)"
93 use tcss_usb3_port1 as dfp[0].typec_port
94 device generic 0 on end
95 end
96 end
97 device pci 0d.3 off end # TBT
98 device pci 0e.0 off end # VMD
99 device pci 10.6 off end
100 device pci 10.7 off end
101 device pci 12.0 off end # Thermal Subsystem
102 device pci 12.6 off end # GSPI #2
103 device pci 14.0 on # USB xHCI
104 # Motherboard USB Type C
105 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
106 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
108 # Motherboard USB 3.0
109 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
110 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
112 # Daughterboard USB 3.0
113 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
114 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
116 # Daughterboard SD Card
117 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
119 # Webcam
120 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
122 # Internal Bluetooth
123 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)"
125 device pci 14.1 off end # USB xDCI (OTG)
126 device pci 14.2 on end # USB xDCI (OTG)
127 device pci 14.3 on # CNVi
128 chip drivers/wifi/generic
129 register "wake" = "GPE0_PME_B0"
130 device generic 0 on end
133 device pci 15.0 on # I2C0
134 chip drivers/i2c/hid
135 register "generic.hid" = ""STAR0001""
136 register "generic.desc" = ""Touchpad""
137 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C8_IRQ)"
138 register "generic.probed" = "1"
139 register "hid_desc_reg_offset" = "0x20"
140 device i2c 2c on end
143 device pci 15.1 off end # I2C1
144 device pci 15.2 off end # I2C2
145 device pci 15.3 off end # I2C3
146 device pci 16.0 on end # Management Engine Interface 1
147 device pci 16.1 off end # Management Engine Interface 2
148 device pci 16.2 off end # Management Engine IDE-R
149 device pci 16.3 off end # Management Engine KT Redirection
150 device pci 16.4 off end # Management Engine Interface 3
151 device pci 16.5 off end # Management Engine Interface 4
152 device pci 17.0 on # SATA
153 register "SataSalpSupport" = "1"
154 # Port 1
155 register "SataPortsEnable[1]" = "1"
156 register "SataPortsDevSlp[1]" = "1"
158 device pci 19.0 on end # I2C4
159 device pci 19.1 off end # I2C5
160 device pci 19.2 on end # UART #2
161 device pci 1c.0 off end # PCI Express Port 1
162 device pci 1c.1 off end # PCI Express Port 2
163 device pci 1c.2 off end # PCI Express Port 3
164 device pci 1c.3 off end # PCI Express Port 4
165 device pci 1c.4 off end # PCI Express Port 5
166 device pci 1c.5 off end # PCI Express Port 6
167 device pci 1c.6 off end # PCI Express Port 7
168 device pci 1c.7 off end # PCI Express Port 8
169 device pci 1d.0 on # PCI Express Port 9 (SSD x4)
170 register "HybridStorageMode" = "0"
171 register "PcieRpEnable[8]" = "1"
172 register "PcieRpLtrEnable[8]" = "1"
173 register "PcieClkSrcUsage[3]" = "0x08"
174 register "PcieClkSrcClkReq[3]" = "3"
175 register "PcieRpSlotImplemented[8]" = "1"
176 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
177 chip soc/intel/common/block/pcie/rtd3
178 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)"
179 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
180 register "srcclk_pin" = "3"
181 device generic 0 on end
184 device pci 1d.1 off end # PCI Express Port 10
185 device pci 1d.2 off end # PCI Express Port 11
186 device pci 1d.3 off end # PCI Express Port 12
187 device pci 1e.0 off end # UART #0
188 device pci 1e.1 off end # UART #1
189 device pci 1e.2 off end # GSPI #0
190 device pci 1e.3 on end # GSPI #1
191 device pci 1f.0 on # LPC Interface
192 register "gen1_dec" = "0x000c1641"
193 register "gen2_dec" = "0x000c0681"
194 register "gen3_dec" = "0x000c0081"
196 chip drivers/pc80/tpm
197 device pnp 0c31.0 on end
200 chip ec/starlabs/merlin
201 # Port pair 4Eh/4Fh
202 device pnp 4e.00 on end # IO Interface
203 device pnp 4e.01 off end # Com 1
204 device pnp 4e.02 off end # Com 2
205 device pnp 4e.04 off end # System Wake-Up
206 device pnp 4e.05 off end # PS/2 Mouse
207 device pnp 4e.06 on # PS/2 Keyboard
208 io 0x60 = 0x0060
209 io 0x62 = 0x0064
210 irq 0x70 = 1
212 device pnp 4e.0a off end # Consumer IR
213 device pnp 4e.0f off end # Shared Memory/Flash Interface
214 device pnp 4e.10 off end # RTC-like Timer
215 device pnp 4e.11 off end # Power Management Channel 1
216 device pnp 4e.12 off end # Power Management Channel 2
217 device pnp 4e.13 off end # Serial Peripheral Interface
218 device pnp 4e.14 off end # Platform EC Interface
219 device pnp 4e.17 off end # Power Management Channel 3
220 device pnp 4e.18 off end # Power Management Channel 4
221 device pnp 4e.19 off end # Power Management Channel 5
224 device pci 1f.1 off end # P2SB
225 device pci 1f.2 hidden end # Power Management Controller
226 device pci 1f.3 on # Intel HDA
227 register "PchHdaAudioLinkHdaEnable" = "1"
229 device pci 1f.4 on end # SMBus
230 device pci 1f.5 on end # PCH SPI
231 device pci 1f.6 off end # GbE
232 device pci 1f.7 off end # TH