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