Debian Codegraph @

src/mainboard/amd/birman_plus/devicetree_glinda.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/amd/glinda
4 register "common_config.espi_config" = "{
5 .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X2E_0X2F_EN | ESPI_DECODE_IO_0X60_0X64_EN,
6 .generic_io_range[0] = {
7 .base = 0x3f8,
8 .size = 8,
9 },
10 .generic_io_range[1] = {
11 .base = 0x600,
12 .size = 256,
13 },
14 .io_mode = ESPI_IO_MODE_QUAD,
15 .op_freq_mhz = ESPI_OP_FREQ_16_MHZ,
16 .crc_check_enable = 1,
17 .alert_pin = ESPI_ALERT_PIN_PUSH_PULL,
18 .periph_ch_en = 1,
19 .vw_ch_en = 1,
20 .oob_ch_en = 1,
21 .flash_ch_en = 0,
22 }"
23
24 register "i2c_scl_reset" = "GPIO_I2C0_SCL | GPIO_I2C1_SCL |
25 GPIO_I2C2_SCL | GPIO_I2C3_SCL"
26 register "i2c[2].early_init" = "1"
27
28 # I2C Pad Control RX Select Configuration
29 register "i2c_pad[0].rx_level" = "I2C_PAD_RX_1_8V"
30 register "i2c_pad[1].rx_level" = "I2C_PAD_RX_1_8V"
31 register "i2c_pad[2].rx_level" = "I2C_PAD_RX_1_8V"
32 register "i2c_pad[3].rx_level" = "I2C_PAD_RX_1_8V"
33
34 register "s0ix_enable" = "true"
35
36 register "pspp_policy" = "DXIO_PSPP_DISABLED" # TODO: reenable when PSPP works
37
38 register "usb_phy_custom" = "true"
39 register "usb_phy" = "{
40 .Usb2PhyPort[0] = {
41 .compdistune = 0x1,
42 .pllbtune = 0x1,
43 .pllitune = 0x0,
44 .pllptune = 0xc,
45 .sqrxtune = 0x2,
46 .txfslstune = 0x1,
47 .txpreempamptune = 0x3,
48 .txpreemppulsetune = 0x0,
49 .txrisetune = 0x1,
50 .txvreftune = 0x3,
51 .txhsxvtune = 0x3,
52 .txrestune = 0x2,
53 },
54 .Usb2PhyPort[1] = {
55 .compdistune = 0x1,
56 .pllbtune = 0x1,
57 .pllitune = 0x0,
58 .pllptune = 0xc,
59 .sqrxtune = 0x2,
60 .txfslstune = 0x1,
61 .txpreempamptune = 0x3,
62 .txpreemppulsetune = 0x0,
63 .txrisetune = 0x1,
64 .txvreftune = 0x3,
65 .txhsxvtune = 0x3,
66 .txrestune = 0x2,
67 },
68 .Usb2PhyPort[2] = {
69 .compdistune = 0x1,
70 .pllbtune = 0x1,
71 .pllitune = 0x0,
72 .pllptune = 0xc,
73 .sqrxtune = 0x2,
74 .txfslstune = 0x1,
75 .txpreempamptune = 0x3,
76 .txpreemppulsetune = 0x0,
77 .txrisetune = 0x1,
78 .txvreftune = 0x3,
79 .txhsxvtune = 0x3,
80 .txrestune = 0x2,
81 },
82 .Usb2PhyPort[3] = {
83 .compdistune = 0x1,
84 .pllbtune = 0x1,
85 .pllitune = 0x0,
86 .pllptune = 0xc,
87 .sqrxtune = 0x2,
88 .txfslstune = 0x1,
89 .txpreempamptune = 0x3,
90 .txpreemppulsetune = 0x0,
91 .txrisetune = 0x1,
92 .txvreftune = 0x3,
93 .txhsxvtune = 0x3,
94 .txrestune = 0x2,
95 },
96 .Usb2PhyPort[4] = {
97 .compdistune = 0x1,
98 .pllbtune = 0x1,
99 .pllitune = 0x0,
100 .pllptune = 0xc,
101 .sqrxtune = 0x2,
102 .txfslstune = 0x1,
103 .txpreempamptune = 0x3,
104 .txpreemppulsetune = 0x0,
105 .txrisetune = 0x1,
106 .txvreftune = 0x3,
107 .txhsxvtune = 0x3,
108 .txrestune = 0x2,
109 },
110 .Usb2PhyPort[5] = {
111 .compdistune = 0x1,
112 .pllbtune = 0x1,
113 .pllitune = 0x0,
114 .pllptune = 0xc,
115 .sqrxtune = 0x2,
116 .txfslstune = 0x1,
117 .txpreempamptune = 0x3,
118 .txpreemppulsetune = 0x0,
119 .txrisetune = 0x1,
120 .txvreftune = 0x3,
121 .txhsxvtune = 0x3,
122 .txrestune = 0x2,
123 },
124 .Usb2PhyPort[6] = {
125 .compdistune = 0x3,
126 .pllbtune = 0x1,
127 .pllitune = 0x0,
128 .pllptune = 0xc,
129 .sqrxtune = 0x2,
130 .txfslstune = 0x1,
131 .txpreempamptune = 0x3,
132 .txpreemppulsetune = 0x0,
133 .txrisetune = 0x1,
134 .txvreftune = 0x3,
135 .txhsxvtune = 0x3,
136 .txrestune = 0x2,
137 },
138 .Usb2PhyPort[7] = {
139 .compdistune = 0x3,
140 .pllbtune = 0x1,
141 .pllitune = 0x0,
142 .pllptune = 0xc,
143 .sqrxtune = 0x2,
144 .txfslstune = 0x1,
145 .txpreempamptune = 0x3,
146 .txpreemppulsetune = 0x0,
147 .txrisetune = 0x1,
148 .txvreftune = 0x3,
149 .txhsxvtune = 0x3,
150 .txrestune = 0x2,
151 },
152 .Usb3PhyPort[0] = {
153 .tx_term_ctrl = 0x2,
154 .rx_term_ctrl = 0x2,
155 .tx_vboost_lvl_en = 0x0,
156 .tx_vboost_lvl = 0x5,
157 },
158 .Usb3PhyPort[1] = {
159 .tx_term_ctrl = 0x2,
160 .rx_term_ctrl = 0x2,
161 .tx_vboost_lvl_en = 0x0,
162 .tx_vboost_lvl = 0x5,
163 },
164 .Usb3PhyPort[2] = {
165 .tx_term_ctrl = 0x2,
166 .rx_term_ctrl = 0x2,
167 .tx_vboost_lvl_en = 0x0,
168 .tx_vboost_lvl = 0x5,
169 },
170 .ComboPhyStaticConfig[0] = USB_COMBO_PHY_MODE_USB_C,
171 .ComboPhyStaticConfig[1] = USB_COMBO_PHY_MODE_USB_C,
172 .ComboPhyStaticConfig[2] = USB_COMBO_PHY_MODE_USB_C,
173 }"
174
175 register "gpp_clk_config[0]" = "GPP_CLK_REQ" # MXM
176 register "gpp_clk_config[1]" = "GPP_CLK_REQ" # NVMe SSD1
177 register "gpp_clk_config[2]" = "GPP_CLK_REQ" # NVMe SSD0
178 register "gpp_clk_config[3]" = "GPP_CLK_REQ" # WLAN
179 register "gpp_clk_config[4]" = "GPP_CLK_REQ" # WWAN
180 register "gpp_clk_config[5]" = "GPP_CLK_REQ" # SD
181 register "gpp_clk_config[6]" = "GPP_CLK_REQ" # GBE
182
183 device domain 0 on
184 device ref iommu on end
185 device ref gpp_bridge_2_1 on end # NVME SSD0
186 device ref gpp_bridge_2_2 on # SD Express
187 device pci 0.0 on end # RTS5261
188 end
189 device ref gpp_bridge_2_3 on end # WLAN
190 device ref gpp_bridge_2_4 on # GBE
191 device pci 0.0 on end # RTL8111
192 end
193 device ref gpp_bridge_2_5 on end # WWAN
194 device ref gpp_bridge_3_1 on end # PCIe x4/x8 (ENABLE_SSD1_BIRMANPLUS)
195 device ref gpp_bridge_3_2 on end # NVME SSD1 (ENABLE_SSD1_BIRMANPLUS)
196
197 device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A
198 device ref gfx on end # Internal GPU (GFX)
199 device ref gfx_hda on end # Display HD Audio Controller (GFXAZ)
200 device ref crypto on end # Crypto Coprocessor
201 device ref xhci_1 on # USB 3.1 (USB1)
202 chip drivers/usb/acpi
203 device ref xhci_1_root_hub on
204 chip drivers/usb/acpi
205 device ref usb3_port7 on end
206 end
207 chip drivers/usb/acpi
208 device ref usb2_port7 on end
209 end
210 end
211 end
212 end
213 device ref acp on end # Audio Processor (ACP)
214 end
215 device ref gpp_bridge_c on # Internal GPP Bridge 2 to Bus C
216 device ref xhci_0 on # USB 3.1 (USB0)
217 chip drivers/usb/acpi
218 device ref xhci_0_root_hub on
219 chip drivers/usb/acpi
220 device ref usb3_port2 on end
221 end
222 chip drivers/usb/acpi
223 device ref usb3_port3 on end
224 end
225 chip drivers/usb/acpi
226 device ref usb2_port2 on end
227 end
228 chip drivers/usb/acpi
229 device ref usb2_port3 on end
230 end
231 chip drivers/usb/acpi
232 device ref usb2_port4 on end
233 end
234 chip drivers/usb/acpi
235 device ref usb2_port5 on end
236 end
237 chip drivers/usb/acpi
238 device ref usb2_port6 on end
239 end
240 end
241 end
242 end
243
244 device ref usb4_xhci_0 on
245 chip drivers/usb/acpi
246 device ref usb4_xhci_0_root_hub on
247 chip drivers/usb/acpi
248 device ref usb3_port0 on end
249 end
250 chip drivers/usb/acpi
251 device ref usb2_port0 on end
252 end
253 end
254 end
255 end
256 device ref usb4_xhci_1 on
257 chip drivers/usb/acpi
258 register "type" = "UPC_TYPE_HUB"
259 device ref usb4_xhci_1_root_hub on
260 chip drivers/usb/acpi
261 device ref usb3_port1 on end
262 end
263 chip drivers/usb/acpi
264 device ref usb2_port1 on end
265 end
266 end
267 end
268 end
269 end
270 end
271
272 device ref i2c_0 on end
273 device ref i2c_1 on end
274 device ref i2c_2 on
275 chip drivers/i2c/generic
276 register "hid" = "ACPI_DT_NAMESPACE_HID"
277 register "desc" = ""TMP420 3 channel temperature sensor""
278 register "uid" = "1"
279 register "compat_string" = ""ti,tmp432""
280 device i2c 4d on end
281 end
282 end
283 device ref i2c_3 on end
284 device ref uart_0 on end # UART0
285 device ref uart_2 on end # UART2
286 device ref uart_4 on end # UART4
287 end