Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 3 | option DB_NONE 0 |
| 4 | option DB_1C_1A 1 |
| 5 | option DB_1C_LTE 2 |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 6 | end |
V Sowmya | 8984506 | 2022-08-10 09:56:10 +0530 | [diff] [blame] | 7 | field THERMAL_SOLUTION 2 |
| 8 | option THERMAL_SOLUTION_PASSIVE 0 |
| 9 | option THERMAL_SOLUTION_ACTIVE 1 |
| 10 | end |
Reka Norman | baf2246 | 2022-05-06 19:55:11 +1000 | [diff] [blame] | 11 | field SD_CARD 4 |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 12 | option SD_GL9750S 0 |
| 13 | option SD_ABSENT 1 |
| 14 | end |
| 15 | field WFC 5 |
| 16 | option WFC_MIPI_OVTI5675 0 |
| 17 | option WFC_ABSENT 1 |
Reka Norman | baf2246 | 2022-05-06 19:55:11 +1000 | [diff] [blame] | 18 | end |
Reka Norman | 1c7f9f9 | 2022-05-06 20:13:08 +1000 | [diff] [blame] | 19 | field STYLUS 6 |
| 20 | option STYLUS_PRESENT 0 |
| 21 | option STYLUS_ABSENT 1 |
| 22 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 23 | end |
| 24 | |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 25 | chip soc/intel/alderlake |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 26 | register "sagv" = "SaGv_Enabled" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 27 | |
Usha P | bd529e2 | 2022-03-10 14:36:57 +0530 | [diff] [blame] | 28 | # SOC Aux orientation override: |
| 29 | # This is a bitfield that corresponds to up to 4 TCSS ports. |
| 30 | # Bits (0,1) allocated for TCSS Port1 configuration and Bits (2,3)for TCSS Port2. |
| 31 | # TcssAuxOri = 0101b |
| 32 | # Bit0,Bit2 set to "1" indicates no retimer on USBC Ports |
| 33 | # Bit1,Bit3 set to "0" indicates Aux lines are not swapped on the |
| 34 | # motherboard to USBC connector |
Felix Held | 79993d8 | 2022-03-18 18:34:46 +0100 | [diff] [blame] | 35 | register "tcss_aux_ori" = "5" |
Usha P | bd529e2 | 2022-03-10 14:36:57 +0530 | [diff] [blame] | 36 | |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 37 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 38 | register "typec_aux_bias_pads[1]" = "{.pad_auxp_dc = GPP_A21, .pad_auxn_dc = GPP_A22}" |
| 39 | |
Reka Norman | a909c7f | 2022-03-04 13:18:50 +1100 | [diff] [blame] | 40 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 41 | |
V Sowmya | 1e44a5b | 2022-04-04 23:48:35 +0530 | [diff] [blame] | 42 | # Configure external V1P05/Vnn/VnnSx Rails |
| 43 | register "ext_fivr_settings" = "{ |
| 44 | .configure_ext_fivr = 1, |
V Sowmya | 662bbcf | 2022-09-15 08:04:10 +0530 | [diff] [blame] | 45 | .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0, |
V Sowmya | 1e44a5b | 2022-04-04 23:48:35 +0530 | [diff] [blame] | 46 | .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 47 | .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX, |
| 48 | .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL, |
| 49 | .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE, |
| 50 | .v1p05_voltage_mv = 1050, |
| 51 | .vnn_voltage_mv = 780, |
| 52 | .vnn_sx_voltage_mv = 1050, |
| 53 | .v1p05_icc_max_ma = 500, |
| 54 | .vnn_icc_max_ma = 500, |
| 55 | }" |
| 56 | |
V Sowmya | 44c3759 | 2022-07-06 13:19:14 +0530 | [diff] [blame] | 57 | # Enable the Cnvi BT Audio Offload |
| 58 | register "cnvi_bt_audio_offload" = "1" |
| 59 | |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 60 | # Intel Common SoC Config |
| 61 | #+-------------------+---------------------------+ |
| 62 | #| Field | Value | |
| 63 | #+-------------------+---------------------------+ |
| 64 | #| I2C0 | TPM. Early init is | |
| 65 | #| | required to set up a BAR | |
| 66 | #| | for TPM communication | |
| 67 | #| I2C1 | Touchscreen | |
| 68 | #| I2C2 | Sub-board(PSensor)/WCAM | |
| 69 | #| I2C3 | Audio | |
| 70 | #| I2C5 | Trackpad | |
| 71 | #+-------------------+---------------------------+ |
| 72 | register "common_soc_config" = "{ |
| 73 | .i2c[0] = { |
| 74 | .early_init = 1, |
Reka Norman | d9cb725 | 2022-09-27 16:08:08 +1000 | [diff] [blame] | 75 | .speed = I2C_SPEED_FAST_PLUS, |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 76 | .speed_config[0] = { |
Reka Norman | d9cb725 | 2022-09-27 16:08:08 +1000 | [diff] [blame] | 77 | .speed = I2C_SPEED_FAST_PLUS, |
| 78 | .scl_lcnt = 55, |
| 79 | .scl_hcnt = 30, |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 80 | .sda_hold = 7, |
| 81 | } |
| 82 | }, |
| 83 | .i2c[1] = { |
| 84 | .speed = I2C_SPEED_FAST, |
| 85 | .speed_config[0] = { |
| 86 | .speed = I2C_SPEED_FAST, |
| 87 | .scl_lcnt = 157, |
| 88 | .scl_hcnt = 79, |
| 89 | .sda_hold = 7, |
| 90 | } |
| 91 | }, |
| 92 | .i2c[2] = { |
| 93 | .speed = I2C_SPEED_FAST, |
| 94 | .speed_config[0] = { |
| 95 | .speed = I2C_SPEED_FAST, |
| 96 | .scl_lcnt = 157, |
| 97 | .scl_hcnt = 79, |
| 98 | .sda_hold = 7, |
| 99 | } |
| 100 | }, |
| 101 | .i2c[3] = { |
| 102 | .speed = I2C_SPEED_FAST, |
| 103 | .speed_config[0] = { |
| 104 | .speed = I2C_SPEED_FAST, |
| 105 | .scl_lcnt = 158, |
| 106 | .scl_hcnt = 79, |
| 107 | .sda_hold = 7, |
| 108 | } |
| 109 | }, |
| 110 | .i2c[5] = { |
| 111 | .speed = I2C_SPEED_FAST, |
| 112 | .speed_config[0] = { |
| 113 | .speed = I2C_SPEED_FAST, |
| 114 | .scl_lcnt = 158, |
| 115 | .scl_hcnt = 79, |
| 116 | .sda_hold = 7, |
| 117 | } |
| 118 | }, |
| 119 | }" |
| 120 | |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 121 | device domain 0 on |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 122 | device ref dtt on |
| 123 | chip drivers/intel/dptf |
| 124 | ## sensor information |
| 125 | register "options.tsr[0].desc" = ""Memory"" |
| 126 | register "options.tsr[1].desc" = ""Charger"" |
Vidya Gopalakrishnan | 9ebfb8d | 2022-08-17 18:36:41 +0530 | [diff] [blame] | 127 | register "options.tsr[2].desc" = ""Ambient"" |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 128 | |
| 129 | # TODO: below values are initial reference values only |
| 130 | ## Passive Policy |
| 131 | register "policies.passive" = "{ |
| 132 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 133 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 134 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
Vidya Gopalakrishnan | 9ebfb8d | 2022-08-17 18:36:41 +0530 | [diff] [blame] | 135 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 136 | }" |
| 137 | |
| 138 | ## Critical Policy |
| 139 | register "policies.critical" = "{ |
| 140 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 141 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 142 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
Vidya Gopalakrishnan | 9ebfb8d | 2022-08-17 18:36:41 +0530 | [diff] [blame] | 143 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 144 | }" |
| 145 | |
| 146 | register "controls.power_limits" = "{ |
| 147 | .pl1 = { |
| 148 | .min_power = 3000, |
| 149 | .max_power = 6000, |
| 150 | .time_window_min = 28 * MSECS_PER_SEC, |
| 151 | .time_window_max = 32 * MSECS_PER_SEC, |
| 152 | .granularity = 200 |
| 153 | }, |
| 154 | .pl2 = { |
| 155 | .min_power = 25000, |
| 156 | .max_power = 25000, |
Vidya Gopalakrishnan | 9ebfb8d | 2022-08-17 18:36:41 +0530 | [diff] [blame] | 157 | .time_window_min = 1, |
| 158 | .time_window_max = 1, |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 159 | .granularity = 1000 |
| 160 | } |
| 161 | }" |
| 162 | |
| 163 | ## Charger Performance Control (Control, mA) |
| 164 | register "controls.charger_perf" = "{ |
| 165 | [0] = { 255, 1700 }, |
| 166 | [1] = { 24, 1500 }, |
| 167 | [2] = { 16, 1000 }, |
| 168 | [3] = { 8, 500 } |
| 169 | }" |
| 170 | |
V Sowmya | 8984506 | 2022-08-10 09:56:10 +0530 | [diff] [blame] | 171 | device generic 0 on |
| 172 | probe THERMAL_SOLUTION THERMAL_SOLUTION_PASSIVE |
| 173 | end |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 174 | end |
Vidya Gopalakrishnan | 9ebfb8d | 2022-08-17 18:36:41 +0530 | [diff] [blame] | 175 | chip drivers/intel/dptf |
| 176 | ## sensor information |
| 177 | register "options.tsr[0].desc" = ""Memory"" |
| 178 | register "options.tsr[1].desc" = ""Charger"" |
| 179 | register "options.tsr[2].desc" = ""Ambient"" |
| 180 | |
| 181 | # TODO: below values are initial reference values only |
| 182 | ## Active Policy |
| 183 | register "policies.active" = "{ |
| 184 | [0] = { |
| 185 | .target = DPTF_CPU, |
| 186 | .thresholds = { |
| 187 | TEMP_PCT(85, 90), |
| 188 | TEMP_PCT(80, 80), |
| 189 | TEMP_PCT(75, 70), |
| 190 | TEMP_PCT(70, 50), |
| 191 | TEMP_PCT(65, 30), |
| 192 | } |
| 193 | }, |
| 194 | [1] = { |
| 195 | .target = DPTF_TEMP_SENSOR_2, |
| 196 | .thresholds = { |
| 197 | TEMP_PCT(50, 90), |
| 198 | TEMP_PCT(48, 70), |
| 199 | TEMP_PCT(46, 60), |
| 200 | TEMP_PCT(43, 40), |
| 201 | TEMP_PCT(40, 30), |
| 202 | } |
| 203 | } |
| 204 | }" |
| 205 | |
| 206 | # TODO: below values are initial reference values only |
| 207 | ## Passive Policy |
| 208 | register "policies.passive" = "{ |
| 209 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 210 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 211 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 212 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 213 | }" |
| 214 | |
| 215 | ## Critical Policy |
| 216 | register "policies.critical" = "{ |
| 217 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 218 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 219 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 220 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 221 | }" |
| 222 | |
| 223 | register "controls.power_limits" = "{ |
| 224 | .pl1 = { |
| 225 | .min_power = 12000, |
| 226 | .max_power = 15000, |
| 227 | .time_window_min = 28 * MSECS_PER_SEC, |
| 228 | .time_window_max = 32 * MSECS_PER_SEC, |
| 229 | .granularity = 200 |
| 230 | }, |
| 231 | .pl2 = { |
| 232 | .min_power = 35000, |
| 233 | .max_power = 35000, |
| 234 | .time_window_min = 1, |
| 235 | .time_window_max = 1, |
| 236 | .granularity = 1000 |
| 237 | } |
| 238 | }" |
| 239 | |
| 240 | ## Charger Performance Control (Control, mA) |
| 241 | register "controls.charger_perf" = "{ |
| 242 | [0] = { 255, 1700 }, |
| 243 | [1] = { 24, 1500 }, |
| 244 | [2] = { 16, 1000 }, |
| 245 | [3] = { 8, 500 } |
| 246 | }" |
| 247 | |
| 248 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 249 | register "controls.fan_perf" = "{ |
| 250 | [0] = { 100, 6000, 220, 2200, }, |
| 251 | [1] = { 92, 5500, 180, 1800, }, |
| 252 | [2] = { 85, 5000, 145, 1450, }, |
| 253 | [3] = { 70, 4400, 115, 1150, }, |
| 254 | [4] = { 56, 3900, 90, 900, }, |
| 255 | [5] = { 45, 3300, 55, 550, }, |
| 256 | [6] = { 38, 3000, 30, 300, }, |
| 257 | [7] = { 33, 2900, 15, 150, }, |
| 258 | [8] = { 10, 800, 10, 100, }, |
| 259 | [9] = { 0, 0, 0, 50, } |
| 260 | }" |
| 261 | |
| 262 | ## Fan options |
| 263 | register "options.fan.fine_grained_control" = "1" |
| 264 | register "options.fan.step_size" = "2" |
| 265 | |
| 266 | device generic 1 on |
| 267 | probe THERMAL_SOLUTION THERMAL_SOLUTION_ACTIVE |
| 268 | end |
| 269 | end |
Vidya Gopalakrishnan | 236ad4c | 2022-05-18 17:50:29 +0530 | [diff] [blame] | 270 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 271 | device ref ipu on |
| 272 | chip drivers/intel/mipi_camera |
| 273 | register "acpi_uid" = "0x50000" |
| 274 | register "acpi_name" = ""IPU0"" |
| 275 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 276 | |
| 277 | register "cio2_num_ports" = "1" |
| 278 | register "cio2_lanes_used" = "{2}" # 2 CSI Camera lanes are used |
| 279 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 280 | register "cio2_prt[0]" = "1" |
| 281 | device generic 0 on end |
| 282 | end |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 283 | probe WFC WFC_MIPI_OVTI5675 |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 284 | end |
Vidya Gopalakrishnan | dc1c780 | 2022-06-20 16:31:05 +0530 | [diff] [blame] | 285 | device ref cnvi_wifi on |
| 286 | chip drivers/wifi/generic |
| 287 | register "enable_cnvi_ddr_rfim" = "true" |
| 288 | device generic 0 on end |
| 289 | end |
| 290 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 291 | device ref i2c1 on |
| 292 | chip drivers/i2c/hid |
| 293 | register "generic.hid" = ""ELAN6915"" |
| 294 | register "generic.desc" = ""ELAN Touchscreen"" |
| 295 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 296 | register "generic.probed" = "1" |
| 297 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 298 | register "generic.reset_delay_ms" = "20" |
| 299 | register "generic.reset_off_delay_ms" = "2" |
| 300 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 301 | register "generic.stop_delay_ms" = "280" |
| 302 | register "generic.stop_off_delay_ms" = "2" |
| 303 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 304 | register "generic.enable_delay_ms" = "1" |
| 305 | register "generic.has_power_resource" = "1" |
| 306 | register "generic.disable_gpio_export_in_crs" = "1" |
| 307 | register "hid_desc_reg_offset" = "0x01" |
| 308 | device i2c 15 on end |
| 309 | end |
Eric Lai | 232dcb9 | 2022-03-09 13:43:31 +0800 | [diff] [blame] | 310 | chip drivers/generic/gpio_keys |
| 311 | register "name" = ""PENH"" |
| 312 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 313 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 314 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
Eric Lai | 445e066 | 2022-06-24 15:34:42 +0800 | [diff] [blame] | 315 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
Eric Lai | 232dcb9 | 2022-03-09 13:43:31 +0800 | [diff] [blame] | 316 | register "key.dev_name" = ""EJCT"" |
| 317 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 318 | register "key.linux_input_type" = "EV_SW" |
| 319 | register "key.label" = ""pen_eject"" |
Reka Norman | 1c7f9f9 | 2022-05-06 20:13:08 +1000 | [diff] [blame] | 320 | device generic 0 on |
| 321 | probe STYLUS STYLUS_PRESENT |
| 322 | end |
Eric Lai | 232dcb9 | 2022-03-09 13:43:31 +0800 | [diff] [blame] | 323 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 324 | end |
| 325 | device ref i2c2 on |
| 326 | chip drivers/i2c/sx9324 |
| 327 | register "desc" = ""SAR Proximity Sensor"" |
| 328 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_H19_IRQ)" |
| 329 | register "speed" = "I2C_SPEED_FAST" |
| 330 | register "uid" = "1" |
| 331 | register "reg_gnrl_ctrl0" = "0x16" |
| 332 | register "reg_gnrl_ctrl1" = "0x21" |
| 333 | register "reg_afe_ctrl0" = "0x00" |
| 334 | register "reg_afe_ctrl1" = "0x10" |
| 335 | register "reg_afe_ctrl2" = "0x00" |
| 336 | register "reg_afe_ctrl3" = "0x00" |
| 337 | register "reg_afe_ctrl4" = "0x07" |
| 338 | register "reg_afe_ctrl5" = "0x00" |
| 339 | register "reg_afe_ctrl6" = "0x00" |
| 340 | register "reg_afe_ctrl7" = "0x07" |
| 341 | register "reg_afe_ctrl8" = "0x12" |
| 342 | register "reg_afe_ctrl9" = "0x0f" |
| 343 | register "reg_prox_ctrl0" = "0x12" |
| 344 | register "reg_prox_ctrl1" = "0x12" |
| 345 | register "reg_prox_ctrl2" = "0x90" |
| 346 | register "reg_prox_ctrl3" = "0x60" |
| 347 | register "reg_prox_ctrl4" = "0x0c" |
| 348 | register "reg_prox_ctrl5" = "0x12" |
| 349 | register "reg_prox_ctrl6" = "0x3c" |
| 350 | register "reg_prox_ctrl7" = "0x58" |
| 351 | register "reg_adv_ctrl0" = "0x00" |
| 352 | register "reg_adv_ctrl1" = "0x00" |
| 353 | register "reg_adv_ctrl2" = "0x00" |
| 354 | register "reg_adv_ctrl3" = "0x00" |
| 355 | register "reg_adv_ctrl4" = "0x00" |
| 356 | register "reg_adv_ctrl5" = "0x05" |
| 357 | register "reg_adv_ctrl6" = "0x00" |
| 358 | register "reg_adv_ctrl7" = "0x00" |
| 359 | register "reg_adv_ctrl8" = "0x00" |
| 360 | register "reg_adv_ctrl9" = "0x00" |
| 361 | register "reg_adv_ctrl10" = "0x5c" |
| 362 | register "reg_adv_ctrl11" = "0x52" |
| 363 | register "reg_adv_ctrl12" = "0xb5" |
| 364 | register "reg_adv_ctrl13" = "0x00" |
| 365 | register "reg_adv_ctrl14" = "0x80" |
| 366 | register "reg_adv_ctrl15" = "0x0c" |
| 367 | register "reg_adv_ctrl16" = "0x38" |
| 368 | register "reg_adv_ctrl17" = "0x56" |
| 369 | register "reg_adv_ctrl18" = "0x33" |
| 370 | register "reg_adv_ctrl19" = "0xf0" |
| 371 | register "reg_adv_ctrl20" = "0xf0" |
| 372 | device i2c 28 on |
| 373 | probe DB_USB DB_1C_LTE |
| 374 | end |
| 375 | end |
| 376 | chip drivers/intel/mipi_camera |
| 377 | register "acpi_hid" = ""OVTI5675"" |
| 378 | register "acpi_uid" = "0" |
| 379 | register "acpi_name" = ""CAM0"" |
| 380 | register "chip_name" = ""Ov 5675 Camera"" |
| 381 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 382 | |
| 383 | register "ssdb.lanes_used" = "2" |
| 384 | register "ssdb.link_used" = "1" |
| 385 | register "ssdb.vcm_type" = "0x0C" |
| 386 | register "vcm_name" = ""VCM0"" |
| 387 | register "num_freq_entries" = "1" |
| 388 | register "link_freq[0]" = "DEFAULT_LINK_FREQ" |
| 389 | register "remote_name" = ""IPU0"" |
| 390 | |
| 391 | register "has_power_resource" = "1" |
| 392 | #Controls |
| 393 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 394 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 395 | |
| 396 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 397 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 398 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 399 | |
| 400 | #_ON |
| 401 | register "on_seq.ops_cnt" = "5" |
| 402 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 403 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 404 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 405 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 406 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 407 | |
| 408 | #_OFF |
| 409 | register "off_seq.ops_cnt" = "4" |
| 410 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 411 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 412 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 413 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 414 | |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 415 | device i2c 36 on |
| 416 | probe WFC WFC_MIPI_OVTI5675 |
| 417 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 418 | end |
| 419 | chip drivers/intel/mipi_camera |
| 420 | register "acpi_uid" = "3" |
| 421 | register "acpi_name" = ""VCM0"" |
| 422 | register "chip_name" = ""DW AF DAC"" |
| 423 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 424 | |
| 425 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 426 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 427 | |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 428 | device i2c 0C on |
| 429 | probe WFC WFC_MIPI_OVTI5675 |
| 430 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 431 | end |
| 432 | chip drivers/intel/mipi_camera |
| 433 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 434 | register "acpi_uid" = "1" |
| 435 | register "acpi_name" = ""NVM0"" |
| 436 | register "chip_name" = ""GT24C08"" |
| 437 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 438 | |
| 439 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 440 | |
| 441 | register "nvm_size" = "0x2000" |
| 442 | register "nvm_pagesize" = "1" |
| 443 | register "nvm_readonly" = "1" |
| 444 | register "nvm_width" = "0x10" |
| 445 | register "nvm_compat" = ""atmel,24c08"" |
| 446 | |
Reka Norman | f1b8cee | 2022-05-06 20:04:54 +1000 | [diff] [blame] | 447 | device i2c 50 on |
| 448 | probe WFC WFC_MIPI_OVTI5675 |
| 449 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 450 | end |
| 451 | end |
| 452 | device ref i2c3 on |
| 453 | chip drivers/i2c/nau8825 |
| 454 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 455 | register "jkdet_enable" = "1" |
| 456 | register "jkdet_pull_enable" = "0" |
| 457 | register "jkdet_polarity" = "1" # ActiveLow |
| 458 | register "vref_impedance" = "2" # 125kOhm |
| 459 | register "micbias_voltage" = "6" # 2.754 |
| 460 | register "sar_threshold_num" = "4" |
| 461 | register "sar_threshold[0]" = "0x0c" |
| 462 | register "sar_threshold[1]" = "0x1c" |
| 463 | register "sar_threshold[2]" = "0x38" |
| 464 | register "sar_threshold[3]" = "0x60" |
| 465 | register "sar_hysteresis" = "1" |
| 466 | register "sar_voltage" = "0" # VDDA |
| 467 | register "sar_compare_time" = "0" # 500ns |
| 468 | register "sar_sampling_time" = "0" # 2us |
| 469 | register "short_key_debounce" = "2" # 100ms |
| 470 | register "jack_insert_debounce" = "7" # 512ms |
| 471 | register "jack_eject_debounce" = "7" # 512ms |
Eric Lai | 4d9748f | 2022-09-15 16:09:04 +0800 | [diff] [blame] | 472 | register "adcout_ds" = "true" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 473 | device i2c 1a on end |
| 474 | end |
| 475 | end |
| 476 | device ref i2c5 on |
| 477 | chip drivers/i2c/generic |
| 478 | register "hid" = ""ELAN0000"" |
| 479 | register "desc" = ""ELAN Touchpad"" |
| 480 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 481 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 482 | register "detect" = "1" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 483 | device i2c 15 on end |
| 484 | end |
| 485 | end |
| 486 | device ref hda on |
| 487 | chip drivers/generic/max98357a |
| 488 | register "hid" = ""MX98360A"" |
| 489 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 490 | register "sdmode_delay" = "5" |
| 491 | device generic 0 on end |
| 492 | end |
| 493 | end |
Reka Norman | baf2246 | 2022-05-06 19:55:11 +1000 | [diff] [blame] | 494 | device ref pcie_rp7 on |
| 495 | # Enable SD Card PCIe 7 using clk 3 |
| 496 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 497 | .clk_src = 3, |
| 498 | .clk_req = 3, |
| 499 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 500 | }" |
| 501 | chip soc/intel/common/block/pcie/rtd3 |
| 502 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 503 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H12)" |
| 504 | register "srcclk_pin" = "3" |
| 505 | device generic 0 on end |
| 506 | end |
| 507 | probe SD_CARD SD_GL9750S |
| 508 | end |
Reka Norman | f2f785d | 2022-05-06 20:22:21 +1000 | [diff] [blame] | 509 | device ref pcie_rp9 on |
| 510 | # Enable NVMe SSD PCIe 9-12 using clk 1 |
| 511 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 512 | .clk_src = 1, |
| 513 | .clk_req = 1, |
| 514 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 515 | }" |
| 516 | probe STORAGE STORAGE_NVME |
| 517 | end |
| 518 | device ref emmc on |
| 519 | probe STORAGE STORAGE_EMMC |
| 520 | end |
Reka Norman | 9b1fc30 | 2022-06-01 09:02:39 +1000 | [diff] [blame] | 521 | device ref ish on |
| 522 | probe STORAGE STORAGE_UFS |
| 523 | end |
Reka Norman | f2f785d | 2022-05-06 20:22:21 +1000 | [diff] [blame] | 524 | device ref ufs on |
| 525 | probe STORAGE STORAGE_UFS |
| 526 | end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 527 | device ref pch_espi on |
| 528 | chip ec/google/chromeec |
| 529 | use conn0 as mux_conn[0] |
| 530 | use conn1 as mux_conn[1] |
| 531 | device pnp 0c09.0 on end |
| 532 | end |
| 533 | end |
| 534 | device ref pmc hidden |
| 535 | chip drivers/intel/pmc_mux |
| 536 | device generic 0 on |
| 537 | chip drivers/intel/pmc_mux/conn |
| 538 | use usb2_port1 as usb2_port |
| 539 | use tcss_usb3_port1 as usb3_port |
| 540 | device generic 0 alias conn0 on end |
| 541 | end |
| 542 | chip drivers/intel/pmc_mux/conn |
| 543 | use usb2_port2 as usb2_port |
| 544 | use tcss_usb3_port2 as usb3_port |
| 545 | device generic 1 alias conn1 on end |
| 546 | end |
| 547 | end |
| 548 | end |
| 549 | end |
| 550 | device ref tcss_xhci on |
| 551 | chip drivers/usb/acpi |
| 552 | device ref tcss_root_hub on |
| 553 | chip drivers/usb/acpi |
| 554 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 555 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 556 | register "use_custom_pld" = "true" |
| 557 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 558 | device ref tcss_usb3_port1 on end |
| 559 | end |
| 560 | chip drivers/usb/acpi |
| 561 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 562 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 563 | register "use_custom_pld" = "true" |
| 564 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 565 | device ref tcss_usb3_port2 on end |
| 566 | end |
| 567 | end |
| 568 | end |
| 569 | end |
| 570 | device ref xhci on |
| 571 | chip drivers/usb/acpi |
| 572 | device ref xhci_root_hub on |
| 573 | chip drivers/usb/acpi |
| 574 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 575 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 576 | register "use_custom_pld" = "true" |
| 577 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 578 | device ref usb2_port1 on end |
| 579 | end |
| 580 | chip drivers/usb/acpi |
| 581 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 582 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 583 | register "use_custom_pld" = "true" |
| 584 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 585 | device ref usb2_port2 on end |
| 586 | end |
| 587 | chip drivers/usb/acpi |
| 588 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 589 | register "type" = "UPC_TYPE_A" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 590 | register "use_custom_pld" = "true" |
| 591 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 592 | device ref usb2_port3 on end |
| 593 | end |
| 594 | chip drivers/usb/acpi |
| 595 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 596 | register "type" = "UPC_TYPE_A" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 597 | register "use_custom_pld" = "true" |
| 598 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 599 | device ref usb2_port4 on |
| 600 | probe DB_USB DB_1C_1A |
| 601 | end |
| 602 | end |
| 603 | chip drivers/usb/acpi |
| 604 | register "desc" = ""USB2 WWAN"" |
| 605 | register "type" = "UPC_TYPE_INTERNAL" |
| 606 | device ref usb2_port4 on |
| 607 | probe DB_USB DB_1C_LTE |
| 608 | end |
| 609 | end |
| 610 | chip drivers/usb/acpi |
| 611 | register "desc" = ""USB2 Camera"" |
| 612 | register "type" = "UPC_TYPE_INTERNAL" |
| 613 | device ref usb2_port6 on end |
| 614 | end |
| 615 | chip drivers/usb/acpi |
| 616 | register "desc" = ""USB2 Bluetooth"" |
| 617 | register "type" = "UPC_TYPE_INTERNAL" |
| 618 | register "reset_gpio" = |
| 619 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
Reka Norman | a909c7f | 2022-03-04 13:18:50 +1100 | [diff] [blame] | 620 | device ref usb2_port10 on end |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 621 | end |
| 622 | chip drivers/usb/acpi |
| 623 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 624 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 625 | register "use_custom_pld" = "true" |
| 626 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 627 | device ref usb3_port1 on end |
| 628 | end |
| 629 | chip drivers/usb/acpi |
| 630 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 631 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 5cfd750 | 2022-05-27 22:04:25 +0000 | [diff] [blame] | 632 | register "use_custom_pld" = "true" |
| 633 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
Reka Norman | 8d6ebe9 | 2022-01-31 17:15:16 +1100 | [diff] [blame] | 634 | device ref usb3_port2 on |
| 635 | probe DB_USB DB_1C_1A |
| 636 | end |
| 637 | end |
| 638 | chip drivers/usb/acpi |
| 639 | register "desc" = ""USB3 WWAN"" |
| 640 | register "type" = "UPC_TYPE_INTERNAL" |
| 641 | device ref usb3_port2 on |
| 642 | probe DB_USB DB_1C_LTE |
| 643 | end |
| 644 | end |
| 645 | end |
| 646 | end |
| 647 | end |
| 648 | end |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 649 | end |