Martin Roth | 20646cd | 2023-01-04 21:27:06 -0700 | [diff] [blame] | 1 | # TODO: Update for Phoenix |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 2 | |
Martin Roth | 20646cd | 2023-01-04 21:27:06 -0700 | [diff] [blame] | 3 | chip soc/amd/phoenix |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 4 | device cpu_cluster 0 on |
Felix Held | 8f2e5c9 | 2023-01-16 20:06:31 +0100 | [diff] [blame] | 5 | ops amd_cpu_bus_ops |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 6 | end |
| 7 | device domain 0 on |
Martin Roth | 20646cd | 2023-01-04 21:27:06 -0700 | [diff] [blame] | 8 | ops phoenix_pci_domain_ops |
| 9 | device pci 00.0 alias gnb on ops phoenix_root_complex_operations end |
Arthur Heymans | b3dcb96 | 2022-10-05 21:54:29 +0200 | [diff] [blame] | 10 | device pci 00.2 alias iommu off ops amd_iommu_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 11 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 12 | device pci 01.0 on end # Dummy device function, do not disable |
Felix Held | bee5c60 | 2023-02-03 01:41:16 +0100 | [diff] [blame] | 13 | # The PCIe GPP aliases in this SoC match the device and function numbers |
Martin Roth | cc827d9 | 2023-04-19 13:40:06 -0600 | [diff] [blame] | 14 | device pci 01.1 alias gpp_bridge_1_1 hidden ops amd_external_pcie_gpp_ops end |
| 15 | device pci 01.2 alias gpp_bridge_1_2 hidden ops amd_external_pcie_gpp_ops end |
| 16 | device pci 01.3 alias gpp_bridge_1_3 hidden ops amd_external_pcie_gpp_ops end |
| 17 | device pci 01.4 alias gpp_bridge_1_4 hidden ops amd_external_pcie_gpp_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 18 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 19 | device pci 02.0 on end # Dummy device function, do not disable |
Felix Held | a35b928 | 2023-02-03 01:42:52 +0100 | [diff] [blame] | 20 | # The PCIe GPP aliases in this SoC match the device and function numbers |
Martin Roth | cc827d9 | 2023-04-19 13:40:06 -0600 | [diff] [blame] | 21 | device pci 02.1 alias gpp_bridge_2_1 hidden ops amd_external_pcie_gpp_ops end |
| 22 | device pci 02.2 alias gpp_bridge_2_2 hidden ops amd_external_pcie_gpp_ops end |
| 23 | device pci 02.3 alias gpp_bridge_2_3 hidden ops amd_external_pcie_gpp_ops end |
| 24 | device pci 02.4 alias gpp_bridge_2_4 hidden ops amd_external_pcie_gpp_ops end |
| 25 | device pci 02.5 alias gpp_bridge_2_5 hidden ops amd_external_pcie_gpp_ops end |
| 26 | device pci 02.6 alias gpp_bridge_2_6 hidden ops amd_external_pcie_gpp_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 27 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 28 | device pci 03.0 on end # Dummy device function, do not disable |
Felix Held | 0cf73ab | 2023-02-03 17:03:20 +0100 | [diff] [blame] | 29 | device pci 03.1 alias usb4_pcie_bridge_0 off end |
| 30 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 31 | device pci 04.0 on end # Dummy device function, do not disable |
Felix Held | 0cf73ab | 2023-02-03 17:03:20 +0100 | [diff] [blame] | 32 | device pci 04.1 alias usb4_pcie_bridge_1 off end |
| 33 | |
Felix Held | f5b09db | 2023-12-05 00:41:05 +0100 | [diff] [blame] | 34 | device pci 08.0 on end # Dummy device function, do not disable |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 35 | device pci 08.1 alias gpp_bridge_a off # Internal GPP Bridge 0 to Bus A |
Arthur Heymans | b171f76 | 2022-10-05 22:12:02 +0200 | [diff] [blame] | 36 | ops amd_internal_pcie_gpp_ops |
Arthur Heymans | 796a8f3 | 2022-10-05 22:15:58 +0200 | [diff] [blame] | 37 | device pci 0.0 alias gfx off ops amd_graphics_ops end # Internal GPU (GFX) |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 38 | device pci 0.1 alias gfx_hda off end # Display HD Audio Controller (GFXAZ) |
| 39 | device pci 0.2 alias crypto off end # Crypto Coprocessor |
| 40 | device pci 0.3 alias xhci_0 off |
Eric Lai | 9a070dc | 2023-06-06 15:01:02 +0800 | [diff] [blame] | 41 | ops xhci_pci_ops |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 42 | chip drivers/usb/acpi |
| 43 | register "type" = "UPC_TYPE_HUB" |
| 44 | device usb 0.0 alias xhci_0_root_hub off |
| 45 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 46 | device usb 3.0 alias usb3_port2 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 47 | end |
| 48 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 49 | device usb 3.1 alias usb3_port3 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 50 | end |
| 51 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 52 | device usb 2.0 alias usb2_port2 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 53 | end |
| 54 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 55 | device usb 2.1 alias usb2_port3 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 56 | end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 57 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 58 | device usb 2.2 alias usb2_port4 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 59 | end |
| 60 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 61 | device usb 2.3 alias usb2_port5 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 62 | end |
| 63 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 64 | device usb 2.4 alias usb2_port6 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 65 | end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 66 | end |
| 67 | end |
| 68 | end |
| 69 | device pci 0.4 alias xhci_1 off |
Eric Lai | 9a070dc | 2023-06-06 15:01:02 +0800 | [diff] [blame] | 70 | ops xhci_pci_ops |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 71 | chip drivers/usb/acpi |
| 72 | register "type" = "UPC_TYPE_HUB" |
| 73 | device usb 0.0 alias xhci_1_root_hub off |
| 74 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 75 | device usb 3.0 alias usb3_port7 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 76 | end |
| 77 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 78 | device usb 2.0 alias usb2_port7 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 79 | end |
| 80 | end |
| 81 | end |
| 82 | end |
Arthur Heymans | 987ec88 | 2022-10-05 21:50:23 +0200 | [diff] [blame] | 83 | device pci 0.5 alias acp off ops amd_acp_ops end # Audio Processor (ACP) |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 84 | device pci 0.6 alias hda off end # Audio Processor HD Audio Controller (main AZ) |
| 85 | device pci 0.7 alias mp2 off end # Sensor Fusion Hub (MP2) |
| 86 | end |
Felix Held | 0cf73ab | 2023-02-03 17:03:20 +0100 | [diff] [blame] | 87 | device pci 08.2 alias gpp_bridge_b off # Internal GPP Bridge 1 to Bus B |
| 88 | ops amd_internal_pcie_gpp_ops |
| 89 | device pci 0.0 on end # dummy, do not disable |
| 90 | device pci 0.1 alias ipu off end |
| 91 | end |
| 92 | |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 93 | device pci 08.3 alias gpp_bridge_c off # Internal GPP Bridge 2 to Bus C |
Arthur Heymans | b171f76 | 2022-10-05 22:12:02 +0200 | [diff] [blame] | 94 | ops amd_internal_pcie_gpp_ops |
Felix Held | 0cf73ab | 2023-02-03 17:03:20 +0100 | [diff] [blame] | 95 | device pci 0.0 on end # dummy, do not disable |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 96 | device pci 0.3 alias usb4_xhci_0 off |
Eric Lai | 9a070dc | 2023-06-06 15:01:02 +0800 | [diff] [blame] | 97 | ops xhci_pci_ops |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 98 | chip drivers/usb/acpi |
| 99 | register "type" = "UPC_TYPE_HUB" |
| 100 | device usb 0.0 alias usb4_xhci_0_root_hub off |
| 101 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 102 | device usb 3.0 alias usb3_port0 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 103 | end |
| 104 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 105 | device usb 2.0 alias usb2_port0 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 106 | end |
| 107 | end |
| 108 | end |
| 109 | end |
| 110 | device pci 0.4 alias usb4_xhci_1 off |
Eric Lai | 9a070dc | 2023-06-06 15:01:02 +0800 | [diff] [blame] | 111 | ops xhci_pci_ops |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 112 | chip drivers/usb/acpi |
| 113 | register "type" = "UPC_TYPE_HUB" |
| 114 | device usb 0.0 alias usb4_xhci_1_root_hub off |
| 115 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 116 | device usb 3.0 alias usb3_port1 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 117 | end |
| 118 | chip drivers/usb/acpi |
Eric Lai | 12a4f09 | 2023-06-05 13:01:25 +0800 | [diff] [blame] | 119 | device usb 2.0 alias usb2_port1 off end |
Felix Held | c489a40 | 2023-02-03 18:02:24 +0100 | [diff] [blame] | 120 | end |
| 121 | end |
| 122 | end |
| 123 | end |
Felix Held | 0cf73ab | 2023-02-03 17:03:20 +0100 | [diff] [blame] | 124 | device pci 0.5 alias usb4_router_0 off end |
| 125 | device pci 0.6 alias usb4_router_1 off end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 126 | end |
| 127 | |
Arthur Heymans | fd2bb9b | 2022-10-05 14:36:55 +0200 | [diff] [blame] | 128 | device pci 14.0 alias smbus on ops amd_smbus_ops end # primary FCH function |
Arthur Heymans | c6f029c | 2022-10-05 21:48:07 +0200 | [diff] [blame] | 129 | device pci 14.3 alias lpc_bridge on ops amd_lpc_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 130 | |
Fred Reitberger | aab7f04 | 2022-11-03 15:26:47 -0400 | [diff] [blame] | 131 | device pci 18.0 alias data_fabric_0 on ops amd_data_fabric_ops end |
| 132 | device pci 18.1 alias data_fabric_1 on ops amd_data_fabric_ops end |
| 133 | device pci 18.2 alias data_fabric_2 on ops amd_data_fabric_ops end |
| 134 | device pci 18.3 alias data_fabric_3 on ops amd_data_fabric_ops end |
| 135 | device pci 18.4 alias data_fabric_4 on ops amd_data_fabric_ops end |
| 136 | device pci 18.5 alias data_fabric_5 on ops amd_data_fabric_ops end |
| 137 | device pci 18.6 alias data_fabric_6 on ops amd_data_fabric_ops end |
| 138 | device pci 18.7 alias data_fabric_7 on ops amd_data_fabric_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 139 | end |
| 140 | |
Arthur Heymans | 7f38077 | 2022-09-20 14:03:28 +0200 | [diff] [blame] | 141 | device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end |
| 142 | device mmio 0xfedc3000 alias i2c_1 off ops soc_amd_i2c_mmio_ops end |
| 143 | device mmio 0xfedc4000 alias i2c_2 off ops soc_amd_i2c_mmio_ops end |
| 144 | device mmio 0xfedc5000 alias i2c_3 off ops soc_amd_i2c_mmio_ops end |
Felix Held | 97e6125 | 2022-10-18 19:03:20 +0200 | [diff] [blame] | 145 | device mmio 0xfedc9000 alias uart_0 off ops amd_uart_mmio_ops end |
| 146 | device mmio 0xfedca000 alias uart_1 off ops amd_uart_mmio_ops end |
| 147 | device mmio 0xfedce000 alias uart_2 off ops amd_uart_mmio_ops end |
| 148 | device mmio 0xfedcf000 alias uart_3 off ops amd_uart_mmio_ops end |
| 149 | device mmio 0xfedd1000 alias uart_4 off ops amd_uart_mmio_ops end |
Martin Roth | 1a3de8e | 2022-10-06 15:57:21 -0600 | [diff] [blame] | 150 | end |