Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 3 | register "TcssAuxOri" = "1" |
| 4 | register "DdiPort1Hpd" = "0" |
| 5 | register "DdiPort2Hpd" = "0" |
| 6 | register "IomTypeCPortPadCfg[0]" = "0x090E000A" |
| 7 | register "IomTypeCPortPadCfg[1]" = "0x090E000D" |
| 8 | |
Wisley Chen | e928391 | 2020-10-31 01:24:43 +0800 | [diff] [blame^] | 9 | # Enable EMMC PCIE 5 using clk 5 |
| 10 | register "PcieRpEnable[4]" = "1" |
| 11 | register "PcieRpLtrEnable[4]" = "1" |
| 12 | register "PcieRpHotPlug[4]" = "1" |
| 13 | register "PcieClkSrcUsage[5]" = "4" |
| 14 | register "PcieClkSrcClkReq[5]" = "5" |
| 15 | |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 16 | #+-------------------+---------------------------+ |
| 17 | #| Field | Value | |
| 18 | #+-------------------+---------------------------+ |
| 19 | #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT | |
| 20 | #| GSPI0 | cr50 TPM. Early init is | |
| 21 | #| | required to set up a BAR | |
| 22 | #| | for TPM communication | |
| 23 | #| | before memory is up | |
| 24 | #| GSPI1 | Fingerprint MCU | |
| 25 | #| I2C0 | Audio | |
| 26 | #| I2C1 | Touchscreen | |
| 27 | #| I2C2 | WLAN, SAR0 | |
| 28 | #| I2C3 | Camera, SAR1 | |
| 29 | #| I2C5 | Trackpad | |
| 30 | #+-------------------+---------------------------+ |
| 31 | register "common_soc_config" = "{ |
| 32 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 33 | .gspi[0] = { |
| 34 | .speed_mhz = 1, |
| 35 | .early_init = 1, |
| 36 | }, |
| 37 | .i2c[0] = { |
| 38 | .speed = I2C_SPEED_FAST, |
| 39 | }, |
| 40 | .i2c[1] = { |
| 41 | .speed = I2C_SPEED_FAST, |
| 42 | }, |
| 43 | .i2c[2] = { |
| 44 | .speed = I2C_SPEED_FAST, |
| 45 | }, |
| 46 | .i2c[3] = { |
| 47 | .speed = I2C_SPEED_FAST, |
| 48 | }, |
| 49 | .i2c[5] = { |
| 50 | .speed = I2C_SPEED_FAST, |
| 51 | }, |
| 52 | }" |
| 53 | |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 54 | device domain 0 on |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 55 | device ref north_xhci on |
| 56 | chip drivers/usb/acpi |
| 57 | device ref tcss_root_hub on |
| 58 | chip drivers/usb/acpi |
| 59 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 60 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 61 | register "group" = "ACPI_PLD_GROUP(4, 2)" |
| 62 | device ref tcss_usb3_port1 on end |
| 63 | end |
| 64 | chip drivers/usb/acpi |
| 65 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 66 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 67 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 68 | device ref tcss_usb3_port2 on end |
| 69 | end |
| 70 | end |
| 71 | end |
| 72 | end |
| 73 | device ref south_xhci on |
| 74 | chip drivers/usb/acpi |
| 75 | device ref xhci_root_hub on |
| 76 | chip drivers/usb/acpi |
| 77 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 78 | register "type" = "UPC_TYPE_A" |
| 79 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 80 | device ref usb2_port1 on end |
| 81 | end |
| 82 | chip drivers/usb/acpi |
| 83 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 84 | register "type" = "UPC_TYPE_A" |
| 85 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 86 | device ref usb2_port2 on |
| 87 | probe DB_USB USB3_ACTIVE |
| 88 | end |
| 89 | end |
| 90 | chip drivers/usb/acpi |
| 91 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 92 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 93 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 94 | device ref usb2_port4 on end |
| 95 | end |
| 96 | chip drivers/usb/acpi |
| 97 | register "desc" = ""USB2 Camera"" |
| 98 | register "type" = "UPC_TYPE_INTERNAL" |
| 99 | device ref usb2_port5 on end |
| 100 | end |
| 101 | chip drivers/usb/acpi |
| 102 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 103 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 104 | register "group" = "ACPI_PLD_GROUP(4, 1)" |
| 105 | device ref usb2_port9 on end |
| 106 | end |
| 107 | chip drivers/usb/acpi |
| 108 | register "desc" = ""USB2 Bluetooth"" |
| 109 | register "type" = "UPC_TYPE_INTERNAL" |
| 110 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 111 | device ref usb2_port10 on end |
| 112 | end |
| 113 | chip drivers/usb/acpi |
| 114 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 115 | register "type" = "UPC_TYPE_USB3_A" |
| 116 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 117 | device ref usb3_port1 on end |
| 118 | end |
| 119 | chip drivers/usb/acpi |
| 120 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 121 | register "type" = "UPC_TYPE_USB3_A" |
| 122 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 123 | device ref usb3_port2 on |
| 124 | probe DB_USB USB3_ACTIVE |
| 125 | end |
| 126 | end |
| 127 | end |
| 128 | end |
| 129 | end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 130 | device ref i2c0 on |
| 131 | chip drivers/i2c/generic |
| 132 | register "hid" = ""10EC5682"" |
| 133 | register "name" = ""RT58"" |
| 134 | register "desc" = ""Headset Codec"" |
| 135 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 136 | # Set the jd_src to RT5668_JD1 for jack detection |
| 137 | register "property_count" = "1" |
| 138 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 139 | register "property_list[0].name" = ""realtek,jd-src"" |
| 140 | register "property_list[0].integer" = "1" |
| 141 | device i2c 1a on end |
| 142 | end |
| 143 | end |
| 144 | device ref i2c1 on |
| 145 | chip drivers/i2c/hid |
| 146 | register "generic.hid" = ""GTCH7503"" |
| 147 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 148 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 149 | register "generic.probed" = "1" |
| 150 | register "generic.reset_gpio" = |
| 151 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 152 | register "generic.reset_delay_ms" = "50" |
| 153 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 154 | register "generic.enable_delay_ms" = "1" |
| 155 | register "generic.has_power_resource" = "1" |
| 156 | register "generic.disable_gpio_export_in_crs" = "1" |
| 157 | register "hid_desc_reg_offset" = "0x01" |
| 158 | device i2c 40 on end |
| 159 | end |
| 160 | chip drivers/i2c/generic |
| 161 | register "hid" = ""ELAN0001"" |
| 162 | register "desc" = ""ELAN Touchscreen"" |
| 163 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 164 | register "probed" = "1" |
| 165 | register "reset_gpio" = |
| 166 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 167 | register "reset_delay_ms" = "100" |
| 168 | register "reset_off_delay_ms" = "5" |
| 169 | register "has_power_resource" = "1" |
| 170 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 171 | register "enable_delay_ms" = "10" |
| 172 | register "enable_off_delay_ms" = "1" |
| 173 | device i2c 10 on end |
| 174 | end |
| 175 | end |
| 176 | device ref i2c5 on |
| 177 | chip drivers/i2c/generic |
| 178 | register "hid" = ""ELAN0000"" |
| 179 | register "desc" = ""ELAN Touchpad"" |
| 180 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 181 | register "wake" = "GPE0_DW2_15" |
| 182 | register "probed" = "1" |
| 183 | device i2c 15 on end |
| 184 | end |
| 185 | end |
| 186 | device ref hda on |
| 187 | chip drivers/generic/max98357a |
| 188 | register "hid" = ""MX98357A"" |
| 189 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 190 | register "sdmode_delay" = "5" |
| 191 | device generic 0 on end |
| 192 | end |
| 193 | end |
Wisley Chen | e928391 | 2020-10-31 01:24:43 +0800 | [diff] [blame^] | 194 | device ref pcie_rp5 on end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 195 | device ref pmc hidden |
| 196 | # The pmc_mux chip driver is a placeholder for the |
| 197 | # PMC.MUX device in the ACPI hierarchy. |
| 198 | chip drivers/intel/pmc_mux |
| 199 | device generic 0 on |
| 200 | chip drivers/intel/pmc_mux/conn |
| 201 | register "usb2_port_number" = "9" |
| 202 | register "usb3_port_number" = "1" |
| 203 | # SBU & HSL follow CC |
| 204 | device generic 0 on end |
| 205 | end |
| 206 | chip drivers/intel/pmc_mux/conn |
| 207 | register "usb2_port_number" = "4" |
| 208 | register "usb3_port_number" = "2" |
| 209 | # SBU is fixed, HSL follows CC |
| 210 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
| 211 | device generic 1 on end |
| 212 | end |
| 213 | end |
| 214 | end |
| 215 | end # PMC |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 216 | end |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 217 | end |