Leo Chou | f2492c3 | 2024-03-20 11:42:09 +0800 | [diff] [blame] | 1 | chip soc/intel/alderlake |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 2 | # Acoustic settings |
| 3 | register "acoustic_noise_mitigation" = "1" |
| 4 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 5 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 6 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 7 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
| 8 | register "PreWake" = "100" |
Leo Chou | f2492c3 | 2024-03-20 11:42:09 +0800 | [diff] [blame] | 9 | |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 10 | register "sagv" = "SaGv_Enabled" |
Leo Chou | f2492c3 | 2024-03-20 11:42:09 +0800 | [diff] [blame] | 11 | |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 12 | # SOC Aux orientation override: |
| 13 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 14 | # Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. |
| 15 | # TcssAuxOri = 0101b |
| 16 | # Bit0,Bit2 set to "1" indicates no retimer on USBC Ports |
| 17 | # Bit1,Bit3 set to "0" indicates Aux lines are not swapped on the |
| 18 | # motherboard to USBC connector |
| 19 | register "tcss_aux_ori" = "5" |
| 20 | |
| 21 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 22 | register "typec_aux_bias_pads[1]" = "{.pad_auxp_dc = GPP_A21, .pad_auxn_dc = GPP_A22}" |
| 23 | |
| 24 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB2_C0 |
| 25 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB2_C1 |
| 26 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # WWAN |
| 27 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WFC Camera |
| 28 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
| 29 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 30 | |
| 31 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 port for WWAN |
| 32 | |
| 33 | # Configure external V1P05/Vnn/VnnSx Rails for Sundance |
| 34 | register "ext_fivr_settings" = "{ |
| 35 | .configure_ext_fivr = 1, |
| 36 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0, |
| 37 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 38 | .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 39 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL, |
| 40 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE, |
| 41 | .v1p05_voltage_mv = 1050, |
| 42 | .vnn_voltage_mv = 780, |
| 43 | .vnn_sx_voltage_mv = 1050, |
| 44 | .v1p05_icc_max_ma = 500, |
| 45 | .vnn_icc_max_ma = 500, |
| 46 | }" |
| 47 | |
| 48 | # Intel Common SoC Config |
| 49 | #+-------------------+---------------------------+ |
| 50 | #| Field | Value | |
| 51 | #+-------------------+---------------------------+ |
| 52 | #| I2C0 | TPM. Early init is | |
| 53 | #| | required to set up a BAR | |
| 54 | #| | for TPM communication | |
| 55 | #| I2C1 | Touchscreen | |
| 56 | #| I2C3 | Audio | |
| 57 | #| I2C5 | Trackpad | |
| 58 | #+-------------------+---------------------------+ |
| 59 | register "common_soc_config" = "{ |
| 60 | .i2c[0] = { |
| 61 | .early_init = 1, |
| 62 | .speed = I2C_SPEED_FAST_PLUS, |
| 63 | .speed_config[0] = { |
| 64 | .speed = I2C_SPEED_FAST_PLUS, |
| 65 | .scl_lcnt = 55, |
| 66 | .scl_hcnt = 30, |
| 67 | .sda_hold = 7, |
| 68 | } |
| 69 | }, |
| 70 | .i2c[1] = { |
| 71 | .speed = I2C_SPEED_FAST, |
| 72 | .speed_config[0] = { |
| 73 | .speed = I2C_SPEED_FAST, |
| 74 | .scl_lcnt = 157, |
| 75 | .scl_hcnt = 79, |
| 76 | .sda_hold = 7, |
| 77 | } |
| 78 | }, |
| 79 | .i2c[3] = { |
| 80 | .speed = I2C_SPEED_FAST, |
| 81 | .speed_config[0] = { |
| 82 | .speed = I2C_SPEED_FAST, |
| 83 | .scl_lcnt = 158, |
| 84 | .scl_hcnt = 79, |
| 85 | .sda_hold = 7, |
| 86 | } |
| 87 | }, |
| 88 | .i2c[5] = { |
| 89 | .speed = I2C_SPEED_FAST, |
| 90 | .speed_config[0] = { |
| 91 | .speed = I2C_SPEED_FAST, |
| 92 | .scl_lcnt = 158, |
| 93 | .scl_hcnt = 79, |
| 94 | .sda_hold = 7, |
| 95 | } |
| 96 | }, |
| 97 | }" |
| 98 | |
| 99 | device domain 0 on |
| 100 | device ref i2c1 on |
| 101 | chip drivers/i2c/hid |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 102 | register "generic.hid" = ""GDIX0000"" |
| 103 | register "generic.desc" = ""Goodix Touchscreen"" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 104 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 105 | register "generic.detect" = "1" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 106 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 107 | register "generic.enable_delay_ms" = "20" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 108 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 109 | register "generic.reset_delay_ms" = "180" |
| 110 | register "generic.reset_off_delay_ms" = "3" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 111 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 112 | register "generic.stop_off_delay_ms" = "1" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 113 | register "generic.has_power_resource" = "1" |
| 114 | register "hid_desc_reg_offset" = "0x01" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 115 | device i2c 5d on end |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 116 | end |
| 117 | end |
| 118 | device ref i2c3 on |
| 119 | chip drivers/i2c/generic |
| 120 | register "hid" = ""RTL5682"" |
| 121 | register "name" = ""RT58"" |
| 122 | register "desc" = ""Headset Codec"" |
| 123 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 124 | # Set the jd_src to RT5668_JD1 for jack detection |
| 125 | register "property_count" = "1" |
| 126 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 127 | register "property_list[0].name" = ""realtek,jd-src"" |
| 128 | register "property_list[0].integer" = "1" |
| 129 | device i2c 1a on end |
| 130 | end |
| 131 | chip drivers/generic/alc1015 |
| 132 | register "hid" = ""RTL1019"" |
| 133 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 134 | device generic 0 on end |
| 135 | end |
| 136 | end |
| 137 | device ref i2c5 on |
| 138 | chip drivers/i2c/generic |
| 139 | register "hid" = ""ELAN0000"" |
| 140 | register "desc" = ""ELAN Touchpad"" |
| 141 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 142 | register "wake" = "GPE0_DW2_14" |
| 143 | register "detect" = "1" |
| 144 | device i2c 15 on end |
| 145 | end |
| 146 | chip drivers/i2c/hid |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 147 | register "generic.hid" = ""FCAL0000"" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 148 | register "generic.cid" = ""ACPI0C50"" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 149 | register "generic.desc" = ""Focal Touchpad"" |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 150 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 151 | register "generic.wake" = "GPE0_DW2_14" |
| 152 | register "generic.detect" = "1" |
| 153 | register "hid_desc_reg_offset" = "0x20" |
Leo Chou | e538926 | 2024-04-11 10:40:54 +0800 | [diff] [blame] | 154 | device i2c 0x38 on end |
Leo Chou | e79d97b | 2024-04-03 15:06:30 +0800 | [diff] [blame] | 155 | end |
| 156 | end |
| 157 | device ref pcie_rp4 on |
| 158 | # PCIe 4 WLAN |
| 159 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 160 | .clk_src = 2, |
| 161 | .clk_req = 2, |
| 162 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 163 | }" |
| 164 | chip drivers/wifi/generic |
| 165 | register "wake" = "GPE0_DW1_03" |
| 166 | register "add_acpi_dma_property" = "true" |
| 167 | device pci 00.0 on end |
| 168 | end |
| 169 | end |
| 170 | device ref pch_espi on |
| 171 | chip ec/google/chromeec |
| 172 | use conn0 as mux_conn[0] |
| 173 | use conn1 as mux_conn[1] |
| 174 | device pnp 0c09.0 on end |
| 175 | end |
| 176 | end |
| 177 | device ref pmc hidden |
| 178 | chip drivers/intel/pmc_mux |
| 179 | device generic 0 on |
| 180 | chip drivers/intel/pmc_mux/conn |
| 181 | use usb2_port1 as usb2_port |
| 182 | use tcss_usb3_port1 as usb3_port |
| 183 | device generic 0 alias conn0 on end |
| 184 | end |
| 185 | chip drivers/intel/pmc_mux/conn |
| 186 | use usb2_port2 as usb2_port |
| 187 | use tcss_usb3_port2 as usb3_port |
| 188 | device generic 1 alias conn1 on end |
| 189 | end |
| 190 | end |
| 191 | end |
| 192 | end |
| 193 | device ref tcss_xhci on |
| 194 | chip drivers/usb/acpi |
| 195 | device ref tcss_root_hub on |
| 196 | chip drivers/usb/acpi |
| 197 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 198 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 199 | register "use_custom_pld" = "true" |
| 200 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 201 | device ref tcss_usb3_port1 on end |
| 202 | end |
| 203 | chip drivers/usb/acpi |
| 204 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 205 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 206 | register "use_custom_pld" = "true" |
| 207 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 208 | device ref tcss_usb3_port2 on end |
| 209 | end |
| 210 | end |
| 211 | end |
| 212 | end |
| 213 | device ref xhci on |
| 214 | chip drivers/usb/acpi |
| 215 | device ref xhci_root_hub on |
| 216 | chip drivers/usb/acpi |
| 217 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 218 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 219 | register "use_custom_pld" = "true" |
| 220 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 221 | device ref usb2_port1 on end |
| 222 | end |
| 223 | chip drivers/usb/acpi |
| 224 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 225 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 226 | register "use_custom_pld" = "true" |
| 227 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 228 | device ref usb2_port2 on end |
| 229 | end |
| 230 | chip drivers/usb/acpi |
| 231 | register "desc" = ""USB2 WWAN"" |
| 232 | register "type" = "UPC_TYPE_INTERNAL" |
| 233 | device ref usb2_port5 on end |
| 234 | end |
| 235 | chip drivers/usb/acpi |
| 236 | register "desc" = ""USB2 UFC"" |
| 237 | register "type" = "UPC_TYPE_INTERNAL" |
| 238 | device ref usb2_port6 on end |
| 239 | end |
| 240 | chip drivers/usb/acpi |
| 241 | register "desc" = ""USB2 WFC"" |
| 242 | register "type" = "UPC_TYPE_INTERNAL" |
| 243 | device ref usb2_port7 on end |
| 244 | end |
| 245 | chip drivers/usb/acpi |
| 246 | register "desc" = ""USB2 Bluetooth"" |
| 247 | register "type" = "UPC_TYPE_INTERNAL" |
| 248 | register "reset_gpio" = |
| 249 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 250 | device ref usb2_port8 on end |
| 251 | end |
| 252 | chip drivers/usb/acpi |
| 253 | register "desc" = ""CNVi Bluetooth"" |
| 254 | register "type" = "UPC_TYPE_INTERNAL" |
| 255 | register "reset_gpio" = |
| 256 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 257 | device ref usb2_port10 on end |
| 258 | end |
| 259 | chip drivers/usb/acpi |
| 260 | register "desc" = ""USB3 WWAN"" |
| 261 | register "type" = "UPC_TYPE_INTERNAL" |
| 262 | device ref usb3_port3 on end |
| 263 | end |
| 264 | end |
| 265 | end |
| 266 | end |
| 267 | end |
Leo Chou | f2492c3 | 2024-03-20 11:42:09 +0800 | [diff] [blame] | 268 | end |