Debian Codegraph @

src/mainboard/amd/birman_plus/devicetree_phoenix.cb

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