tree: Use true false for PcieRpLtrEnable[]
[coreboot.git] / src / mainboard / amd / birman / devicetree_glinda.cb
blobf05a023bb14705a150bfb0aeb0ea320423044503
1 # SPDX-License-Identifier: GPL-2.0-only
3 # TODO: Update for birman
5 chip soc/amd/glinda
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,
12 .generic_io_range[1] = {
13 .base = 0x600,
14 .size = 256,
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,
26 register "i2c_scl_reset" = "GPIO_I2C0_SCL | GPIO_I2C1_SCL |
27 GPIO_I2C2_SCL | GPIO_I2C3_SCL"
29 register "i2c[0].early_init" = "1"
30 register "i2c[1].early_init" = "1"
31 register "i2c[2].early_init" = "1"
32 register "i2c[3].early_init" = "1"
34 # I2C Pad Control RX Select Configuration
35 register "i2c_pad[0].rx_level" = "I2C_PAD_RX_1_8V"
36 register "i2c_pad[1].rx_level" = "I2C_PAD_RX_1_8V"
37 register "i2c_pad[2].rx_level" = "I2C_PAD_RX_1_8V"
38 register "i2c_pad[3].rx_level" = "I2C_PAD_RX_1_8V"
40 register "s0ix_enable" = "true"
42 register "pspp_policy" = "DXIO_PSPP_DISABLED" # TODO: reenable when PSPP works
44 register "usb_phy_custom" = "true"
45 register "usb_phy" = "{
46 .Usb2PhyPort[0] = {
47 .compdistune = 0x3,
48 .pllbtune = 0x1,
49 .pllitune = 0x0,
50 .pllptune = 0xe,
51 .sqrxtune = 0x3,
52 .txfslstune = 0x3,
53 .txpreempamptune = 0x2,
54 .txpreemppulsetune = 0x0,
55 .txrisetune = 0x1,
56 .txvreftune = 0x3,
57 .txhsxvtune = 0x3,
58 .txrestune = 0x2,
60 .Usb2PhyPort[1] = {
61 .compdistune = 0x3,
62 .pllbtune = 0x1,
63 .pllitune = 0x0,
64 .pllptune = 0xe,
65 .sqrxtune = 0x3,
66 .txfslstune = 0x3,
67 .txpreempamptune = 0x2,
68 .txpreemppulsetune = 0x0,
69 .txrisetune = 0x1,
70 .txvreftune = 0x3,
71 .txhsxvtune = 0x3,
72 .txrestune = 0x2,
74 .Usb2PhyPort[2] = {
75 .compdistune = 0x3,
76 .pllbtune = 0x1,
77 .pllitune = 0x0,
78 .pllptune = 0xe,
79 .sqrxtune = 0x3,
80 .txfslstune = 0x3,
81 .txpreempamptune = 0x2,
82 .txpreemppulsetune = 0x0,
83 .txrisetune = 0x1,
84 .txvreftune = 0x3,
85 .txhsxvtune = 0x3,
86 .txrestune = 0x2,
88 .Usb2PhyPort[3] = {
89 .compdistune = 0x3,
90 .pllbtune = 0x1,
91 .pllitune = 0x0,
92 .pllptune = 0xe,
93 .sqrxtune = 0x3,
94 .txfslstune = 0x3,
95 .txpreempamptune = 0x2,
96 .txpreemppulsetune = 0x0,
97 .txrisetune = 0x1,
98 .txvreftune = 0x3,
99 .txhsxvtune = 0x3,
100 .txrestune = 0x2,
102 .Usb2PhyPort[4] = {
103 .compdistune = 0x3,
104 .pllbtune = 0x1,
105 .pllitune = 0x0,
106 .pllptune = 0xe,
107 .sqrxtune = 0x3,
108 .txfslstune = 0x3,
109 .txpreempamptune = 0x2,
110 .txpreemppulsetune = 0x0,
111 .txrisetune = 0x1,
112 .txvreftune = 0x3,
113 .txhsxvtune = 0x3,
114 .txrestune = 0x2,
116 .Usb2PhyPort[5] = {
117 .compdistune = 0x3,
118 .pllbtune = 0x1,
119 .pllitune = 0x0,
120 .pllptune = 0xe,
121 .sqrxtune = 0x3,
122 .txfslstune = 0x3,
123 .txpreempamptune = 0x2,
124 .txpreemppulsetune = 0x0,
125 .txrisetune = 0x1,
126 .txvreftune = 0x3,
127 .txhsxvtune = 0x3,
128 .txrestune = 0x2,
130 .Usb3PhyPort[0] = {
131 .tx_term_ctrl = 0x2,
132 .rx_term_ctrl = 0x2,
133 .tx_vboost_lvl_en = 0x0,
134 .tx_vboost_lvl = 0x5,
136 .Usb3PhyPort[1] = {
137 .tx_term_ctrl = 0x2,
138 .rx_term_ctrl = 0x2,
139 .tx_vboost_lvl_en = 0x0,
140 .tx_vboost_lvl = 0x5,
142 .Usb3PhyPort[2] = {
143 .tx_term_ctrl = 0x2,
144 .rx_term_ctrl = 0x2,
145 .tx_vboost_lvl_en = 0x0,
146 .tx_vboost_lvl = 0x5,
148 .ComboPhyStaticConfig[0] = USB_COMBO_PHY_MODE_USB_C,
149 .ComboPhyStaticConfig[1] = USB_COMBO_PHY_MODE_USB_C,
152 register "gpp_clk_config[0]" = "GPP_CLK_REQ"
153 register "gpp_clk_config[1]" = "GPP_CLK_REQ"
154 register "gpp_clk_config[2]" = "GPP_CLK_OFF"
155 register "gpp_clk_config[3]" = "GPP_CLK_REQ"
157 device domain 0 on
158 device ref iommu on end
159 device ref gpp_bridge_2_1 on end # GBE
160 device ref gpp_bridge_2_2 on end # WIFI
161 device ref gpp_bridge_2_3 on end # NVMe SSD
163 device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A
164 device ref gfx on end # Internal GPU (GFX)
165 device ref gfx_hda on end # Display HD Audio Controller (GFXAZ)
166 device ref crypto on end # Crypto Coprocessor
167 device ref acp on end # Audio Processor (ACP)
169 device ref gpp_bridge_c on # Internal GPP Bridge 2 to Bus C
170 device ref xhci_0 on # USB 3.1 (USB0)
171 chip drivers/usb/acpi
172 device ref xhci_0_root_hub on
173 chip drivers/usb/acpi
174 device ref usb3_port2 on end
176 chip drivers/usb/acpi
177 device ref usb3_port3 on end
179 chip drivers/usb/acpi
180 device ref usb2_port2 on end
182 chip drivers/usb/acpi
183 device ref usb2_port3 on end
185 chip drivers/usb/acpi
186 device ref usb2_port4 on end
188 chip drivers/usb/acpi
189 device ref usb2_port5 on end
194 device ref usb4_xhci_0 on
195 chip drivers/usb/acpi
196 device ref usb4_xhci_0_root_hub on
197 chip drivers/usb/acpi
198 device ref usb3_port0 on end
200 chip drivers/usb/acpi
201 device ref usb2_port0 on end
206 device ref usb4_xhci_1 on
207 ops xhci_pci_ops
208 chip drivers/usb/acpi
209 register "type" = "UPC_TYPE_HUB"
210 device ref usb4_xhci_1_root_hub on
211 chip drivers/usb/acpi
212 device ref usb3_port1 on end
214 chip drivers/usb/acpi
215 device ref usb2_port1 on end
223 device ref i2c_0 on end
224 device ref i2c_1 on end
225 device ref i2c_2 on end
226 device ref i2c_3 on end
227 device ref uart_0 on end # UART0