Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 3 | option DB_NONE 0 |
| 4 | option DB_1C_1A 1 |
| 5 | option DB_1C_LTE 2 |
| 6 | end |
| 7 | field WFC 2 3 |
| 8 | option WFC_ABSENT 0 |
| 9 | option WFC_MIPI_OVTI5675 1 |
Tyler Wang | 20b58bc8 | 2022-05-16 13:43:43 +0800 | [diff] [blame] | 10 | option WFC_MIPI_OVTI8856 2 |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 11 | end |
| 12 | field STYLUS 4 |
| 13 | option STYLUS_ABSENT 0 |
| 14 | option STYLUS_PRESENT 1 |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 15 | end |
Tyler Wang | 129e6b7 | 2022-06-14 18:08:06 +0800 | [diff] [blame] | 16 | field SD_CARD 5 |
| 17 | option SD_GL9750S 0 |
| 18 | option SD_ABSENT 1 |
| 19 | end |
Tyler Wang | 29ae267 | 2022-07-08 18:13:31 +0800 | [diff] [blame] | 20 | field AMP 6 7 |
Tyler Wang | 3f52aa5 | 2022-06-09 14:34:08 +0800 | [diff] [blame] | 21 | option AMP_MX98360A 0 |
| 22 | end |
Ren Kuo | 547cef0 | 2023-01-12 14:01:39 +0800 | [diff] [blame^] | 23 | field THERMAL_SOLUTION 10 12 |
| 24 | option THERMAL_SOLUTION_6W 0 |
| 25 | option THERMAL_SOLUTION_15W 1 |
| 26 | end |
Tyler Wang | 8ec4024 | 2022-10-21 11:19:47 +0800 | [diff] [blame] | 27 | field WIFI_SAR_ID 13 15 |
| 28 | option ID_0 0 |
Tyler Wang | 8ec4024 | 2022-10-21 11:19:47 +0800 | [diff] [blame] | 29 | end |
Tyler Wang | 29ae267 | 2022-07-08 18:13:31 +0800 | [diff] [blame] | 30 | field CODEC 32 33 |
| 31 | option CODEC_ALC5682I_VS 0 |
| 32 | option CODEC_NAU8825 1 |
| 33 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 34 | end |
| 35 | |
Tyler Wang | f478b1f | 2022-03-31 13:57:17 +0800 | [diff] [blame] | 36 | chip soc/intel/alderlake |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 37 | register "sagv" = "SaGv_Enabled" |
Tyler Wang | f478b1f | 2022-03-31 13:57:17 +0800 | [diff] [blame] | 38 | |
Simon Yang | 60ac265 | 2022-07-28 10:43:41 +0800 | [diff] [blame] | 39 | # EMMC Tx CMD Delay |
| 40 | # Refer to EDS-Vol2-42.3.7. |
| 41 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 42 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 43 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 44 | |
| 45 | # EMMC TX DATA Delay 1 |
| 46 | # Refer to EDS-Vol2-42.3.8. |
| 47 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 48 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 49 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 50 | |
| 51 | # EMMC TX DATA Delay 2 |
| 52 | # Refer to EDS-Vol2-42.3.9. |
| 53 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 54 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 55 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 56 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 57 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C2A2828" |
| 58 | |
| 59 | # EMMC RX CMD/DATA Delay 1 |
| 60 | # Refer to EDS-Vol2-42.3.10. |
| 61 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 62 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 63 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 64 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 65 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C1B4F3C" |
| 66 | |
| 67 | # EMMC RX CMD/DATA Delay 2 |
| 68 | # Refer to EDS-Vol2-42.3.12. |
| 69 | # [17:16] stands for Rx Clock before Output Buffer, |
| 70 | # 00: Rx clock after output buffer, |
| 71 | # 01: Rx clock before output buffer, |
| 72 | # 10: Automatic selection based on working mode. |
| 73 | # 11: Reserved |
| 74 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 75 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 76 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10023" |
| 77 | |
| 78 | # EMMC Rx Strobe Delay |
| 79 | # Refer to EDS-Vol2-42.3.11. |
| 80 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 81 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 82 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x11515" |
| 83 | |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 84 | # SOC Aux orientation override: |
| 85 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 86 | # Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. |
| 87 | # TcssAuxOri = 0101b |
| 88 | # Bit0,Bit2 set to "1" indicates no retimer on USBC Ports |
| 89 | # Bit1,Bit3 set to "0" indicates Aux lines are not swapped on the |
| 90 | # motherboard to USBC connector |
| 91 | register "tcss_aux_ori" = "5" |
Tyler Wang | f478b1f | 2022-03-31 13:57:17 +0800 | [diff] [blame] | 92 | |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 93 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 94 | register "typec_aux_bias_pads[1]" = "{.pad_auxp_dc = GPP_A21, .pad_auxn_dc = GPP_A22}" |
| 95 | |
| 96 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 97 | |
Tyler Wang | 322aa80 | 2022-05-24 18:37:24 +0800 | [diff] [blame] | 98 | # Configure external V1P05/Vnn/VnnSx Rails |
| 99 | register "ext_fivr_settings" = "{ |
| 100 | .configure_ext_fivr = 1, |
V Sowmya | 662bbcf | 2022-09-15 08:04:10 +0530 | [diff] [blame] | 101 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0, |
Tyler Wang | 322aa80 | 2022-05-24 18:37:24 +0800 | [diff] [blame] | 102 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 103 | .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 104 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL, |
| 105 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE, |
| 106 | .v1p05_voltage_mv = 1050, |
| 107 | .vnn_voltage_mv = 780, |
| 108 | .vnn_sx_voltage_mv = 1050, |
| 109 | .v1p05_icc_max_ma = 500, |
| 110 | .vnn_icc_max_ma = 500, |
| 111 | }" |
| 112 | |
Tyler Wang | 1afa771 | 2022-08-05 14:04:13 +0800 | [diff] [blame] | 113 | # Enable the Cnvi BT Audio Offload |
| 114 | register "cnvi_bt_audio_offload" = "1" |
| 115 | |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 116 | register "power_limits_config[ADL_N_041_6W_CORE]" = "{ |
| 117 | .tdp_pl1_override = 6, |
Tyler Wang | f346a17 | 2022-10-18 16:51:27 +0800 | [diff] [blame] | 118 | .tdp_pl2_override = 25, |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 119 | .tdp_pl4 = 78, |
| 120 | }" |
| 121 | |
| 122 | register "power_limits_config[ADL_N_021_6W_CORE]" = "{ |
| 123 | .tdp_pl1_override = 6, |
Tyler Wang | f346a17 | 2022-10-18 16:51:27 +0800 | [diff] [blame] | 124 | .tdp_pl2_override = 25, |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 125 | .tdp_pl4 = 78, |
| 126 | }" |
| 127 | |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 128 | device domain 0 on |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 129 | device ref dtt on |
| 130 | chip drivers/intel/dptf |
| 131 | ## sensor information |
| 132 | register "options.tsr[0].desc" = ""Memory"" |
| 133 | register "options.tsr[1].desc" = ""Charger"" |
Tyler Wang | c3d5b9d | 2022-11-04 14:17:28 +0800 | [diff] [blame] | 134 | register "options.tsr[2].desc" = ""Ambient"" |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 135 | |
| 136 | # TODO: below values are initial reference values only |
| 137 | ## Passive Policy |
| 138 | register "policies.passive" = "{ |
| 139 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 140 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 141 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
Tyler Wang | c3d5b9d | 2022-11-04 14:17:28 +0800 | [diff] [blame] | 142 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 143 | }" |
| 144 | |
| 145 | ## Critical Policy |
| 146 | register "policies.critical" = "{ |
| 147 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 148 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 149 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
Tyler Wang | c3d5b9d | 2022-11-04 14:17:28 +0800 | [diff] [blame] | 150 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 151 | }" |
| 152 | |
| 153 | register "controls.power_limits" = "{ |
| 154 | .pl1 = { |
Tyler Wang | f346a17 | 2022-10-18 16:51:27 +0800 | [diff] [blame] | 155 | .min_power = 5500, |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 156 | .max_power = 6000, |
| 157 | .time_window_min = 28 * MSECS_PER_SEC, |
Tyler Wang | f346a17 | 2022-10-18 16:51:27 +0800 | [diff] [blame] | 158 | .time_window_max = 28 * MSECS_PER_SEC, |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 159 | .granularity = 200 |
| 160 | }, |
| 161 | .pl2 = { |
Tyler Wang | f346a17 | 2022-10-18 16:51:27 +0800 | [diff] [blame] | 162 | .min_power = 25000, |
| 163 | .max_power = 25000, |
| 164 | .time_window_min = 1, |
| 165 | .time_window_max = 1, |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 166 | .granularity = 1000 |
| 167 | } |
| 168 | }" |
| 169 | |
| 170 | ## Charger Performance Control (Control, mA) |
| 171 | register "controls.charger_perf" = "{ |
| 172 | [0] = { 255, 1700 }, |
| 173 | [1] = { 24, 1500 }, |
| 174 | [2] = { 16, 1000 }, |
| 175 | [3] = { 8, 500 } |
| 176 | }" |
| 177 | |
Ren Kuo | 547cef0 | 2023-01-12 14:01:39 +0800 | [diff] [blame^] | 178 | device generic 0 on |
| 179 | probe THERMAL_SOLUTION THERMAL_SOLUTION_6W |
| 180 | end |
| 181 | end |
| 182 | chip drivers/intel/dptf |
| 183 | ## sensor information |
| 184 | register "options.tsr[0].desc" = ""Memory"" |
| 185 | register "options.tsr[1].desc" = ""Charger"" |
| 186 | register "options.tsr[2].desc" = ""Ambient"" |
| 187 | |
| 188 | # TODO: below values are initial reference values only |
| 189 | ## Passive Policy |
| 190 | register "policies.passive" = "{ |
| 191 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 192 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 193 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 194 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 195 | }" |
| 196 | |
| 197 | ## Critical Policy |
| 198 | register "policies.critical" = "{ |
| 199 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 200 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 201 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 202 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 203 | }" |
| 204 | |
| 205 | register "controls.power_limits" = "{ |
| 206 | .pl1 = { |
| 207 | .min_power = 15000, |
| 208 | .max_power = 15000, |
| 209 | .time_window_min = 28 * MSECS_PER_SEC, |
| 210 | .time_window_max = 28 * MSECS_PER_SEC, |
| 211 | .granularity = 125 |
| 212 | }, |
| 213 | .pl2 = { |
| 214 | .min_power = 35000, |
| 215 | .max_power = 35000, |
| 216 | .time_window_min = 1, |
| 217 | .time_window_max = 1, |
| 218 | .granularity = 1000 |
| 219 | } |
| 220 | }" |
| 221 | |
| 222 | ## Charger Performance Control (Control, mA) |
| 223 | register "controls.charger_perf" = "{ |
| 224 | [0] = { 255, 1700 }, |
| 225 | [1] = { 24, 1500 }, |
| 226 | [2] = { 16, 1000 }, |
| 227 | [3] = { 8, 500 } |
| 228 | }" |
| 229 | |
| 230 | device generic 1 on |
| 231 | probe THERMAL_SOLUTION THERMAL_SOLUTION_15W |
| 232 | end |
Tyler Wang | 238c199 | 2022-07-25 18:33:19 +0800 | [diff] [blame] | 233 | end |
| 234 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 235 | device ref ipu on |
| 236 | chip drivers/intel/mipi_camera |
| 237 | register "acpi_uid" = "0x50000" |
| 238 | register "acpi_name" = ""IPU0"" |
| 239 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 240 | |
| 241 | register "cio2_num_ports" = "1" |
| 242 | register "cio2_lanes_used" = "{2}" # 2 CSI Camera lanes are used |
| 243 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 244 | register "cio2_prt[0]" = "1" |
| 245 | device generic 0 on end |
| 246 | end |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 247 | probe WFC WFC_MIPI_OVTI5675 |
Tyler Wang | 20b58bc8 | 2022-05-16 13:43:43 +0800 | [diff] [blame] | 248 | probe WFC WFC_MIPI_OVTI8856 |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 249 | end |
| 250 | device ref i2c1 on |
| 251 | chip drivers/i2c/hid |
Tyler Wang | 770e8e3 | 2022-11-15 09:16:33 +0800 | [diff] [blame] | 252 | register "generic.hid" = ""GTCH7502"" |
Tyler Wang | 5d9b8a9 | 2022-06-17 16:35:06 +0800 | [diff] [blame] | 253 | register "generic.desc" = ""G2 Touchscreen"" |
| 254 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 255 | register "generic.probed" = "1" |
| 256 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 257 | register "generic.reset_delay_ms" = "120" |
| 258 | register "generic.reset_off_delay_ms" = "3" |
| 259 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 260 | register "generic.enable_delay_ms" = "12" |
| 261 | register "generic.has_power_resource" = "1" |
| 262 | register "hid_desc_reg_offset" = "0x01" |
| 263 | device i2c 0x40 on end |
| 264 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 265 | chip drivers/generic/gpio_keys |
| 266 | register "name" = ""PENH"" |
| 267 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 268 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 269 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
Eric Lai | 445e066 | 2022-06-24 15:34:42 +0800 | [diff] [blame] | 270 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 271 | register "key.dev_name" = ""EJCT"" |
| 272 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 273 | register "key.linux_input_type" = "EV_SW" |
| 274 | register "key.label" = ""pen_eject"" |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 275 | device generic 0 on |
| 276 | probe STYLUS STYLUS_PRESENT |
| 277 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 278 | end |
Tyler Wang | 3e891cd | 2022-06-13 15:09:40 +0800 | [diff] [blame] | 279 | chip drivers/i2c/hid |
| 280 | register "generic.hid" = ""ELAN9004"" |
| 281 | register "generic.desc" = ""ELAN Touchscreen"" |
| 282 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 283 | register "generic.probed" = "1" |
| 284 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 285 | register "generic.reset_delay_ms" = "20" |
| 286 | register "generic.reset_off_delay_ms" = "2" |
| 287 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 288 | register "generic.stop_delay_ms" = "280" |
| 289 | register "generic.stop_off_delay_ms" = "2" |
| 290 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 291 | register "generic.enable_delay_ms" = "1" |
| 292 | register "generic.has_power_resource" = "1" |
Tyler Wang | 3e891cd | 2022-06-13 15:09:40 +0800 | [diff] [blame] | 293 | register "hid_desc_reg_offset" = "0x01" |
| 294 | device i2c 10 on end |
| 295 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 296 | end |
| 297 | device ref i2c2 on |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 298 | chip drivers/intel/mipi_camera |
| 299 | register "acpi_hid" = ""OVTI5675"" |
| 300 | register "acpi_uid" = "0" |
| 301 | register "acpi_name" = ""CAM0"" |
| 302 | register "chip_name" = ""Ov 5675 Camera"" |
| 303 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 304 | |
| 305 | register "ssdb.lanes_used" = "2" |
| 306 | register "ssdb.link_used" = "1" |
| 307 | register "ssdb.vcm_type" = "0x0C" |
| 308 | register "vcm_name" = ""VCM0"" |
| 309 | register "num_freq_entries" = "1" |
| 310 | register "link_freq[0]" = "DEFAULT_LINK_FREQ" |
| 311 | register "remote_name" = ""IPU0"" |
| 312 | |
| 313 | register "has_power_resource" = "1" |
| 314 | #Controls |
| 315 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 316 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 317 | |
| 318 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 319 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 320 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 321 | |
| 322 | #_ON |
| 323 | register "on_seq.ops_cnt" = "5" |
| 324 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 325 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 326 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 327 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 328 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 329 | |
| 330 | #_OFF |
| 331 | register "off_seq.ops_cnt" = "4" |
| 332 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 333 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 334 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 335 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 336 | |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 337 | device i2c 36 on |
| 338 | probe WFC WFC_MIPI_OVTI5675 |
| 339 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 340 | end |
| 341 | chip drivers/intel/mipi_camera |
Tyler Wang | 20b58bc8 | 2022-05-16 13:43:43 +0800 | [diff] [blame] | 342 | register "acpi_hid" = ""OVTI8856"" |
| 343 | register "acpi_uid" = "0" |
| 344 | register "acpi_name" = ""CAM0"" |
| 345 | register "chip_name" = ""Ov 8856 Camera"" |
| 346 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 347 | register "has_power_resource" = "1" |
| 348 | |
| 349 | register "ssdb.lanes_used" = "2" |
| 350 | register "ssdb.link_used" = "1" |
| 351 | register "ssdb.vcm_type" = "0x0C" |
| 352 | register "vcm_name" = ""VCM0"" |
| 353 | register "num_freq_entries" = "2" |
| 354 | register "link_freq[0]" = "720000000" |
| 355 | register "link_freq[1]" = "360000000" |
| 356 | register "remote_name" = ""IPU0"" |
| 357 | |
| 358 | #Controls |
| 359 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 360 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 361 | |
| 362 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 363 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 364 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 365 | |
| 366 | #_ON |
| 367 | register "on_seq.ops_cnt" = "5" |
| 368 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 369 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 370 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 371 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 372 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 373 | |
| 374 | #_OFF |
| 375 | register "off_seq.ops_cnt" = "4" |
| 376 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 377 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 378 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 379 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 380 | |
| 381 | device i2c 10 on |
| 382 | probe WFC WFC_MIPI_OVTI8856 |
| 383 | end |
| 384 | end |
| 385 | chip drivers/intel/mipi_camera |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 386 | register "acpi_uid" = "3" |
| 387 | register "acpi_name" = ""VCM0"" |
| 388 | register "chip_name" = ""DW AF DAC"" |
| 389 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 390 | |
| 391 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 392 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 393 | |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 394 | device i2c 0C on |
| 395 | probe WFC WFC_MIPI_OVTI5675 |
Tyler Wang | 20b58bc8 | 2022-05-16 13:43:43 +0800 | [diff] [blame] | 396 | probe WFC WFC_MIPI_OVTI8856 |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 397 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 398 | end |
| 399 | chip drivers/intel/mipi_camera |
| 400 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 401 | register "acpi_uid" = "1" |
| 402 | register "acpi_name" = ""NVM0"" |
| 403 | register "chip_name" = ""GT24C08"" |
| 404 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 405 | |
| 406 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 407 | |
| 408 | register "nvm_size" = "0x2000" |
| 409 | register "nvm_pagesize" = "1" |
| 410 | register "nvm_readonly" = "1" |
| 411 | register "nvm_width" = "0x10" |
| 412 | register "nvm_compat" = ""atmel,24c08"" |
| 413 | |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 414 | device i2c 50 on |
| 415 | probe WFC WFC_MIPI_OVTI5675 |
Tyler Wang | 20b58bc8 | 2022-05-16 13:43:43 +0800 | [diff] [blame] | 416 | probe WFC WFC_MIPI_OVTI8856 |
Tyler Wang | 3c88dc8 | 2022-05-17 15:06:09 +0800 | [diff] [blame] | 417 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 418 | end |
| 419 | end |
| 420 | device ref i2c3 on |
| 421 | chip drivers/i2c/nau8825 |
| 422 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 423 | register "jkdet_enable" = "1" |
| 424 | register "jkdet_pull_enable" = "0" |
| 425 | register "jkdet_polarity" = "1" # ActiveLow |
| 426 | register "vref_impedance" = "2" # 125kOhm |
| 427 | register "micbias_voltage" = "6" # 2.754 |
| 428 | register "sar_threshold_num" = "4" |
| 429 | register "sar_threshold[0]" = "0x0c" |
| 430 | register "sar_threshold[1]" = "0x1c" |
| 431 | register "sar_threshold[2]" = "0x38" |
| 432 | register "sar_threshold[3]" = "0x60" |
| 433 | register "sar_hysteresis" = "1" |
| 434 | register "sar_voltage" = "0" # VDDA |
| 435 | register "sar_compare_time" = "0" # 500ns |
| 436 | register "sar_sampling_time" = "0" # 2us |
| 437 | register "short_key_debounce" = "2" # 100ms |
| 438 | register "jack_insert_debounce" = "7" # 512ms |
| 439 | register "jack_eject_debounce" = "7" # 512ms |
Tyler Wang | 3f52aa5 | 2022-06-09 14:34:08 +0800 | [diff] [blame] | 440 | device i2c 1a on |
| 441 | probe CODEC CODEC_NAU8825 |
| 442 | end |
| 443 | end |
| 444 | chip drivers/i2c/generic |
| 445 | register "hid" = ""RTL5682"" |
| 446 | register "name" = ""RT58"" |
| 447 | register "desc" = ""Headset Codec"" |
| 448 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 449 | # Set the jd_src to RT5668_JD1 for jack detection |
| 450 | register "property_count" = "1" |
| 451 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 452 | register "property_list[0].name" = ""realtek,jd-src"" |
| 453 | register "property_list[0].integer" = "1" |
| 454 | device i2c 1a on |
| 455 | probe CODEC CODEC_ALC5682I_VS |
| 456 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 457 | end |
| 458 | end |
| 459 | device ref i2c5 on |
| 460 | chip drivers/i2c/generic |
| 461 | register "hid" = ""ELAN0000"" |
| 462 | register "desc" = ""ELAN Touchpad"" |
| 463 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 464 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 465 | register "detect" = "1" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 466 | device i2c 15 on end |
| 467 | end |
Tyler Wang | 8adcdb3 | 2022-05-05 16:08:24 +0800 | [diff] [blame] | 468 | chip drivers/i2c/hid |
Matt DeVillier | e9f0ed5 | 2022-12-19 15:06:15 -0600 | [diff] [blame] | 469 | register "generic.hid" = ""SYNA0000"" |
| 470 | register "generic.cid" = ""ACPI0C50"" |
Tyler Wang | 8adcdb3 | 2022-05-05 16:08:24 +0800 | [diff] [blame] | 471 | register "generic.desc" = ""Synaptics Touchpad"" |
| 472 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 473 | register "generic.wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 474 | register "generic.detect" = "1" |
Tyler Wang | 8adcdb3 | 2022-05-05 16:08:24 +0800 | [diff] [blame] | 475 | register "hid_desc_reg_offset" = "0x20" |
| 476 | device i2c 0x2c on end |
| 477 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 478 | end |
| 479 | device ref hda on |
| 480 | chip drivers/generic/max98357a |
| 481 | register "hid" = ""MX98360A"" |
| 482 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 483 | register "sdmode_delay" = "5" |
Tyler Wang | 3f52aa5 | 2022-06-09 14:34:08 +0800 | [diff] [blame] | 484 | device generic 0 on |
| 485 | probe AMP AMP_MX98360A |
| 486 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 487 | end |
| 488 | end |
Tyler Wang | 129e6b7 | 2022-06-14 18:08:06 +0800 | [diff] [blame] | 489 | device ref pcie_rp7 on |
| 490 | # Enable SD Card PCIe 7 using clk 3 |
| 491 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 492 | .clk_src = 3, |
| 493 | .clk_req = 3, |
| 494 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 495 | }" |
| 496 | chip soc/intel/common/block/pcie/rtd3 |
| 497 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 498 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H12)" |
| 499 | register "srcclk_pin" = "3" |
| 500 | device generic 0 on end |
| 501 | end |
| 502 | probe SD_CARD SD_GL9750S |
| 503 | end |
Reka Norman | 5aa9896 | 2022-11-24 13:50:48 +1100 | [diff] [blame] | 504 | device ref pcie_rp9 on |
Ren Kuo | 9965c8b | 2022-12-29 13:42:57 +0800 | [diff] [blame] | 505 | # Enable NVMe SSD PCIe 9-12 using clk 2 |
Reka Norman | 5aa9896 | 2022-11-24 13:50:48 +1100 | [diff] [blame] | 506 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 507 | .clk_src = 1, |
Ren Kuo | 9965c8b | 2022-12-29 13:42:57 +0800 | [diff] [blame] | 508 | .clk_req = 2, |
Reka Norman | 5aa9896 | 2022-11-24 13:50:48 +1100 | [diff] [blame] | 509 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 510 | }" |
| 511 | end |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 512 | device ref pch_espi on |
| 513 | chip ec/google/chromeec |
| 514 | use conn0 as mux_conn[0] |
| 515 | use conn1 as mux_conn[1] |
| 516 | device pnp 0c09.0 on end |
| 517 | end |
| 518 | end |
| 519 | device ref pmc hidden |
| 520 | chip drivers/intel/pmc_mux |
| 521 | device generic 0 on |
| 522 | chip drivers/intel/pmc_mux/conn |
| 523 | use usb2_port1 as usb2_port |
| 524 | use tcss_usb3_port1 as usb3_port |
| 525 | device generic 0 alias conn0 on end |
| 526 | end |
| 527 | chip drivers/intel/pmc_mux/conn |
| 528 | use usb2_port2 as usb2_port |
| 529 | use tcss_usb3_port2 as usb3_port |
| 530 | device generic 1 alias conn1 on end |
| 531 | end |
| 532 | end |
| 533 | end |
| 534 | end |
| 535 | device ref tcss_xhci on |
| 536 | chip drivers/usb/acpi |
| 537 | device ref tcss_root_hub on |
| 538 | chip drivers/usb/acpi |
| 539 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 540 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 541 | register "use_custom_pld" = "true" |
| 542 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 543 | device ref tcss_usb3_port1 on end |
| 544 | end |
| 545 | chip drivers/usb/acpi |
| 546 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 547 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 548 | register "use_custom_pld" = "true" |
| 549 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 550 | device ref tcss_usb3_port2 on end |
| 551 | end |
| 552 | end |
| 553 | end |
| 554 | end |
| 555 | device ref xhci on |
| 556 | chip drivers/usb/acpi |
| 557 | device ref xhci_root_hub on |
| 558 | chip drivers/usb/acpi |
| 559 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 560 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 561 | register "use_custom_pld" = "true" |
| 562 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 563 | device ref usb2_port1 on end |
| 564 | end |
| 565 | chip drivers/usb/acpi |
| 566 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 567 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 568 | register "use_custom_pld" = "true" |
| 569 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 570 | device ref usb2_port2 on end |
| 571 | end |
| 572 | chip drivers/usb/acpi |
| 573 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 574 | register "type" = "UPC_TYPE_A" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 575 | register "use_custom_pld" = "true" |
| 576 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 577 | device ref usb2_port3 on end |
| 578 | end |
| 579 | chip drivers/usb/acpi |
| 580 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 581 | register "type" = "UPC_TYPE_A" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 582 | register "use_custom_pld" = "true" |
| 583 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 584 | device ref usb2_port4 on |
| 585 | probe DB_USB DB_1C_1A |
| 586 | end |
| 587 | end |
| 588 | chip drivers/usb/acpi |
| 589 | register "desc" = ""USB2 WWAN"" |
| 590 | register "type" = "UPC_TYPE_INTERNAL" |
| 591 | device ref usb2_port4 on |
| 592 | probe DB_USB DB_1C_LTE |
| 593 | end |
| 594 | end |
| 595 | chip drivers/usb/acpi |
| 596 | register "desc" = ""USB2 Camera"" |
| 597 | register "type" = "UPC_TYPE_INTERNAL" |
| 598 | device ref usb2_port6 on end |
| 599 | end |
| 600 | chip drivers/usb/acpi |
| 601 | register "desc" = ""USB2 Bluetooth"" |
| 602 | register "type" = "UPC_TYPE_INTERNAL" |
| 603 | register "reset_gpio" = |
| 604 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 605 | device ref usb2_port10 on end |
| 606 | end |
| 607 | chip drivers/usb/acpi |
| 608 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 609 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 610 | register "use_custom_pld" = "true" |
| 611 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 612 | device ref usb3_port1 on end |
| 613 | end |
| 614 | chip drivers/usb/acpi |
| 615 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 616 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 7303e3d | 2022-05-27 22:15:43 +0000 | [diff] [blame] | 617 | register "use_custom_pld" = "true" |
| 618 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Tyler Wang | bd544e8 | 2022-04-26 10:10:21 +0800 | [diff] [blame] | 619 | device ref usb3_port2 on |
| 620 | probe DB_USB DB_1C_1A |
| 621 | end |
| 622 | end |
| 623 | chip drivers/usb/acpi |
| 624 | register "desc" = ""USB3 WWAN"" |
| 625 | register "type" = "UPC_TYPE_INTERNAL" |
| 626 | device ref usb3_port2 on |
| 627 | probe DB_USB DB_1C_LTE |
| 628 | end |
| 629 | end |
| 630 | end |
| 631 | end |
| 632 | end |
| 633 | end |
Tyler Wang | f478b1f | 2022-03-31 13:57:17 +0800 | [diff] [blame] | 634 | end |