David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field KB_BL 0 0 |
| 3 | option KB_BL_ABSENT 0 |
| 4 | option KB_BL_PRESENT 1 |
| 5 | end |
| 6 | field AUDIO 1 3 |
| 7 | option AUDIO_UNKNOWN 0 |
| 8 | option MAX98373_NAU88L25B_I2S 1 |
| 9 | end |
David Wu | eea22f6 | 2021-10-26 19:13:54 +0800 | [diff] [blame] | 10 | field UFC 4 5 |
| 11 | option UFC_USB 0 |
| 12 | option UFC_MIPI_OVTI2740 1 |
| 13 | end |
David Wu | a5b6ec0 | 2021-12-27 13:50:27 +0800 | [diff] [blame] | 14 | field STYLUS 6 |
| 15 | option STYLUS_ABSENT 0 |
| 16 | option STYLUS_PRESENT 1 |
| 17 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 18 | end |
David Wu | 07375cb | 2021-07-08 10:58:00 +0800 | [diff] [blame] | 19 | chip soc/intel/alderlake |
David Wu | 7f7424c | 2021-09-23 19:29:47 +0800 | [diff] [blame] | 20 | register "SaGv" = "SaGv_Enabled" |
| 21 | |
David Wu | 6db243a | 2021-11-09 12:36:43 +0800 | [diff] [blame] | 22 | # GPE configuration |
| 23 | register "pmc_gpe0_dw1" = "GPP_D" |
| 24 | |
David Wu | bfc4d8e | 2021-11-10 12:26:22 +0800 | [diff] [blame] | 25 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable USB2_C1 |
| 26 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" # Disable M.2 WWAN |
David Wu | bfc4d8e | 2021-11-10 12:26:22 +0800 | [diff] [blame] | 27 | |
| 28 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Disable M.2 WWAN |
| 29 | |
David Wu | 008c2b1 | 2021-10-25 15:22:21 +0800 | [diff] [blame] | 30 | # FIVR configurations for kano are disabled since the board doesn't have V1p05 and Vnn |
| 31 | # bypass rails implemented. |
| 32 | register "ext_fivr_settings" = "{ |
| 33 | .configure_ext_fivr = 1, |
| 34 | }" |
| 35 | |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 36 | # Intel Common SoC Config |
| 37 | #+-------------------+---------------------------+ |
| 38 | #| Field | Value | |
| 39 | #+-------------------+---------------------------+ |
| 40 | #| GSPI1 | Fingerprint MCU | |
| 41 | #| I2C0 | Audio | |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 42 | #| I2C1 | cr50 TPM. Early init is | |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 43 | #| | required to set up a BAR | |
| 44 | #| | for TPM communication | |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 45 | #| I2C2 | SAR0 | |
| 46 | #| I2C3 | Touchscreen | |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 47 | #| I2C5 | Trackpad | |
| 48 | #+-------------------+---------------------------+ |
David Wu | 07375cb | 2021-07-08 10:58:00 +0800 | [diff] [blame] | 49 | |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 50 | register "common_soc_config" = "{ |
| 51 | .i2c[1] = { |
| 52 | .early_init = 1, |
| 53 | .speed = I2C_SPEED_FAST, |
| 54 | .rise_time_ns = 600, |
| 55 | .fall_time_ns = 400, |
| 56 | .data_hold_time_ns = 50, |
| 57 | }, |
| 58 | .i2c[3] = { |
David Wu | 65aaccd | 2022-01-20 20:43:35 +0800 | [diff] [blame] | 59 | .speed = 390000, |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 60 | .rise_time_ns = 650, |
| 61 | .fall_time_ns = 400, |
| 62 | .data_hold_time_ns = 50, |
| 63 | }, |
| 64 | }" |
| 65 | |
Subrata Banik | 3d469fa | 2021-09-10 00:21:23 +0530 | [diff] [blame] | 66 | device domain 0 on |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 67 | device ref dtt on |
| 68 | chip drivers/intel/dptf |
| 69 | ## sensor information |
| 70 | register "options.tsr[0].desc" = ""DRAM"" |
David Wu | 53075c7 | 2021-11-10 14:26:27 +0800 | [diff] [blame] | 71 | register "options.tsr[1].desc" = ""Soc"" |
| 72 | register "options.tsr[2].desc" = ""Charger"" |
David Wu | 07375cb | 2021-07-08 10:58:00 +0800 | [diff] [blame] | 73 | |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 74 | # TODO: below values are initial reference values only |
| 75 | ## Active Policy |
| 76 | register "policies.active" = "{ |
| 77 | [0] = { |
| 78 | .target = DPTF_CPU, |
| 79 | .thresholds = { |
| 80 | TEMP_PCT(85, 90), |
David Wu | 3e8ca37 | 2021-11-23 17:04:59 +0800 | [diff] [blame] | 81 | TEMP_PCT(75, 80), |
| 82 | TEMP_PCT(68, 70), |
| 83 | TEMP_PCT(62, 60), |
| 84 | TEMP_PCT(55, 50), |
| 85 | TEMP_PCT(50, 40), |
| 86 | TEMP_PCT(40, 30), |
| 87 | } |
| 88 | }, |
| 89 | [1] = { |
| 90 | .target = DPTF_TEMP_SENSOR_1, |
| 91 | .thresholds = { |
| 92 | TEMP_PCT(60, 90), |
| 93 | TEMP_PCT(55, 80), |
| 94 | TEMP_PCT(52, 70), |
| 95 | TEMP_PCT(48, 60), |
| 96 | TEMP_PCT(44, 50), |
| 97 | TEMP_PCT(40, 40), |
| 98 | TEMP_PCT(36, 30), |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 99 | } |
| 100 | } |
| 101 | }" |
| 102 | |
| 103 | ## Passive Policy |
| 104 | register "policies.passive" = "{ |
David Wu | 3e8ca37 | 2021-11-23 17:04:59 +0800 | [diff] [blame] | 105 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 5000), |
| 106 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 55, 5000), |
| 107 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 55, 5000), |
| 108 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 55, 5000), |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 109 | }" |
| 110 | |
| 111 | ## Critical Policy |
| 112 | register "policies.critical" = "{ |
David Wu | 3e8ca37 | 2021-11-23 17:04:59 +0800 | [diff] [blame] | 113 | [0] = DPTF_CRITICAL(CPU, 100, SHUTDOWN), |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 114 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 115 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
David Wu | 53075c7 | 2021-11-10 14:26:27 +0800 | [diff] [blame] | 116 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 117 | }" |
| 118 | |
| 119 | register "controls.power_limits" = "{ |
| 120 | .pl1 = { |
David Wu | 3e8ca37 | 2021-11-23 17:04:59 +0800 | [diff] [blame] | 121 | .min_power = 18000, |
| 122 | .max_power = 28000, |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 123 | .time_window_min = 28 * MSECS_PER_SEC, |
| 124 | .time_window_max = 32 * MSECS_PER_SEC, |
| 125 | .granularity = 200, |
| 126 | }, |
| 127 | .pl2 = { |
David Wu | 3e8ca37 | 2021-11-23 17:04:59 +0800 | [diff] [blame] | 128 | .min_power = 40000, |
| 129 | .max_power = 40000, |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 130 | .time_window_min = 28 * MSECS_PER_SEC, |
| 131 | .time_window_max = 32 * MSECS_PER_SEC, |
| 132 | .granularity = 1000, |
| 133 | } |
| 134 | }" |
| 135 | |
| 136 | ## Charger Performance Control (Control, mA) |
| 137 | register "controls.charger_perf" = "{ |
| 138 | [0] = { 255, 1700 }, |
| 139 | [1] = { 24, 1500 }, |
| 140 | [2] = { 16, 1000 }, |
| 141 | [3] = { 8, 500 } |
| 142 | }" |
| 143 | |
| 144 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 145 | register "controls.fan_perf" = "{ |
| 146 | [0] = { 90, 6700, 220, 2200, }, |
| 147 | [1] = { 80, 5800, 180, 1800, }, |
| 148 | [2] = { 70, 5000, 145, 1450, }, |
| 149 | [3] = { 60, 4900, 115, 1150, }, |
| 150 | [4] = { 50, 3838, 90, 900, }, |
| 151 | [5] = { 40, 2904, 55, 550, }, |
| 152 | [6] = { 30, 2337, 30, 300, }, |
| 153 | [7] = { 20, 1608, 15, 150, }, |
| 154 | [8] = { 10, 800, 10, 100, }, |
| 155 | [9] = { 0, 0, 0, 50, } |
| 156 | }" |
| 157 | |
| 158 | ## Fan options |
| 159 | register "options.fan.fine_grained_control" = "1" |
| 160 | register "options.fan.step_size" = "2" |
| 161 | |
Furquan Shaikh | 4aba739 | 2021-09-20 10:51:45 -0700 | [diff] [blame] | 162 | device generic 0 alias dptf_policy on end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 163 | end |
| 164 | end |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 165 | device ref ipu on |
| 166 | chip drivers/intel/mipi_camera |
| 167 | register "acpi_uid" = "0x50000" |
| 168 | register "acpi_name" = ""IPU0"" |
| 169 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 170 | |
| 171 | register "cio2_num_ports" = "1" |
| 172 | register "cio2_lanes_used" = "{2}" # 2 CSI Camera lanes are used |
| 173 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
Lai, Jim | ae9a844 | 2021-09-30 13:39:58 +0800 | [diff] [blame] | 174 | register "cio2_prt[0]" = "1" |
David Wu | eea22f6 | 2021-10-26 19:13:54 +0800 | [diff] [blame] | 175 | device generic 0 on |
| 176 | probe UFC UFC_MIPI_OVTI2740 |
| 177 | end |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 178 | end |
| 179 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 180 | device ref pcie4_0 on |
| 181 | # Enable CPU PCIE RP 1 using CLK 0 |
| 182 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 183 | .clk_req = 0, |
| 184 | .clk_src = 0, |
Tracy Wu | ec877d6 | 2022-01-13 21:53:02 +0800 | [diff] [blame] | 185 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 186 | }" |
| 187 | end |
| 188 | device ref tcss_dma0 on |
| 189 | chip drivers/intel/usb4/retimer |
| 190 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 191 | use tcss_usb3_port1 as dfp[0].typec_port |
| 192 | device generic 0 on end |
| 193 | end |
| 194 | end |
| 195 | device ref tcss_dma1 on |
| 196 | chip drivers/intel/usb4/retimer |
| 197 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 198 | use tcss_usb3_port3 as dfp[0].typec_port |
| 199 | device generic 0 on end |
| 200 | end |
| 201 | end |
| 202 | device ref cnvi_wifi on |
| 203 | chip drivers/wifi/generic |
| 204 | register "wake" = "GPE0_PME_B0" |
| 205 | device generic 0 on end |
| 206 | end |
| 207 | end |
| 208 | device ref i2c0 on |
| 209 | chip drivers/i2c/nau8825 |
| 210 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 211 | register "jkdet_enable" = "1" |
| 212 | register "jkdet_pull_enable" = "0" |
| 213 | register "jkdet_pull_up" = "0" |
| 214 | register "jkdet_polarity" = "1" # ActiveLow |
| 215 | register "vref_impedance" = "2" # 125kOhm |
| 216 | register "micbias_voltage" = "6" # 2.754 |
| 217 | register "sar_threshold_num" = "4" |
| 218 | register "sar_threshold[0]" = "0x0C" |
| 219 | register "sar_threshold[1]" = "0x1C" |
| 220 | register "sar_threshold[2]" = "0x38" |
| 221 | register "sar_threshold[3]" = "0x60" |
| 222 | register "sar_hysteresis" = "1" |
| 223 | register "sar_voltage" = "6" |
| 224 | register "sar_compare_time" = "0" # 500ns |
| 225 | register "sar_sampling_time" = "0" # 2us |
| 226 | register "short_key_debounce" = "2" # 100ms |
| 227 | register "jack_insert_debounce" = "7" # 512ms |
| 228 | register "jack_eject_debounce" = "7" # 512ms |
| 229 | device i2c 1a on |
| 230 | probe AUDIO MAX98373_NAU88L25B_I2S |
| 231 | end |
| 232 | end |
David Wu | f0d9c12 | 2021-09-24 09:20:17 +0800 | [diff] [blame] | 233 | chip drivers/i2c/max98373 |
| 234 | register "vmon_slot_no" = "0" |
| 235 | register "imon_slot_no" = "1" |
| 236 | register "uid" = "0" |
| 237 | register "desc" = ""Right Speaker Amp"" |
| 238 | register "name" = ""MAXR"" |
| 239 | device i2c 31 on |
| 240 | probe AUDIO MAX98373_NAU88L25B_I2S |
| 241 | end |
| 242 | end |
| 243 | chip drivers/i2c/max98373 |
| 244 | register "vmon_slot_no" = "2" |
| 245 | register "imon_slot_no" = "3" |
| 246 | register "uid" = "1" |
| 247 | register "desc" = ""Left Speaker Amp"" |
| 248 | register "name" = ""MAXL"" |
| 249 | device i2c 32 on |
| 250 | probe AUDIO MAX98373_NAU88L25B_I2S |
| 251 | end |
| 252 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 253 | end #I2C0 |
| 254 | device ref i2c1 on |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 255 | chip drivers/i2c/tpm |
| 256 | register "hid" = ""GOOG0005"" |
| 257 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 258 | device i2c 50 on end |
David Wu | 6db243a | 2021-11-09 12:36:43 +0800 | [diff] [blame] | 259 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 260 | end |
| 261 | device ref i2c2 on |
| 262 | chip drivers/i2c/sx9324 |
| 263 | register "desc" = ""SAR1 Proximity Sensor"" |
| 264 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
| 265 | register "speed" = "I2C_SPEED_FAST" |
| 266 | register "uid" = "1" |
| 267 | register "reg_gnrl_ctrl0" = "0x16" |
| 268 | register "reg_gnrl_ctrl1" = "0x21" |
| 269 | register "reg_afe_ctrl0" = "0x00" |
| 270 | register "reg_afe_ctrl1" = "0x10" |
| 271 | register "reg_afe_ctrl2" = "0x00" |
| 272 | register "reg_afe_ctrl3" = "0x00" |
| 273 | register "reg_afe_ctrl4" = "0x07" |
| 274 | register "reg_afe_ctrl5" = "0x00" |
| 275 | register "reg_afe_ctrl6" = "0x00" |
| 276 | register "reg_afe_ctrl7" = "0x07" |
| 277 | register "reg_afe_ctrl8" = "0x12" |
| 278 | register "reg_afe_ctrl9" = "0x0f" |
| 279 | register "reg_prox_ctrl0" = "0x12" |
| 280 | register "reg_prox_ctrl1" = "0x12" |
| 281 | register "reg_prox_ctrl2" = "0x90" |
| 282 | register "reg_prox_ctrl3" = "0x60" |
| 283 | register "reg_prox_ctrl4" = "0x0c" |
| 284 | register "reg_prox_ctrl5" = "0x12" |
| 285 | register "reg_prox_ctrl6" = "0x3c" |
| 286 | register "reg_prox_ctrl7" = "0x58" |
| 287 | register "reg_adv_ctrl0" = "0x00" |
| 288 | register "reg_adv_ctrl1" = "0x00" |
| 289 | register "reg_adv_ctrl2" = "0x00" |
| 290 | register "reg_adv_ctrl3" = "0x00" |
| 291 | register "reg_adv_ctrl4" = "0x00" |
| 292 | register "reg_adv_ctrl5" = "0x05" |
| 293 | register "reg_adv_ctrl6" = "0x00" |
| 294 | register "reg_adv_ctrl7" = "0x00" |
| 295 | register "reg_adv_ctrl8" = "0x00" |
| 296 | register "reg_adv_ctrl9" = "0x00" |
| 297 | register "reg_adv_ctrl10" = "0x5c" |
| 298 | register "reg_adv_ctrl11" = "0x52" |
| 299 | register "reg_adv_ctrl12" = "0xb5" |
| 300 | register "reg_adv_ctrl13" = "0x00" |
| 301 | register "reg_adv_ctrl14" = "0x80" |
| 302 | register "reg_adv_ctrl15" = "0x0c" |
| 303 | register "reg_adv_ctrl16" = "0x38" |
| 304 | register "reg_adv_ctrl17" = "0x56" |
| 305 | register "reg_adv_ctrl18" = "0x33" |
| 306 | register "reg_adv_ctrl19" = "0xf0" |
| 307 | register "reg_adv_ctrl20" = "0xf0" |
| 308 | device i2c 28 on end |
| 309 | end |
| 310 | chip drivers/i2c/sx9324 |
| 311 | register "desc" = ""SAR2 Proximity Sensor"" |
| 312 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_H19_IRQ)" |
| 313 | register "speed" = "I2C_SPEED_FAST" |
| 314 | register "uid" = "2" |
| 315 | register "reg_gnrl_ctrl0" = "0x16" |
| 316 | register "reg_gnrl_ctrl1" = "0x21" |
| 317 | register "reg_afe_ctrl0" = "0x00" |
| 318 | register "reg_afe_ctrl1" = "0x10" |
| 319 | register "reg_afe_ctrl2" = "0x00" |
| 320 | register "reg_afe_ctrl3" = "0x00" |
| 321 | register "reg_afe_ctrl4" = "0x07" |
| 322 | register "reg_afe_ctrl5" = "0x00" |
| 323 | register "reg_afe_ctrl6" = "0x00" |
| 324 | register "reg_afe_ctrl7" = "0x07" |
| 325 | register "reg_afe_ctrl8" = "0x12" |
| 326 | register "reg_afe_ctrl9" = "0x0f" |
| 327 | register "reg_prox_ctrl0" = "0x12" |
| 328 | register "reg_prox_ctrl1" = "0x12" |
| 329 | register "reg_prox_ctrl2" = "0x90" |
| 330 | register "reg_prox_ctrl3" = "0x60" |
| 331 | register "reg_prox_ctrl4" = "0x0c" |
| 332 | register "reg_prox_ctrl5" = "0x12" |
| 333 | register "reg_prox_ctrl6" = "0x3c" |
| 334 | register "reg_prox_ctrl7" = "0x58" |
| 335 | register "reg_adv_ctrl0" = "0x00" |
| 336 | register "reg_adv_ctrl1" = "0x00" |
| 337 | register "reg_adv_ctrl2" = "0x00" |
| 338 | register "reg_adv_ctrl3" = "0x00" |
| 339 | register "reg_adv_ctrl4" = "0x00" |
| 340 | register "reg_adv_ctrl5" = "0x05" |
| 341 | register "reg_adv_ctrl6" = "0x00" |
| 342 | register "reg_adv_ctrl7" = "0x00" |
| 343 | register "reg_adv_ctrl8" = "0x00" |
| 344 | register "reg_adv_ctrl9" = "0x00" |
| 345 | register "reg_adv_ctrl10" = "0x5c" |
| 346 | register "reg_adv_ctrl11" = "0x52" |
| 347 | register "reg_adv_ctrl12" = "0xb5" |
| 348 | register "reg_adv_ctrl13" = "0x00" |
| 349 | register "reg_adv_ctrl14" = "0x80" |
| 350 | register "reg_adv_ctrl15" = "0x0c" |
| 351 | register "reg_adv_ctrl16" = "0x38" |
| 352 | register "reg_adv_ctrl17" = "0x56" |
| 353 | register "reg_adv_ctrl18" = "0x33" |
| 354 | register "reg_adv_ctrl19" = "0xf0" |
| 355 | register "reg_adv_ctrl20" = "0xf0" |
| 356 | device i2c 2C on end |
| 357 | end |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 358 | chip drivers/intel/mipi_camera |
Lai, Jim | ae9a844 | 2021-09-30 13:39:58 +0800 | [diff] [blame] | 359 | register "acpi_hid" = ""INT3474"" |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 360 | register "acpi_uid" = "0" |
| 361 | register "acpi_name" = ""CAM0"" |
| 362 | register "chip_name" = ""Ov 2740 Camera"" |
| 363 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 364 | register "has_power_resource" = "1" |
| 365 | |
| 366 | register "ssdb.lanes_used" = "2" |
| 367 | register "ssdb.link_used" = "1" |
| 368 | register "num_freq_entries" = "1" |
Lai, Jim | ae9a844 | 2021-09-30 13:39:58 +0800 | [diff] [blame] | 369 | register "link_freq[0]" = "360 * MHz" |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 370 | register "remote_name" = ""IPU0"" |
Jim Lai | 77426ff | 2022-01-13 15:22:38 +0800 | [diff] [blame] | 371 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D3_COLD" |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 372 | |
| 373 | #Controls |
| 374 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 375 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 376 | |
| 377 | register "gpio_panel.gpio[0].gpio_num" = "GPP_F20" #reset |
| 378 | register "gpio_panel.gpio[1].gpio_num" = "GPP_C4" #power |
| 379 | |
| 380 | #_ON |
| 381 | register "on_seq.ops_cnt" = "4" |
| 382 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 383 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 384 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 5)" |
| 385 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 386 | |
| 387 | #_OFF |
| 388 | register "off_seq.ops_cnt" = "3" |
| 389 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 390 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 391 | register "off_seq.ops[2]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 392 | |
David Wu | eea22f6 | 2021-10-26 19:13:54 +0800 | [diff] [blame] | 393 | device i2c 36 on |
| 394 | probe UFC UFC_MIPI_OVTI2740 |
| 395 | end |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 396 | end |
| 397 | chip drivers/intel/mipi_camera |
| 398 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 399 | register "acpi_uid" = "1" |
| 400 | register "acpi_name" = ""NVM0"" |
| 401 | register "chip_name" = ""AT24 EEPROM"" |
| 402 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 403 | |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 404 | register "nvm_size" = "0x2000" |
| 405 | register "nvm_pagesize" = "1" |
| 406 | register "nvm_readonly" = "1" |
| 407 | register "nvm_width" = "0x10" |
| 408 | register "nvm_compat" = ""atmel,24c64"" |
| 409 | |
David Wu | eea22f6 | 2021-10-26 19:13:54 +0800 | [diff] [blame] | 410 | device i2c 50 on |
| 411 | probe UFC UFC_MIPI_OVTI2740 |
| 412 | end |
David Wu | 215ff5d | 2021-09-11 09:46:18 +0800 | [diff] [blame] | 413 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 414 | end |
David Wu | 6de4898 | 2021-11-18 21:22:33 +0800 | [diff] [blame] | 415 | device ref i2c3 on |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 416 | chip drivers/i2c/hid |
| 417 | register "generic.hid" = ""ELAN90FC"" |
| 418 | register "generic.desc" = ""ELAN Touchscreen"" |
| 419 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 420 | register "generic.probed" = "1" |
| 421 | register "generic.reset_gpio" = |
| 422 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
David Wu | 2e7b78b | 2022-01-24 16:40:53 +0800 | [diff] [blame] | 423 | register "generic.reset_delay_ms" = "20" |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 424 | register "generic.reset_off_delay_ms" = "1" |
| 425 | register "generic.enable_gpio" = |
| 426 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 427 | register "generic.enable_delay_ms" = "6" |
David Wu | 6179f7b | 2022-02-23 13:25:05 +0800 | [diff] [blame] | 428 | register "generic.enable_off_delay_ms" = "30" |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 429 | register "generic.stop_gpio" = |
| 430 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 431 | register "generic.stop_off_delay_ms" = "1" |
| 432 | register "generic.has_power_resource" = "1" |
Tim Wawrzynczak | a7e85d4 | 2021-12-16 11:17:07 -0700 | [diff] [blame] | 433 | register "generic.disable_gpio_export_in_crs" = "1" |
David Wu | 02cef7a | 2021-11-23 11:26:44 +0800 | [diff] [blame] | 434 | register "hid_desc_reg_offset" = "0x01" |
| 435 | device i2c 0x10 on end |
| 436 | end |
| 437 | chip drivers/generic/gpio_keys |
| 438 | register "name" = ""PENH"" |
| 439 | # GPP_D6 is the IRQ source, and GPP_D17 is the wake source |
| 440 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D6)" |
| 441 | register "key.wake_gpe" = "GPE0_DW1_17" |
| 442 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 443 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 444 | register "key.dev_name" = ""EJCT"" |
| 445 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 446 | register "key.linux_input_type" = "EV_SW" |
| 447 | register "key.label" = ""pen_eject"" |
David Wu | a5b6ec0 | 2021-12-27 13:50:27 +0800 | [diff] [blame] | 448 | device generic 0 on |
| 449 | probe STYLUS STYLUS_PRESENT |
| 450 | end |
David Wu | 6de4898 | 2021-11-18 21:22:33 +0800 | [diff] [blame] | 451 | end |
| 452 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 453 | device ref i2c5 on |
| 454 | chip drivers/i2c/generic |
| 455 | register "hid" = ""ELAN0000"" |
| 456 | register "desc" = ""ELAN Touchpad"" |
| 457 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 458 | register "wake" = "GPE0_DW2_14" |
| 459 | register "probed" = "1" |
| 460 | device i2c 15 on end |
| 461 | end |
David Wu | 16e815f | 2021-09-29 12:54:58 +0800 | [diff] [blame] | 462 | chip drivers/i2c/hid |
| 463 | register "generic.hid" = ""PNP0C50"" |
| 464 | register "generic.desc" = ""Synaptics Touchpad"" |
| 465 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 466 | register "generic.wake" = "GPE0_DW2_14" |
| 467 | register "generic.probed" = "1" |
| 468 | register "hid_desc_reg_offset" = "0x20" |
| 469 | device i2c 0x2c on end |
| 470 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 471 | end |
David Wu | 1bdf09d | 2021-10-25 11:54:41 +0800 | [diff] [blame] | 472 | device ref pcie_rp6 off end # PCIE6 WWAN |
| 473 | device ref pcie_rp8 off end # PCIE8 SD card |
| 474 | device ref pcie_rp9 off end # PCIE9-12 SSD |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 475 | device ref gspi1 on |
| 476 | chip drivers/spi/acpi |
| 477 | register "name" = ""CRFP"" |
| 478 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 479 | register "uid" = "1" |
| 480 | register "compat_string" = ""google,cros-ec-spi"" |
| 481 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 482 | register "wake" = "GPE0_DW2_15" |
| 483 | device spi 0 on end |
| 484 | end # FPMCU |
| 485 | end |
| 486 | device ref pch_espi on |
| 487 | chip ec/google/chromeec |
| 488 | use conn0 as mux_conn[0] |
| 489 | use conn1 as mux_conn[1] |
| 490 | device pnp 0c09.0 on end |
| 491 | end |
| 492 | end |
| 493 | device ref pmc hidden |
| 494 | chip drivers/intel/pmc_mux |
| 495 | device generic 0 on |
| 496 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 497 | use usb2_port1 as usb2_port |
| 498 | use tcss_usb3_port1 as usb3_port |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 499 | device generic 0 alias conn0 on end |
| 500 | end |
| 501 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 502 | use usb2_port3 as usb2_port |
| 503 | use tcss_usb3_port3 as usb3_port |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 504 | device generic 1 alias conn1 on end |
| 505 | end |
| 506 | end |
| 507 | end |
| 508 | end |
| 509 | device ref tcss_xhci on |
| 510 | chip drivers/usb/acpi |
| 511 | device ref tcss_root_hub on |
| 512 | chip drivers/usb/acpi |
| 513 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 514 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 515 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 516 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 517 | device ref tcss_usb3_port1 on end |
| 518 | end |
| 519 | chip drivers/usb/acpi |
| 520 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 521 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 522 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 523 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 524 | device ref tcss_usb3_port3 on end |
| 525 | end |
| 526 | end |
| 527 | end |
| 528 | end |
| 529 | device ref xhci on |
| 530 | chip drivers/usb/acpi |
| 531 | device ref xhci_root_hub on |
| 532 | chip drivers/usb/acpi |
| 533 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 534 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 535 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 536 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 537 | device ref usb2_port1 on end |
| 538 | end |
| 539 | chip drivers/usb/acpi |
| 540 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 541 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 542 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 543 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 544 | device ref usb2_port3 on end |
| 545 | end |
| 546 | chip drivers/usb/acpi |
| 547 | register "desc" = ""USB2 Camera"" |
| 548 | register "type" = "UPC_TYPE_INTERNAL" |
David Wu | eea22f6 | 2021-10-26 19:13:54 +0800 | [diff] [blame] | 549 | device ref usb2_port6 on |
| 550 | probe UFC UFC_USB |
| 551 | end |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 552 | end |
| 553 | chip drivers/usb/acpi |
| 554 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 555 | register "type" = "UPC_TYPE_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 556 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 557 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 558 | device ref usb2_port9 on end |
| 559 | end |
| 560 | chip drivers/usb/acpi |
| 561 | register "desc" = ""USB2 Bluetooth"" |
| 562 | register "type" = "UPC_TYPE_INTERNAL" |
| 563 | register "reset_gpio" = |
| 564 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 565 | device ref usb2_port10 on end |
| 566 | end |
| 567 | chip drivers/usb/acpi |
| 568 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 569 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | 9c5a107 | 2022-02-02 22:30:53 +0000 | [diff] [blame] | 570 | register "use_custom_pld" = "true" |
Subrata Banik | bf265b4 | 2022-02-16 17:31:51 +0530 | [diff] [blame] | 571 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
David Wu | e7f4493 | 2021-08-17 20:05:51 +0800 | [diff] [blame] | 572 | device ref usb3_port1 on end |
| 573 | end |
| 574 | end |
| 575 | end |
| 576 | end |
| 577 | end |
David Wu | 07375cb | 2021-07-08 10:58:00 +0800 | [diff] [blame] | 578 | end |