Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 3 |
| 3 | option USB_ABSENT 0 |
| 4 | option USB3_PS8811 1 |
| 5 | end |
| 6 | field DB_SD 4 5 |
| 7 | option SD_ABSENT 0 |
| 8 | option SD_GL9755S 1 |
| 9 | end |
| 10 | field KB_BL 7 7 |
| 11 | option KB_BL_ABSENT 0 |
| 12 | option KB_BL_PRESENT 1 |
| 13 | end |
| 14 | field AUDIO 8 10 |
| 15 | option AUDIO_UNKNOWN 0 |
| 16 | option MAX98360_ALC5682I_I2S 1 |
Malik_Hsu | 797bc1b | 2021-11-17 09:47:16 +0800 | [diff] [blame] | 17 | option MAX98360_ALC5682I_VS_I2S 2 |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 18 | end |
| 19 | field DB_LTE 11 12 |
| 20 | option LTE_ABSENT 0 |
| 21 | option LTE_USB 1 |
| 22 | end |
| 23 | end |
| 24 | |
Scott Chao | 30cb92b | 2021-05-26 08:13:04 +0800 | [diff] [blame] | 25 | chip soc/intel/alderlake |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 26 | register "sagv" = "SaGv_Enabled" |
Scott Chao | ab638c1 | 2022-04-20 15:16:06 +0800 | [diff] [blame] | 27 | register "max_dram_speed_mts" = "3733" |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 28 | |
Casper Chang | 55c1e7f | 2022-05-18 19:06:09 +0800 | [diff] [blame] | 29 | # As per Intel Advisory doc#723158, the change is required to prevent possible |
| 30 | # display flickering issue. |
| 31 | register "usb2_phy_sus_pg_disable" = "1" |
| 32 | |
Casper Chang | 0ccb7b2 | 2021-12-13 10:46:46 +0800 | [diff] [blame] | 33 | # Acoustic settings |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 34 | register "acoustic_noise_mitigation" = "1" |
| 35 | register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8" |
| 36 | register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8" |
| 37 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1" |
| 38 | register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1" |
Casper Chang | 12315b5 | 2021-09-22 22:38:28 -0400 | [diff] [blame] | 39 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 40 | # Intel Common SoC Config |
| 41 | #+-------------------+---------------------------+ |
| 42 | #| Field | Value | |
| 43 | #+-------------------+---------------------------+ |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 44 | #| GSPI1 | Fingerprint MCU | |
| 45 | #| I2C0 | Audio | |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 46 | #| I2C1 | cr50 TPM. Early init is | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 47 | #| | required to set up a BAR | |
| 48 | #| | for TPM communication | |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 49 | #| I2C2 | | |
| 50 | #| I2C3 | Touchscreen | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 51 | #| I2C5 | Trackpad | |
| 52 | #+-------------------+---------------------------+ |
| 53 | register "common_soc_config" = "{ |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 54 | .i2c[0] = { |
| 55 | .speed = I2C_SPEED_FAST, |
| 56 | }, |
| 57 | .i2c[1] = { |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 58 | .early_init = 1, |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 59 | .speed = I2C_SPEED_FAST, |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 60 | .rise_time_ns = 600, |
| 61 | .fall_time_ns = 400, |
| 62 | .data_hold_time_ns = 50, |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 63 | }, |
| 64 | .i2c[2] = { |
| 65 | .speed = I2C_SPEED_FAST, |
| 66 | }, |
| 67 | .i2c[3] = { |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 68 | .speed = I2C_SPEED_FAST, |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 69 | .rise_time_ns = 650, |
| 70 | .fall_time_ns = 400, |
| 71 | .data_hold_time_ns = 50, |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 72 | }, |
| 73 | .i2c[5] = { |
| 74 | .speed = I2C_SPEED_FAST, |
| 75 | }, |
| 76 | }" |
Scott Chao | 30cb92b | 2021-05-26 08:13:04 +0800 | [diff] [blame] | 77 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 78 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable USB2_C1 |
| 79 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A MLB Port |
| 80 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A MLB port |
| 81 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" |
Casper Chang | 621ae7c | 2021-08-27 16:34:03 +0800 | [diff] [blame] | 82 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 83 | |
| 84 | device domain 0 on |
| 85 | device ref dtt on |
| 86 | chip drivers/intel/dptf |
| 87 | ## sensor information |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 88 | register "options.tsr[0].desc" = ""CPU"" |
| 89 | register "options.tsr[1].desc" = ""SSD"" |
| 90 | register "options.tsr[2].desc" = ""CHARGER"" |
| 91 | register "options.tsr[3].desc" = ""MEMORY"" |
| 92 | register "options.tsr[4].desc" = ""TYPEC"" |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 93 | # TODO: below values are initial reference values only |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 94 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 95 | ## Passive Policy |
| 96 | register "policies.passive" = "{ |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 97 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 98 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 5000), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 99 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 92, 5000), |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 100 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 90, 5000), |
| 101 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 5000), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 102 | [5] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_4, 90, 5000), |
| 103 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 104 | }" |
| 105 | |
| 106 | ## Critical Policy |
| 107 | register "policies.critical" = "{ |
| 108 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 109 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 110 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 89, SHUTDOWN), |
| 111 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 112 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 85, SHUTDOWN), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 113 | [5] = DPTF_CRITICAL(TEMP_SENSOR_4, 85, SHUTDOWN), |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 114 | }" |
| 115 | |
| 116 | register "controls.power_limits" = "{ |
| 117 | .pl1 = { |
| 118 | .min_power = 3000, |
| 119 | .max_power = 15000, |
| 120 | .time_window_min = 28 * MSECS_PER_SEC, |
| 121 | .time_window_max = 32 * MSECS_PER_SEC, |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 122 | .granularity = 250, |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 123 | }, |
| 124 | .pl2 = { |
| 125 | .min_power = 55000, |
| 126 | .max_power = 55000, |
| 127 | .time_window_min = 28 * MSECS_PER_SEC, |
| 128 | .time_window_max = 32 * MSECS_PER_SEC, |
| 129 | .granularity = 1000, |
| 130 | } |
| 131 | }" |
| 132 | |
| 133 | ## Charger Performance Control (Control, mA) |
| 134 | register "controls.charger_perf" = "{ |
| 135 | [0] = { 255, 1700 }, |
| 136 | [1] = { 24, 1500 }, |
| 137 | [2] = { 16, 1000 }, |
| 138 | [3] = { 8, 500 } |
| 139 | }" |
Furquan Shaikh | 4aba739 | 2021-09-20 10:51:45 -0700 | [diff] [blame] | 140 | device generic 0 alias dptf_policy on end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 141 | end |
| 142 | end |
| 143 | device ref cnvi_wifi on |
| 144 | chip drivers/wifi/generic |
| 145 | register "wake" = "GPE0_PME_B0" |
| 146 | device generic 0 on end |
| 147 | end |
| 148 | end |
| 149 | device ref pcie_rp3 on |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 150 | chip soc/intel/common/block/pcie/rtd3 |
| 151 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B3)" |
Casper Chang | 0e834a9 | 2022-03-04 14:08:01 +0800 | [diff] [blame] | 152 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E20)" |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 153 | register "srcclk_pin" = "6" |
Terry Chen | 5deefc8 | 2022-03-21 11:06:04 +0800 | [diff] [blame] | 154 | register "reset_delay_ms" = "50" |
| 155 | register "enable_delay_ms" = "20" |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 156 | device generic 0 alias emmc_rtd3 on end |
| 157 | end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 158 | # Enable PCIe-to-eMMC bridge PCIE 3 using clk 6 |
| 159 | register "pch_pcie_rp[PCH_RP(3)]" = "{ |
| 160 | .clk_src = 6, |
| 161 | .clk_req = 6, |
| 162 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 163 | }" |
| 164 | end #PCIE3 BH799BB |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 165 | device ref tcss_dma0 on |
| 166 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 167 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 168 | use tcss_usb3_port1 as dfp[0].typec_port |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 169 | device generic 0 on end |
| 170 | end |
| 171 | end |
| 172 | device ref tcss_dma1 on |
| 173 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 174 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
Subrata Banik | 3d469fa | 2021-09-10 00:21:23 +0530 | [diff] [blame] | 175 | use tcss_usb3_port3 as dfp[0].typec_port |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 176 | device generic 0 on end |
| 177 | end |
| 178 | end |
Malik_Hsu | 5f52480 | 2021-07-28 14:55:14 +0800 | [diff] [blame] | 179 | device ref pcie_rp6 off end #PCIE6 WWAN |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 180 | device ref pcie_rp8 on |
| 181 | chip soc/intel/common/block/pcie/rtd3 |
| 182 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 183 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 184 | register "srcclk_pin" = "3" |
| 185 | device generic 0 on end |
| 186 | end |
| 187 | end #PCIE8 SD card |
Malik_Hsu | c5ac6d9 | 2021-07-24 18:00:44 +0800 | [diff] [blame] | 188 | device ref pcie_rp9 on |
| 189 | # Enable NVMe PCIE 9 using clk 0 |
| 190 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 191 | .clk_src = 0, |
| 192 | .clk_req = 0, |
| 193 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 194 | }" |
| 195 | end #PCIE9-12 SSD |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 196 | device ref i2c0 on |
| 197 | chip drivers/i2c/generic |
| 198 | register "hid" = ""10EC5682"" |
| 199 | register "name" = ""RT58"" |
| 200 | register "desc" = ""Headset Codec"" |
| 201 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 202 | # Set the jd_src to RT5668_JD1 for jack detection |
| 203 | register "property_count" = "1" |
| 204 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 205 | register "property_list[0].name" = ""realtek,jd-src"" |
| 206 | register "property_list[0].integer" = "1" |
Malik_Hsu | df99e57 | 2021-11-11 15:03:50 +0800 | [diff] [blame] | 207 | device i2c 1a alias audio_codec on |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 208 | probe AUDIO MAX98360_ALC5682I_I2S |
Malik_Hsu | 797bc1b | 2021-11-17 09:47:16 +0800 | [diff] [blame] | 209 | probe AUDIO MAX98360_ALC5682I_VS_I2S |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 210 | end |
| 211 | end |
| 212 | end #I2C0 |
| 213 | device ref i2c1 on |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 214 | chip drivers/i2c/tpm |
| 215 | register "hid" = ""GOOG0005"" |
| 216 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 217 | device i2c 50 on end |
| 218 | end |
| 219 | end |
| 220 | device ref i2c3 on |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 221 | chip drivers/i2c/hid |
| 222 | register "generic.hid" = ""ELAN9050"" |
| 223 | register "generic.desc" = ""ELAN Touchscreen"" |
| 224 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame^] | 225 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 226 | register "generic.reset_gpio" = |
| 227 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Casper Chang | 32a1d7e | 2022-03-30 17:30:52 +0800 | [diff] [blame] | 228 | register "generic.reset_delay_ms" = "200" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 229 | register "generic.reset_off_delay_ms" = "1" |
| 230 | register "generic.enable_gpio" = |
| 231 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 232 | register "generic.enable_delay_ms" = "6" |
| 233 | register "generic.stop_gpio" = |
| 234 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 235 | register "generic.stop_off_delay_ms" = "1" |
| 236 | register "generic.has_power_resource" = "1" |
| 237 | register "hid_desc_reg_offset" = "0x01" |
| 238 | device i2c 0x10 on end |
| 239 | end |
| 240 | chip drivers/i2c/hid |
| 241 | register "generic.hid" = ""GTCH7503"" |
| 242 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 243 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame^] | 244 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 245 | register "generic.reset_gpio" = |
Casper Chang | 8d7d3e5 | 2021-08-12 09:44:07 +0800 | [diff] [blame] | 246 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 247 | register "generic.reset_delay_ms" = "50" |
| 248 | register "generic.enable_gpio" = |
| 249 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 250 | register "generic.enable_delay_ms" = "1" |
| 251 | register "generic.has_power_resource" = "1" |
| 252 | register "hid_desc_reg_offset" = "0x01" |
| 253 | device i2c 0x40 on end |
| 254 | end |
| 255 | end |
| 256 | device ref i2c5 on |
| 257 | chip drivers/i2c/generic |
| 258 | register "hid" = ""ELAN0000"" |
| 259 | register "desc" = ""ELAN Touchpad"" |
| 260 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 261 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 262 | register "detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 263 | device i2c 15 on end |
| 264 | end |
| 265 | chip drivers/i2c/hid |
| 266 | register "generic.hid" = ""GXTP7288"" |
| 267 | register "generic.desc" = ""Goodix Touchpad"" |
| 268 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 269 | register "generic.wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 270 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 271 | register "hid_desc_reg_offset" = "0x01" |
| 272 | device i2c 2c on end |
| 273 | end |
| 274 | end |
| 275 | device ref hda on |
| 276 | chip drivers/generic/max98357a |
Malik_Hsu | 3da6528 | 2021-09-07 10:25:01 +0800 | [diff] [blame] | 277 | register "hid" = ""MX98360A"" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 278 | register "sdmode_gpio" = |
| 279 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 280 | register "sdmode_delay" = "5" |
| 281 | device generic 0 on |
| 282 | probe AUDIO MAX98360_ALC5682I_I2S |
Malik_Hsu | 4298e13 | 2021-11-24 15:06:25 +0800 | [diff] [blame] | 283 | probe AUDIO MAX98360_ALC5682I_VS_I2S |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 284 | end |
| 285 | end |
| 286 | end |
| 287 | device ref gspi1 on |
| 288 | chip drivers/spi/acpi |
| 289 | register "name" = ""CRFP"" |
| 290 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 291 | register "uid" = "1" |
| 292 | register "compat_string" = ""google,cros-ec-spi"" |
| 293 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 294 | register "wake" = "GPE0_DW2_15" |
| 295 | device spi 0 on end |
Tarun Tuli | 2b523ce | 2022-08-29 13:39:58 -0400 | [diff] [blame] | 296 | register "has_power_resource" = "1" |
| 297 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 298 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 299 | register "enable_delay_ms" = "3" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 300 | end # FPMCU |
| 301 | end |
| 302 | device ref pch_espi on |
| 303 | chip ec/google/chromeec |
| 304 | use conn0 as mux_conn[0] |
| 305 | use conn1 as mux_conn[1] |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 306 | device pnp 0c09.0 on end |
| 307 | end |
| 308 | end |
| 309 | device ref pmc hidden |
| 310 | chip drivers/intel/pmc_mux |
| 311 | device generic 0 on |
| 312 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 313 | use usb2_port1 as usb2_port |
| 314 | use tcss_usb3_port1 as usb3_port |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 315 | device generic 0 alias conn0 on end |
| 316 | end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 317 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 318 | use usb2_port3 as usb2_port |
| 319 | use tcss_usb3_port3 as usb3_port |
Scott Chao | 8ca68cf2 | 2021-07-24 16:28:51 +0800 | [diff] [blame] | 320 | device generic 1 alias conn1 on end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 321 | end |
| 322 | end |
| 323 | end |
| 324 | end |
| 325 | device ref tcss_xhci on |
| 326 | chip drivers/usb/acpi |
| 327 | device ref tcss_root_hub on |
| 328 | chip drivers/usb/acpi |
| 329 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 330 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 331 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 332 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 333 | device ref tcss_usb3_port1 on end |
| 334 | end |
| 335 | chip drivers/usb/acpi |
| 336 | register "desc" = ""USB3 Type-C Port C2 (MLB)"" |
| 337 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 338 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 339 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 340 | device ref tcss_usb3_port3 on end |
| 341 | end |
| 342 | end |
| 343 | end |
| 344 | end |
| 345 | device ref xhci on |
| 346 | chip drivers/usb/acpi |
| 347 | device ref xhci_root_hub on |
| 348 | chip drivers/usb/acpi |
| 349 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 350 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 351 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 352 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 353 | device ref usb2_port1 on end |
| 354 | end |
| 355 | chip drivers/usb/acpi |
| 356 | register "desc" = ""USB2 Type-C Port C2 (MLB)"" |
| 357 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 358 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 359 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 360 | device ref usb2_port3 on end |
| 361 | end |
| 362 | chip drivers/usb/acpi |
| 363 | register "desc" = ""USB2 WWAN"" |
| 364 | register "type" = "UPC_TYPE_INTERNAL" |
| 365 | device ref usb2_port4 on end |
| 366 | end |
| 367 | chip drivers/usb/acpi |
| 368 | register "desc" = ""USB2 Camera"" |
| 369 | register "type" = "UPC_TYPE_INTERNAL" |
| 370 | device ref usb2_port6 on end |
| 371 | end |
| 372 | chip drivers/usb/acpi |
| 373 | register "desc" = ""USB2 Type-A Port (MLB)"" |
| 374 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 375 | register "use_custom_pld" = "true" |
Subrata Banik | b6d522f | 2022-02-16 17:50:56 +0530 | [diff] [blame] | 376 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 377 | device ref usb2_port8 on end |
| 378 | end |
| 379 | chip drivers/usb/acpi |
| 380 | register "desc" = ""USB2 Type-A Port A0 (DB)"" |
| 381 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 382 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 383 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 384 | device ref usb2_port9 on end |
| 385 | end |
| 386 | chip drivers/usb/acpi |
| 387 | register "desc" = ""USB2 Bluetooth"" |
| 388 | register "type" = "UPC_TYPE_INTERNAL" |
| 389 | register "reset_gpio" = |
| 390 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 391 | device ref usb2_port10 on end |
| 392 | end |
| 393 | chip drivers/usb/acpi |
| 394 | register "desc" = ""USB3 Type-A Port A0 (DB)"" |
| 395 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 396 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 397 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 398 | device ref usb3_port1 on end |
| 399 | end |
| 400 | chip drivers/usb/acpi |
| 401 | register "desc" = ""USB3 Type-A Port (MLB)"" |
| 402 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 403 | register "use_custom_pld" = "true" |
Subrata Banik | b6d522f | 2022-02-16 17:50:56 +0530 | [diff] [blame] | 404 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 405 | device ref usb3_port2 on end |
| 406 | end |
| 407 | chip drivers/usb/acpi |
| 408 | register "desc" = ""USB3 WWAN"" |
| 409 | register "type" = "UPC_TYPE_INTERNAL" |
| 410 | device ref usb3_port4 on end |
| 411 | end |
| 412 | end |
| 413 | end |
| 414 | end |
| 415 | end |
Scott Chao | 30cb92b | 2021-05-26 08:13:04 +0800 | [diff] [blame] | 416 | end |