Raymond Chung | e59c5f8 | 2022-07-27 12:49:44 +0800 | [diff] [blame] | 1 | chip soc/intel/alderlake |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 2 | |
| 3 | register "usb2_ports[2]" = "USB2_PORT_EMPTY" |
| 4 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" |
Raymond Chung | 7c9753c | 2022-11-24 15:04:14 +0800 | [diff] [blame] | 5 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # UFCamera |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 6 | |
| 7 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" |
| 8 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" |
| 9 | |
| 10 | register "tcss_ports[2]" = "TCSS_PORT_EMPTY" |
| 11 | |
| 12 | register "serial_io_i2c_mode" = "{ |
| 13 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 14 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 15 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
Mike Shih | c5625c5 | 2023-01-10 14:35:46 +0800 | [diff] [blame] | 16 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 17 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 18 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 19 | }" |
| 20 | |
| 21 | register "serial_io_gspi_mode" = "{ |
| 22 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 23 | [PchSerialIoIndexGSPI1] = PchSerialIoDisabled, |
| 24 | }" |
| 25 | |
| 26 | # Enable eDP in Port A |
| 27 | register "ddi_portA_config" = "1" |
| 28 | |
| 29 | register "ddi_ports_config" = "{ |
| 30 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 31 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 32 | }" |
| 33 | |
Derek Huang | 3d2df35 | 2022-10-21 10:39:36 +0000 | [diff] [blame] | 34 | register "sagv" = "SaGv_Enabled" |
Raymond Chung | e59c5f8 | 2022-07-27 12:49:44 +0800 | [diff] [blame] | 35 | |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 36 | # Intel Common SoC Config |
| 37 | #+-------------------+---------------------------+ |
| 38 | #| Field | Value | |
| 39 | #+-------------------+---------------------------+ |
| 40 | #| I2C0 | Audio | |
| 41 | #| I2C1 | cr50 TPM. Early init is | |
| 42 | #| | required to set up a BAR | |
| 43 | #| | for TPM communication | |
Mike Shih | c5625c5 | 2023-01-10 14:35:46 +0800 | [diff] [blame] | 44 | #| I2C3 | TouchScreen | |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 45 | #+-------------------+---------------------------+ |
| 46 | register "common_soc_config" = "{ |
| 47 | .i2c[0] = { |
| 48 | .speed = I2C_SPEED_FAST, |
| 49 | }, |
| 50 | .i2c[1] = { |
| 51 | .early_init = 1, |
| 52 | .speed = I2C_SPEED_FAST, |
| 53 | .rise_time_ns = 600, |
| 54 | .fall_time_ns = 400, |
| 55 | .data_hold_time_ns = 50, |
| 56 | }, |
Mike Shih | c5625c5 | 2023-01-10 14:35:46 +0800 | [diff] [blame] | 57 | .i2c[3] = { |
| 58 | .speed = I2C_SPEED_FAST, |
| 59 | .rise_time_ns = 600, |
| 60 | .fall_time_ns = 400, |
| 61 | .data_hold_time_ns = 50, |
| 62 | }, |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 63 | }" |
Raymond Chung | e59c5f8 | 2022-07-27 12:49:44 +0800 | [diff] [blame] | 64 | |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 65 | device domain 0 on |
| 66 | device ref pcie4_0 on |
| 67 | # Enable CPU PCIE RP 1 using CLK 0 |
| 68 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 69 | .clk_req = 0, |
| 70 | .clk_src = 0, |
| 71 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 72 | }" |
| 73 | end |
| 74 | device ref tcss_xhci on |
| 75 | chip drivers/usb/acpi |
| 76 | device ref tcss_root_hub on |
| 77 | chip drivers/usb/acpi |
| 78 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 79 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 80 | register "use_custom_pld" = "true" |
| 81 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 1))" |
Ron Lee | 558952a | 2022-12-13 19:48:59 +0800 | [diff] [blame] | 82 | register "usb_lpm_incapable" = "true" |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 83 | device ref tcss_usb3_port1 on end |
| 84 | end |
| 85 | chip drivers/usb/acpi |
| 86 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 87 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 88 | register "use_custom_pld" = "true" |
| 89 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Ron Lee | 558952a | 2022-12-13 19:48:59 +0800 | [diff] [blame] | 90 | register "usb_lpm_incapable" = "true" |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 91 | device ref tcss_usb3_port2 on end |
| 92 | end |
| 93 | end |
| 94 | end |
| 95 | end |
| 96 | device ref xhci on |
| 97 | chip drivers/usb/acpi |
| 98 | device ref xhci_root_hub on |
| 99 | chip drivers/usb/acpi |
| 100 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 101 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 102 | register "use_custom_pld" = "true" |
| 103 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 104 | device ref usb2_port1 on end |
| 105 | end |
| 106 | chip drivers/usb/acpi |
| 107 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 108 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 109 | register "use_custom_pld" = "true" |
| 110 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 111 | device ref usb2_port2 on end |
| 112 | end |
| 113 | chip drivers/usb/acpi |
Raymond Chung | 7c9753c | 2022-11-24 15:04:14 +0800 | [diff] [blame] | 114 | register "desc" = ""UFCamera"" |
| 115 | register "type" = "UPC_TYPE_INTERNAL" |
| 116 | register "has_power_resource" = "1" |
| 117 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A17)" |
| 118 | register "enable_delay_ms" = "20" |
| 119 | device ref usb2_port5 on end |
| 120 | end |
| 121 | chip drivers/usb/acpi |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 122 | register "desc" = ""USB2 Type-A Port A3 (MLB)"" |
| 123 | register "type" = "UPC_TYPE_A" |
| 124 | register "use_custom_pld" = "true" |
| 125 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(5, 1))" |
| 126 | device ref usb2_port6 on end |
| 127 | end |
| 128 | chip drivers/usb/acpi |
| 129 | register "desc" = ""USB2 Type-A Port A2 (MLB)"" |
| 130 | register "type" = "UPC_TYPE_A" |
| 131 | register "use_custom_pld" = "true" |
| 132 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(6, 1))" |
| 133 | device ref usb2_port7 on end |
| 134 | end |
| 135 | chip drivers/usb/acpi |
| 136 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 137 | register "type" = "UPC_TYPE_A" |
| 138 | register "use_custom_pld" = "true" |
| 139 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 1))" |
| 140 | device ref usb2_port8 on end |
| 141 | end |
| 142 | chip drivers/usb/acpi |
| 143 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 144 | register "type" = "UPC_TYPE_A" |
| 145 | register "use_custom_pld" = "true" |
| 146 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 147 | device ref usb2_port9 on end |
| 148 | end |
| 149 | chip drivers/usb/acpi |
| 150 | register "desc" = ""USB2 Bluetooth"" |
| 151 | register "type" = "UPC_TYPE_INTERNAL" |
| 152 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 153 | device ref usb2_port10 on end |
| 154 | end |
| 155 | chip drivers/usb/acpi |
| 156 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 157 | register "type" = "UPC_TYPE_USB3_A" |
| 158 | register "use_custom_pld" = "true" |
| 159 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 160 | device ref usb3_port1 on end |
| 161 | end |
| 162 | chip drivers/usb/acpi |
| 163 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 164 | register "type" = "UPC_TYPE_USB3_A" |
| 165 | register "use_custom_pld" = "true" |
| 166 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 1))" |
| 167 | device ref usb3_port2 on end |
| 168 | end |
| 169 | end |
| 170 | end |
| 171 | end |
Raymond Chung | 3e6abc9 | 2022-11-24 15:21:20 +0800 | [diff] [blame] | 172 | device ref i2c0 on |
| 173 | chip drivers/i2c/nau8825 |
| 174 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 175 | register "jkdet_enable" = "1" |
| 176 | register "jkdet_pull_enable" = "0" |
| 177 | register "jkdet_pull_up" = "0" |
| 178 | register "jkdet_polarity" = "1" # ActiveLow |
| 179 | register "vref_impedance" = "2" # 125kOhm |
| 180 | register "micbias_voltage" = "6" # 2.754 |
| 181 | register "sar_threshold_num" = "4" |
| 182 | register "sar_threshold[0]" = "0x0C" |
| 183 | register "sar_threshold[1]" = "0x1C" |
| 184 | register "sar_threshold[2]" = "0x38" |
| 185 | register "sar_threshold[3]" = "0x60" |
| 186 | register "sar_hysteresis" = "1" |
| 187 | register "sar_voltage" = "6" |
| 188 | register "sar_compare_time" = "0" # 500ns |
| 189 | register "sar_sampling_time" = "0" # 2us |
| 190 | register "short_key_debounce" = "2" # 100ms |
| 191 | register "jack_insert_debounce" = "7" # 512ms |
| 192 | register "jack_eject_debounce" = "7" # 512ms |
| 193 | device i2c 1a on end |
| 194 | end # Audio Nau8825 |
| 195 | end # I2C0 |
Mike Shih | c5625c5 | 2023-01-10 14:35:46 +0800 | [diff] [blame] | 196 | device ref i2c3 on |
| 197 | chip drivers/i2c/hid |
| 198 | register "generic.hid" = ""LM230001"" |
| 199 | register "generic.desc" = ""LM238 Touchscreen"" |
| 200 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 201 | register "generic.detect" = "1" |
Mike Shih | c5625c5 | 2023-01-10 14:35:46 +0800 | [diff] [blame] | 202 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C6)" |
| 203 | register "generic.enable_delay_ms" = "6" |
| 204 | register "generic.has_power_resource" = "1" |
| 205 | device i2c 34 on end |
| 206 | end |
| 207 | end # I2C3 |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 208 | device ref pcie_rp5 on |
| 209 | # Enable PCIE 5 using clk 2 |
| 210 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 211 | .clk_src = 2, |
| 212 | .clk_req = 2, |
| 213 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 214 | }" |
| 215 | chip soc/intel/common/block/pcie/rtd3 |
| 216 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" |
| 217 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H20)" |
| 218 | register "srcclk_pin" = "2" |
| 219 | device generic 0 on end |
| 220 | end |
| 221 | end #PCIE5 WLAN |
| 222 | device ref pcie_rp7 on |
| 223 | # Enable PCIE 7 using clk 6 |
| 224 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 225 | .clk_src = 6, |
| 226 | .clk_req = 6, |
| 227 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 228 | }" |
| 229 | chip drivers/net |
| 230 | register "customized_leds" = "0x0843" |
| 231 | register "wake" = "GPE0_DW0_07" #GPP_A7 |
| 232 | register "device_index" = "0" |
Matt DeVillier | 5b4bbe5 | 2023-11-19 16:22:21 -0600 | [diff] [blame^] | 233 | device pci 00.0 on end |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 234 | end |
| 235 | end #PCIE7 RTL8111K Ethernet NIC |
| 236 | device ref pcie_rp8 off end |
| 237 | device ref pch_espi on |
| 238 | chip ec/google/chromeec |
| 239 | use conn0 as mux_conn[0] |
| 240 | use conn1 as mux_conn[1] |
| 241 | device pnp 0c09.0 on end |
| 242 | end |
| 243 | end |
| 244 | device ref pmc hidden |
| 245 | chip drivers/intel/pmc_mux |
| 246 | device generic 0 on |
| 247 | chip drivers/intel/pmc_mux/conn |
| 248 | use usb2_port1 as usb2_port |
| 249 | use tcss_usb3_port1 as usb3_port |
| 250 | device generic 0 alias conn0 on end |
| 251 | end |
| 252 | chip drivers/intel/pmc_mux/conn |
| 253 | use usb2_port2 as usb2_port |
| 254 | use tcss_usb3_port2 as usb3_port |
| 255 | device generic 1 alias conn1 on end |
| 256 | end |
| 257 | end |
| 258 | end |
| 259 | end |
Raymond Chung | 3e6abc9 | 2022-11-24 15:21:20 +0800 | [diff] [blame] | 260 | device ref hda on |
| 261 | chip drivers/generic/alc1015 |
| 262 | register "hid" = ""RTL1015"" |
| 263 | device generic 0 on end |
| 264 | end # RT1015 Amplifier |
| 265 | end # Intel HDA |
Raymond Chung | d999a25 | 2022-11-02 14:18:55 +0800 | [diff] [blame] | 266 | end |
Raymond Chung | e59c5f8 | 2022-07-27 12:49:44 +0800 | [diff] [blame] | 267 | end |