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