Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO 8 10 |
| 3 | option NONE 0 |
| 4 | option MTL_ALC1019_ALC5682I_I2S 1 |
| 5 | option MTL_MAX98373_ALC5682_SNDW 2 |
| 6 | option MTL_ALC711_SNDW 3 |
| 7 | option MTL_ALC5682I_MAX9857A_I2S 4 |
| 8 | end |
| 9 | end |
| 10 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 11 | chip soc/intel/meteorlake |
| 12 | |
Harsha B R | ec0a85b | 2022-12-16 12:30:28 +0530 | [diff] [blame] | 13 | # GPE configuration |
| 14 | register "pmc_gpe0_dw0" = "GPP_B" |
| 15 | register "pmc_gpe0_dw1" = "GPP_D" |
| 16 | register "pmc_gpe0_dw2" = "GPP_E" |
| 17 | |
Jamie Ryu | 071d7f3 | 2022-07-22 12:29:57 -0700 | [diff] [blame] | 18 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 19 | register "gen1_dec" = "0x00fc0801" |
| 20 | register "gen2_dec" = "0x000c0201" |
| 21 | # EC memory map range is 0x900-0x9ff |
| 22 | register "gen3_dec" = "0x00fc0901" |
| 23 | |
Harsha B R | 7fb5bf8 | 2022-12-16 12:47:55 +0530 | [diff] [blame] | 24 | register "serial_io_uart_mode" = "{ |
| 25 | [PchSerialIoIndexUART0] = PchSerialIoPci, |
| 26 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 27 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 28 | }" |
| 29 | |
Harsha B R | 4954a0f | 2022-12-21 11:08:46 +0530 | [diff] [blame] | 30 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
| 31 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C1 |
| 32 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C2 |
| 33 | register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C3 |
| 34 | register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-A Port A0 |
| 35 | register "usb2_ports[5]" = "USB2_PORT_MID(OC0)" # Type-A Port A1 |
| 36 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # FPS connector |
| 37 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN / MCF |
| 38 | register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # MCF / M.2 WWAN |
| 39 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WLAN |
| 40 | |
| 41 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3.2_Type-A1 / M.2 WWAN |
| 42 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3.2_Type-A0 / USB Flex Connector |
| 43 | |
| 44 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC0)" |
| 45 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)" |
| 46 | register "tcss_ports[2]" = "TCSS_PORT_DEFAULT(OC0)" |
| 47 | register "tcss_ports[3]" = "TCSS_PORT_DEFAULT(OC0)" |
| 48 | |
Harsha B R | 48f0b11 | 2023-02-01 10:47:20 +0530 | [diff] [blame] | 49 | # Enable CNVi BT |
| 50 | register "cnvi_bt_core" = "true" |
| 51 | |
Usha P | df6bc33 | 2023-01-16 15:03:13 +0530 | [diff] [blame] | 52 | # Enable S0ix |
| 53 | register "s0ix_enable" = "1" |
| 54 | |
Harsha B R | 9c471e7 | 2023-01-31 15:45:22 +0530 | [diff] [blame] | 55 | # Enable EDP in PortA |
| 56 | register "ddi_port_A_config" = "1" |
| 57 | # Enable HDMI in Port B |
| 58 | register "ddi_ports_config" = "{ |
| 59 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 60 | }" |
| 61 | |
Harsha B R | 306bd40 | 2023-01-31 18:49:32 +0530 | [diff] [blame] | 62 | register "serial_io_i2c_mode" = "{ |
| 63 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 64 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 65 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 66 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 67 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 68 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 69 | }" |
| 70 | |
| 71 | # Intel Common SoC Config |
| 72 | register "common_soc_config" = "{ |
| 73 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 74 | .i2c[0] = { |
| 75 | .speed = I2C_SPEED_FAST, |
| 76 | }, |
| 77 | .i2c[1] = { |
| 78 | .speed = I2C_SPEED_FAST, |
| 79 | }, |
| 80 | .i2c[3] = { |
| 81 | .speed = I2C_SPEED_FAST, |
| 82 | }, |
| 83 | }" |
| 84 | |
Harsha B R | a891f71 | 2023-02-01 13:20:35 +0530 | [diff] [blame] | 85 | register "serial_io_gspi_mode" = "{ |
| 86 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 87 | [PchSerialIoIndexGSPI1] = PchSerialIoPci, |
| 88 | }" |
| 89 | |
| 90 | register "serial_io_gspi_cs_mode" = "{ |
| 91 | [PchSerialIoIndexGSPI0] = 0, |
| 92 | [PchSerialIoIndexGSPI1] = 0, |
| 93 | }" |
| 94 | |
| 95 | register "serial_io_gspi_cs_state" = "{ |
| 96 | [PchSerialIoIndexGSPI0] = 0, |
| 97 | [PchSerialIoIndexGSPI1] = 0, |
| 98 | }" |
| 99 | |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 100 | # HD Audio |
| 101 | register "pch_hda_dsp_enable" = "1" |
| 102 | register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" |
| 103 | register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" |
| 104 | register "pch_hda_idisp_codec_enable" = "1" |
| 105 | |
Sumeet Pawnikar | e00705e | 2023-02-09 17:21:07 +0530 | [diff] [blame] | 106 | # DPTF enable |
| 107 | register "dptf_enable" = "1" |
| 108 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 109 | device domain 0 on |
| 110 | device ref igpu on end |
Usha P | c6b406e | 2023-02-13 09:38:28 +0530 | [diff] [blame] | 111 | device ref ipu on |
| 112 | chip drivers/intel/mipi_camera |
| 113 | register "acpi_uid" = "0x50000" |
| 114 | register "acpi_name" = ""IPU0"" |
| 115 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 116 | register "cio2_num_ports" = "2" |
| 117 | register "cio2_lanes_used" = "{4,4}" |
| 118 | register "cio2_lane_endpoint[0]" = ""^I2C1.CAM0"" |
| 119 | register "cio2_lane_endpoint[1]" = ""^I2C0.CAM1"" |
| 120 | register "cio2_prt[0]" = "0" |
| 121 | register "cio2_prt[1]" = "4" |
| 122 | device generic 0 on end |
| 123 | end |
| 124 | end |
Sumeet Pawnikar | e00705e | 2023-02-09 17:21:07 +0530 | [diff] [blame] | 125 | device ref dtt on |
| 126 | chip drivers/intel/dptf |
| 127 | ## sensor information |
| 128 | register "options.tsr[0].desc" = ""Ambient"" |
| 129 | register "options.tsr[1].desc" = ""DDR"" |
| 130 | register "options.tsr[2].desc" = ""Skin"" |
| 131 | register "options.tsr[3].desc" = ""Battery"" |
| 132 | ## Active Policy |
| 133 | # TODO: below values are initial reference values only |
| 134 | register "policies.active" = "{ |
| 135 | [0] = { |
| 136 | .target = DPTF_CPU, |
| 137 | .thresholds = { |
| 138 | TEMP_PCT(95, 90), |
| 139 | TEMP_PCT(90, 80), |
| 140 | } |
| 141 | }, |
| 142 | [1] = { |
| 143 | .target = DPTF_TEMP_SENSOR_0, |
| 144 | .thresholds = { |
| 145 | TEMP_PCT(80, 90), |
| 146 | TEMP_PCT(70, 80), |
| 147 | } |
| 148 | } |
| 149 | }" |
| 150 | ## Passive Policy |
| 151 | # TODO: below values are initial reference values only |
| 152 | register "policies.passive" = "{ |
| 153 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 10000), |
| 154 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 85, 50000), |
| 155 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 85, 50000), |
| 156 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 85, 50000), |
| 157 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 85, 50000), |
| 158 | }" |
| 159 | ## Critical Policy |
| 160 | # TODO: below values are initial reference values only |
| 161 | register "policies.critical" = "{ |
| 162 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 163 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 95, SHUTDOWN), |
| 164 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 95, SHUTDOWN), |
| 165 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 95, SHUTDOWN), |
| 166 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 95, SHUTDOWN), |
| 167 | }" |
| 168 | ## Power Limits Control |
| 169 | register "controls.power_limits" = "{ |
| 170 | .pl1 = { |
| 171 | .min_power = 35000, |
| 172 | .max_power = 45000, |
| 173 | .time_window_min = 28 * MSECS_PER_SEC, |
| 174 | .time_window_max = 32 * MSECS_PER_SEC, |
| 175 | .granularity = 200, |
| 176 | }, |
| 177 | .pl2 = { |
| 178 | .min_power = 56000, |
| 179 | .max_power = 56000, |
| 180 | .time_window_min = 28 * MSECS_PER_SEC, |
| 181 | .time_window_max = 32 * MSECS_PER_SEC, |
| 182 | .granularity = 1000, |
| 183 | } |
| 184 | }" |
| 185 | ## Charger Performance Control (Control, mA) |
| 186 | register "controls.charger_perf" = "{ |
| 187 | [0] = { 255, 3000 }, |
| 188 | [1] = { 24, 1500 }, |
| 189 | [2] = { 16, 1000 }, |
| 190 | [3] = { 8, 500 } |
| 191 | }" |
| 192 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 193 | register "controls.fan_perf" = "{ |
| 194 | [0] = { 90, 6700, 220, 2200, }, |
| 195 | [1] = { 80, 5800, 180, 1800, }, |
| 196 | [2] = { 70, 5000, 145, 1450, }, |
| 197 | [3] = { 60, 4900, 115, 1150, }, |
| 198 | [4] = { 50, 3838, 90, 900, }, |
| 199 | [5] = { 40, 2904, 55, 550, }, |
| 200 | [6] = { 30, 2337, 30, 300, }, |
| 201 | [7] = { 20, 1608, 15, 150, }, |
| 202 | [8] = { 10, 800, 10, 100, }, |
| 203 | [9] = { 0, 0, 0, 50, } |
| 204 | }" |
| 205 | ## Fan options |
| 206 | register "options.fan.fine_grained_control" = "1" |
| 207 | register "options.fan.step_size" = "2" |
| 208 | device generic 0 alias dptf_policy on end |
| 209 | end |
| 210 | end |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 211 | device ref heci1 on end |
| 212 | device ref tbt_pcie_rp0 on end |
| 213 | device ref tbt_pcie_rp1 on end |
| 214 | device ref tbt_pcie_rp2 on end |
| 215 | device ref tbt_pcie_rp3 on end |
Harsha B R | 5897382 | 2023-02-04 12:56:01 +0530 | [diff] [blame] | 216 | device ref tcss_xhci on |
| 217 | chip drivers/usb/acpi |
| 218 | device ref tcss_root_hub on |
| 219 | chip drivers/usb/acpi |
| 220 | register "desc" = ""USB3 Type-C Port C0"" |
| 221 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 222 | register "group" = "ACPI_PLD_GROUP(4, 2)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 223 | device ref tcss_usb3_port0 on end |
Harsha B R | 5897382 | 2023-02-04 12:56:01 +0530 | [diff] [blame] | 224 | end |
| 225 | chip drivers/usb/acpi |
| 226 | register "desc" = ""USB3 Type-C Port C1"" |
| 227 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 228 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 229 | device ref tcss_usb3_port1 on end |
Harsha B R | 5897382 | 2023-02-04 12:56:01 +0530 | [diff] [blame] | 230 | end |
| 231 | chip drivers/usb/acpi |
| 232 | register "desc" = ""USB3 Type-C Port C2"" |
| 233 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 234 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 235 | device ref tcss_usb3_port2 on end |
Harsha B R | 5897382 | 2023-02-04 12:56:01 +0530 | [diff] [blame] | 236 | end |
| 237 | chip drivers/usb/acpi |
| 238 | register "desc" = ""USB3 Type-C Port C3"" |
| 239 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 240 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 241 | device ref tcss_usb3_port3 on end |
Harsha B R | 5897382 | 2023-02-04 12:56:01 +0530 | [diff] [blame] | 242 | end |
| 243 | end |
| 244 | end |
| 245 | end |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 246 | device ref tcss_dma0 on |
| 247 | chip drivers/intel/usb4/retimer |
| 248 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 249 | use tcss_usb3_port0 as dfp[0].typec_port |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 250 | device generic 0 on end |
| 251 | end |
| 252 | chip drivers/intel/usb4/retimer |
| 253 | register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 254 | use tcss_usb3_port1 as dfp[1].typec_port |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 255 | device generic 0 on end |
| 256 | end |
| 257 | end |
| 258 | device ref tcss_dma1 on |
| 259 | chip drivers/intel/usb4/retimer |
| 260 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 261 | use tcss_usb3_port2 as dfp[0].typec_port |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 262 | device generic 0 on end |
| 263 | end |
| 264 | chip drivers/intel/usb4/retimer |
| 265 | register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 266 | use tcss_usb3_port3 as dfp[1].typec_port |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 267 | device generic 0 on end |
| 268 | end |
| 269 | end |
Cliff Huang | e46dbf7 | 2023-02-14 15:58:05 -0800 | [diff] [blame] | 270 | device ref pcie_rp6 on |
| 271 | # Enable PCH PCIE x1 slot using CLK 3 |
| 272 | register "pcie_rp[PCIE_RP(6)]" = "{ |
| 273 | .clk_src = 3, |
| 274 | .clk_req = 3, |
| 275 | .flags = PCIE_RP_CLK_REQ_DETECT | PCIE_RP_LTR | PCIE_RP_AER, |
| 276 | }" |
| 277 | chip soc/intel/common/block/pcie/rtd3 |
| 278 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A18)" |
| 279 | register "enable_delay_ms" = "100" |
| 280 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A19)" |
| 281 | register "reset_delay_ms" = "20" |
| 282 | register "srcclk_pin" = "3" |
| 283 | device generic 0 on |
| 284 | end |
| 285 | end |
| 286 | end # PCIE x1 slot |
Harsha B R | 9e61ca5 | 2023-02-04 10:32:20 +0530 | [diff] [blame] | 287 | device ref pcie_rp7 on |
| 288 | # Enable PCH PCIE RP 7 using CLK 1 |
| 289 | register "pcie_rp[PCIE_RP(7)]" = "{ |
| 290 | .clk_src = 1, |
| 291 | .clk_req = 1, |
Harsha B R | 663efbb | 2023-02-07 16:22:11 +0530 | [diff] [blame] | 292 | .flags = PCIE_RP_CLK_REQ_DETECT | PCIE_RP_LTR | PCIE_RP_AER, |
Harsha B R | 9e61ca5 | 2023-02-04 10:32:20 +0530 | [diff] [blame] | 293 | }" |
Harsha B R | 4aa7d2d | 2023-02-04 11:09:24 +0530 | [diff] [blame] | 294 | chip soc/intel/common/block/pcie/rtd3 |
| 295 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C05)" |
| 296 | register "reset_off_delay_ms" = "20" |
| 297 | register "srcclk_pin" = "1" |
| 298 | register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" |
| 299 | register "skip_on_off_support" = "true" |
Cliff Huang | 43c730f | 2023-03-02 10:26:02 -0800 | [diff] [blame] | 300 | register "use_rp_mutex" = "true" |
Harsha B R | 4aa7d2d | 2023-02-04 11:09:24 +0530 | [diff] [blame] | 301 | device generic 0 alias rp7_rtd3 on end |
| 302 | end |
| 303 | chip drivers/wwan/fm |
| 304 | register "fcpo_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E07)" |
| 305 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A15)" |
| 306 | register "perst_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C05)" |
| 307 | register "wake_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F10)" |
| 308 | register "add_acpi_dma_property" = "true" |
| 309 | use rp7_rtd3 as rtd3dev |
| 310 | device generic 0 on end |
| 311 | end |
Harsha B R | 9e61ca5 | 2023-02-04 10:32:20 +0530 | [diff] [blame] | 312 | end # WWAN |
Harsha B R | 453805c | 2023-02-04 10:35:50 +0530 | [diff] [blame] | 313 | device ref pcie_rp8 on |
| 314 | # Enable PCH PCIE RP 8 using CLK 5 |
| 315 | register "pcie_rp[PCIE_RP(8)]" = "{ |
| 316 | .clk_src = 5, |
| 317 | .clk_req = 5, |
Harsha B R | 663efbb | 2023-02-07 16:22:11 +0530 | [diff] [blame] | 318 | .flags = PCIE_RP_CLK_REQ_DETECT | PCIE_RP_LTR | PCIE_RP_AER, |
Harsha B R | 453805c | 2023-02-04 10:35:50 +0530 | [diff] [blame] | 319 | }" |
| 320 | end # WLAN |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 321 | device ref pcie_rp10 on |
| 322 | # Enable SSD Gen4 PCIE 10 using CLK 8 |
| 323 | register "pcie_rp[PCIE_RP(10)]" = "{ |
| 324 | .clk_src = 8, |
| 325 | .clk_req = 8, |
Harsha B R | 663efbb | 2023-02-07 16:22:11 +0530 | [diff] [blame] | 326 | .flags = PCIE_RP_CLK_REQ_DETECT | PCIE_RP_LTR | PCIE_RP_AER, |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 327 | }" |
| 328 | end # PCIE10 SSD Gen4 |
| 329 | device ref pcie_rp11 on |
| 330 | # Enable SSD Gen4 PCIE 11 using CLK 7 |
| 331 | register "pcie_rp[PCIE_RP(11)]" = "{ |
| 332 | .clk_src = 7, |
| 333 | .clk_req = 7, |
Harsha B R | 663efbb | 2023-02-07 16:22:11 +0530 | [diff] [blame] | 334 | .flags = PCIE_RP_CLK_REQ_DETECT | PCIE_RP_LTR | PCIE_RP_AER, |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 335 | }" |
| 336 | end # PCIE11 SSD Gen4 |
Harsha B R | 168798a | 2023-02-04 16:39:11 +0530 | [diff] [blame] | 337 | device ref xhci on |
| 338 | chip drivers/usb/acpi |
| 339 | device ref xhci_root_hub on |
| 340 | chip drivers/usb/acpi |
| 341 | register "desc" = ""USB2 Type-A Port 1"" |
| 342 | register "type" = "UPC_TYPE_A" |
| 343 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 344 | device ref usb2_port1 on end |
| 345 | end |
| 346 | chip drivers/usb/acpi |
| 347 | register "desc" = ""USB2 Type-A Port 2"" |
| 348 | register "type" = "UPC_TYPE_A" |
| 349 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 350 | device ref usb2_port2 on end |
| 351 | end |
| 352 | chip drivers/usb/acpi |
| 353 | register "desc" = ""USB2 Type-A Port 3"" |
| 354 | register "type" = "UPC_TYPE_A" |
| 355 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 356 | device ref usb2_port3 on end |
| 357 | end |
| 358 | chip drivers/usb/acpi |
| 359 | register "desc" = ""USB2 Type-A Port 4"" |
| 360 | register "type" = "UPC_TYPE_A" |
| 361 | register "group" = "ACPI_PLD_GROUP(4, 1)" |
| 362 | device ref usb2_port4 on end |
| 363 | end |
| 364 | chip drivers/usb/acpi |
| 365 | register "desc" = ""USB2 Type-A Port 5"" |
| 366 | register "type" = "UPC_TYPE_A" |
| 367 | register "group" = "ACPI_PLD_GROUP(5, 1)" |
| 368 | device ref usb2_port5 on end |
| 369 | end |
| 370 | chip drivers/usb/acpi |
| 371 | register "desc" = ""USB2 Type-A Port 6"" |
| 372 | register "type" = "UPC_TYPE_A" |
| 373 | register "group" = "ACPI_PLD_GROUP(6, 1)" |
| 374 | device ref usb2_port6 on end |
| 375 | end |
| 376 | chip drivers/usb/acpi |
| 377 | register "desc" = ""USB2 Type-A Port 7"" |
| 378 | register "type" = "UPC_TYPE_A" |
| 379 | register "group" = "ACPI_PLD_GROUP(7, 1)" |
| 380 | device ref usb2_port7 on end |
| 381 | end |
| 382 | chip drivers/usb/acpi |
| 383 | register "desc" = ""USB2 Type-A Port 8"" |
| 384 | register "type" = "UPC_TYPE_A" |
| 385 | register "group" = "ACPI_PLD_GROUP(8, 1)" |
| 386 | device ref usb2_port8 on end |
| 387 | end |
| 388 | chip drivers/usb/acpi |
| 389 | register "desc" = ""USB2 Type-A Port 9"" |
| 390 | register "type" = "UPC_TYPE_A" |
| 391 | register "group" = "ACPI_PLD_GROUP(9, 1)" |
| 392 | device ref usb2_port9 on end |
| 393 | end |
| 394 | chip drivers/usb/acpi |
| 395 | register "desc" = ""USB2 Type-A Port 10"" |
| 396 | register "type" = "UPC_TYPE_A" |
| 397 | register "group" = "ACPI_PLD_GROUP(10, 1)" |
| 398 | device ref usb2_port10 on end |
| 399 | end |
| 400 | chip drivers/usb/acpi |
| 401 | register "desc" = ""USB3 Type-A Port 1"" |
| 402 | register "type" = "UPC_TYPE_USB3_A" |
| 403 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 404 | device ref usb3_port1 on end |
| 405 | end |
| 406 | chip drivers/usb/acpi |
| 407 | register "desc" = ""USB3 Type-A Port 2"" |
| 408 | register "type" = "UPC_TYPE_USB3_A" |
| 409 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 410 | device ref usb3_port2 on end |
| 411 | end |
| 412 | end |
| 413 | end |
| 414 | end |
Harsha B R | 48f0b11 | 2023-02-01 10:47:20 +0530 | [diff] [blame] | 415 | device ref cnvi_wifi on |
| 416 | chip drivers/wifi/generic |
| 417 | register "wake" = "GPE0_PME_B0" |
| 418 | register "enable_cnvi_ddr_rfim" = "true" |
| 419 | device generic 0 on end |
| 420 | end |
| 421 | end |
Usha P | c6b406e | 2023-02-13 09:38:28 +0530 | [diff] [blame] | 422 | device ref i2c0 on |
| 423 | chip drivers/intel/mipi_camera |
| 424 | register "acpi_hid" = ""OVTIDB10"" |
| 425 | register "acpi_uid" = "0" |
| 426 | register "acpi_name" = ""CAM1"" |
| 427 | register "chip_name" = ""Ov 13b10 Camera"" |
| 428 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 429 | |
| 430 | register "ssdb.lanes_used" = "4" |
| 431 | register "num_freq_entries" = "1" |
| 432 | register "link_freq[0]" = "560000000" |
| 433 | register "remote_name" = ""IPU0"" |
| 434 | |
| 435 | register "has_power_resource" = "1" |
| 436 | #Controls |
| 437 | register "clk_panel.clks[0].clknum" = "0" |
| 438 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 439 | register "gpio_panel.gpio[0].gpio_num" = "GPP_A17" #power_enable |
| 440 | register "gpio_panel.gpio[1].gpio_num" = "GPP_H00" #reset |
| 441 | |
| 442 | #_ON |
| 443 | register "on_seq.ops_cnt" = "4" |
| 444 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 445 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 2)" |
| 446 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 1)" |
| 447 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 1)" |
| 448 | |
| 449 | #_OFF |
| 450 | register "off_seq.ops_cnt" = "3" |
| 451 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 452 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 453 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 454 | |
| 455 | device i2c 36 on end |
| 456 | end |
| 457 | end |
| 458 | device ref i2c1 on |
| 459 | chip drivers/intel/mipi_camera |
| 460 | register "acpi_hid" = ""OVTIDB10"" |
| 461 | register "acpi_uid" = "0" |
| 462 | register "acpi_name" = ""CAM0"" |
| 463 | register "chip_name" = ""Ov 13b10 Camera"" |
| 464 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 465 | |
| 466 | register "ssdb.vcm_type" = "0x0C" |
| 467 | register "vcm_name" = ""VCM1"" |
| 468 | |
| 469 | register "ssdb.lanes_used" = "4" |
| 470 | register "num_freq_entries" = "1" |
| 471 | register "link_freq[0]" = "560000000" |
| 472 | register "remote_name" = ""IPU0"" |
| 473 | |
| 474 | register "has_power_resource" = "1" |
| 475 | #Controls |
| 476 | register "clk_panel.clks[0].clknum" = "2" |
| 477 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 478 | register "gpio_panel.gpio[0].gpio_num" = "GPP_C08" #power_enable |
| 479 | register "gpio_panel.gpio[1].gpio_num" = "GPP_V23" #reset |
| 480 | |
| 481 | #_ON |
| 482 | register "on_seq.ops_cnt" = "4" |
| 483 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 484 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 2)" |
| 485 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 1)" |
| 486 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 1)" |
| 487 | |
| 488 | #_OFF |
| 489 | register "off_seq.ops_cnt" = "3" |
| 490 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 491 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 492 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 493 | |
| 494 | device i2c 36 on end |
| 495 | end |
| 496 | chip drivers/intel/mipi_camera |
| 497 | register "acpi_uid" = "3" |
| 498 | register "acpi_name" = ""VCM1"" |
| 499 | register "chip_name" = ""DW AF VCM"" |
| 500 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 501 | |
| 502 | register "pr0" = ""\\_SB.PCI0.I2C1.CAM0.PRIC"" |
| 503 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 504 | |
| 505 | device i2c 0C on end |
| 506 | end |
| 507 | chip drivers/intel/mipi_camera |
| 508 | register "acpi_uid" = "1" |
| 509 | register "acpi_name" = ""NVM1"" |
| 510 | register "chip_name" = ""BRCA016GWZ"" |
| 511 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 512 | |
| 513 | register "pr0" = ""\\_SB.PCI0.I2C1.CAM0.PRIC"" |
| 514 | register "nvm_compat" = ""atmel,24c16"" |
| 515 | |
| 516 | register "nvm_size" = "0x800" |
| 517 | register "nvm_pagesize" = "0x01" |
| 518 | register "nvm_readonly" = "0x01" |
| 519 | register "nvm_width" = "0x08" |
| 520 | |
| 521 | device i2c 50 on end |
| 522 | end |
| 523 | end |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 524 | device ref i2c2 on end |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 525 | device ref i2c3 on |
| 526 | chip drivers/i2c/generic |
| 527 | register "hid" = ""10EC5682"" |
| 528 | register "name" = ""RT58"" |
| 529 | register "desc" = ""Headset Codec"" |
| 530 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_S05)" |
| 531 | register "probed" = "1" |
| 532 | # jd_src RT5668_JD1 = 1, RT5682_JD_NULL = 0 |
| 533 | register "property_count" = "1" |
| 534 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 535 | register "property_list[0].name" = ""realtek,jd-src"" |
| 536 | register "property_list[0].integer" = "1" |
| 537 | device i2c 1a on |
| 538 | probe AUDIO MTL_ALC1019_ALC5682I_I2S |
| 539 | probe AUDIO MTL_ALC5682I_MAX9857A_I2S |
| 540 | end |
| 541 | end |
| 542 | # Ref config #5 for Chrome, transducer card config 5A |
| 543 | #+-------------------+-------------------+ |
| 544 | #| Speaker Amp | Assignment | |
| 545 | #+-------------------+-------------------+ |
| 546 | #| SPK 0 | left | |
| 547 | #| SPK 1 | right | |
| 548 | #| SPK 2 | top left | |
| 549 | #| SPK 3 | top right | |
| 550 | #+-------------------+-------------------+ |
| 551 | chip drivers/i2c/generic |
| 552 | register "hid" = ""10EC1019"" |
| 553 | register "desc" = ""Realtek SPK AMP L"" |
| 554 | register "uid" = "0" |
| 555 | device i2c 28 on |
| 556 | probe AUDIO MTL_ALC1019_ALC5682I_I2S |
| 557 | end |
| 558 | end |
| 559 | chip drivers/i2c/generic |
| 560 | register "hid" = ""10EC1019"" |
| 561 | register "desc" = ""Realtek SPK AMP R"" |
| 562 | register "uid" = "1" |
| 563 | device i2c 29 on |
| 564 | probe AUDIO MTL_ALC1019_ALC5682I_I2S |
| 565 | end |
| 566 | end |
| 567 | chip drivers/i2c/generic |
| 568 | register "hid" = ""10EC1019"" |
| 569 | register "desc" = ""Realtek SPK AMP TL"" |
| 570 | register "uid" = "2" |
| 571 | device i2c 2a on |
| 572 | probe AUDIO MTL_ALC1019_ALC5682I_I2S |
| 573 | end |
| 574 | end |
| 575 | chip drivers/i2c/generic |
| 576 | register "hid" = ""10EC1019"" |
| 577 | register "desc" = ""Realtek SPK AMP TR"" |
| 578 | register "uid" = "3" |
| 579 | device i2c 2b on |
| 580 | probe AUDIO MTL_ALC1019_ALC5682I_I2S |
| 581 | end |
| 582 | end |
| 583 | end # I2C3 |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 584 | device ref i2c4 on end |
| 585 | device ref i2c5 on end |
| 586 | device ref shared_sram on end |
| 587 | device ref uart0 on end |
Harsha B R | a891f71 | 2023-02-01 13:20:35 +0530 | [diff] [blame] | 588 | device ref gspi1 on end |
Harsha B R | a256bd6 | 2022-11-09 19:47:40 +0530 | [diff] [blame] | 589 | device ref smbus on end |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 590 | device ref hda on |
| 591 | chip drivers/intel/soundwire |
| 592 | device generic 0 on |
| 593 | chip drivers/soundwire/alc711 |
| 594 | # SoundWire Link 0 ID 1 |
| 595 | register "desc" = ""Headset Codec"" |
| 596 | device generic 0.1 on |
| 597 | probe AUDIO MTL_ALC711_SNDW |
| 598 | end |
| 599 | end |
| 600 | chip drivers/soundwire/alc5682 |
| 601 | # SoundWire Link 2 ID 1 |
| 602 | register "desc" = ""Headset Codec"" |
| 603 | device generic 2.1 on |
| 604 | probe AUDIO MTL_MAX98373_ALC5682_SNDW |
| 605 | end |
| 606 | end |
| 607 | chip drivers/soundwire/max98373 |
| 608 | # SoundWire Link 0 ID 3 |
| 609 | register "desc" = ""Left Speaker Amp"" |
| 610 | device generic 0.3 on |
| 611 | probe AUDIO MTL_MAX98373_ALC5682_SNDW |
| 612 | end |
| 613 | end |
| 614 | chip drivers/soundwire/max98373 |
| 615 | # SoundWire Link 0 ID 7 |
| 616 | register "desc" = ""Right Speaker Amp"" |
| 617 | device generic 0.7 on |
| 618 | probe AUDIO MTL_MAX98373_ALC5682_SNDW |
| 619 | end |
| 620 | end |
Yong Zhi | 52e5756 | 2023-02-21 10:37:52 -0600 | [diff] [blame] | 621 | end |
| 622 | end |
| 623 | chip drivers/generic/max98357a |
| 624 | register "hid" = ""MX98357A"" |
| 625 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_S04)" |
| 626 | register "sdmode_delay" = "5" |
| 627 | device generic 0 on |
| 628 | probe AUDIO MTL_ALC5682I_MAX9857A_I2S |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 629 | end |
| 630 | end |
| 631 | end |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 632 | end |
| 633 | end |