vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Felix Held | d123f8d | 2023-12-15 10:57:30 +0100 | [diff] [blame] | 3 | chip soc/amd/genoa_poc |
Arthur Heymans | 2e2f166 | 2023-07-14 22:58:49 +0200 | [diff] [blame] | 4 | device cpu_cluster 0 on ops amd_cpu_bus_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 5 | |
Arthur Heymans | 663c577 | 2023-07-14 20:08:12 +0200 | [diff] [blame] | 6 | # OC pins |
| 7 | register "usb.usb2_oc_pins[0]" = "{ 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf }" |
| 8 | register "usb.usb2_oc_pins[1]" = "{ 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf }" |
| 9 | register "usb.usb3_oc_pins[0]" = "{ 0xf, 0xf, 0xf, 0xf }" |
| 10 | register "usb.usb3_oc_pins[1]" = "{ 0xf, 0xf, 0xf, 0xf }" |
| 11 | |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 12 | device domain 0 on |
Felix Held | 926887c | 2023-10-13 21:19:53 +0200 | [diff] [blame] | 13 | ops genoa_pci_domain_ops |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 14 | device pci 00.0 alias gnb_0 on end |
Felix Held | 5aaaee3 | 2023-12-07 23:19:35 +0100 | [diff] [blame] | 15 | device pci 00.2 alias iommu_0 off ops amd_iommu_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 16 | device pci 00.3 alias rcec_0 off end |
| 17 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 18 | device pci 01.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 19 | device pci 01.1 alias gpp_bridge_0_0_a off end |
| 20 | device pci 01.2 alias gpp_bridge_0_1_a off end |
| 21 | device pci 01.3 alias gpp_bridge_0_2_a off end |
| 22 | device pci 01.4 alias gpp_bridge_0_3_a off end |
| 23 | device pci 01.5 alias gpp_bridge_0_4_a off end |
| 24 | device pci 01.6 alias gpp_bridge_0_5_a off end |
| 25 | device pci 01.7 alias gpp_bridge_0_6_a off end |
| 26 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 27 | device pci 02.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 28 | device pci 02.1 alias gpp_bridge_0_7_a off end |
| 29 | device pci 02.2 alias gpp_bridge_0_8_a off end |
| 30 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 31 | device pci 03.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 32 | device pci 03.1 alias gpp_bridge_0_0_b off end |
| 33 | device pci 03.2 alias gpp_bridge_0_1_b off end |
| 34 | device pci 03.3 alias gpp_bridge_0_2_b off end |
| 35 | device pci 03.4 alias gpp_bridge_0_3_b off end |
| 36 | device pci 03.5 alias gpp_bridge_0_4_b off end |
| 37 | device pci 03.6 alias gpp_bridge_0_5_b off end |
| 38 | device pci 03.7 alias gpp_bridge_0_6_b off end |
| 39 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 40 | device pci 04.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 41 | device pci 04.1 alias gpp_bridge_0_7_b off end |
| 42 | device pci 04.2 alias gpp_bridge_0_8_b off end |
| 43 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 44 | device pci 05.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 45 | device pci 05.1 alias gpp_bridge_0_0_c off end |
| 46 | device pci 05.2 alias gpp_bridge_0_1_c off end |
| 47 | device pci 05.3 alias gpp_bridge_0_2_c off end |
| 48 | device pci 05.4 alias gpp_bridge_0_3_c off end |
| 49 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 50 | device pci 07.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 51 | device pci 07.1 alias gpp_bridge_0_a off # Internal GPP Bridge 0 to Bus B0 |
Felix Held | 543c1ee | 2023-12-07 23:16:47 +0100 | [diff] [blame] | 52 | device pci 0.0 on end # Dummy PCIe function |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 53 | device pci 0.1 off end |
| 54 | device pci 0.2 alias primary_NTB_0 off end # Primary PCIe Non-TransparentBridge |
| 55 | device pci 0.3 alias secondry_NTB_0 off end # Secondary vNTB |
| 56 | device pci 0.4 alias xhci_0 off end # USB |
| 57 | device pci 0.5 alias mp0_0 off end # PSP (MP0) |
| 58 | device pci 0.6 alias acp_0 off end # Audio Processor (ACP) |
| 59 | device pci 0.7 alias hda_0 off end # Audio Processor HD Audio Controller (main AZ) |
| 60 | end |
| 61 | device pci 07.2 alias gpp_bridge_0_b off # Internal GPP Bridge 1 to Bus C0 |
| 62 | device pci 0.0 alias sata_0_0 off end # first SATA controller; AHCI mode |
| 63 | device pci 0.1 alias sata_0_1 off end # second SATA controller; AHCI mode |
| 64 | end |
| 65 | |
| 66 | device pci 14.0 alias smbus on end # primary FCH function |
Arthur Heymans | 49bbe34 | 2023-07-14 23:16:56 +0200 | [diff] [blame] | 67 | device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 68 | device pci 14.6 alias sdhci off end |
| 69 | |
| 70 | device pci 18.0 alias data_fabric_0 on end |
| 71 | device pci 18.1 alias data_fabric_1 on end |
| 72 | device pci 18.2 alias data_fabric_2 on end |
| 73 | device pci 18.3 alias data_fabric_3 on end |
| 74 | device pci 18.4 alias data_fabric_4 on end |
| 75 | device pci 18.5 alias data_fabric_5 on end |
| 76 | device pci 18.6 alias data_fabric_6 on end |
| 77 | device pci 18.7 alias data_fabric_7 on end |
| 78 | end |
| 79 | |
| 80 | device domain 1 on |
Felix Held | 926887c | 2023-10-13 21:19:53 +0200 | [diff] [blame] | 81 | ops genoa_pci_domain_ops |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 82 | device pci 00.0 alias gnb_1 on end |
Felix Held | 5aaaee3 | 2023-12-07 23:19:35 +0100 | [diff] [blame] | 83 | device pci 00.2 alias iommu_1 off ops amd_iommu_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 84 | device pci 00.3 alias rcec_1 off end |
| 85 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 86 | device pci 01.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 87 | device pci 01.1 alias gpp_bridge_1_0_a off end |
| 88 | device pci 01.2 alias gpp_bridge_1_1_a off end |
| 89 | device pci 01.3 alias gpp_bridge_1_2_a off end |
| 90 | device pci 01.4 alias gpp_bridge_1_3_a off end |
| 91 | device pci 01.5 alias gpp_bridge_1_4_a off end |
| 92 | device pci 01.6 alias gpp_bridge_1_5_a off end |
| 93 | device pci 01.7 alias gpp_bridge_1_6_a off end |
| 94 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 95 | device pci 02.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 96 | device pci 02.1 alias gpp_bridge_1_7_a off end |
| 97 | device pci 02.2 alias gpp_bridge_1_8_a off end |
| 98 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 99 | device pci 03.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 100 | device pci 03.1 alias gpp_bridge_1_0_b off end |
| 101 | device pci 03.2 alias gpp_bridge_1_1_b off end |
| 102 | device pci 03.3 alias gpp_bridge_1_2_b off end |
| 103 | device pci 03.4 alias gpp_bridge_1_3_b off end |
| 104 | device pci 03.5 alias gpp_bridge_1_4_b off end |
| 105 | device pci 03.6 alias gpp_bridge_1_5_b off end |
| 106 | device pci 03.7 alias gpp_bridge_1_6_b off end |
| 107 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 108 | device pci 04.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 109 | device pci 04.1 alias gpp_bridge_1_7_b off end |
| 110 | device pci 04.2 alias gpp_bridge_1_8_b off end |
| 111 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 112 | device pci 05.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 113 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 114 | device pci 07.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 115 | device pci 07.1 alias gpp_bridge_1_a off |
Felix Held | 543c1ee | 2023-12-07 23:16:47 +0100 | [diff] [blame] | 116 | device pci 0.0 on end # Dummy PCIe function |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 117 | device pci 0.1 off end #SDXI |
Felix Held | 919801e | 2023-12-11 16:47:54 +0100 | [diff] [blame] | 118 | device pci 0.2 alias primary_NTB_1 off end # Primary PCIe Non-TransparentBridge |
| 119 | device pci 0.3 alias secondry_NTB_1 off end # Secondary vNTB |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 120 | end |
| 121 | end |
| 122 | |
| 123 | device domain 2 on |
Felix Held | 926887c | 2023-10-13 21:19:53 +0200 | [diff] [blame] | 124 | ops genoa_pci_domain_ops |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 125 | device pci 00.0 alias gnb_2 on end |
Felix Held | 5aaaee3 | 2023-12-07 23:19:35 +0100 | [diff] [blame] | 126 | device pci 00.2 alias iommu_2 off ops amd_iommu_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 127 | device pci 00.3 alias rcec_2 off end |
| 128 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 129 | device pci 01.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 130 | device pci 01.1 alias gpp_bridge_2_0_a off end |
| 131 | device pci 01.2 alias gpp_bridge_2_1_a off end |
| 132 | device pci 01.3 alias gpp_bridge_2_2_a off end |
| 133 | device pci 01.4 alias gpp_bridge_2_3_a off end |
| 134 | device pci 01.5 alias gpp_bridge_2_4_a off end |
| 135 | device pci 01.6 alias gpp_bridge_2_5_a off end |
| 136 | device pci 01.7 alias gpp_bridge_2_6_a off end |
| 137 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 138 | device pci 02.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 139 | device pci 02.1 alias gpp_bridge_2_7_a off end |
| 140 | device pci 02.2 alias gpp_bridge_2_8_a off end |
| 141 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 142 | device pci 03.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 143 | device pci 03.1 alias gpp_bridge_2_0_b off end |
| 144 | device pci 03.2 alias gpp_bridge_2_1_b off end |
| 145 | device pci 03.3 alias gpp_bridge_2_2_b off end |
| 146 | device pci 03.4 alias gpp_bridge_2_3_b off end |
| 147 | device pci 03.5 alias gpp_bridge_2_4_b off end |
| 148 | device pci 03.6 alias gpp_bridge_2_5_b off end |
| 149 | device pci 03.7 alias gpp_bridge_2_6_b off end |
| 150 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 151 | device pci 04.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 152 | device pci 04.1 alias gpp_bridge_2_7_b off end |
| 153 | device pci 04.2 alias gpp_bridge_2_8_b off end |
| 154 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 155 | device pci 05.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 156 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 157 | device pci 07.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 158 | device pci 07.1 alias gpp_bridge_2_a off |
Felix Held | 543c1ee | 2023-12-07 23:16:47 +0100 | [diff] [blame] | 159 | device pci 0.0 on end # Dummy PCIe function |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 160 | device pci 0.1 off end |
Felix Held | 919801e | 2023-12-11 16:47:54 +0100 | [diff] [blame] | 161 | device pci 0.2 alias primary_NTB_2 off end # Primary PCIe Non-TransparentBridge |
| 162 | device pci 0.3 alias secondry_NTB_2 off end # Secondary vNTB |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 163 | end |
| 164 | end |
| 165 | |
| 166 | device domain 3 on |
Felix Held | 926887c | 2023-10-13 21:19:53 +0200 | [diff] [blame] | 167 | ops genoa_pci_domain_ops |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 168 | device pci 00.0 alias gnb_3 on end |
Felix Held | 5aaaee3 | 2023-12-07 23:19:35 +0100 | [diff] [blame] | 169 | device pci 00.2 alias iommu_3 off ops amd_iommu_ops end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 170 | device pci 00.3 alias rcec_3 off end |
| 171 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 172 | device pci 01.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 173 | device pci 01.1 alias gpp_bridge_3_0_a off end |
| 174 | device pci 01.2 alias gpp_bridge_3_1_a off end |
| 175 | device pci 01.3 alias gpp_bridge_3_2_a off end |
| 176 | device pci 01.4 alias gpp_bridge_3_3_a off end |
| 177 | device pci 01.5 alias gpp_bridge_3_4_a off end |
| 178 | device pci 01.6 alias gpp_bridge_3_5_a off end |
| 179 | device pci 01.7 alias gpp_bridge_3_6_a off end |
| 180 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 181 | device pci 02.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 182 | device pci 02.1 alias gpp_bridge_3_7_a off end |
| 183 | device pci 02.2 alias gpp_bridge_3_8_a off end |
| 184 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 185 | device pci 03.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 186 | device pci 03.1 alias gpp_bridge_3_0_b off end |
| 187 | device pci 03.2 alias gpp_bridge_3_1_b off end |
| 188 | device pci 03.3 alias gpp_bridge_3_2_b off end |
| 189 | device pci 03.4 alias gpp_bridge_3_3_b off end |
| 190 | device pci 03.5 alias gpp_bridge_3_4_b off end |
| 191 | device pci 03.6 alias gpp_bridge_3_5_b off end |
| 192 | device pci 03.7 alias gpp_bridge_3_6_b off end |
| 193 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 194 | device pci 04.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 195 | device pci 04.1 alias gpp_bridge_3_7_b off end |
| 196 | device pci 04.2 alias gpp_bridge_3_8_b off end |
| 197 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 198 | device pci 05.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 199 | device pci 05.1 alias gpp_bridge_3_0_c off end |
| 200 | device pci 05.2 alias gpp_bridge_3_1_c off end |
| 201 | device pci 05.3 alias gpp_bridge_3_2_c off end |
| 202 | device pci 05.4 alias gpp_bridge_3_3_c off end |
| 203 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 204 | device pci 07.0 on end # Dummy device function, do not disable |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 205 | device pci 07.1 alias gpp_bridge_3_a off |
Felix Held | 543c1ee | 2023-12-07 23:16:47 +0100 | [diff] [blame] | 206 | device pci 0.0 on end # Dummy PCIe function |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 207 | device pci 0.1 off end #SDXI |
| 208 | device pci 0.2 alias primary_NTB_3 off end # Primary PCIe Non-TransparentBridge |
| 209 | device pci 0.3 alias secondry_NTB_3 off end # Secondary vNTB |
| 210 | device pci 0.4 alias xhci_3 off end # USB |
| 211 | device pci 0.5 alias mp0_3 off end # PSP (MP0) |
| 212 | end |
| 213 | |
Felix Held | f3523b4 | 2023-12-07 23:28:33 +0100 | [diff] [blame] | 214 | device pci 07.2 alias gpp_bridge_3_b off |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 215 | device pci 0.0 alias sata_3_0 off end # first SATA controller; AHCI mode |
| 216 | device pci 0.1 alias sata_3_1 off end # second SATA controller; AHCI mode |
| 217 | end |
| 218 | end |
| 219 | |
Felix Held | d26f5a1 | 2023-11-20 16:31:31 +0100 | [diff] [blame] | 220 | device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end |
| 221 | device mmio 0xfedc3000 alias i2c_1 off ops soc_amd_i2c_mmio_ops end |
| 222 | device mmio 0xfedc4000 alias i2c_2 off ops soc_amd_i2c_mmio_ops end |
| 223 | device mmio 0xfedc5000 alias i2c_3 off ops soc_amd_i2c_mmio_ops end |
| 224 | device mmio 0xfedc6000 alias i2c_4 off ops soc_amd_i2c_mmio_ops end |
| 225 | device mmio 0xfedcb000 alias i2c_5 off ops soc_amd_i2c_mmio_ops end |
Felix Held | 4950947 | 2023-11-04 06:08:41 +0100 | [diff] [blame] | 226 | device mmio 0xfedc9000 alias uart_0 off ops amd_uart_mmio_ops end |
| 227 | device mmio 0xfedca000 alias uart_1 off ops amd_uart_mmio_ops end |
| 228 | device mmio 0xfedce000 alias uart_2 off ops amd_uart_mmio_ops end |
Felix Held | 7bd043e | 2023-11-04 04:50:59 +0100 | [diff] [blame] | 229 | device mmio 0xfedd2000 alias i3c_0 off end |
| 230 | device mmio 0xfedd3000 alias i3c_1 off end |
| 231 | device mmio 0xfedd4000 alias i3c_2 off end |
| 232 | device mmio 0xfedd6000 alias i3c_3 off end |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 233 | |
| 234 | end |