Sheng-Liang Pan | 6e9f21f | 2021-05-04 09:09:45 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 2 | register "DdiPort1Hpd" = "0" |
| 3 | register "DdiPort2Hpd" = "0" |
| 4 | |
| 5 | register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-A / Type-C Cl |
| 6 | register "usb2_ports[8]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-A / Type-C C0 |
| 7 | |
| 8 | register "TcssAuxOri" = "1" |
| 9 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E10, .pad_auxn_dc = GPP_E13}" |
| 10 | |
| 11 | # Disable SRCCLKREQ1# |
| 12 | register "PcieClkSrcUsage[1]" = "PCIE_CLK_NOTUSED" |
Sheng-Liang Pan | 6e9f21f | 2021-05-04 09:09:45 +0800 | [diff] [blame] | 13 | |
| 14 | device domain 0 on |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 15 | device ref i2c0 on |
| 16 | chip drivers/i2c/generic |
| 17 | register "hid" = ""10EC5682"" |
| 18 | register "name" = ""RT58"" |
| 19 | register "desc" = ""Headset Codec"" |
| 20 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 21 | # Set the jd_src to RT5668_JD1 for jack detection |
| 22 | register "property_count" = "1" |
| 23 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 24 | register "property_list[0].name" = ""realtek,jd-src"" |
| 25 | register "property_list[0].integer" = "1" |
| 26 | device i2c 1a on end |
| 27 | end |
| 28 | chip drivers/i2c/max98373 |
| 29 | register "vmon_slot_no" = "0" |
| 30 | register "imon_slot_no" = "1" |
| 31 | register "uid" = "0" |
| 32 | register "desc" = ""Right Speaker Amp"" |
| 33 | register "name" = ""MAXR"" |
| 34 | device i2c 31 on end |
| 35 | end |
| 36 | chip drivers/i2c/max98373 |
| 37 | register "vmon_slot_no" = "2" |
| 38 | register "imon_slot_no" = "3" |
| 39 | register "uid" = "1" |
| 40 | register "desc" = ""Left Speaker Amp"" |
| 41 | register "name" = ""MAXL"" |
| 42 | device i2c 32 on end |
| 43 | end |
| 44 | end |
| 45 | device ref i2c1 on |
| 46 | chip drivers/i2c/hid |
| 47 | register "generic.hid" = ""ELAN90FC"" |
| 48 | register "generic.desc" = ""ELAN Touchscreen"" |
| 49 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame^] | 50 | register "generic.detect" = "1" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 51 | register "generic.reset_gpio" = |
| 52 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 53 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 54 | register "generic.reset_delay_ms" = "20" |
| 55 | register "generic.has_power_resource" = "1" |
| 56 | register "generic.disable_gpio_export_in_crs" = "1" |
| 57 | register "hid_desc_reg_offset" = "0x01" |
| 58 | device i2c 10 on end |
| 59 | end |
| 60 | chip drivers/i2c/generic |
| 61 | register "hid" = ""RAYD0001"" |
| 62 | register "desc" = ""Raydium Touchscreen"" |
Matt DeVillier | 0bffd0a | 2022-12-21 08:42:09 -0600 | [diff] [blame] | 63 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame^] | 64 | register "detect" = "1" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 65 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 66 | register "reset_delay_ms" = "1" |
| 67 | register "reset_off_delay_ms" = "2" |
| 68 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 69 | register "enable_delay_ms" = "10" |
| 70 | register "enable_off_delay_ms" = "1" |
| 71 | register "has_power_resource" = "1" |
| 72 | device i2c 39 on end |
| 73 | end |
Sheng-Liang Pan | 5a3b07d | 2021-06-25 15:57:33 +0800 | [diff] [blame] | 74 | chip drivers/i2c/hid |
| 75 | register "generic.hid" = ""GTCH7503"" |
| 76 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 77 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame^] | 78 | register "generic.detect" = "1" |
Sheng-Liang Pan | 5a3b07d | 2021-06-25 15:57:33 +0800 | [diff] [blame] | 79 | register "generic.reset_gpio" = |
| 80 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 81 | register "generic.reset_delay_ms" = "50" |
| 82 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 83 | register "generic.enable_delay_ms" = "1" |
| 84 | register "generic.has_power_resource" = "1" |
| 85 | register "generic.disable_gpio_export_in_crs" = "1" |
| 86 | register "hid_desc_reg_offset" = "0x01" |
| 87 | device i2c 40 on end |
| 88 | end |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 89 | end |
| 90 | device ref i2c2 on |
| 91 | chip drivers/i2c/sx9310 |
| 92 | register "desc" = ""SAR0 Proximity Sensor"" |
| 93 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 94 | register "speed" = "I2C_SPEED_FAST" |
| 95 | register "uid" = "0" |
| 96 | register "cs0_ground" = "0x0" |
| 97 | register "combined_sensors_count" = "3" |
| 98 | register "combined_sensors[0]" = "0" |
| 99 | register "combined_sensors[1]" = "1" |
| 100 | register "combined_sensors[2]" = "2" |
| 101 | register "resolution" = "SX9310_FINEST" |
| 102 | register "avg_pos_strength" = "512" |
| 103 | register "startup_sensor" = "0" |
| 104 | register "proxraw_strength" = "0" |
| 105 | device i2c 28 on end |
| 106 | end |
| 107 | end |
| 108 | device ref i2c5 on |
| 109 | chip drivers/i2c/generic |
| 110 | register "hid" = ""ELAN0000"" |
| 111 | register "desc" = ""ELAN Touchpad"" |
| 112 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 113 | register "wake" = "GPE0_DW2_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 114 | register "detect" = "1" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 115 | device i2c 15 on end |
| 116 | end |
| 117 | chip drivers/i2c/hid |
| 118 | register "generic.hid" = ""PNP0C50"" |
| 119 | register "generic.desc" = ""Synaptics Touchpad"" |
| 120 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 121 | register "generic.wake" = "GPE0_DW2_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 122 | register "generic.detect" = "1" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 123 | register "hid_desc_reg_offset" = "0x20" |
| 124 | device i2c 2c on end |
| 125 | end |
| 126 | end |
| 127 | device ref pch_espi on |
| 128 | chip ec/google/chromeec |
| 129 | use conn0 as mux_conn[0] |
| 130 | use conn1 as mux_conn[1] |
| 131 | device pnp 0c09.0 on end |
| 132 | end |
| 133 | end |
Furquan Shaikh | bf42db6 | 2021-08-24 13:16:35 -0700 | [diff] [blame] | 134 | device ref hda on |
| 135 | probe AUDIO MAX98357_ALC5682I_I2S |
| 136 | probe AUDIO MAX98373_ALC5682I_I2S |
| 137 | probe AUDIO MAX98373_ALC5682_SNDW |
| 138 | probe AUDIO MAX98373_ALC5682I_I2S_UP4 |
| 139 | probe AUDIO MAX98360_ALC5682I_I2S |
| 140 | end |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 141 | device ref pcie_rp9 on |
| 142 | chip soc/intel/common/block/pcie/rtd3 |
| 143 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B2)" |
| 144 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 145 | register "srcclk_pin" = "0" |
| 146 | device generic 0 on end |
| 147 | end |
| 148 | end |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 149 | device ref pmc hidden |
| 150 | # The pmc_mux chip driver is a placeholder for the |
| 151 | # PMC.MUX device in the ACPI hierarchy. |
| 152 | chip drivers/intel/pmc_mux |
| 153 | device generic 0 on |
| 154 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 155 | use usb2_port9 as usb2_port |
| 156 | use tcss_usb3_port1 as usb3_port |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 157 | device generic 0 alias conn0 on end |
| 158 | end |
| 159 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 160 | use usb2_port4 as usb2_port |
| 161 | use tcss_usb3_port2 as usb3_port |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 162 | # SBU is fixed, HSL follows CC |
| 163 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
| 164 | device generic 1 alias conn1 on end |
| 165 | end |
| 166 | end |
| 167 | end |
| 168 | end |
| 169 | device ref north_xhci on |
| 170 | chip drivers/usb/acpi |
| 171 | device ref tcss_root_hub on |
| 172 | chip drivers/usb/acpi |
| 173 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 174 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 175 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 176 | device ref tcss_usb3_port1 on end |
| 177 | end |
| 178 | chip drivers/usb/acpi |
| 179 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 180 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 181 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 182 | device ref tcss_usb3_port2 on end |
| 183 | end |
| 184 | end |
| 185 | end |
| 186 | end |
| 187 | device ref south_xhci on |
| 188 | chip drivers/usb/acpi |
| 189 | device ref xhci_root_hub on |
| 190 | chip drivers/usb/acpi |
Sheng-Liang Pan | f586df4 | 2021-06-09 14:57:33 +0800 | [diff] [blame] | 191 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 192 | register "type" = "UPC_TYPE_A" |
| 193 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
Sheng-Liang Pan | f586df4 | 2021-06-09 14:57:33 +0800 | [diff] [blame] | 194 | device ref usb2_port2 on end |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 195 | end |
| 196 | chip drivers/usb/acpi |
| 197 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 198 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 199 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 200 | device ref usb2_port4 on end |
| 201 | end |
| 202 | chip drivers/usb/acpi |
| 203 | register "desc" = ""USB2 Camera"" |
| 204 | register "type" = "UPC_TYPE_INTERNAL" |
| 205 | device ref usb2_port5 on end |
| 206 | end |
| 207 | chip drivers/usb/acpi |
| 208 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 209 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 210 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 211 | device ref usb2_port9 on end |
| 212 | end |
| 213 | chip drivers/usb/acpi |
| 214 | register "desc" = ""USB2 Bluetooth"" |
| 215 | register "type" = "UPC_TYPE_INTERNAL" |
| 216 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 217 | device ref usb2_port10 on end |
| 218 | end |
| 219 | chip drivers/usb/acpi |
Sheng-Liang Pan | f586df4 | 2021-06-09 14:57:33 +0800 | [diff] [blame] | 220 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 221 | register "type" = "UPC_TYPE_USB3_A" |
| 222 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Sheng-Liang Pan | f586df4 | 2021-06-09 14:57:33 +0800 | [diff] [blame] | 223 | device ref usb3_port2 on end |
Sheng-Liang Pan | 2922828 | 2021-06-01 19:32:11 +0800 | [diff] [blame] | 224 | end |
| 225 | end |
| 226 | end |
| 227 | end |
Sheng-Liang Pan | 6e9f21f | 2021-05-04 09:09:45 +0800 | [diff] [blame] | 228 | end |
Sheng-Liang Pan | 6e9f21f | 2021-05-04 09:09:45 +0800 | [diff] [blame] | 229 | end |