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 |
Won Chung | d64da18 | 2023-07-31 22:59:55 +0000 | [diff] [blame] | 85 | device ref igpu on |
| 86 | chip drivers/gfx/generic |
| 87 | register "device_count" = "6" |
| 88 | # DDIA for eDP |
Matt DeVillier | 4e685bf | 2024-01-19 20:37:58 -0600 | [diff] [blame] | 89 | register "device[0].name" = ""LCD0"" |
Matt DeVillier | cf29efa | 2024-01-16 18:46:20 -0600 | [diff] [blame] | 90 | # Internal panel on the first port of the graphics chip |
Matt DeVillier | 1810a18 | 2024-01-26 16:09:42 -0600 | [diff] [blame^] | 91 | register "device[0].type" = "panel" |
Won Chung | d64da18 | 2023-07-31 22:59:55 +0000 | [diff] [blame] | 92 | # DDIB for HDMI |
| 93 | register "device[1].name" = ""DD01"" |
| 94 | # TCP0 (DP-1) for port C0 |
| 95 | register "device[2].name" = ""DD02"" |
| 96 | register "device[2].use_pld" = "true" |
| 97 | register "device[2].pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 98 | # TCP1 (DP-2) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP1 |
| 99 | register "device[3].name" = ""DD03"" |
| 100 | # TCP2 (DP-3) for port C2 |
| 101 | register "device[4].name" = ""DD04"" |
| 102 | register "device[4].use_pld" = "true" |
| 103 | register "device[4].pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 104 | # TCP3 (DP-4) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP3 |
| 105 | register "device[5].name" = ""DD05"" |
| 106 | device generic 0 on end |
| 107 | end |
| 108 | end # Integrated Graphics Device |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 109 | device ref dtt on |
| 110 | chip drivers/intel/dptf |
| 111 | ## sensor information |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 112 | register "options.tsr[0].desc" = ""CPU"" |
| 113 | register "options.tsr[1].desc" = ""SSD"" |
| 114 | register "options.tsr[2].desc" = ""CHARGER"" |
| 115 | register "options.tsr[3].desc" = ""MEMORY"" |
| 116 | register "options.tsr[4].desc" = ""TYPEC"" |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 117 | # TODO: below values are initial reference values only |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 118 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 119 | ## Passive Policy |
| 120 | register "policies.passive" = "{ |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 121 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 122 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 5000), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 123 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 92, 5000), |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 124 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 90, 5000), |
| 125 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 5000), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 126 | [5] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_4, 90, 5000), |
| 127 | |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 128 | }" |
| 129 | |
| 130 | ## Critical Policy |
| 131 | register "policies.critical" = "{ |
| 132 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 133 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 134 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 89, SHUTDOWN), |
| 135 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 136 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 85, SHUTDOWN), |
Ariel_Fang | 8140691 | 2021-12-14 17:00:56 +0800 | [diff] [blame] | 137 | [5] = DPTF_CRITICAL(TEMP_SENSOR_4, 85, SHUTDOWN), |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 138 | }" |
| 139 | |
| 140 | register "controls.power_limits" = "{ |
| 141 | .pl1 = { |
| 142 | .min_power = 3000, |
| 143 | .max_power = 15000, |
| 144 | .time_window_min = 28 * MSECS_PER_SEC, |
| 145 | .time_window_max = 32 * MSECS_PER_SEC, |
Ariel_Fang | 7fe266d | 2021-11-11 17:49:40 +0800 | [diff] [blame] | 146 | .granularity = 250, |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 147 | }, |
| 148 | .pl2 = { |
| 149 | .min_power = 55000, |
| 150 | .max_power = 55000, |
| 151 | .time_window_min = 28 * MSECS_PER_SEC, |
| 152 | .time_window_max = 32 * MSECS_PER_SEC, |
| 153 | .granularity = 1000, |
| 154 | } |
| 155 | }" |
| 156 | |
| 157 | ## Charger Performance Control (Control, mA) |
| 158 | register "controls.charger_perf" = "{ |
| 159 | [0] = { 255, 1700 }, |
| 160 | [1] = { 24, 1500 }, |
| 161 | [2] = { 16, 1000 }, |
| 162 | [3] = { 8, 500 } |
| 163 | }" |
Furquan Shaikh | 4aba739 | 2021-09-20 10:51:45 -0700 | [diff] [blame] | 164 | device generic 0 alias dptf_policy on end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 165 | end |
| 166 | end |
| 167 | device ref cnvi_wifi on |
| 168 | chip drivers/wifi/generic |
| 169 | register "wake" = "GPE0_PME_B0" |
| 170 | device generic 0 on end |
| 171 | end |
| 172 | end |
| 173 | device ref pcie_rp3 on |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 174 | chip soc/intel/common/block/pcie/rtd3 |
| 175 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B3)" |
Casper Chang | 0e834a9 | 2022-03-04 14:08:01 +0800 | [diff] [blame] | 176 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E20)" |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 177 | register "srcclk_pin" = "6" |
Terry Chen | 5deefc8 | 2022-03-21 11:06:04 +0800 | [diff] [blame] | 178 | register "reset_delay_ms" = "50" |
| 179 | register "enable_delay_ms" = "20" |
Malik_Hsu | 434fa63 | 2021-11-11 10:15:28 +0800 | [diff] [blame] | 180 | device generic 0 alias emmc_rtd3 on end |
| 181 | end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 182 | # Enable PCIe-to-eMMC bridge PCIE 3 using clk 6 |
| 183 | register "pch_pcie_rp[PCH_RP(3)]" = "{ |
| 184 | .clk_src = 6, |
| 185 | .clk_req = 6, |
| 186 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 187 | }" |
| 188 | end #PCIE3 BH799BB |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 189 | device ref tcss_dma0 on |
| 190 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 191 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 192 | use tcss_usb3_port1 as dfp[0].typec_port |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 193 | device generic 0 on end |
| 194 | end |
| 195 | end |
| 196 | device ref tcss_dma1 on |
| 197 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 198 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
Subrata Banik | 3d469fa | 2021-09-10 00:21:23 +0530 | [diff] [blame] | 199 | use tcss_usb3_port3 as dfp[0].typec_port |
Casper Chang | 9ce8cb1 | 2021-06-28 16:05:52 +0800 | [diff] [blame] | 200 | device generic 0 on end |
| 201 | end |
| 202 | end |
Malik_Hsu | 5f52480 | 2021-07-28 14:55:14 +0800 | [diff] [blame] | 203 | device ref pcie_rp6 off end #PCIE6 WWAN |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 204 | device ref pcie_rp8 on |
| 205 | chip soc/intel/common/block/pcie/rtd3 |
| 206 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 207 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 208 | register "srcclk_pin" = "3" |
| 209 | device generic 0 on end |
| 210 | end |
| 211 | end #PCIE8 SD card |
Malik_Hsu | c5ac6d9 | 2021-07-24 18:00:44 +0800 | [diff] [blame] | 212 | device ref pcie_rp9 on |
| 213 | # Enable NVMe PCIE 9 using clk 0 |
| 214 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 215 | .clk_src = 0, |
| 216 | .clk_req = 0, |
| 217 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 218 | }" |
| 219 | end #PCIE9-12 SSD |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 220 | device ref i2c0 on |
| 221 | chip drivers/i2c/generic |
| 222 | register "hid" = ""10EC5682"" |
| 223 | register "name" = ""RT58"" |
| 224 | register "desc" = ""Headset Codec"" |
| 225 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 226 | # Set the jd_src to RT5668_JD1 for jack detection |
| 227 | register "property_count" = "1" |
| 228 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 229 | register "property_list[0].name" = ""realtek,jd-src"" |
| 230 | register "property_list[0].integer" = "1" |
Malik_Hsu | df99e57 | 2021-11-11 15:03:50 +0800 | [diff] [blame] | 231 | device i2c 1a alias audio_codec on |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 232 | probe AUDIO MAX98360_ALC5682I_I2S |
Malik_Hsu | 797bc1b | 2021-11-17 09:47:16 +0800 | [diff] [blame] | 233 | probe AUDIO MAX98360_ALC5682I_VS_I2S |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 234 | end |
| 235 | end |
| 236 | end #I2C0 |
| 237 | device ref i2c1 on |
Malik_Hsu | ac812ed | 2021-12-03 09:44:36 +0800 | [diff] [blame] | 238 | chip drivers/i2c/tpm |
| 239 | register "hid" = ""GOOG0005"" |
| 240 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 241 | device i2c 50 on end |
| 242 | end |
| 243 | end |
| 244 | device ref i2c3 on |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 245 | chip drivers/i2c/hid |
| 246 | register "generic.hid" = ""ELAN9050"" |
| 247 | register "generic.desc" = ""ELAN Touchscreen"" |
| 248 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 249 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 250 | register "generic.reset_gpio" = |
| 251 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Casper Chang | 32a1d7e | 2022-03-30 17:30:52 +0800 | [diff] [blame] | 252 | register "generic.reset_delay_ms" = "200" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 253 | register "generic.reset_off_delay_ms" = "1" |
| 254 | register "generic.enable_gpio" = |
| 255 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 256 | register "generic.enable_delay_ms" = "6" |
| 257 | register "generic.stop_gpio" = |
| 258 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 259 | register "generic.stop_off_delay_ms" = "1" |
| 260 | register "generic.has_power_resource" = "1" |
| 261 | register "hid_desc_reg_offset" = "0x01" |
| 262 | device i2c 0x10 on end |
| 263 | end |
| 264 | chip drivers/i2c/hid |
| 265 | register "generic.hid" = ""GTCH7503"" |
| 266 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 267 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 268 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 269 | register "generic.reset_gpio" = |
Casper Chang | 8d7d3e5 | 2021-08-12 09:44:07 +0800 | [diff] [blame] | 270 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 271 | register "generic.reset_delay_ms" = "50" |
| 272 | register "generic.enable_gpio" = |
| 273 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 274 | register "generic.enable_delay_ms" = "1" |
| 275 | register "generic.has_power_resource" = "1" |
| 276 | register "hid_desc_reg_offset" = "0x01" |
| 277 | device i2c 0x40 on end |
| 278 | end |
| 279 | end |
| 280 | device ref i2c5 on |
| 281 | chip drivers/i2c/generic |
| 282 | register "hid" = ""ELAN0000"" |
| 283 | register "desc" = ""ELAN Touchpad"" |
| 284 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 285 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 286 | register "detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 287 | device i2c 15 on end |
| 288 | end |
| 289 | chip drivers/i2c/hid |
| 290 | register "generic.hid" = ""GXTP7288"" |
| 291 | register "generic.desc" = ""Goodix Touchpad"" |
| 292 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 293 | register "generic.wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 294 | register "generic.detect" = "1" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 295 | register "hid_desc_reg_offset" = "0x01" |
| 296 | device i2c 2c on end |
| 297 | end |
| 298 | end |
| 299 | device ref hda on |
| 300 | chip drivers/generic/max98357a |
Malik_Hsu | 3da6528 | 2021-09-07 10:25:01 +0800 | [diff] [blame] | 301 | register "hid" = ""MX98360A"" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 302 | register "sdmode_gpio" = |
| 303 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 304 | register "sdmode_delay" = "5" |
| 305 | device generic 0 on |
| 306 | probe AUDIO MAX98360_ALC5682I_I2S |
Malik_Hsu | 4298e13 | 2021-11-24 15:06:25 +0800 | [diff] [blame] | 307 | probe AUDIO MAX98360_ALC5682I_VS_I2S |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 308 | end |
| 309 | end |
| 310 | end |
| 311 | device ref gspi1 on |
| 312 | chip drivers/spi/acpi |
| 313 | register "name" = ""CRFP"" |
| 314 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 315 | register "uid" = "1" |
| 316 | register "compat_string" = ""google,cros-ec-spi"" |
| 317 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 318 | register "wake" = "GPE0_DW2_15" |
Matt DeVillier | af46b47 | 2023-10-28 11:16:14 -0500 | [diff] [blame] | 319 | device spi 0 hidden end |
Tarun Tuli | 2b523ce | 2022-08-29 13:39:58 -0400 | [diff] [blame] | 320 | register "has_power_resource" = "1" |
| 321 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 322 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 323 | register "enable_delay_ms" = "3" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 324 | end # FPMCU |
| 325 | end |
| 326 | device ref pch_espi on |
| 327 | chip ec/google/chromeec |
| 328 | use conn0 as mux_conn[0] |
| 329 | use conn1 as mux_conn[1] |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 330 | device pnp 0c09.0 on end |
| 331 | end |
| 332 | end |
| 333 | device ref pmc hidden |
| 334 | chip drivers/intel/pmc_mux |
| 335 | device generic 0 on |
| 336 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 337 | use usb2_port1 as usb2_port |
| 338 | use tcss_usb3_port1 as usb3_port |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 339 | device generic 0 alias conn0 on end |
| 340 | end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 341 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 342 | use usb2_port3 as usb2_port |
| 343 | use tcss_usb3_port3 as usb3_port |
Scott Chao | 8ca68cf2 | 2021-07-24 16:28:51 +0800 | [diff] [blame] | 344 | device generic 1 alias conn1 on end |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 345 | end |
| 346 | end |
| 347 | end |
| 348 | end |
| 349 | device ref tcss_xhci on |
| 350 | chip drivers/usb/acpi |
| 351 | device ref tcss_root_hub on |
| 352 | chip drivers/usb/acpi |
| 353 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 354 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 355 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 356 | 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] | 357 | device ref tcss_usb3_port1 on end |
| 358 | end |
| 359 | chip drivers/usb/acpi |
| 360 | register "desc" = ""USB3 Type-C Port C2 (MLB)"" |
| 361 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 362 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 363 | 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] | 364 | device ref tcss_usb3_port3 on end |
| 365 | end |
| 366 | end |
| 367 | end |
| 368 | end |
| 369 | device ref xhci on |
| 370 | chip drivers/usb/acpi |
| 371 | device ref xhci_root_hub on |
| 372 | chip drivers/usb/acpi |
| 373 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 374 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 375 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 376 | 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] | 377 | device ref usb2_port1 on end |
| 378 | end |
| 379 | chip drivers/usb/acpi |
| 380 | register "desc" = ""USB2 Type-C Port C2 (MLB)"" |
| 381 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
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_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Casper Chang | 181fce2 | 2021-06-19 10:32:37 +0800 | [diff] [blame] | 384 | device ref usb2_port3 on end |
| 385 | end |
| 386 | chip drivers/usb/acpi |
| 387 | register "desc" = ""USB2 WWAN"" |
| 388 | register "type" = "UPC_TYPE_INTERNAL" |
| 389 | device ref usb2_port4 on end |
| 390 | end |
| 391 | chip drivers/usb/acpi |
| 392 | register "desc" = ""USB2 Camera"" |
| 393 | register "type" = "UPC_TYPE_INTERNAL" |
| 394 | device ref usb2_port6 on end |
| 395 | end |
| 396 | chip drivers/usb/acpi |
| 397 | register "desc" = ""USB2 Type-A Port (MLB)"" |
| 398 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 399 | register "use_custom_pld" = "true" |
Subrata Banik | b6d522f | 2022-02-16 17:50:56 +0530 | [diff] [blame] | 400 | 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] | 401 | device ref usb2_port8 on end |
| 402 | end |
| 403 | chip drivers/usb/acpi |
| 404 | register "desc" = ""USB2 Type-A Port A0 (DB)"" |
| 405 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 406 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 407 | 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] | 408 | device ref usb2_port9 on end |
| 409 | end |
| 410 | chip drivers/usb/acpi |
| 411 | register "desc" = ""USB2 Bluetooth"" |
| 412 | register "type" = "UPC_TYPE_INTERNAL" |
| 413 | register "reset_gpio" = |
| 414 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 415 | device ref usb2_port10 on end |
| 416 | end |
| 417 | chip drivers/usb/acpi |
| 418 | register "desc" = ""USB3 Type-A Port A0 (DB)"" |
| 419 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 420 | register "use_custom_pld" = "true" |
Won Chung | 0d89e15 | 2022-05-23 22:47:02 +0000 | [diff] [blame] | 421 | 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] | 422 | device ref usb3_port1 on end |
| 423 | end |
| 424 | chip drivers/usb/acpi |
| 425 | register "desc" = ""USB3 Type-A Port (MLB)"" |
| 426 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 427 | register "use_custom_pld" = "true" |
Subrata Banik | b6d522f | 2022-02-16 17:50:56 +0530 | [diff] [blame] | 428 | 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] | 429 | device ref usb3_port2 on end |
| 430 | end |
| 431 | chip drivers/usb/acpi |
| 432 | register "desc" = ""USB3 WWAN"" |
| 433 | register "type" = "UPC_TYPE_INTERNAL" |
| 434 | device ref usb3_port4 on end |
| 435 | end |
| 436 | end |
| 437 | end |
| 438 | end |
| 439 | end |
Scott Chao | 30cb92b | 2021-05-26 08:13:04 +0800 | [diff] [blame] | 440 | end |