cbfs: Remove remnants of ext-win-*
[coreboot2.git] / src / mainboard / starlabs / starbook / variants / tgl / devicetree.cb
blob3791a9d62054ffc5e5dfd82c135fe16cc59b502d
1 chip soc/intel/tigerlake
2 # FSP UPDs
3 register "eist_enable" = "true"
4 register "CnviBtCore" = "true"
5 register "CnviBtAudioOffload" = "1"
6 register "SaGv" = "SaGv_Enabled"
8 # Graphics
9 # Not used but timings left for reference
10 # register "panel_cfg" = "{
11 # .up_delay_ms = 2000, // T3
12 # .backlight_on_delay_ms = 0, // T7
13 # .backlight_off_delay_ms = 2000, // T9
14 # .down_delay_ms = 500, // T10
15 # .cycle_delay_ms = 500, // T12
16 # .backlight_pwm_hz = 200, // PWM
17 # }"
19 # Serial I/O
20 register "SerialIoI2cMode" = "{
21 [PchSerialIoIndexI2C0] = PchSerialIoPci,
22 [PchSerialIoIndexI2C4] = PchSerialIoSkipInit,
25 register "SerialIoUartMode" = "{
26 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
29 # Power
30 register "PchPmSlpS3MinAssert" = "2" # 50ms
31 register "PchPmSlpS4MinAssert" = "3" # 1s
32 register "PchPmSlpSusMinAssert" = "3" # 500ms
33 register "PchPmSlpAMinAssert" = "3" # 2s
35 # Enable the correct decode ranges on the LPC bus.
36 register "lpc_ioe" = "LPC_IOE_EC_4E_4F |
37 LPC_IOE_SUPERIO_2E_2F |
38 LPC_IOE_KBC_60_64 |
39 LPC_IOE_EC_62_66 |
40 LPC_IOE_LGE_200"
42 # PCIe Clock
43 register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED"
44 register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED"
45 register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED"
46 register "PcieClkSrcClkReq[4]" = "PCIE_CLK_NOTUSED"
47 register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED"
48 register "PcieClkSrcClkReq[6]" = "PCIE_CLK_NOTUSED"
50 # Actual device tree.
51 device domain 0 on
52 device ref igpu on end
53 device ref tbt_pcie_rp0 on end
54 device ref gna on end
55 device ref crashlog on end
56 device ref north_xhci on
57 register "UsbTcPortEn" = "1"
58 register "TcssXhciEn" = "1"
59 register "TcssAuxOri" = "0"
60 chip drivers/usb/acpi
61 device ref tcss_root_hub on
62 chip drivers/usb/acpi
63 register "desc" = ""USB Type-C""
64 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
65 register "group" = "ACPI_PLD_GROUP(0, 0)"
66 device ref tcss_usb3_port1 on end
67 end
68 end
69 end
70 end
71 device ref tbt_dma0 on
72 chip drivers/intel/usb4/retimer
73 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)"
74 use tcss_usb3_port1 as dfp[0].typec_port
75 device generic 0 on end
76 end
77 end
78 device ref south_xhci on
79 # Motherboard USB TBT Type-C
80 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
81 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
83 # Motherboard USB 3.0 Type-A
84 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
85 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
87 # Daughterboard USB 3.0 Type-A
88 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
89 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
91 # Daughterboard USB 2.0 Type-A + SD Card Reader
92 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
94 # Webcam
95 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
97 # Internal Bluetooth
98 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)"
100 chip drivers/usb/acpi
101 device ref xhci_root_hub on
102 chip drivers/usb/acpi
103 register "desc" = ""USB Type-C""
104 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
105 register "group" = "ACPI_PLD_GROUP(0, 0)"
106 device ref usb2_port1 on end
108 chip drivers/usb/acpi
109 register "desc" = ""Left USB Type-A""
110 register "type" = "UPC_TYPE_USB3_A"
111 register "group" = "ACPI_PLD_GROUP(0, 1)"
112 device ref usb2_port2 on end
114 chip drivers/usb/acpi
115 register "desc" = ""Left USB Type-A""
116 register "type" = "UPC_TYPE_USB3_A"
117 register "group" = "ACPI_PLD_GROUP(0, 1)"
118 device ref usb3_port1 on end
120 chip drivers/usb/acpi
121 register "desc" = ""Right USB Type-A""
122 register "type" = "UPC_TYPE_USB3_A"
123 register "group" = "ACPI_PLD_GROUP(0, 2)"
124 device ref usb2_port3 on end
126 chip drivers/usb/acpi
127 register "desc" = ""Right USB Type-A""
128 register "type" = "UPC_TYPE_USB3_A"
129 register "group" = "ACPI_PLD_GROUP(0, 2)"
130 device ref usb3_port2 on end
132 chip drivers/usb/acpi
133 register "desc" = ""Internal Webcam""
134 register "type" = "UPC_TYPE_INTERNAL"
135 register "group" = "ACPI_PLD_GROUP(0, 3)"
136 device ref usb2_port4 on end
138 chip drivers/usb/acpi
139 register "desc" = ""USB 2.0 Hub""
140 register "type" = "UPC_TYPE_HUB"
141 register "group" = "ACPI_PLD_GROUP(0, 4)"
142 device ref usb2_port6 on end
144 chip drivers/usb/acpi
145 register "desc" = ""Internal Bluetooth""
146 register "type" = "UPC_TYPE_INTERNAL"
147 register "group" = "ACPI_PLD_GROUP(0, 5)"
148 device ref usb2_port10 on end
153 device ref shared_ram on end
154 device ref cnvi_wifi on
155 chip drivers/wifi/generic
156 register "wake" = "GPE0_PME_B0"
157 device generic 0 on end
160 device ref i2c0 on
161 chip drivers/i2c/hid
162 register "generic.hid" = ""STAR0001""
163 register "generic.desc" = ""Touchpad""
164 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C8_IRQ)"
165 register "generic.detect" = "1"
166 register "hid_desc_reg_offset" = "0x20"
167 device i2c 2c on end
170 device ref heci1 on end
171 device ref sata on
172 register "SataSalpSupport" = "1"
173 # Port 1
174 register "SataPortsEnable[1]" = "1"
175 register "SataPortsDevSlp[1]" = "1"
177 device ref i2c4 on end
178 device ref uart2 on end
179 device ref pcie_rp9 on
180 register "HybridStorageMode" = "0"
181 register "PcieRpLtrEnable[8]" = "1"
182 register "PcieClkSrcUsage[3]" = "0x08"
183 register "PcieClkSrcClkReq[3]" = "3"
184 register "PcieRpSlotImplemented[8]" = "1"
185 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
186 chip soc/intel/common/block/pcie/rtd3
187 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)"
188 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
189 register "srcclk_pin" = "3"
190 device generic 0 on end
193 device ref gspi1 on end
194 device ref pch_espi on
195 register "gen1_dec" = "0x000c1641"
196 register "gen2_dec" = "0x000c0681"
197 register "gen3_dec" = "0x000c0081"
198 chip drivers/pc80/tpm
199 device pnp 0c31.0 on end
202 chip ec/starlabs/merlin
203 # Port pair 4Eh/4Fh
204 device pnp 4e.00 on end # IO Interface
205 device pnp 4e.01 off end # Com 1
206 device pnp 4e.02 off end # Com 2
207 device pnp 4e.04 off end # System Wake-Up
208 device pnp 4e.05 off end # PS/2 Mouse
209 device pnp 4e.06 on # PS/2 Keyboard
210 io 0x60 = 0x0060
211 io 0x62 = 0x0064
212 irq 0x70 = 1
214 device pnp 4e.0a off end # Consumer IR
215 device pnp 4e.0f off end # Shared Memory/Flash Interface
216 device pnp 4e.10 off end # RTC-like Timer
217 device pnp 4e.11 off end # Power Management Channel 1
218 device pnp 4e.12 off end # Power Management Channel 2
219 device pnp 4e.13 off end # Serial Peripheral Interface
220 device pnp 4e.14 off end # Platform EC Interface
221 device pnp 4e.17 off end # Power Management Channel 3
222 device pnp 4e.18 off end # Power Management Channel 4
223 device pnp 4e.19 off end # Power Management Channel 5
226 device ref p2sb on end
227 device ref pmc hidden
228 chip drivers/intel/pmc_mux
229 device generic 0 on
230 chip drivers/intel/pmc_mux/conn
231 use usb2_port1 as usb2_port
232 use tcss_usb3_port1 as usb3_port
233 device generic 0 alias conn0 on end
238 device ref hda on
239 subsystemid 0x10ec 0x1200
240 register "PchHdaAudioLinkHdaEnable" = "1"
242 device ref smbus on end