Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_SD 0 1 |
| 3 | option SD_ABSENT 0 |
| 4 | option SD_GL9750 1 |
| 5 | end |
| 6 | field KB_BL 2 2 |
| 7 | option KB_BL_ABSENT 0 |
| 8 | option KB_BL_PRESENT 1 |
| 9 | end |
| 10 | field AUDIO 3 5 |
| 11 | option AUDIO_UNKNOWN 0 |
| 12 | option MAX98360_ALC5682I_I2S 1 |
| 13 | option MAX98360_ALC5682IVS_I2S 2 |
| 14 | end |
| 15 | field DB_LTE 6 7 |
| 16 | option LTE_ABSENT 0 |
| 17 | option LTE_USB 1 |
| 18 | end |
| 19 | field EPS 10 10 |
| 20 | option PRIVACY_SCREEN_ABSENT 0 |
| 21 | option PRIVACY_SCREEN 1 |
| 22 | end |
| 23 | end |
Shon Wang | b8f0539 | 2021-11-12 14:10:31 +0800 | [diff] [blame] | 24 | chip soc/intel/alderlake |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 25 | # Intel Common SoC Config |
| 26 | #+-------------------+---------------------------+ |
| 27 | #| Field | Value | |
| 28 | #+-------------------+---------------------------+ |
| 29 | #| GSPI1 | Fingerprint MCU | |
| 30 | #| I2C0 | Audio | |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 31 | #| I2C1 | cr50 TPM. Early init is | |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 32 | #| | required to set up a BAR | |
| 33 | #| | for TPM communication | |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 34 | #| I2C2 | | |
| 35 | #| I2C3 | Touchscreen | |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 36 | #| I2C5 | Trackpad | |
| 37 | #+-------------------+---------------------------+ |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 38 | register "common_soc_config" = "{ |
Eddy Lu | 15a33fd | 2022-03-30 11:55:18 +0800 | [diff] [blame] | 39 | .i2c[0] = { |
| 40 | .speed = I2C_SPEED_FAST_PLUS, |
| 41 | .speed_config[0] = { |
| 42 | .speed = I2C_SPEED_FAST_PLUS, |
| 43 | .scl_lcnt = 45, |
| 44 | .scl_hcnt = 33, |
| 45 | .sda_hold = 20, |
| 46 | }, |
| 47 | }, |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 48 | .i2c[1] = { |
| 49 | .early_init = 1, |
| 50 | .speed = I2C_SPEED_FAST, |
| 51 | .rise_time_ns = 600, |
| 52 | .fall_time_ns = 400, |
| 53 | .data_hold_time_ns = 50, |
| 54 | }, |
| 55 | .i2c[3] = { |
| 56 | .rise_time_ns = 650, |
| 57 | .fall_time_ns = 400, |
| 58 | .data_hold_time_ns = 50, |
| 59 | }, |
Shon Wang | fdfa22e | 2022-05-24 15:52:54 +0800 | [diff] [blame] | 60 | .i2c[7] = { |
| 61 | .speed = I2C_SPEED_FAST_PLUS, |
| 62 | .speed_config[0] = { |
| 63 | .speed = I2C_SPEED_FAST_PLUS, |
| 64 | .scl_lcnt = 45, |
| 65 | .scl_hcnt = 30, |
| 66 | .sda_hold = 20, |
| 67 | }, |
| 68 | }, |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 69 | }" |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 70 | register "usb2_ports[4]" = "USB2_PORT_TYPE_C(OC3)" # USB2_C3 |
Daisuke Nojiri | c3dab9c | 2022-01-10 10:41:17 -0800 | [diff] [blame] | 71 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" |
Shon | 8f6dd2a | 2022-05-24 16:12:11 +0800 | [diff] [blame] | 72 | register "usb2_ports[8]" = "USB2_PORT_EMPTY" |
| 73 | |
| 74 | register "usb3_ports[0]" = "USB3_PORT_EMPTY" |
| 75 | |
Gaggery Tsai | 2f4246a | 2022-04-25 22:10:32 -0700 | [diff] [blame] | 76 | register "tcss_ports[3]" = "TCSS_PORT_DEFAULT(OC3)" |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 77 | register "sagv" = "SaGv_Enabled" |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 78 | |
Sridhar Siricilla | d55ed57 | 2022-10-26 17:03:25 +0530 | [diff] [blame] | 79 | # Set EPP to 50%: 50 * 256 / 100 = 0x80 |
| 80 | register "enable_energy_perf_pref" = "true" |
| 81 | register "energy_perf_pref_value" = "0x80" |
| 82 | |
Robert Chen | 161e731 | 2022-04-07 16:10:31 +0800 | [diff] [blame] | 83 | # FIVR RFI Spread Spectrum 6% |
| 84 | register "fivr_spread_spectrum" = "FIVR_SS_6" |
| 85 | |
= | 0617d5a | 2021-12-14 15:20:43 +0800 | [diff] [blame] | 86 | # I2C Port Config |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 87 | register "serial_io_i2c_mode" = "{ |
= | 0617d5a | 2021-12-14 15:20:43 +0800 | [diff] [blame] | 88 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 89 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 90 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 91 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 92 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 93 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
Shon Wang | fdfa22e | 2022-05-24 15:52:54 +0800 | [diff] [blame] | 94 | [PchSerialIoIndexI2C7] = PchSerialIoPci, |
= | 0617d5a | 2021-12-14 15:20:43 +0800 | [diff] [blame] | 95 | }" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 96 | device domain 0 on |
| 97 | device ref igpu on |
| 98 | chip drivers/gfx/generic |
| 99 | register "device_count" = "1" |
| 100 | register "device[0].name" = ""LCD"" |
Jon Murphy | c4e9045 | 2022-06-28 10:36:23 -0600 | [diff] [blame] | 101 | # Use ChromeOS privacy screen _HID |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 102 | register "device[0].hid" = ""GOOG0010"" |
| 103 | # Internal panel on the first port of the graphics chip |
| 104 | register "device[0].addr" = "0x80010400" |
| 105 | register "device[0].privacy.enabled" = "1" |
| 106 | register "device[0].privacy.gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H21)" |
| 107 | device generic 0 on |
| 108 | probe EPS PRIVACY_SCREEN |
| 109 | end |
| 110 | end |
| 111 | end # Integrated Graphics Device |
| 112 | device ref dtt on |
| 113 | chip drivers/intel/dptf |
| 114 | ## sensor information |
| 115 | register "options.tsr[0].desc" = ""DRAM"" |
| 116 | register "options.tsr[1].desc" = ""Soc"" |
| 117 | register "options.tsr[2].desc" = ""Charger"" |
| 118 | register "options.tsr[3].desc" = ""Regulator"" |
| 119 | # TODO: below values are initial reference values only |
| 120 | ## Passive Policy |
| 121 | register "policies.passive" = "{ |
| 122 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 123 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 124 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 75, 5000), |
| 125 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 5000), |
| 126 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 75, 5000), |
| 127 | }" |
| 128 | ## Critical Policy |
| 129 | register "policies.critical" = "{ |
| 130 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 131 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 132 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 133 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 134 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 85, SHUTDOWN), |
| 135 | }" |
| 136 | register "controls.power_limits" = "{ |
| 137 | .pl1 = { |
| 138 | .min_power = 3000, |
| 139 | .max_power = 15000, |
| 140 | .time_window_min = 28 * MSECS_PER_SEC, |
| 141 | .time_window_max = 32 * MSECS_PER_SEC, |
| 142 | .granularity = 200, |
| 143 | }, |
| 144 | .pl2 = { |
| 145 | .min_power = 55000, |
| 146 | .max_power = 55000, |
| 147 | .time_window_min = 28 * MSECS_PER_SEC, |
| 148 | .time_window_max = 32 * MSECS_PER_SEC, |
| 149 | .granularity = 1000, |
| 150 | } |
| 151 | }" |
| 152 | ## Charger Performance Control (Control, mA) |
| 153 | register "controls.charger_perf" = "{ |
| 154 | [0] = { 255, 1700 }, |
| 155 | [1] = { 24, 1500 }, |
| 156 | [2] = { 16, 1000 }, |
| 157 | [3] = { 8, 500 } |
| 158 | }" |
| 159 | device generic 0 on end |
| 160 | end |
| 161 | end |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 162 | device ref ipu on |
| 163 | chip drivers/intel/mipi_camera |
| 164 | register "acpi_uid" = "0x50000" |
| 165 | register "acpi_name" = ""IPU0"" |
| 166 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 167 | |
| 168 | register "cio2_num_ports" = "1" |
| 169 | register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used |
| 170 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
Shon Wang | d91a684 | 2022-02-15 09:52:40 +0800 | [diff] [blame] | 171 | register "cio2_prt[0]" = "1" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 172 | device generic 0 on end |
| 173 | end |
| 174 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 175 | device ref pcie4_0 on |
= | e061fbf | 2021-12-14 15:27:01 +0800 | [diff] [blame] | 176 | # Enable CPU PCIE RP 1 using CLK 1 |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 177 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 178 | .clk_req = 1, |
= | e061fbf | 2021-12-14 15:27:01 +0800 | [diff] [blame] | 179 | .clk_src = 1, |
Tracy Wu | ec877d6 | 2022-01-13 21:53:02 +0800 | [diff] [blame] | 180 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 181 | }" |
| 182 | end |
Gaggery Tsai | 2f4246a | 2022-04-25 22:10:32 -0700 | [diff] [blame] | 183 | device ref tbt_pcie_rp3 on end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 184 | device ref cnvi_wifi on |
| 185 | chip drivers/wifi/generic |
| 186 | register "wake" = "GPE0_PME_B0" |
| 187 | device generic 0 on end |
| 188 | end |
| 189 | end |
Robert Chen | 977282f | 2022-03-14 11:17:01 +0800 | [diff] [blame] | 190 | device ref pcie_rp6 on |
| 191 | # Enable WWAN PCIE 6 using clk 5 |
| 192 | register "pch_pcie_rp[PCH_RP(6)]" = "{ |
| 193 | .clk_src = 5, |
| 194 | .clk_req = 5, |
| 195 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 196 | }" |
| 197 | chip soc/intel/common/block/pcie/rtd3 |
| 198 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E0)" |
| 199 | register "reset_off_delay_ms" = "20" |
| 200 | register "srcclk_pin" = "5" |
| 201 | register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" |
| 202 | register "skip_on_off_support" = "true" |
| 203 | device generic 0 alias rp6_rtd3 on end |
| 204 | end |
| 205 | chip drivers/wwan/fm |
| 206 | register "fcpo_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F21)" |
| 207 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E16)" |
| 208 | register "perst_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E0)" |
| 209 | register "wake_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A7)" |
| 210 | register "add_acpi_dma_property" = "true" |
| 211 | use rp6_rtd3 as rtd3dev |
Robert Chen | cfe9253 | 2022-02-11 15:45:26 +0800 | [diff] [blame] | 212 | device generic 0 alias rp6_wwan on end |
Robert Chen | 977282f | 2022-03-14 11:17:01 +0800 | [diff] [blame] | 213 | end |
| 214 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 215 | device ref pcie_rp8 off end |
| 216 | device ref pcie_rp9 off end |
| 217 | device ref tcss_dma0 on |
| 218 | chip drivers/intel/usb4/retimer |
| 219 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 220 | use tcss_usb3_port1 as dfp[0].typec_port |
| 221 | device generic 0 on end |
| 222 | end |
| 223 | end |
| 224 | device ref tcss_dma1 on |
| 225 | chip drivers/intel/usb4/retimer |
| 226 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 227 | use tcss_usb3_port3 as dfp[0].typec_port |
| 228 | device generic 0 on end |
| 229 | end |
| 230 | end |
| 231 | device ref i2c0 on |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 232 | chip drivers/i2c/cs35l53 |
eddylu@ami.corp-partner.google.com | 244ecad | 2022-06-14 13:03:34 +0800 | [diff] [blame] | 233 | register "name" = ""SPK0"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 234 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 244ecad | 2022-06-14 13:03:34 +0800 | [diff] [blame] | 235 | register "desc" = ""Cirrus Logic CS35L53 Tweeter Left Audio Codec"" |
| 236 | register "uid" = "2" |
| 237 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
| 238 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 239 | register "boost_type" = "EXTERNAL_BOOST" |
| 240 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 241 | register "gpio1_output_enable" = "true" |
| 242 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 243 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
| 244 | device i2c 0x40 alias i2c0_cs35l53_0 on end |
| 245 | end |
| 246 | chip drivers/i2c/cs35l53 |
| 247 | register "name" = ""SPK1"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 248 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 244ecad | 2022-06-14 13:03:34 +0800 | [diff] [blame] | 249 | register "desc" = ""Cirrus Logic CS35L53 Woofer Left Audio Codec"" |
| 250 | register "uid" = "0" |
| 251 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
| 252 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 253 | register "boost_type" = "EXTERNAL_BOOST" |
| 254 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 255 | register "gpio1_output_enable" = "true" |
| 256 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 257 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
| 258 | device i2c 0x41 alias i2c0_cs35l53_1 on end |
| 259 | end |
| 260 | chip drivers/i2c/cs35l53 |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 261 | register "name" = ""SPK2"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 262 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 263 | register "desc" = ""Cirrus Logic CS35L53 Tweeter Right Audio Codec"" |
| 264 | register "uid" = "3" |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 265 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 266 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 267 | register "boost_type" = "EXTERNAL_BOOST" |
| 268 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 269 | register "gpio1_output_enable" = "true" |
| 270 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 271 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
| 272 | device i2c 0x42 on end |
| 273 | end |
| 274 | chip drivers/i2c/cs35l53 |
| 275 | register "name" = ""SPK3"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 276 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 277 | register "desc" = ""Cirrus Logic CS35L53 Woofer Right Audio Codec"" |
| 278 | register "uid" = "1" |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 279 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 280 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
Shon Wang | 8d296b1 | 2021-12-24 10:45:15 +0800 | [diff] [blame] | 281 | register "boost_type" = "EXTERNAL_BOOST" |
| 282 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 283 | register "gpio1_output_enable" = "true" |
| 284 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 285 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
| 286 | device i2c 0x43 on end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 287 | end |
| 288 | end #I2C0 |
| 289 | device ref i2c1 on |
Shon Wang | 138f547 | 2021-12-14 20:41:48 +0800 | [diff] [blame] | 290 | chip drivers/i2c/tpm |
| 291 | register "hid" = ""GOOG0005"" |
| 292 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 293 | device i2c 50 on end |
| 294 | end |
| 295 | end |
| 296 | device ref i2c3 on |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 297 | chip drivers/i2c/hid |
Shon Wang | 3b9077a | 2022-02-24 11:04:17 +0800 | [diff] [blame] | 298 | register "generic.hid" = ""ELAN2513"" |
| 299 | register "generic.desc" = ""ELAN Touchscreen"" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 300 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 301 | register "generic.probed" = "1" |
| 302 | register "generic.reset_gpio" = |
| 303 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
Shon Wang | 3b9077a | 2022-02-24 11:04:17 +0800 | [diff] [blame] | 304 | register "generic.reset_delay_ms" = "200" |
| 305 | register "generic.reset_off_delay_ms" = "1" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 306 | register "generic.enable_gpio" = |
| 307 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
Shon Wang | 3b9077a | 2022-02-24 11:04:17 +0800 | [diff] [blame] | 308 | register "generic.enable_delay_ms" = "6" |
| 309 | register "generic.stop_gpio" = |
| 310 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 311 | register "generic.stop_off_delay_ms" = "1" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 312 | register "generic.has_power_resource" = "1" |
| 313 | register "hid_desc_reg_offset" = "0x01" |
Shon Wang | 3b9077a | 2022-02-24 11:04:17 +0800 | [diff] [blame] | 314 | device i2c 0x10 on end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 315 | end |
| 316 | end |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 317 | device ref i2c2 on |
| 318 | chip drivers/intel/mipi_camera |
| 319 | register "acpi_hid" = ""OVTI8856"" |
| 320 | register "acpi_uid" = "0" |
| 321 | register "acpi_name" = ""CAM0"" |
| 322 | register "chip_name" = ""Ov 8856 Camera"" |
| 323 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 324 | register "has_power_resource" = "1" |
| 325 | |
| 326 | register "ssdb.lanes_used" = "4" |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 327 | register "ssdb.link_used" = "1" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 328 | register "num_freq_entries" = "2" |
| 329 | register "link_freq[0]" = "360000000" |
| 330 | register "link_freq[1]" = "180000000" |
| 331 | register "remote_name" = ""IPU0"" |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 332 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D3_COLD" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 333 | |
| 334 | #Controls |
| 335 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_2" |
| 336 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 337 | |
| 338 | register "gpio_panel.gpio[0].gpio_num" = "GPP_F20" #reset |
| 339 | register "gpio_panel.gpio[1].gpio_num" = "GPP_C4" #power |
| 340 | |
| 341 | #_ON |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 342 | register "on_seq.ops_cnt" = "4" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 343 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 344 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 345 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 5)" |
| 346 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 347 | |
| 348 | #_OFF |
| 349 | register "off_seq.ops_cnt" = "3" |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 350 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 351 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 352 | register "off_seq.ops[2]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 353 | |
| 354 | device i2c 36 on end |
| 355 | end |
| 356 | chip drivers/intel/mipi_camera |
Shon Wang | 7e22ac1 | 2022-04-07 16:23:14 +0800 | [diff] [blame] | 357 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 358 | register "acpi_uid" = "1" |
| 359 | register "acpi_name" = ""NVM0"" |
| 360 | register "chip_name" = ""GT24C08"" |
| 361 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 362 | |
Shon Wang | f00680a | 2021-12-21 17:41:19 +0800 | [diff] [blame] | 363 | register "nvm_compat" = ""atmel,24c1024"" |
| 364 | |
| 365 | register "nvm_size" = "0x2000" |
| 366 | register "nvm_pagesize" = "0x01" |
| 367 | register "nvm_readonly" = "0x01" |
| 368 | register "nvm_width" = "0x10" |
| 369 | |
| 370 | device i2c 50 on end |
| 371 | end |
| 372 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 373 | device ref i2c5 on |
= | 0617d5a | 2021-12-14 15:20:43 +0800 | [diff] [blame] | 374 | chip drivers/i2c/hid |
| 375 | register "generic.hid" = ""ELAN2703"" |
| 376 | register "generic.desc" = ""ELAN Touchpad"" |
| 377 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 378 | register "generic.wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 379 | register "generic.detect" = "1" |
= | 0617d5a | 2021-12-14 15:20:43 +0800 | [diff] [blame] | 380 | register "hid_desc_reg_offset" = "0x01" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 381 | device i2c 15 on end |
| 382 | end |
| 383 | end |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 384 | device ref i2c7 on |
| 385 | chip drivers/i2c/cs35l53 |
| 386 | register "name" = ""SPK0"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 387 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 388 | register "desc" = ""Cirrus Logic CS35L53 Tweeter Left Audio Codec"" |
| 389 | register "uid" = "2" |
| 390 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
| 391 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 392 | register "boost_type" = "EXTERNAL_BOOST" |
| 393 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 394 | register "gpio1_output_enable" = "true" |
| 395 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 396 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
eddylu@ami.corp-partner.google.com | 244ecad | 2022-06-14 13:03:34 +0800 | [diff] [blame] | 397 | device i2c 0x40 alias i2c7_cs35l53_0 on end |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 398 | end |
| 399 | chip drivers/i2c/cs35l53 |
| 400 | register "name" = ""SPK1"" |
Shon Wang | 2a13527 | 2022-08-24 16:59:06 +0800 | [diff] [blame] | 401 | register "sub" = ""103C8C08"" |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 402 | register "desc" = ""Cirrus Logic CS35L53 Woofer Left Audio Codec"" |
| 403 | register "uid" = "0" |
| 404 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_D14)" |
| 405 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 406 | register "boost_type" = "EXTERNAL_BOOST" |
| 407 | register "asp_sdout_hiz" = "ASP_SDOUT_LOGIC0_UNUSED_LOGIC0_DISABLED" |
| 408 | register "gpio1_output_enable" = "true" |
| 409 | register "gpio1_src_select" = "GPIO1_SRC_GPIO" |
| 410 | register "gpio2_src_select" = "GPIO2_SRC_HIGH_IMPEDANCE" |
eddylu@ami.corp-partner.google.com | 244ecad | 2022-06-14 13:03:34 +0800 | [diff] [blame] | 411 | device i2c 0x41 alias i2c7_cs35l53_1 on end |
eddylu@ami.corp-partner.google.com | 5451667 | 2022-05-19 11:47:37 +0800 | [diff] [blame] | 412 | end |
| 413 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 414 | device ref gspi1 on |
| 415 | chip drivers/spi/acpi |
| 416 | register "name" = ""CRFP"" |
| 417 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 418 | register "uid" = "1" |
| 419 | register "compat_string" = ""google,cros-ec-spi"" |
| 420 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
| 421 | register "wake" = "GPE0_DW2_15" |
Tarun Tuli | 2b523ce | 2022-08-29 13:39:58 -0400 | [diff] [blame] | 422 | register "has_power_resource" = "1" |
| 423 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 424 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 425 | register "enable_delay_ms" = "3" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 426 | device spi 0 on end |
| 427 | end # FPMCU |
| 428 | end |
| 429 | device ref pch_espi on |
| 430 | chip ec/google/chromeec |
| 431 | use conn0 as mux_conn[0] |
| 432 | use conn1 as mux_conn[1] |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 433 | use conn2 as mux_conn[2] |
| 434 | use conn3 as mux_conn[3] |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 435 | device pnp 0c09.0 on end |
| 436 | end |
| 437 | end |
| 438 | device ref pmc hidden |
| 439 | chip drivers/intel/pmc_mux |
| 440 | device generic 0 on |
| 441 | chip drivers/intel/pmc_mux/conn |
Felix Held | 30f4c53 | 2021-12-24 02:09:45 +0100 | [diff] [blame] | 442 | use usb2_port1 as usb2_port |
| 443 | use tcss_usb3_port1 as usb3_port |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 444 | device generic 0 alias conn0 on end |
| 445 | end |
| 446 | chip drivers/intel/pmc_mux/conn |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 447 | use usb2_port2 as usb2_port |
| 448 | use tcss_usb3_port2 as usb3_port |
| 449 | device generic 1 alias conn1 on end |
| 450 | end |
| 451 | chip drivers/intel/pmc_mux/conn |
Felix Held | 30f4c53 | 2021-12-24 02:09:45 +0100 | [diff] [blame] | 452 | use usb2_port3 as usb2_port |
| 453 | use tcss_usb3_port3 as usb3_port |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 454 | device generic 2 alias conn2 on end |
| 455 | end |
| 456 | chip drivers/intel/pmc_mux/conn |
| 457 | use usb2_port5 as usb2_port |
| 458 | use tcss_usb3_port4 as usb3_port |
| 459 | device generic 3 alias conn3 on end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 460 | end |
| 461 | end |
| 462 | end |
| 463 | end |
| 464 | device ref tcss_xhci on |
| 465 | chip drivers/usb/acpi |
| 466 | device ref tcss_root_hub on |
| 467 | chip drivers/usb/acpi |
| 468 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 469 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 470 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 471 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 472 | device ref tcss_usb3_port1 on end |
| 473 | end |
| 474 | chip drivers/usb/acpi |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 475 | register "desc" = ""USB3 Type-C Port C1 (MlB)"" |
| 476 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 477 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 478 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 479 | device ref tcss_usb3_port2 on end |
| 480 | end |
| 481 | chip drivers/usb/acpi |
| 482 | register "desc" = ""USB3 Type-C Port C2 (DB)"" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 483 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 484 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 485 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 486 | device ref tcss_usb3_port3 on end |
| 487 | end |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 488 | chip drivers/usb/acpi |
| 489 | register "desc" = ""USB3 Type-C Port C3 (DB)"" |
| 490 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 491 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 492 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 493 | device ref tcss_usb3_port4 on end |
| 494 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 495 | end |
| 496 | end |
| 497 | end |
| 498 | device ref xhci on |
| 499 | chip drivers/usb/acpi |
| 500 | device ref xhci_root_hub on |
| 501 | chip drivers/usb/acpi |
| 502 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 503 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 504 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 505 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(1, 1))" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 506 | device ref usb2_port1 on end |
| 507 | end |
| 508 | chip drivers/usb/acpi |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 509 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 510 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 511 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 512 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 513 | device ref usb2_port2 on end |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 514 | end |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 515 | chip drivers/usb/acpi |
| 516 | register "desc" = ""USB2 Type-C Port C2 (DB)"" |
| 517 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 518 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 519 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 520 | device ref usb2_port3 on end |
| 521 | end |
| 522 | chip drivers/usb/acpi |
| 523 | register "desc" = ""USB2 WWAN"" |
| 524 | register "type" = "UPC_TYPE_INTERNAL" |
| 525 | device ref usb2_port4 on end |
| 526 | end |
| 527 | chip drivers/usb/acpi |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 528 | register "desc" = ""USB2 Type-C Port C3 (DB)"" |
| 529 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Subrata Banik | 5b0ce06 | 2022-02-16 20:30:37 +0530 | [diff] [blame] | 530 | register "use_custom_pld" = "true" |
Robert Chen | e39d371 | 2022-02-21 19:32:39 +0800 | [diff] [blame] | 531 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Shon Wang | b510670 | 2021-12-20 16:04:46 +0800 | [diff] [blame] | 532 | device ref usb2_port5 on end |
| 533 | end |
| 534 | chip drivers/usb/acpi |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 535 | register "desc" = ""USB2 Camera"" |
| 536 | register "type" = "UPC_TYPE_INTERNAL" |
| 537 | device ref usb2_port6 on end |
| 538 | end |
| 539 | chip drivers/usb/acpi |
Daisuke Nojiri | c3dab9c | 2022-01-10 10:41:17 -0800 | [diff] [blame] | 540 | register "desc" = ""RGB Keyboard"" |
| 541 | register "type" = "UPC_TYPE_INTERNAL" |
| 542 | device ref usb2_port7 on end |
| 543 | end |
| 544 | chip drivers/usb/acpi |
Kevin Chiu | 2649f5a | 2021-11-15 20:45:19 +0800 | [diff] [blame] | 545 | register "desc" = ""USB3 WWAN"" |
| 546 | register "type" = "UPC_TYPE_INTERNAL" |
| 547 | device ref usb3_port4 on end |
| 548 | end |
| 549 | end |
| 550 | end |
| 551 | end |
| 552 | end |
Shon Wang | b8f0539 | 2021-11-12 14:10:31 +0800 | [diff] [blame] | 553 | end |