mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / starlabs / starbook / variants / rpl / devicetree.cb
blobb19185e131ba1068daea06bde66766ca1da482b9
1 chip soc/intel/alderlake
2 # FSP UPDs
3 register "disable_dynamic_tccold_handshake" = "true"
4 register "eist_enable" = "true"
5 register "enable_c1e" = "true"
6 register "enable_c6dram" = "true"
7 register "sagv" = "SaGv_Enabled"
9 # Serial I/O
10 register "serial_io_i2c_mode" = "{
11 [PchSerialIoIndexI2C0] = PchSerialIoPci,
14 register "serial_io_uart_mode" = "{
15 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
18 # Power
19 register "pch_slp_s3_min_assertion_width" = "2" # 50ms
20 register "pch_slp_s4_min_assertion_width" = "3" # 1s
21 register "pch_slp_sus_min_assertion_width" = "3" # 500ms
22 register "pch_slp_a_min_assertion_width" = "3" # 2s
24 # PM Util
25 register "pmc_gpe0_dw0" = "GPP_B"
26 register "pmc_gpe0_dw1" = "GPP_C"
27 register "pmc_gpe0_dw2" = "GPP_E"
29 # Device Tree
30 device domain 0 on
31 device ref igpu on
32 register "ddi_portA_config" = "1"
33 register "ddi_ports_config" = "{
34 [DDI_PORT_A] = DDI_ENABLE_HPD,
35 [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC,
37 end
38 device ref pcie4_0 on # SSD x4
39 register "cpu_pcie_rp[CPU_RP(1)]" = "{
40 .clk_src = 4,
41 .clk_req = 4,
42 .flags = PCIE_RP_LTR | PCIE_RP_AER,
45 smbios_slot_desc "SlotTypeM2Socket3"
46 "SlotLengthLong"
47 "M.2/M 2280"
48 "SlotDataBusWidth4X"
49 chip soc/intel/common/block/pcie/rtd3
50 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D14)"
51 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F20)"
52 register "srcclk_pin" = "4"
53 device generic 0 on end
54 end
55 end
56 device ref tbt_pcie_rp0 on end
57 device ref tcss_xhci on
58 chip drivers/usb/acpi
59 device ref tcss_root_hub on
60 chip drivers/usb/acpi
61 register "desc" = ""USB Type-C""
62 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
63 device ref tcss_usb3_port1 on end
64 end
65 end
66 end
67 end
68 device ref tcss_dma0 on
69 chip drivers/intel/usb4/retimer
70 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
71 use tcss_usb3_port1 as dfp[0].typec_port
72 device generic 0 on end
73 end
74 end
75 device ref gna on end
76 device ref xhci on
77 # Motherboard USB Type C
78 register "usb2_ports[0]" = "USB2_PORT_MID(OC5)"
79 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
81 # Motherboard USB 3.0
82 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
83 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC5)"
85 # Daughterboard USB 3.0
86 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
87 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
89 # Internal Webcam
90 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
92 # Fingerprint Reader
93 register "usb2_ports[5]" = "USB2_PORT_MID(OC0)"
95 # Daughterboard SD Card
96 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)"
98 # Internal Bluetooth
99 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 device ref usb2_port1 on end
107 chip drivers/usb/acpi
108 register "desc" = ""Left USB Type-A""
109 register "type" = "UPC_TYPE_USB3_A"
110 device ref usb2_port3 on end
112 chip drivers/usb/acpi
113 register "desc" = ""Left USB Type-A""
114 register "type" = "UPC_TYPE_USB3_A"
115 device ref usb3_port1 on end
117 chip drivers/usb/acpi
118 register "desc" = ""Right USB Type-A""
119 register "type" = "UPC_TYPE_USB3_A"
120 device ref usb2_port7 on end
122 chip drivers/usb/acpi
123 register "desc" = ""Right USB Type-A""
124 register "type" = "UPC_TYPE_USB3_A"
125 device ref usb3_port2 on end
127 chip drivers/usb/acpi
128 register "desc" = ""Internal Webcam""
129 register "type" = "UPC_TYPE_INTERNAL"
130 device ref usb2_port5 on end
132 chip drivers/usb/acpi
133 register "desc" = ""Fingerprint Reader""
134 register "type" = "UPC_TYPE_INTERNAL"
135 device ref usb2_port6 on end
137 chip drivers/usb/acpi
138 register "desc" = ""MicroSD Card Reader""
139 register "type" = "UPC_TYPE_INTERNAL"
140 device ref usb2_port4 on end
142 chip drivers/usb/acpi
143 register "desc" = ""Internal Bluetooth""
144 register "type" = "UPC_TYPE_INTERNAL"
145 device ref usb2_port10 on end
151 device ref i2c0 on
152 chip drivers/i2c/hid
153 register "generic.hid" = ""STAR0001""
154 register "generic.desc" = ""Touchpad""
155 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E12_IRQ)"
156 register "hid_desc_reg_offset" = "0x20"
157 device i2c 2c on end
160 device ref shared_sram on end
161 device ref pcie_rp5 on # WiFi
162 chip drivers/wifi/generic
163 register "wake" = "GPE0_PME_B0"
164 device generic 0 on end
166 register "pch_pcie_rp[PCH_RP(5)]" = "{
167 .clk_src = 2,
168 .clk_req = 2,
169 .flags = PCIE_RP_LTR | PCIE_RP_AER,
171 smbios_slot_desc "SlotTypePciExpressGen3X1"
172 "SlotLengthShort"
173 "M.2/M 2230"
174 "SlotDataBusWidth1X"
175 chip soc/intel/common/block/pcie/rtd3
176 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D13)"
177 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H2)"
178 register "srcclk_pin" = "2"
179 device generic 0 on end
182 device ref uart0 on end
183 device ref pch_espi on
184 register "gen1_dec" = "0x00fc0201"
185 register "gen2_dec" = "0x00000381"
186 register "gen3_dec" = "0x00000511"
188 chip drivers/pc80/tpm
189 device pnp 0c31.0 on end
192 chip ec/starlabs/merlin
193 # Port pair 4Eh/4Fh
194 device pnp 4e.00 on end # IO Interface
195 device pnp 4e.01 off end # Com 1
196 device pnp 4e.02 off end # Com 2
197 device pnp 4e.04 off end # System Wake-Up
198 device pnp 4e.05 off end # PS/2 Mouse
199 device pnp 4e.06 on # PS/2 Keyboard
200 io 0x60 = 0x0060
201 io 0x62 = 0x0064
202 irq 0x70 = 1
204 device pnp 4e.0a off end # Consumer IR
205 device pnp 4e.0f off end # Shared Memory/Flash Interface
206 device pnp 4e.10 off end # RTC-like Timer
207 device pnp 4e.11 off end # Power Management Channel 1
208 device pnp 4e.12 off end # Power Management Channel 2
209 device pnp 4e.13 off end # Serial Peripheral Interface
210 device pnp 4e.14 off end # Platform EC Interface
211 device pnp 4e.17 off end # Power Management Channel 3
212 device pnp 4e.18 off end # Power Management Channel 4
213 device pnp 4e.19 off end # Power Management Channel 5
216 device ref pmc hidden
217 chip drivers/intel/pmc_mux
218 device generic 0 on
219 chip drivers/intel/pmc_mux/conn
220 use usb2_port1 as usb2_port
221 use tcss_usb3_port1 as usb3_port
222 device generic 0 alias conn0 on end
227 device ref hda on
228 subsystemid 0x1e50 0x7007
229 register "pch_hda_sdi_enable[0]" = "true"
230 register "pch_hda_audio_link_hda_enable" = "1"
231 register "pch_hda_idisp_codec_enable" = "1"
232 register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ"
233 register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T"
235 device ref smbus on end