Tim Crawford | 8093b77c | 2024-05-29 16:31:17 -0600 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 3 | chip soc/intel/alderlake |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 4 | register "power_limits_config[ADL_P_642_682_45W_CORE]" = "{ |
| 5 | .tdp_pl1_override = 45, |
| 6 | .tdp_pl2_override = 115, |
| 7 | .tdp_psyspl2 = 135, |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 8 | }" |
| 9 | |
| 10 | # Thermal |
| 11 | register "tcc_offset" = "10" |
| 12 | |
| 13 | # GPE configuration |
| 14 | register "pmc_gpe0_dw0" = "PMC_GPP_A" |
| 15 | register "pmc_gpe0_dw1" = "PMC_GPP_R" |
| 16 | register "pmc_gpe0_dw2" = "PMC_GPD" |
| 17 | |
| 18 | device domain 0 on |
| 19 | subsystemid 0x1558 0x65f5 inherit |
| 20 | |
| 21 | device ref pcie5_0 on |
| 22 | # CPU PCIe RP#2 x8, Clock 3 (DGPU) |
| 23 | register "cpu_pcie_rp[CPU_RP(2)]" = "{ |
| 24 | .clk_src = 3, |
| 25 | .clk_req = 3, |
| 26 | .flags = PCIE_RP_LTR, |
| 27 | }" |
| 28 | end |
| 29 | device ref igpu on |
| 30 | register "ddi_portA_config" = "1" |
| 31 | register "ddi_ports_config[DDI_PORT_A]" = "DDI_ENABLE_HPD" |
| 32 | end |
| 33 | device ref pcie4_0 on |
| 34 | # CPU PCIe RP#1 x4, Clock 0 (SSD1) |
| 35 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 36 | .clk_src = 0, |
| 37 | .clk_req = 0, |
| 38 | .flags = PCIE_RP_LTR, |
| 39 | }" |
| 40 | end |
| 41 | device ref pcie4_1 on |
| 42 | # CPU PCIe RP#3 x4, Clock 4 (SSD2) |
| 43 | register "cpu_pcie_rp[CPU_RP(3)]" = "{ |
| 44 | .clk_src = 4, |
| 45 | .clk_req = 4, |
| 46 | .flags = PCIE_RP_LTR, |
| 47 | }" |
| 48 | end |
| 49 | device ref tcss_xhci on |
| 50 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)" |
| 51 | chip drivers/usb/acpi |
| 52 | device ref tcss_root_hub on |
| 53 | chip drivers/usb/acpi |
| 54 | register "desc" = ""USB3 TYPEC2"" |
| 55 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 56 | device ref tcss_usb3_port1 on end |
| 57 | end |
| 58 | end |
| 59 | end |
| 60 | end |
| 61 | device ref tcss_dma0 on |
| 62 | chip drivers/intel/usb4/retimer |
| 63 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 64 | use tcss_usb3_port1 as dfp[0].typec_port |
| 65 | device generic 0 on end |
| 66 | end |
| 67 | end |
| 68 | device ref xhci on |
Felix Singer | 1b102ca | 2023-10-26 16:32:19 +0200 | [diff] [blame] | 69 | register "usb2_ports" = "{ |
| 70 | [0] = USB2_PORT_TYPE_C(OC_SKIP), /* TYPEC1 (USB 3.2 Gen2) */ |
| 71 | [1] = USB2_PORT_MID(OC_SKIP), /* J_USB2 */ |
| 72 | [2] = USB2_PORT_MID(OC_SKIP), /* J_USB1 */ |
| 73 | [5] = USB2_PORT_MID(OC_SKIP), /* Per-KB */ |
| 74 | [6] = USB2_PORT_MID(OC_SKIP), /* Fingerprint */ |
| 75 | [7] = USB2_PORT_MID(OC_SKIP), /* Camera */ |
| 76 | [8] = USB2_PORT_TYPE_C(OC_SKIP), /* TYPEC2 (Thunderbolt) */ |
| 77 | [9] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */ |
| 78 | }" |
| 79 | register "usb3_ports" = "{ |
| 80 | [0] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPEC1 (USB 3.2 Gen2) */ |
| 81 | [1] = USB3_PORT_DEFAULT(OC_SKIP), /* J_USB2 */ |
| 82 | [2] = USB3_PORT_DEFAULT(OC_SKIP), /* J_USB1 */ |
| 83 | }" |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 84 | # ACPI |
| 85 | chip drivers/usb/acpi |
| 86 | device ref xhci_root_hub on |
| 87 | chip drivers/usb/acpi |
| 88 | register "desc" = ""USB2 TYPEC1"" |
| 89 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 90 | device ref usb2_port1 on end |
| 91 | end |
| 92 | chip drivers/usb/acpi |
| 93 | register "desc" = ""USB2 J_USB2"" |
| 94 | register "type" = "UPC_TYPE_A" |
| 95 | device ref usb2_port2 on end |
| 96 | end |
| 97 | chip drivers/usb/acpi |
| 98 | register "desc" = ""USB2 J_USB1"" |
| 99 | register "type" = "UPC_TYPE_A" |
| 100 | device ref usb2_port3 on end |
| 101 | end |
| 102 | chip drivers/usb/acpi |
| 103 | register "desc" = ""USB2 Per-KB"" |
| 104 | register "type" = "UPC_TYPE_INTERNAL" |
| 105 | device ref usb2_port6 on end |
| 106 | end |
| 107 | chip drivers/usb/acpi |
| 108 | register "desc" = ""USB2 Fingerprint"" |
| 109 | register "type" = "UPC_TYPE_INTERNAL" |
| 110 | device ref usb2_port7 on end |
| 111 | end |
| 112 | chip drivers/usb/acpi |
| 113 | register "desc" = ""USB2 Camera"" |
| 114 | register "type" = "UPC_TYPE_INTERNAL" |
| 115 | device ref usb2_port8 on end |
| 116 | end |
| 117 | chip drivers/usb/acpi |
| 118 | register "desc" = ""USB2 TYPEC2"" |
| 119 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 120 | device ref usb2_port9 on end |
| 121 | end |
| 122 | chip drivers/usb/acpi |
| 123 | register "desc" = ""USB2 Bluetooth"" |
| 124 | register "type" = "UPC_TYPE_INTERNAL" |
| 125 | device ref usb2_port10 on end |
| 126 | end |
| 127 | chip drivers/usb/acpi |
| 128 | register "desc" = ""USB3 TYPEC1"" |
| 129 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 130 | device ref usb3_port1 on end |
| 131 | end |
| 132 | chip drivers/usb/acpi |
| 133 | register "desc" = ""USB3 J_USB2"" |
| 134 | register "type" = "UPC_TYPE_A" |
| 135 | device ref usb3_port2 on end |
| 136 | end |
| 137 | chip drivers/usb/acpi |
| 138 | register "desc" = ""USB3 J_USB2"" |
| 139 | register "type" = "UPC_TYPE_A" |
| 140 | device ref usb3_port3 on end |
| 141 | end |
| 142 | end |
| 143 | end |
| 144 | end |
| 145 | device ref sata off end |
| 146 | device ref pcie_rp5 on |
| 147 | # PCIe RP#5 x1, Clock 2 (WLAN) |
| 148 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 149 | .clk_src = 2, |
| 150 | .clk_req = 2, |
| 151 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 152 | }" |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 153 | end |
| 154 | device ref pcie_rp6 on |
| 155 | # PCIe RP#6 x1, Clock 6 (CARD) |
| 156 | register "pch_pcie_rp[PCH_RP(6)]" = "{ |
| 157 | .clk_src = 6, |
| 158 | .clk_req = 6, |
| 159 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_AER, |
| 160 | }" |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 161 | end |
| 162 | device ref pcie_rp8 on |
| 163 | # PCIe RP#8 x1, Clock 5 (GLAN) |
| 164 | register "pch_pcie_rp[PCH_RP(8)]" = "{ |
| 165 | .clk_src = 5, |
| 166 | .clk_req = 5, |
| 167 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 168 | }" |
Tim Crawford | 683de12 | 2023-03-02 09:44:40 -0700 | [diff] [blame] | 169 | end |
| 170 | |
| 171 | device ref pmc hidden |
| 172 | chip drivers/intel/pmc_mux |
| 173 | device generic 0 on |
| 174 | chip drivers/intel/pmc_mux/conn |
| 175 | # TYPEC2 |
| 176 | use usb2_port9 as usb2_port |
| 177 | use tcss_usb3_port1 as usb3_port |
| 178 | device generic 0 alias conn0 on end |
| 179 | end |
| 180 | end |
| 181 | end |
| 182 | end |
| 183 | end |
| 184 | end |