David Wu | 397b46c | 2020-10-30 09:30:28 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 2 | # BitMask where bits [3:0] are Controller 0 Channel [3:0] and |
| 3 | # bits [7:4] are Controller 1 Channel [3:0]. |
| 4 | # Enable Command Mirroring for controller 0 channel 0 and 1, |
| 5 | # and controller 1 channel 0 and 1. |
| 6 | register "CmdMirror" = "0x00000033" |
| 7 | |
David Wu | fd104e1 | 2021-01-14 13:53:17 +0800 | [diff] [blame] | 8 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-A / Type-C Port 1 |
| 9 | register "usb2_ports[4]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-A / Type-C Port 0 |
| 10 | |
David Wu | 6df0c67 | 2020-12-29 19:02:59 +0800 | [diff] [blame] | 11 | register "TcssAuxOri" = "1" |
Tim Wawrzynczak | 59a621a | 2021-03-22 10:43:42 -0600 | [diff] [blame] | 12 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E10, .pad_auxn_dc = GPP_E13}" |
David Wu | 6df0c67 | 2020-12-29 19:02:59 +0800 | [diff] [blame] | 13 | |
David Wu | 9e2761f | 2020-12-22 13:24:37 +0800 | [diff] [blame] | 14 | # Disable WLAN PCIE 7 |
| 15 | register "PcieRpEnable[6]" = "0" |
| 16 | register "PcieRpLtrEnable[6]" = "0" |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 17 | register "PcieClkSrcUsage[1]" = "PCIE_CLK_NOTUSED" |
Michael Niewöhner | 45b6080 | 2022-01-08 20:47:11 +0100 | [diff] [blame] | 18 | register "PcieRpSlotImplemented[6]" = "1" |
David Wu | 9e2761f | 2020-12-22 13:24:37 +0800 | [diff] [blame] | 19 | |
| 20 | # Disable SD Card PCIE 8 |
| 21 | register "PcieRpEnable[7]" = "0" |
| 22 | register "PcieRpLtrEnable[7]" = "0" |
| 23 | register "PcieRpHotPlug[7]" = "0" |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 24 | register "PcieClkSrcUsage[3]" = "PCIE_CLK_NOTUSED" |
David Wu | 397b46c | 2020-10-30 09:30:28 +0800 | [diff] [blame] | 25 | |
| 26 | device domain 0 on |
David Wu | 7ace66e | 2020-12-30 09:59:02 +0800 | [diff] [blame] | 27 | device ref ipu on end # IPU |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 28 | device ref i2c0 on |
| 29 | chip drivers/i2c/generic |
| 30 | register "hid" = ""10EC5682"" |
| 31 | register "name" = ""RT58"" |
| 32 | register "desc" = ""Headset Codec"" |
| 33 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_R5)" |
| 34 | # Set the jd_src to RT5668_JD1 for jack detection |
| 35 | register "property_count" = "1" |
| 36 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 37 | register "property_list[0].name" = ""realtek,jd-src"" |
| 38 | register "property_list[0].integer" = "1" |
| 39 | device i2c 1a on |
| 40 | end |
| 41 | end |
| 42 | chip drivers/i2c/max98373 |
| 43 | register "vmon_slot_no" = "0" |
| 44 | register "imon_slot_no" = "1" |
| 45 | register "uid" = "0" |
| 46 | register "desc" = ""Right Speaker Amp"" |
| 47 | register "name" = ""MAXR"" |
| 48 | device i2c 31 on |
| 49 | probe AUDIO MAX98373_ALC5682I_I2S_UP4 |
| 50 | end |
| 51 | end |
| 52 | chip drivers/i2c/max98373 |
| 53 | register "vmon_slot_no" = "2" |
| 54 | register "imon_slot_no" = "3" |
| 55 | register "uid" = "1" |
| 56 | register "desc" = ""Left Speaker Amp"" |
| 57 | register "name" = ""MAXL"" |
| 58 | device i2c 32 on |
| 59 | probe AUDIO MAX98373_ALC5682I_I2S_UP4 |
| 60 | end |
| 61 | end |
| 62 | end |
| 63 | device ref i2c1 on |
| 64 | chip drivers/i2c/hid |
| 65 | register "generic.hid" = ""ELAN9004"" |
| 66 | register "generic.desc" = ""ELAN Touchscreen"" |
| 67 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame^] | 68 | register "generic.detect" = "1" |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 69 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 70 | register "generic.reset_delay_ms" = "20" |
| 71 | register "generic.reset_off_delay_ms" = "2" |
| 72 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_F16)" |
| 73 | register "generic.enable_delay_ms" = "10" |
| 74 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)" |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 75 | register "generic.has_power_resource" = "1" |
| 76 | register "generic.disable_gpio_export_in_crs" = "1" |
| 77 | register "hid_desc_reg_offset" = "0x01" |
| 78 | device i2c 10 on end |
| 79 | end |
| 80 | end |
| 81 | device ref i2c5 on |
| 82 | chip drivers/i2c/generic |
| 83 | register "hid" = ""ELAN0000"" |
| 84 | register "desc" = ""ELAN Touchpad"" |
| 85 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 86 | register "wake" = "GPE0_DW2_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 87 | register "detect" = "1" |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 88 | device i2c 15 on end |
| 89 | end |
| 90 | end |
| 91 | device ref pch_espi on |
| 92 | chip ec/google/chromeec |
| 93 | use conn0 as mux_conn[0] |
| 94 | use conn1 as mux_conn[1] |
| 95 | device pnp 0c09.0 on end |
| 96 | end |
| 97 | end |
Furquan Shaikh | bf42db6 | 2021-08-24 13:16:35 -0700 | [diff] [blame] | 98 | device ref hda on |
| 99 | probe AUDIO MAX98357_ALC5682I_I2S |
| 100 | probe AUDIO MAX98373_ALC5682I_I2S |
| 101 | probe AUDIO MAX98373_ALC5682_SNDW |
| 102 | probe AUDIO MAX98373_ALC5682I_I2S_UP4 |
| 103 | probe AUDIO MAX98360_ALC5682I_I2S |
| 104 | end |
David Wu | f0df12d | 2020-12-22 13:42:39 +0800 | [diff] [blame] | 105 | device ref pcie_rp9 on |
| 106 | chip soc/intel/common/block/pcie/rtd3 |
| 107 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B2)" |
| 108 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 109 | register "srcclk_pin" = "0" |
| 110 | device generic 0 on end |
| 111 | end |
| 112 | end |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 113 | device ref pmc hidden |
| 114 | # The pmc_mux chip driver is a placeholder for the |
| 115 | # PMC.MUX device in the ACPI hierarchy. |
| 116 | chip drivers/intel/pmc_mux |
| 117 | device generic 0 on |
| 118 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 119 | use usb2_port5 as usb2_port |
| 120 | use tcss_usb3_port1 as usb3_port |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 121 | device generic 0 alias conn0 on end |
| 122 | end |
| 123 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 124 | use usb2_port3 as usb2_port |
| 125 | use tcss_usb3_port2 as usb3_port |
David Wu | d3a1560 | 2020-11-17 17:23:35 +0800 | [diff] [blame] | 126 | # SBU is fixed, HSL follows CC |
| 127 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
| 128 | device generic 1 alias conn1 on end |
| 129 | end |
| 130 | end |
| 131 | end |
| 132 | end |
| 133 | device ref north_xhci on |
| 134 | chip drivers/usb/acpi |
| 135 | device ref tcss_root_hub on |
| 136 | chip drivers/usb/acpi |
| 137 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 138 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 139 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 140 | device ref tcss_usb3_port1 on end |
| 141 | end |
| 142 | chip drivers/usb/acpi |
| 143 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 144 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 145 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 146 | device ref tcss_usb3_port2 on |
| 147 | probe DB_USB USB3_ACTIVE |
| 148 | end |
| 149 | end |
| 150 | end |
| 151 | end |
| 152 | end |
| 153 | device ref south_xhci on |
| 154 | chip drivers/usb/acpi |
| 155 | device ref xhci_root_hub on |
| 156 | chip drivers/usb/acpi |
| 157 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 158 | register "type" = "UPC_TYPE_A" |
| 159 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 160 | device ref usb2_port2 on |
| 161 | probe DB_USB USB3_ACTIVE |
| 162 | end |
| 163 | end |
| 164 | chip drivers/usb/acpi |
| 165 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 166 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 167 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 168 | device ref usb2_port3 on |
| 169 | probe DB_USB USB3_ACTIVE |
| 170 | end |
| 171 | end |
| 172 | chip drivers/usb/acpi |
| 173 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 174 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 175 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 176 | device ref usb2_port5 on end |
| 177 | end |
| 178 | chip drivers/usb/acpi |
| 179 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 180 | register "type" = "UPC_TYPE_USB3_A" |
| 181 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 182 | device ref usb3_port2 on |
| 183 | probe DB_USB USB3_ACTIVE |
| 184 | end |
| 185 | end |
| 186 | end |
| 187 | end |
| 188 | end |
David Wu | 397b46c | 2020-10-30 09:30:28 +0800 | [diff] [blame] | 189 | end |
David Wu | 397b46c | 2020-10-30 09:30:28 +0800 | [diff] [blame] | 190 | end |