Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
| 3 | option DB_NONE 0 |
| 4 | option DB_1C_1A 1 |
| 5 | option DB_1C 2 |
| 6 | option DB_1C_LTE 3 |
| 7 | end |
| 8 | field WIFI_SAR_ID 2 3 |
| 9 | option SAR_ID_0 0 |
| 10 | end |
| 11 | field STYLUS 9 |
| 12 | option STYLUS_ABSENT 0 |
| 13 | option STYLUS_PRESENT 1 |
| 14 | end |
| 15 | field SD_CARD 10 |
| 16 | option SD_PRESENT 0 |
| 17 | option SD_ABSENT 1 |
| 18 | end |
| 19 | field WFC 11 |
| 20 | option WFC_ABSENT 0 |
| 21 | option WFC_MIPI_OVTI8856 1 |
| 22 | end |
| 23 | field MB_HDMI 12 |
| 24 | option HDMI_ABSENT 0 |
| 25 | option HDMI_PRESENT 1 |
| 26 | end |
| 27 | field MB_USB 15 |
| 28 | option MB_1C 0 |
| 29 | option MB_1C_2A 1 |
| 30 | end |
Shon Wang | 204a8a4 | 2023-06-07 09:47:40 +0800 | [diff] [blame] | 31 | field WIFI_SAR_ID2 16 19 |
| 32 | option INTEL_YAVILLA_LTE 0 |
| 33 | option INTEL_YAVILLA_WIFI 1 |
| 34 | option INTEL_YAVILLY_LTE 2 |
| 35 | option INTEL_YAVILLY_WIFI 3 |
| 36 | option INTEL_YAVIJO_LTE 4 |
| 37 | option INTEL_YAVIJO_WIFI 5 |
| 38 | option UNUSED 15 |
| 39 | end |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 40 | end |
| 41 | |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 42 | chip soc/intel/alderlake |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 43 | register "sagv" = "SaGv_Enabled" |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 44 | |
Tony Huang | 007547a | 2023-07-31 10:21:24 +0800 | [diff] [blame] | 45 | # EMMC Tx CMD Delay |
| 46 | # Refer to EDS-Vol2-42.3.7. |
| 47 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 48 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 49 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 50 | |
| 51 | # EMMC TX DATA Delay 1 |
| 52 | # Refer to EDS-Vol2-42.3.8. |
| 53 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 54 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 55 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 56 | |
| 57 | # EMMC TX DATA Delay 2 |
| 58 | # Refer to EDS-Vol2-42.3.9. |
| 59 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 60 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 61 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 62 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 63 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C272828" |
| 64 | |
| 65 | # EMMC RX CMD/DATA Delay 1 |
| 66 | # Refer to EDS-Vol2-42.3.10. |
| 67 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 68 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 69 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 70 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 71 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C171733" |
| 72 | |
| 73 | # EMMC RX CMD/DATA Delay 2 |
| 74 | # Refer to EDS-Vol2-42.3.12. |
| 75 | # [17:16] stands for Rx Clock before Output Buffer, |
| 76 | # 00: Rx clock after output buffer, |
| 77 | # 01: Rx clock before output buffer, |
| 78 | # 10: Automatic selection based on working mode. |
| 79 | # 11: Reserved |
| 80 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 81 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 82 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10024" |
| 83 | |
| 84 | # EMMC Rx Strobe Delay |
| 85 | # Refer to EDS-Vol2-42.3.11. |
| 86 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 87 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 88 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x1414" |
| 89 | |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 90 | # Bit 0 - C0 has no redriver, so enable SBU muxing in the SoC. |
| 91 | # Bit 2 - C1 has a redriver which does SBU muxing. |
| 92 | # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1. |
| 93 | register "tcss_aux_ori" = "1" |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 94 | |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 95 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 96 | |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 97 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # USB2 WWAN |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 98 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
| 99 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 100 | |
| 101 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 WWAN |
| 102 | |
| 103 | # Configure external V1P05/Vnn/VnnSx Rails |
| 104 | register "ext_fivr_settings" = "{ |
| 105 | .configure_ext_fivr = 1, |
| 106 | }" |
| 107 | |
| 108 | # Intel Common SoC Config |
| 109 | #+-------------------+---------------------------+ |
| 110 | #| Field | Value | |
| 111 | #+-------------------+---------------------------+ |
| 112 | #| I2C0 | TPM. Early init is | |
| 113 | #| | required to set up a BAR | |
| 114 | #| | for TPM communication | |
| 115 | #| I2C1 | Touchscreen | |
| 116 | #| I2C2 | WCAM | |
| 117 | #| I2C3 | Audio | |
| 118 | #| I2C5 | Trackpad | |
| 119 | #+-------------------+---------------------------+ |
| 120 | register "common_soc_config" = "{ |
| 121 | .i2c[0] = { |
| 122 | .early_init = 1, |
| 123 | .speed = I2C_SPEED_FAST_PLUS, |
Tony Huang | efe0351 | 2023-05-19 15:52:24 +0800 | [diff] [blame] | 124 | .speed_config[0] = { |
| 125 | .speed = I2C_SPEED_FAST_PLUS, |
| 126 | .scl_lcnt = 56, |
| 127 | .scl_hcnt = 30, |
| 128 | .sda_hold = 7, |
| 129 | } |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 130 | }, |
| 131 | .i2c[1] = { |
| 132 | .speed = I2C_SPEED_FAST, |
Tony Huang | efe0351 | 2023-05-19 15:52:24 +0800 | [diff] [blame] | 133 | .speed_config[0] = { |
| 134 | .speed = I2C_SPEED_FAST, |
| 135 | .scl_lcnt = 158, |
| 136 | .scl_hcnt = 79, |
| 137 | .sda_hold = 30, |
| 138 | } |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 139 | }, |
| 140 | .i2c[2] = { |
| 141 | .speed = I2C_SPEED_FAST, |
Tony Huang | efe0351 | 2023-05-19 15:52:24 +0800 | [diff] [blame] | 142 | .speed_config[0] = { |
| 143 | .speed = I2C_SPEED_FAST, |
| 144 | .scl_lcnt = 158, |
| 145 | .scl_hcnt = 79, |
| 146 | .sda_hold = 7, |
| 147 | } |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 148 | }, |
| 149 | .i2c[3] = { |
| 150 | .speed = I2C_SPEED_FAST, |
Tony Huang | efe0351 | 2023-05-19 15:52:24 +0800 | [diff] [blame] | 151 | .speed_config[0] = { |
| 152 | .speed = I2C_SPEED_FAST, |
| 153 | .scl_lcnt = 158, |
| 154 | .scl_hcnt = 79, |
| 155 | .sda_hold = 7, |
| 156 | } |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 157 | }, |
| 158 | .i2c[5] = { |
| 159 | .speed = I2C_SPEED_FAST, |
Tony Huang | efe0351 | 2023-05-19 15:52:24 +0800 | [diff] [blame] | 160 | .speed_config[0] = { |
| 161 | .speed = I2C_SPEED_FAST, |
| 162 | .scl_lcnt = 158, |
| 163 | .scl_hcnt = 79, |
| 164 | .sda_hold = 40, |
| 165 | } |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 166 | }, |
| 167 | }" |
| 168 | |
| 169 | device domain 0 on |
| 170 | device ref dtt on |
| 171 | chip drivers/intel/dptf |
| 172 | ## sensor information |
| 173 | register "options.tsr[0].desc" = ""CPU"" |
| 174 | register "options.tsr[1].desc" = ""5V Regulator"" |
| 175 | register "options.tsr[2].desc" = ""Charger"" |
| 176 | |
| 177 | # TODO: below values are initial reference values only |
| 178 | ## Passive Policy |
| 179 | register "policies.passive" = "{ |
| 180 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 181 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 182 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 183 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 184 | }" |
| 185 | |
| 186 | ## Critical Policy |
| 187 | register "policies.critical" = "{ |
| 188 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 189 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 190 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 191 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 192 | }" |
| 193 | |
| 194 | register "controls.power_limits" = "{ |
| 195 | .pl1 = { |
| 196 | .min_power = 3000, |
| 197 | .max_power = 6000, |
| 198 | .time_window_min = 28 * MSECS_PER_SEC, |
| 199 | .time_window_max = 32 * MSECS_PER_SEC, |
| 200 | .granularity = 200 |
| 201 | }, |
| 202 | .pl2 = { |
| 203 | .min_power = 25000, |
| 204 | .max_power = 25000, |
| 205 | .time_window_min = 28 * MSECS_PER_SEC, |
| 206 | .time_window_max = 32 * MSECS_PER_SEC, |
| 207 | .granularity = 1000 |
| 208 | } |
| 209 | }" |
| 210 | |
| 211 | ## Charger Performance Control (Control, mA) |
| 212 | register "controls.charger_perf" = "{ |
| 213 | [0] = { 255, 1700 }, |
| 214 | [1] = { 24, 1500 }, |
| 215 | [2] = { 16, 1000 }, |
| 216 | [3] = { 8, 500 } |
| 217 | }" |
| 218 | |
| 219 | device generic 0 on end |
| 220 | end |
| 221 | end |
| 222 | device ref ipu on |
| 223 | chip drivers/intel/mipi_camera |
| 224 | register "acpi_uid" = "0x50000" |
| 225 | register "acpi_name" = ""IPU0"" |
| 226 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 227 | |
| 228 | register "cio2_num_ports" = "1" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 229 | register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 230 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 231 | register "cio2_prt[0]" = "1" |
| 232 | device generic 0 on end |
| 233 | end |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 234 | probe WFC WFC_MIPI_OVTI8856 |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 235 | end |
| 236 | device ref cnvi_wifi on |
| 237 | chip drivers/wifi/generic |
| 238 | register "enable_cnvi_ddr_rfim" = "true" |
| 239 | device generic 0 on end |
| 240 | end |
| 241 | end |
| 242 | device ref i2c1 on |
Tony Huang | 0f8c03b | 2023-04-26 13:25:03 +0800 | [diff] [blame] | 243 | chip drivers/i2c/generic |
| 244 | register "hid" = ""ELAN0001"" |
| 245 | register "desc" = ""ELAN Touchscreen"" |
| 246 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 247 | register "detect" = "1" |
Tony Huang | 0f8c03b | 2023-04-26 13:25:03 +0800 | [diff] [blame] | 248 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 249 | register "reset_delay_ms" = "20" |
| 250 | register "reset_off_delay_ms" = "2" |
| 251 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 252 | register "stop_delay_ms" = "280" |
| 253 | register "stop_off_delay_ms" = "2" |
| 254 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 255 | register "enable_delay_ms" = "1" |
| 256 | register "has_power_resource" = "1" |
| 257 | device i2c 10 on end |
| 258 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 259 | chip drivers/i2c/hid |
| 260 | register "generic.hid" = ""ELAN2513"" |
| 261 | register "generic.desc" = ""ELAN Touchscreen"" |
| 262 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 263 | register "generic.detect" = "1" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 264 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 265 | register "generic.reset_delay_ms" = "20" |
| 266 | register "generic.reset_off_delay_ms" = "2" |
| 267 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 268 | register "generic.stop_delay_ms" = "280" |
| 269 | register "generic.stop_off_delay_ms" = "2" |
| 270 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 271 | register "generic.enable_delay_ms" = "1" |
| 272 | register "generic.has_power_resource" = "1" |
| 273 | register "hid_desc_reg_offset" = "0x01" |
| 274 | device i2c 15 on end |
| 275 | end |
Tony Huang | ee92e52 | 2023-05-04 09:14:53 +0800 | [diff] [blame] | 276 | chip drivers/i2c/hid |
| 277 | register "generic.hid" = ""GTCH7503"" |
| 278 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 279 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 280 | register "generic.detect" = "1" |
Tony Huang | ee92e52 | 2023-05-04 09:14:53 +0800 | [diff] [blame] | 281 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 282 | register "generic.reset_delay_ms" = "50" |
| 283 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 284 | register "generic.enable_delay_ms" = "1" |
| 285 | register "generic.has_power_resource" = "1" |
| 286 | register "hid_desc_reg_offset" = "0x01" |
| 287 | device i2c 40 on end |
| 288 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 289 | chip drivers/generic/gpio_keys |
| 290 | register "name" = ""PENH"" |
| 291 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 292 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 293 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 294 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 295 | register "key.dev_name" = ""EJCT"" |
| 296 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 297 | register "key.linux_input_type" = "EV_SW" |
| 298 | register "key.label" = ""pen_eject"" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 299 | device generic 0 on |
| 300 | probe STYLUS STYLUS_PRESENT |
| 301 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 302 | end |
| 303 | end |
| 304 | device ref i2c2 on |
| 305 | chip drivers/intel/mipi_camera |
| 306 | register "acpi_hid" = ""OVTI8856"" |
| 307 | register "acpi_uid" = "0" |
| 308 | register "acpi_name" = ""CAM0"" |
| 309 | register "chip_name" = ""Ov 8856 Camera"" |
| 310 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 311 | register "has_power_resource" = "1" |
Robert Chen | 2d2815a | 2023-07-23 22:54:55 -0400 | [diff] [blame] | 312 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D3_COLD" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 313 | |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 314 | register "ssdb.lanes_used" = "4" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 315 | register "ssdb.link_used" = "1" |
| 316 | register "ssdb.vcm_type" = "0x0C" |
| 317 | register "vcm_name" = ""VCM0"" |
| 318 | register "num_freq_entries" = "2" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 319 | register "link_freq[0]" = "360000000" |
| 320 | register "link_freq[1]" = "180000000" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 321 | register "remote_name" = ""IPU0"" |
| 322 | |
| 323 | #Controls |
| 324 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 325 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 326 | |
| 327 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 328 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 329 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 330 | |
| 331 | #_ON |
| 332 | register "on_seq.ops_cnt" = "5" |
| 333 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 334 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 335 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 336 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 337 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 338 | |
| 339 | #_OFF |
| 340 | register "off_seq.ops_cnt" = "4" |
| 341 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 342 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 343 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 344 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 345 | |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 346 | device i2c 36 on |
| 347 | probe WFC WFC_MIPI_OVTI8856 |
| 348 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 349 | end |
| 350 | chip drivers/intel/mipi_camera |
| 351 | register "acpi_uid" = "3" |
| 352 | register "acpi_name" = ""VCM0"" |
| 353 | register "chip_name" = ""DW AF DAC"" |
| 354 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 355 | |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 356 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 357 | |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 358 | device i2c 0C on |
| 359 | probe WFC WFC_MIPI_OVTI8856 |
| 360 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 361 | end |
| 362 | chip drivers/intel/mipi_camera |
| 363 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 364 | register "acpi_uid" = "1" |
| 365 | register "acpi_name" = ""NVM0"" |
| 366 | register "chip_name" = ""GT24C08"" |
| 367 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 368 | |
Serin Yeh | 57a9e6a | 2023-08-02 19:00:46 +0800 | [diff] [blame^] | 369 | register "nvm_size" = "0x400" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 370 | register "nvm_pagesize" = "1" |
| 371 | register "nvm_readonly" = "1" |
Serin Yeh | 57a9e6a | 2023-08-02 19:00:46 +0800 | [diff] [blame^] | 372 | register "nvm_width" = "0x08" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 373 | register "nvm_compat" = ""atmel,24c08"" |
| 374 | |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 375 | device i2c 50 on |
| 376 | probe WFC WFC_MIPI_OVTI8856 |
| 377 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 378 | end |
| 379 | end |
| 380 | device ref i2c3 on |
| 381 | chip drivers/i2c/generic |
| 382 | register "hid" = ""RTL5682"" |
| 383 | register "name" = ""RT58"" |
| 384 | register "desc" = ""Headset Codec"" |
| 385 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 386 | # Set the jd_src to RT5668_JD1 for jack detection |
| 387 | register "property_count" = "1" |
| 388 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 389 | register "property_list[0].name" = ""realtek,jd-src"" |
| 390 | register "property_list[0].integer" = "1" |
| 391 | device i2c 1a on end |
| 392 | end |
| 393 | end |
| 394 | device ref i2c5 on |
| 395 | chip drivers/i2c/generic |
| 396 | register "hid" = ""ELAN0000"" |
| 397 | register "desc" = ""ELAN Touchpad"" |
| 398 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 399 | register "wake" = "GPE0_DW2_14" |
| 400 | register "detect" = "1" |
| 401 | device i2c 15 on end |
| 402 | end |
| 403 | chip drivers/i2c/hid |
| 404 | register "generic.hid" = ""SYNA0000"" |
| 405 | register "generic.cid" = ""ACPI0C50"" |
| 406 | register "generic.desc" = ""Synaptics Touchpad"" |
| 407 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 408 | register "generic.wake" = "GPE0_DW2_14" |
| 409 | register "generic.detect" = "1" |
| 410 | register "hid_desc_reg_offset" = "0x20" |
| 411 | device i2c 0x2c on end |
| 412 | end |
| 413 | end |
| 414 | device ref hda on |
| 415 | chip drivers/generic/max98357a |
| 416 | register "hid" = ""MX98360A"" |
| 417 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 418 | register "sdmode_delay" = "5" |
| 419 | device generic 0 on end |
| 420 | end |
| 421 | end |
| 422 | device ref pcie_rp4 on |
| 423 | # PCIe 4 WLAN |
| 424 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 425 | .clk_src = 2, |
| 426 | .clk_req = 2, |
| 427 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 428 | }" |
| 429 | chip drivers/wifi/generic |
| 430 | register "wake" = "GPE0_DW1_03" |
| 431 | register "add_acpi_dma_property" = "true" |
| 432 | device pci 00.0 on end |
| 433 | end |
| 434 | end |
| 435 | device ref pcie_rp7 off end #PCIE7 no SD card |
| 436 | device ref emmc on end |
| 437 | device ref ish on |
| 438 | chip drivers/intel/ish |
| 439 | register "add_acpi_dma_property" = "true" |
| 440 | device generic 0 on end |
| 441 | end |
| 442 | end |
| 443 | device ref ufs on end |
| 444 | device ref pch_espi on |
| 445 | chip ec/google/chromeec |
| 446 | use conn0 as mux_conn[0] |
| 447 | use conn1 as mux_conn[1] |
| 448 | device pnp 0c09.0 on end |
| 449 | end |
| 450 | end |
| 451 | device ref pmc hidden |
| 452 | chip drivers/intel/pmc_mux |
| 453 | device generic 0 on |
| 454 | chip drivers/intel/pmc_mux/conn |
| 455 | use usb2_port1 as usb2_port |
| 456 | use tcss_usb3_port1 as usb3_port |
| 457 | device generic 0 alias conn0 on end |
| 458 | end |
| 459 | chip drivers/intel/pmc_mux/conn |
| 460 | use usb2_port2 as usb2_port |
| 461 | use tcss_usb3_port2 as usb3_port |
| 462 | device generic 1 alias conn1 on end |
| 463 | end |
| 464 | end |
| 465 | end |
| 466 | end |
| 467 | device ref tcss_xhci on |
| 468 | chip drivers/usb/acpi |
| 469 | device ref tcss_root_hub on |
| 470 | chip drivers/usb/acpi |
| 471 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 472 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 473 | register "use_custom_pld" = "true" |
| 474 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 475 | device ref tcss_usb3_port1 on end |
| 476 | end |
| 477 | chip drivers/usb/acpi |
| 478 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 479 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 480 | register "use_custom_pld" = "true" |
| 481 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 482 | device ref tcss_usb3_port2 on end |
| 483 | end |
| 484 | end |
| 485 | end |
| 486 | end |
| 487 | device ref xhci on |
| 488 | chip drivers/usb/acpi |
| 489 | device ref xhci_root_hub on |
| 490 | chip drivers/usb/acpi |
| 491 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 492 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 493 | register "use_custom_pld" = "true" |
| 494 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 495 | device ref usb2_port1 on end |
| 496 | end |
| 497 | chip drivers/usb/acpi |
| 498 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 499 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 500 | register "use_custom_pld" = "true" |
| 501 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 502 | device ref usb2_port2 on end |
| 503 | end |
| 504 | chip drivers/usb/acpi |
| 505 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 506 | register "type" = "UPC_TYPE_A" |
| 507 | register "use_custom_pld" = "true" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 508 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 509 | device ref usb2_port3 on end |
| 510 | end |
| 511 | chip drivers/usb/acpi |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 512 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 513 | register "type" = "UPC_TYPE_A" |
| 514 | register "use_custom_pld" = "true" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 515 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 516 | device ref usb2_port4 on end |
| 517 | end |
| 518 | chip drivers/usb/acpi |
| 519 | register "desc" = ""USB2 WWAN"" |
| 520 | register "type" = "UPC_TYPE_INTERNAL" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 521 | device ref usb2_port5 on |
| 522 | probe DB_USB DB_1C_LTE |
| 523 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 524 | end |
| 525 | chip drivers/usb/acpi |
| 526 | register "desc" = ""USB2 UFC"" |
| 527 | register "type" = "UPC_TYPE_INTERNAL" |
| 528 | device ref usb2_port6 on end |
| 529 | end |
| 530 | chip drivers/usb/acpi |
| 531 | register "desc" = ""USB2 Bluetooth"" |
| 532 | register "type" = "UPC_TYPE_INTERNAL" |
| 533 | register "reset_gpio" = |
| 534 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 535 | device ref usb2_port8 on end |
| 536 | end |
| 537 | chip drivers/usb/acpi |
| 538 | register "desc" = ""CNVi Bluetooth"" |
| 539 | register "type" = "UPC_TYPE_INTERNAL" |
| 540 | register "reset_gpio" = |
| 541 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 542 | device ref usb2_port10 on end |
| 543 | end |
| 544 | chip drivers/usb/acpi |
| 545 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 546 | register "type" = "UPC_TYPE_USB3_A" |
| 547 | register "use_custom_pld" = "true" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 548 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 549 | device ref usb3_port1 on end |
| 550 | end |
| 551 | chip drivers/usb/acpi |
| 552 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 553 | register "type" = "UPC_TYPE_USB3_A" |
| 554 | register "use_custom_pld" = "true" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 555 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 556 | device ref usb3_port2 on end |
| 557 | end |
| 558 | chip drivers/usb/acpi |
| 559 | register "desc" = ""USB3 WWAN"" |
| 560 | register "type" = "UPC_TYPE_INTERNAL" |
Tony Huang | fa945c8 | 2023-04-21 13:54:13 +0800 | [diff] [blame] | 561 | device ref usb3_port3 on |
| 562 | probe DB_USB DB_1C_LTE |
| 563 | end |
Tony Huang | f78e1a7 | 2023-03-17 13:25:49 +0800 | [diff] [blame] | 564 | end |
| 565 | end |
| 566 | end |
| 567 | end |
| 568 | end |
Tony Huang | de2e716 | 2023-03-15 10:41:42 +0800 | [diff] [blame] | 569 | end |