Simon Zhou | 3b82131 | 2023-05-22 18:52:38 +0800 | [diff] [blame] | 1 | fw_config |
Simon Zhou | 298732e | 2023-06-01 08:56:07 +0800 | [diff] [blame] | 2 | field AUDIO 0 1 |
| 3 | option AUDIO_UNKNOWN 0 |
| 4 | option ALC1019_ALC5682I_I2S 1 |
| 5 | end |
| 6 | field DB_CONFIG 2 4 |
| 7 | option DB_UNKNOWN 0 |
| 8 | option DB_TYPEC 1 |
| 9 | option DB_TBT 2 |
| 10 | end |
Simon Zhou | 3b82131 | 2023-05-22 18:52:38 +0800 | [diff] [blame] | 11 | field MB_CONFIG 5 7 |
| 12 | option MB_UNKNOWN 0 |
| 13 | option MB_TYPEC 1 |
| 14 | option MB_TBT 2 |
| 15 | end |
Zhongtian Wu | edee16e | 2023-06-07 20:09:55 +0800 | [diff] [blame] | 16 | field TOUCHSCREEN 8 9 |
| 17 | option TOUCHSCREEN_UNKNOWN 0 |
| 18 | option TOUCHSCREEN_ILITEK 1 |
| 19 | option TOUCHSCREEN_ELAN 2 |
| 20 | end |
Simon Zhou | 3b82131 | 2023-05-22 18:52:38 +0800 | [diff] [blame] | 21 | end |
| 22 | |
Simon Zhou | 2cf25eb | 2023-04-14 14:21:00 +0800 | [diff] [blame] | 23 | chip soc/intel/meteorlake |
| 24 | |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 25 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC1)" # USB2_C1 |
| 26 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
| 27 | register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Port A1 |
| 28 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A0 |
qinwentao | 3afa593 | 2023-05-19 15:25:01 +0800 | [diff] [blame] | 29 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
Simon Zhou | 2cf25eb | 2023-04-14 14:21:00 +0800 | [diff] [blame] | 30 | |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 31 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port A0 |
| 32 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # USB3/2 Type A port A1 |
| 33 | |
| 34 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)" |
| 35 | register "tcss_ports[3]" = "TCSS_PORT_DEFAULT(OC1)" |
| 36 | |
| 37 | # Enable eDP in Port A |
| 38 | register "ddi_port_A_config" = "1" |
| 39 | # Enable HDMI in Port B |
| 40 | register "ddi_port_B_config" = "0" |
| 41 | |
| 42 | # Enable Display Port Configuration |
| 43 | register "ddi_ports_config" = "{ |
| 44 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 45 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 46 | [DDI_PORT_1] = DDI_ENABLE_HPD, |
| 47 | [DDI_PORT_2] = DDI_ENABLE_HPD, |
| 48 | [DDI_PORT_3] = DDI_ENABLE_HPD, |
| 49 | [DDI_PORT_4] = DDI_ENABLE_HPD, |
| 50 | }" |
| 51 | |
| 52 | register "serial_io_gspi_mode" = "{ |
| 53 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 54 | [PchSerialIoIndexGSPI1] = PchSerialIoPci, |
| 55 | [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, |
| 56 | }" |
| 57 | |
| 58 | register "serial_io_i2c_mode" = "{ |
| 59 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 60 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 61 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 62 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 63 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 64 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 65 | }" |
| 66 | |
Wentao Qin | 23c4099 | 2023-05-29 18:47:00 +0800 | [diff] [blame] | 67 | # Temporary setting TCC of 90C = Tj max - Tcc |
| 68 | register "tcc_offset" = "20" |
| 69 | |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 70 | # Intel Common SoC Config |
| 71 | #+-------------------+---------------------------+ |
| 72 | #| Field | Value | |
| 73 | #+-------------------+---------------------------+ |
| 74 | #| I2C0 | Audio | |
| 75 | #| I2C1 | Touchscreen | |
| 76 | #| I2C3 | Touchpad | |
| 77 | #| I2C4 | cr50 TPM. Early init is | |
| 78 | #| | required to set up a BAR | |
| 79 | #| | for TPM communication | |
| 80 | #| I2C5 | UFC | |
| 81 | #+-------------------+---------------------------+ |
| 82 | register "common_soc_config" = "{ |
| 83 | .i2c[0] = { |
| 84 | .speed = I2C_SPEED_FAST, |
| 85 | .rise_time_ns = 650, |
| 86 | .fall_time_ns = 400, |
Zhongtian Wu | 28d18ad | 2023-06-30 10:43:57 +0800 | [diff] [blame] | 87 | .data_hold_time_ns = 100, |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 88 | }, |
| 89 | .i2c[1] = { |
| 90 | .speed = I2C_SPEED_FAST, |
| 91 | .rise_time_ns = 650, |
| 92 | .fall_time_ns = 400, |
| 93 | .data_hold_time_ns = 50, |
| 94 | }, |
| 95 | .i2c[3] = { |
| 96 | .speed = I2C_SPEED_FAST, |
| 97 | .rise_time_ns = 650, |
Zhongtian Wu | 969a2a9 | 2023-06-30 09:52:24 +0800 | [diff] [blame^] | 98 | .fall_time_ns = 150, |
| 99 | .data_hold_time_ns = 400, |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 100 | }, |
| 101 | .i2c[4] = { |
| 102 | .early_init = 1, |
| 103 | .speed = I2C_SPEED_FAST, |
| 104 | .rise_time_ns = 600, |
| 105 | .fall_time_ns = 400, |
| 106 | .data_hold_time_ns = 50, |
| 107 | }, |
| 108 | .i2c[5] = { |
| 109 | .speed = I2C_SPEED_FAST, |
| 110 | .rise_time_ns = 900, |
| 111 | .fall_time_ns = 400, |
| 112 | .data_hold_time_ns = 50, |
| 113 | }, |
| 114 | }" |
| 115 | |
| 116 | device domain 0 on |
| 117 | device ref dtt on |
| 118 | chip drivers/intel/dptf |
| 119 | ## sensor information |
| 120 | register "options.tsr[0].desc" = ""DDR_SOC"" |
| 121 | register "options.tsr[1].desc" = ""Ambient"" |
| 122 | register "options.tsr[2].desc" = ""Charger"" |
| 123 | |
| 124 | ## Active Policy |
| 125 | # FIXME: below values are initial reference values only |
| 126 | register "policies.active" = "{ |
| 127 | [0] = { |
| 128 | .target = DPTF_TEMP_SENSOR_0, |
| 129 | .thresholds = { |
| 130 | TEMP_PCT(75, 90), |
| 131 | TEMP_PCT(70, 80), |
| 132 | TEMP_PCT(65, 70), |
| 133 | TEMP_PCT(60, 60), |
| 134 | TEMP_PCT(55, 50), |
| 135 | TEMP_PCT(50, 40), |
| 136 | TEMP_PCT(45, 30), |
| 137 | } |
| 138 | }, |
| 139 | [1] = { |
| 140 | .target = DPTF_TEMP_SENSOR_1, |
| 141 | .thresholds = { |
| 142 | TEMP_PCT(75, 90), |
| 143 | TEMP_PCT(70, 80), |
| 144 | TEMP_PCT(65, 70), |
| 145 | TEMP_PCT(60, 60), |
| 146 | TEMP_PCT(55, 50), |
| 147 | TEMP_PCT(50, 40), |
| 148 | TEMP_PCT(45, 30), |
| 149 | } |
| 150 | }, |
| 151 | [2] = { |
| 152 | .target = DPTF_TEMP_SENSOR_2, |
| 153 | .thresholds = { |
| 154 | TEMP_PCT(75, 90), |
| 155 | TEMP_PCT(70, 80), |
| 156 | TEMP_PCT(65, 70), |
| 157 | TEMP_PCT(60, 50), |
| 158 | } |
| 159 | } |
| 160 | }" |
| 161 | |
| 162 | ## Passive Policy |
| 163 | # TODO: below values are initial reference values only |
| 164 | register "policies.passive" = "{ |
| 165 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 166 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 5000), |
| 167 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 80, 5000), |
| 168 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 5000), |
| 169 | }" |
| 170 | |
| 171 | ## Critical Policy |
| 172 | # TODO: below values are initial reference values only |
| 173 | register "policies.critical" = "{ |
| 174 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 175 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 176 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 177 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 178 | }" |
| 179 | |
| 180 | ## Power Limits Control |
| 181 | register "controls.power_limits" = "{ |
| 182 | .pl1 = { |
| 183 | .min_power = 15000, |
| 184 | .max_power = 15000, |
| 185 | .time_window_min = 28 * MSECS_PER_SEC, |
| 186 | .time_window_max = 32 * MSECS_PER_SEC, |
| 187 | .granularity = 200, |
| 188 | }, |
| 189 | .pl2 = { |
| 190 | .min_power = 57000, |
| 191 | .max_power = 57000, |
| 192 | .time_window_min = 28 * MSECS_PER_SEC, |
| 193 | .time_window_max = 32 * MSECS_PER_SEC, |
| 194 | .granularity = 1000, |
| 195 | } |
| 196 | }" |
| 197 | |
| 198 | ## Charger Performance Control (Control, mA) |
| 199 | register "controls.charger_perf" = "{ |
| 200 | [0] = { 255, 3000 }, |
| 201 | [1] = { 24, 1500 }, |
| 202 | [2] = { 16, 1000 }, |
| 203 | [3] = { 8, 500 } |
| 204 | }" |
| 205 | |
| 206 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 207 | register "controls.fan_perf" = "{ |
| 208 | [0] = { 90, 6700, 220, 2200, }, |
| 209 | [1] = { 80, 5800, 180, 1800, }, |
| 210 | [2] = { 70, 5000, 145, 1450, }, |
| 211 | [3] = { 60, 4900, 115, 1150, }, |
| 212 | [4] = { 50, 3838, 90, 900, }, |
| 213 | [5] = { 40, 2904, 55, 550, }, |
| 214 | [6] = { 30, 2337, 30, 300, }, |
| 215 | [7] = { 20, 1608, 15, 150, }, |
| 216 | [8] = { 10, 800, 10, 100, }, |
| 217 | [9] = { 0, 0, 0, 50, } |
| 218 | }" |
| 219 | |
| 220 | ## Fan options |
| 221 | register "options.fan.fine_grained_control" = "1" |
| 222 | register "options.fan.step_size" = "2" |
| 223 | |
| 224 | device generic 0 alias dptf_policy on end |
| 225 | end |
| 226 | end |
| 227 | device ref pcie_rp9 on |
| 228 | # Enable SSD Card PCIE 9 using clk 4 |
| 229 | register "pcie_rp[PCH_RP(9)]" = "{ |
| 230 | .clk_src = 4, |
| 231 | .clk_req = 4, |
| 232 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 233 | }" |
| 234 | end # PCIE4_P9 SSD card |
| 235 | device ref pcie_rp10 on |
| 236 | # Enable SD Card PCIE4 rp10 using clk 7 |
| 237 | register "pcie_rp[PCH_RP(10)]" = "{ |
| 238 | .clk_src = 7, |
| 239 | .clk_req = 7, |
| 240 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 241 | }" |
| 242 | chip soc/intel/common/block/pcie/rtd3 |
| 243 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D03)" |
| 244 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D02)" |
| 245 | register "srcclk_pin" = "7" |
| 246 | device generic 0 on end |
| 247 | end |
| 248 | end |
| 249 | device ref tbt_pcie_rp0 on end |
Rui Zhou | 1e13a2c | 2023-06-14 20:20:44 +0800 | [diff] [blame] | 250 | device ref tbt_pcie_rp1 on end |
| 251 | device ref tbt_pcie_rp3 on end |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 252 | device ref tcss_xhci on |
| 253 | chip drivers/usb/acpi |
| 254 | device ref tcss_root_hub on |
| 255 | chip drivers/usb/acpi |
| 256 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 257 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 258 | register "use_custom_pld" = "true" |
| 259 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 260 | device ref tcss_usb3_port1 on end |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 261 | end |
| 262 | chip drivers/usb/acpi |
| 263 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 264 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 265 | register "use_custom_pld" = "true" |
| 266 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 267 | device ref tcss_usb3_port3 on end |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 268 | end |
| 269 | end |
| 270 | end |
| 271 | end |
| 272 | device ref tcss_dma0 on |
| 273 | chip drivers/intel/usb4/retimer |
| 274 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 275 | use tcss_usb3_port1 as dfp[0].typec_port |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 276 | device generic 0 on end |
| 277 | end |
| 278 | end |
| 279 | device ref tcss_dma1 on |
| 280 | chip drivers/intel/usb4/retimer |
| 281 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 282 | use tcss_usb3_port3 as dfp[0].typec_port |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 283 | device generic 0 on end |
| 284 | end |
| 285 | end |
| 286 | device ref xhci on |
| 287 | chip drivers/usb/acpi |
| 288 | device ref xhci_root_hub on |
| 289 | chip drivers/usb/acpi |
| 290 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 291 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 292 | register "use_custom_pld" = "true" |
| 293 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 294 | device ref usb2_port1 on end |
| 295 | end |
| 296 | chip drivers/usb/acpi |
| 297 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 298 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 299 | register "use_custom_pld" = "true" |
| 300 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 301 | device ref usb2_port2 on end |
| 302 | end |
| 303 | chip drivers/usb/acpi |
| 304 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 305 | register "type" = "UPC_TYPE_A" |
| 306 | register "use_custom_pld" = "true" |
| 307 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 308 | device ref usb2_port3 on end |
| 309 | end |
| 310 | chip drivers/usb/acpi |
| 311 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 312 | register "type" = "UPC_TYPE_A" |
| 313 | register "use_custom_pld" = "true" |
| 314 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, CENTER, ACPI_PLD_GROUP(3, 1))" |
| 315 | device ref usb2_port9 on end |
| 316 | end |
| 317 | chip drivers/usb/acpi |
qinwentao | 3afa593 | 2023-05-19 15:25:01 +0800 | [diff] [blame] | 318 | register "desc" = ""USB2 Bluetooth"" |
| 319 | register "type" = "UPC_TYPE_INTERNAL" |
| 320 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B01)" |
| 321 | device ref usb2_port10 on end |
| 322 | end |
| 323 | chip drivers/usb/acpi |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 324 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 325 | register "type" = "UPC_TYPE_USB3_A" |
| 326 | register "use_custom_pld" = "true" |
| 327 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, CENTER, ACPI_PLD_GROUP(3, 1))" |
| 328 | device ref usb3_port1 on end |
| 329 | end |
| 330 | chip drivers/usb/acpi |
| 331 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 332 | register "type" = "UPC_TYPE_USB3_A" |
| 333 | register "use_custom_pld" = "true" |
| 334 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 335 | device ref usb3_port2 on end |
| 336 | end |
| 337 | end |
| 338 | end |
| 339 | end |
| 340 | device ref cnvi_wifi on |
| 341 | chip drivers/wifi/generic |
| 342 | register "wake" = "GPE0_PME_B0" |
| 343 | register "add_acpi_dma_property" = "true" |
| 344 | register "enable_cnvi_ddr_rfim" = "true" |
| 345 | device generic 0 on end |
| 346 | end |
| 347 | end |
jason.z.chen | 90c3df7 | 2023-05-11 17:23:50 +0800 | [diff] [blame] | 348 | device ref ipu on |
| 349 | chip drivers/intel/mipi_camera |
| 350 | register "acpi_uid" = "0x50000" |
| 351 | register "acpi_name" = ""IPU0"" |
| 352 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 353 | |
| 354 | register "cio2_num_ports" = "1" |
| 355 | register "cio2_lanes_used" = "{4}" |
| 356 | register "cio2_lane_endpoint[0]" = ""^I2C5.CAM0"" |
| 357 | register "cio2_prt[0]" = "4" |
| 358 | device generic 0 on end |
| 359 | end |
| 360 | end |
Rui Zhou | 5c3c529 | 2023-06-01 18:22:13 +0800 | [diff] [blame] | 361 | device ref i2c0 on |
| 362 | chip drivers/i2c/generic |
| 363 | register "hid" = ""RTL5682"" |
| 364 | register "name" = ""RT58"" |
| 365 | register "desc" = ""Headset Codec"" |
| 366 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_B06)" |
| 367 | # Set the jd_src to RT5668_JD1 for jack detection |
| 368 | register "property_count" = "1" |
| 369 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 370 | register "property_list[0].name" = ""realtek,jd-src"" |
| 371 | register "property_list[0].integer" = "1" |
| 372 | device i2c 1a on |
| 373 | probe AUDIO ALC1019_ALC5682I_I2S |
| 374 | end |
| 375 | end |
| 376 | end |
Zhongtian Wu | edee16e | 2023-06-07 20:09:55 +0800 | [diff] [blame] | 377 | device ref i2c1 on |
| 378 | chip drivers/i2c/hid |
| 379 | register "generic.hid" = ""ILTK0001"" |
| 380 | register "generic.desc" = ""ILITEK Touchscreen"" |
| 381 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C07_IRQ)" |
| 382 | register "generic.probed" = "1" |
| 383 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C01)" |
| 384 | register "generic.reset_delay_ms" = "200" |
| 385 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C00)" |
| 386 | register "generic.enable_delay_ms" = "12" |
| 387 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C06)" |
| 388 | register "generic.stop_off_delay_ms" = "2" |
| 389 | register "generic.has_power_resource" = "1" |
| 390 | register "hid_desc_reg_offset" = "0x01" |
| 391 | device i2c 41 on |
| 392 | probe TOUCHSCREEN TOUCHSCREEN_ILITEK |
| 393 | end |
| 394 | end |
| 395 | chip drivers/i2c/hid |
| 396 | register "generic.hid" = ""EKTH7B18U"" |
| 397 | register "generic.desc" = ""ELAN Touchscreen"" |
| 398 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C07_IRQ)" |
| 399 | register "generic.probed" = "1" |
| 400 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C01)" |
| 401 | register "generic.reset_delay_ms" = "20" |
| 402 | register "generic.reset_off_delay_ms" = "2" |
| 403 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C00)" |
| 404 | register "generic.enable_delay_ms" = "1" |
| 405 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C06)" |
| 406 | register "generic.stop_off_delay_ms" = "2" |
| 407 | register "generic.has_power_resource" = "1" |
| 408 | register "hid_desc_reg_offset" = "0x01" |
| 409 | device i2c 10 on |
| 410 | probe TOUCHSCREEN TOUCHSCREEN_ELAN |
| 411 | end |
| 412 | end |
| 413 | end |
Zhongtian Wu | a125670 | 2023-05-19 18:48:07 +0800 | [diff] [blame] | 414 | device ref i2c3 on |
| 415 | chip drivers/i2c/generic |
| 416 | register "hid" = ""ELAN0000"" |
| 417 | register "desc" = ""ELAN Touchpad"" |
| 418 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B00_IRQ)" |
| 419 | register "wake" = "GPE0_DW0_00" |
| 420 | register "detect" = "1" |
| 421 | device i2c 15 on end |
| 422 | end |
| 423 | end |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 424 | device ref i2c4 on |
| 425 | chip drivers/i2c/tpm |
| 426 | register "hid" = ""GOOG0005"" |
| 427 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E03_IRQ)" |
| 428 | device i2c 50 on end |
| 429 | end |
| 430 | end |
Simon Zhou | 6477d19 | 2023-05-17 10:12:29 +0800 | [diff] [blame] | 431 | device ref gspi1 on |
| 432 | chip drivers/spi/acpi |
| 433 | register "name" = ""CRFP"" |
| 434 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 435 | register "uid" = "1" |
| 436 | register "compat_string" = ""google,cros-ec-spi"" |
| 437 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E10_IRQ)" |
| 438 | register "wake" = "GPE0_DW1_10" |
| 439 | register "has_power_resource" = "1" |
| 440 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C21)" |
| 441 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B08)" |
| 442 | register "enable_delay_ms" = "3" |
| 443 | device spi 0 on end |
| 444 | end # FPMCU |
| 445 | end |
jason.z.chen | 90c3df7 | 2023-05-11 17:23:50 +0800 | [diff] [blame] | 446 | device ref i2c5 on |
| 447 | chip drivers/intel/mipi_camera |
| 448 | register "acpi_hid" = ""OVTI08F4"" |
| 449 | register "acpi_uid" = "0" |
| 450 | register "acpi_name" = ""CAM0"" |
| 451 | register "chip_name" = ""Ov 08X40 Camera"" |
| 452 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 453 | register "ssdb.lanes_used" = "4" |
| 454 | register "ssdb.link_used" = "1" |
| 455 | register "num_freq_entries" = "1" |
| 456 | register "link_freq[0]" = "400 * MHz" |
| 457 | register "remote_name" = ""IPU0"" |
| 458 | |
| 459 | register "has_power_resource" = "1" |
| 460 | #Controls |
| 461 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_2" |
| 462 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 463 | register "gpio_panel.gpio[1].gpio_num" = "GPP_A12" #EN_UCAM_PWR |
| 464 | register "gpio_panel.gpio[0].gpio_num" = "GPP_A11" #EN_UCAM_SENR_PWR |
| 465 | register "gpio_panel.gpio[2].gpio_num" = "GPP_V23" #UCAM_RST_L |
| 466 | |
| 467 | #_ON |
| 468 | register "on_seq.ops_cnt" = "5" |
| 469 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 470 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 471 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 472 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 473 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 474 | |
| 475 | #_OFF |
| 476 | register "off_seq.ops_cnt" = "4" |
| 477 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 478 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 479 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 480 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 481 | device i2c 36 on end |
| 482 | end |
| 483 | chip drivers/intel/mipi_camera |
| 484 | register "acpi_uid" = "1" |
| 485 | register "acpi_name" = ""NVM0"" |
| 486 | register "chip_name" = ""M24C64X"" |
| 487 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 488 | |
| 489 | register "has_power_resource" = "1" |
| 490 | #Controls |
| 491 | register "gpio_panel.gpio[0].gpio_num" = "GPP_A12" #EN_UCAM_PWR |
| 492 | |
| 493 | #_ON |
| 494 | register "on_seq.ops_cnt" = "1" |
| 495 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 496 | |
| 497 | #_OFF |
| 498 | register "off_seq.ops_cnt" = "1" |
| 499 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 500 | |
| 501 | register "nvm_size" = "0x2000" |
| 502 | register "nvm_pagesize" = "1" |
| 503 | register "nvm_readonly" = "1" |
| 504 | register "nvm_width" = "0x10" |
| 505 | register "nvm_compat" = ""atmel,24c64"" |
| 506 | |
| 507 | device i2c 50 on end |
| 508 | end |
| 509 | end #I2C5 |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 510 | device ref soc_espi on |
| 511 | chip ec/google/chromeec |
| 512 | use conn0 as mux_conn[0] |
| 513 | use conn1 as mux_conn[1] |
| 514 | device pnp 0c09.0 on end |
| 515 | end |
| 516 | end |
| 517 | device ref pmc hidden |
| 518 | chip drivers/intel/pmc_mux |
| 519 | device generic 0 on |
| 520 | chip drivers/intel/pmc_mux/conn |
| 521 | use usb2_port2 as usb2_port |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 522 | use tcss_usb3_port1 as usb3_port |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 523 | device generic 0 alias conn0 on end |
| 524 | end |
| 525 | chip drivers/intel/pmc_mux/conn |
| 526 | use usb2_port1 as usb2_port |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 527 | use tcss_usb3_port3 as usb3_port |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 528 | device generic 1 alias conn1 on end |
| 529 | end |
| 530 | end |
| 531 | end |
| 532 | end |
Rui Zhou | 5c3c529 | 2023-06-01 18:22:13 +0800 | [diff] [blame] | 533 | device ref hda on |
| 534 | chip drivers/generic/alc1015 |
| 535 | register "hid" = ""RTL1019"" |
| 536 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B07)" |
| 537 | device generic 0 on |
| 538 | probe AUDIO ALC1019_ALC5682I_I2S |
| 539 | end |
| 540 | end |
| 541 | end |
Kun Liu | 6f6353d | 2023-05-06 12:25:54 +0800 | [diff] [blame] | 542 | end |
Simon Zhou | 2cf25eb | 2023-04-14 14:21:00 +0800 | [diff] [blame] | 543 | end |