Tim Wawrzynczak | 1a9c627 | 2021-04-23 15:11:48 -0600 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 3 |
| 3 | option USB_ABSENT 0 |
| 4 | option USB3_PS8815 1 |
| 5 | end |
| 6 | field DB_SD 4 5 |
| 7 | option SD_ABSENT 0 |
| 8 | option SD_GL9755S 1 |
| 9 | end |
Tim Wawrzynczak | 1a9c627 | 2021-04-23 15:11:48 -0600 | [diff] [blame] | 10 | field KB_BL 7 7 |
| 11 | option KB_BL_ABSENT 0 |
| 12 | option KB_BL_PRESENT 1 |
| 13 | end |
| 14 | field AUDIO 8 10 |
Amanda Huang | 651b765 | 2022-03-23 00:25:07 +0800 | [diff] [blame] | 15 | option AUDIO_UNKNOWN 0 |
| 16 | option MAX98357_ALC5682I_I2S 1 |
| 17 | option MAX98373_ALC5682_SNDW 2 |
| 18 | option MAX98373_NAU88L25B_I2S 3 |
| 19 | option ALC1019_NAU88L25B_I2S 4 |
Amanda Huang | e7a14cf | 2022-04-08 17:52:29 +0800 | [diff] [blame] | 20 | option MAX98360_ALC5682I_I2S 5 |
Tim Wawrzynczak | 1a9c627 | 2021-04-23 15:11:48 -0600 | [diff] [blame] | 21 | end |
| 22 | field DB_LTE 11 12 |
| 23 | option LTE_ABSENT 0 |
| 24 | option LTE_USB 1 |
| 25 | option LTE_PCIE 2 |
| 26 | end |
Varshit B Pandya | 70d0795 | 2021-06-23 12:13:16 +0530 | [diff] [blame] | 27 | field UFC 13 14 |
| 28 | option UFC_USB 0 |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 29 | option UFC_MIPI_IMX208 1 |
Varshit B Pandya | 70d0795 | 2021-06-23 12:13:16 +0530 | [diff] [blame] | 30 | end |
Nick Vaccaro | 912fea6 | 2022-07-19 14:31:52 -0700 | [diff] [blame] | 31 | field WFC 15 16 |
| 32 | option WFC_ABSENT 0 |
Nick Vaccaro | 01ab9b1 | 2022-09-30 16:17:28 -0700 | [diff] [blame] | 33 | option WFC_MIPI_OVTI8856 1 |
| 34 | option WFC_MIPI_KBAE350 2 |
Nick Vaccaro | 912fea6 | 2022-07-19 14:31:52 -0700 | [diff] [blame] | 35 | end |
Dan Callaghan | 4e6c915 | 2021-10-28 21:22:22 +1100 | [diff] [blame] | 36 | field HPS 17 17 |
| 37 | option HPS_ABSENT 0 |
| 38 | option HPS_PRESENT 1 |
| 39 | end |
Nick Vaccaro | 0c84a99 | 2022-09-30 17:20:09 -0700 | [diff] [blame] | 40 | field THERMAL 18 18 |
| 41 | option THERMAL_28W 0 |
| 42 | option THERMAL_15W 1 |
| 43 | end |
Tim Wawrzynczak | 1a9c627 | 2021-04-23 15:11:48 -0600 | [diff] [blame] | 44 | end |
| 45 | |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 46 | chip soc/intel/alderlake |
Jeremy Compostella | 54a6b1f | 2022-11-14 10:28:27 -0800 | [diff] [blame] | 47 | register "domain_vr_config[VR_DOMAIN_IA]" = "{ |
| 48 | .enable_fast_vmode = 1, |
| 49 | }" |
| 50 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 51 | register "sagv" = "SaGv_Enabled" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 52 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 53 | register "platform_pmax" = "145" |
Ryan Lin | a45377e | 2021-10-05 11:38:22 +0800 | [diff] [blame] | 54 | |
Tim Wawrzynczak | 2091965 | 2021-02-16 15:17:48 -0700 | [diff] [blame] | 55 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A MLB Port |
| 56 | |
| 57 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A MLB port |
| 58 | |
Eric Lai | 6296ae0 | 2021-11-15 12:24:12 +0800 | [diff] [blame] | 59 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 60 | |
V Sowmya | d5ab163 | 2021-06-21 09:50:47 +0530 | [diff] [blame] | 61 | # FIVR configurations for brya are disabled since the board doesn't have V1p05 and Vnn |
| 62 | # bypass rails implemented. |
| 63 | register "ext_fivr_settings" = "{ |
| 64 | .configure_ext_fivr = 1, |
| 65 | }" |
| 66 | |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 67 | # Intel Common SoC Config |
| 68 | #+-------------------+---------------------------+ |
| 69 | #| Field | Value | |
| 70 | #+-------------------+---------------------------+ |
| 71 | #| GSPI1 | Fingerprint MCU | |
| 72 | #| I2C0 | Audio | |
| 73 | #| I2C1 | cr50 TPM. Early init is | |
| 74 | #| | required to set up a BAR | |
| 75 | #| | for TPM communication | |
| 76 | #| I2C2 | SAR | |
| 77 | #| I2C3 | TouchScreen | |
| 78 | #| I2C5 | Trackpad | |
| 79 | #+-------------------+---------------------------+ |
| 80 | register "common_soc_config" = "{ |
| 81 | .i2c[0] = { |
| 82 | .speed = I2C_SPEED_FAST, |
| 83 | .rise_time_ns = 650, |
| 84 | .fall_time_ns = 400, |
| 85 | .data_hold_time_ns = 50, |
| 86 | }, |
| 87 | .i2c[1] = { |
| 88 | .early_init = 1, |
| 89 | .speed = I2C_SPEED_FAST, |
| 90 | .rise_time_ns = 600, |
| 91 | .fall_time_ns = 400, |
| 92 | .data_hold_time_ns = 50, |
| 93 | }, |
| 94 | .i2c[2] = { |
| 95 | .speed = I2C_SPEED_FAST, |
| 96 | .rise_time_ns = 900, |
| 97 | .fall_time_ns = 400, |
| 98 | .data_hold_time_ns = 50, |
| 99 | }, |
| 100 | .i2c[3] = { |
| 101 | .speed = I2C_SPEED_FAST, |
| 102 | .rise_time_ns = 650, |
| 103 | .fall_time_ns = 400, |
| 104 | .data_hold_time_ns = 50, |
| 105 | }, |
| 106 | .i2c[5] = { |
| 107 | .speed = I2C_SPEED_FAST, |
| 108 | .rise_time_ns = 650, |
| 109 | .fall_time_ns = 400, |
| 110 | .data_hold_time_ns = 50, |
| 111 | }, |
| 112 | }" |
| 113 | |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 114 | device domain 0 on |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 115 | device ref dtt on |
| 116 | chip drivers/intel/dptf |
| 117 | ## sensor information |
Sumeet Pawnikar | f032221 | 2021-05-20 18:16:34 +0530 | [diff] [blame] | 118 | register "options.tsr[0].desc" = ""DRAM_SOC"" |
| 119 | register "options.tsr[1].desc" = ""Ambient"" |
| 120 | register "options.tsr[2].desc" = ""Charger"" |
| 121 | register "options.tsr[3].desc" = ""WWAN"" |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 122 | |
| 123 | # TODO: below values are initial reference values only |
| 124 | ## Active Policy |
| 125 | register "policies.active" = "{ |
| 126 | [0] = { |
| 127 | .target = DPTF_CPU, |
| 128 | .thresholds = { |
| 129 | TEMP_PCT(85, 90), |
| 130 | TEMP_PCT(80, 80), |
| 131 | TEMP_PCT(75, 70), |
Sumeet Pawnikar | f032221 | 2021-05-20 18:16:34 +0530 | [diff] [blame] | 132 | TEMP_PCT(70, 50), |
| 133 | TEMP_PCT(65, 30), |
| 134 | } |
| 135 | }, |
| 136 | [1] = { |
| 137 | .target = DPTF_TEMP_SENSOR_1, |
| 138 | .thresholds = { |
| 139 | TEMP_PCT(50, 90), |
| 140 | TEMP_PCT(48, 70), |
| 141 | TEMP_PCT(46, 60), |
| 142 | TEMP_PCT(43, 40), |
| 143 | TEMP_PCT(40, 30), |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 144 | } |
| 145 | } |
| 146 | }" |
| 147 | |
| 148 | ## Passive Policy |
| 149 | register "policies.passive" = "{ |
| 150 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 151 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
Sumeet Pawnikar | f032221 | 2021-05-20 18:16:34 +0530 | [diff] [blame] | 152 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 75, 5000), |
| 153 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 5000), |
| 154 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 75, 5000), |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 155 | }" |
| 156 | |
| 157 | ## Critical Policy |
| 158 | register "policies.critical" = "{ |
| 159 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 160 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 161 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
Sumeet Pawnikar | f032221 | 2021-05-20 18:16:34 +0530 | [diff] [blame] | 162 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 163 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 85, SHUTDOWN), |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 164 | }" |
| 165 | |
| 166 | register "controls.power_limits" = "{ |
| 167 | .pl1 = { |
| 168 | .min_power = 3000, |
| 169 | .max_power = 15000, |
| 170 | .time_window_min = 28 * MSECS_PER_SEC, |
| 171 | .time_window_max = 32 * MSECS_PER_SEC, |
| 172 | .granularity = 200, |
| 173 | }, |
| 174 | .pl2 = { |
| 175 | .min_power = 55000, |
| 176 | .max_power = 55000, |
| 177 | .time_window_min = 28 * MSECS_PER_SEC, |
| 178 | .time_window_max = 32 * MSECS_PER_SEC, |
| 179 | .granularity = 1000, |
| 180 | } |
| 181 | }" |
| 182 | |
| 183 | ## Charger Performance Control (Control, mA) |
| 184 | register "controls.charger_perf" = "{ |
| 185 | [0] = { 255, 1700 }, |
| 186 | [1] = { 24, 1500 }, |
| 187 | [2] = { 16, 1000 }, |
| 188 | [3] = { 8, 500 } |
| 189 | }" |
| 190 | |
| 191 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 192 | register "controls.fan_perf" = "{ |
| 193 | [0] = { 90, 6700, 220, 2200, }, |
| 194 | [1] = { 80, 5800, 180, 1800, }, |
| 195 | [2] = { 70, 5000, 145, 1450, }, |
| 196 | [3] = { 60, 4900, 115, 1150, }, |
| 197 | [4] = { 50, 3838, 90, 900, }, |
| 198 | [5] = { 40, 2904, 55, 550, }, |
| 199 | [6] = { 30, 2337, 30, 300, }, |
| 200 | [7] = { 20, 1608, 15, 150, }, |
| 201 | [8] = { 10, 800, 10, 100, }, |
| 202 | [9] = { 0, 0, 0, 50, } |
| 203 | }" |
| 204 | |
| 205 | ## Fan options |
| 206 | register "options.fan.fine_grained_control" = "1" |
| 207 | register "options.fan.step_size" = "2" |
| 208 | |
Furquan Shaikh | 4aba739 | 2021-09-20 10:51:45 -0700 | [diff] [blame] | 209 | device generic 0 alias dptf_policy on end |
Sumeet R Pawnikar | 0d37fcb | 2021-05-03 22:46:34 +0530 | [diff] [blame] | 210 | end |
| 211 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 212 | device ref ipu on |
| 213 | chip drivers/intel/mipi_camera |
| 214 | register "acpi_uid" = "0x50000" |
| 215 | register "acpi_name" = ""IPU0"" |
| 216 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 217 | |
| 218 | register "cio2_num_ports" = "1" |
| 219 | register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used |
| 220 | register "cio2_lane_endpoint[0]" = ""^I2C0.CAM0"" |
| 221 | register "cio2_prt[0]" = "2" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 222 | device generic 0 on |
| 223 | # MIPI lanes are split between UFC and WFC depending on |
| 224 | # whether the UFC is USB or MIPI hence probing UFC_USB |
| 225 | probe UFC UFC_USB |
| 226 | end |
| 227 | end |
| 228 | chip drivers/intel/mipi_camera |
| 229 | register "acpi_uid" = "0x50000" |
| 230 | register "acpi_name" = ""IPU0"" |
| 231 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 232 | |
| 233 | register "cio2_num_ports" = "2" |
| 234 | register "cio2_lanes_used" = "{4,2}" # 4 and 2 CSI Camera lanes are used |
| 235 | register "cio2_lane_endpoint[0]" = ""^I2C0.CAM0"" |
| 236 | register "cio2_lane_endpoint[1]" = ""^I2C2.CAM1"" |
| 237 | register "cio2_prt[0]" = "2" |
| 238 | register "cio2_prt[1]" = "1" |
Varshit B Pandya | f48eecb | 2021-07-08 21:13:31 +0530 | [diff] [blame] | 239 | device generic 1 on |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 240 | probe UFC UFC_MIPI_IMX208 |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 241 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 242 | end |
| 243 | end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 244 | device ref cnvi_wifi on |
| 245 | chip drivers/wifi/generic |
| 246 | register "wake" = "GPE0_PME_B0" |
Tim Wawrzynczak | 6f73a20 | 2022-02-04 12:45:37 -0700 | [diff] [blame] | 247 | register "enable_cnvi_ddr_rfim" = "true" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 248 | device generic 0 on end |
| 249 | end |
| 250 | end |
Tim Wawrzynczak | 71f69dd | 2021-05-21 19:34:38 +0000 | [diff] [blame] | 251 | device ref pcie_rp6 on |
Cliff Huang | 2754787 | 2022-02-23 23:45:14 -0800 | [diff] [blame] | 252 | # Enable WWAN PCIE 6 using clk 5 |
| 253 | register "pch_pcie_rp[PCH_RP(6)]" = "{ |
| 254 | .clk_src = 5, |
| 255 | .clk_req = 5, |
| 256 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 257 | }" |
| 258 | chip soc/intel/common/block/pcie/rtd3 |
| 259 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E0)" |
| 260 | register "reset_off_delay_ms" = "20" |
| 261 | # register "reset_delay_ms" = "1000" |
| 262 | register "srcclk_pin" = "5" |
| 263 | register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" |
| 264 | register "skip_on_off_support" = "true" |
| 265 | device generic 0 alias rp6_rtd3 on |
| 266 | probe DB_LTE LTE_PCIE |
| 267 | end |
| 268 | end |
Cliff Huang | 1ee6e4a | 2022-01-21 23:34:02 -0800 | [diff] [blame] | 269 | chip drivers/wwan/fm |
| 270 | register "fcpo_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F21)" |
| 271 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E16)" |
| 272 | register "perst_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E0)" |
| 273 | register "wake_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A7)" |
Tim Wawrzynczak | 8dc28c4 | 2022-02-28 08:59:10 -0700 | [diff] [blame] | 274 | register "add_acpi_dma_property" = "true" |
Cliff Huang | 1ee6e4a | 2022-01-21 23:34:02 -0800 | [diff] [blame] | 275 | use rp6_rtd3 as rtd3dev |
Cliff Huang | 2754787 | 2022-02-23 23:45:14 -0800 | [diff] [blame] | 276 | device generic 0 on |
Cliff Huang | 1ee6e4a | 2022-01-21 23:34:02 -0800 | [diff] [blame] | 277 | probe DB_LTE LTE_PCIE |
| 278 | end |
| 279 | end |
Cliff Huang | 2754787 | 2022-02-23 23:45:14 -0800 | [diff] [blame] | 280 | probe DB_LTE LTE_PCIE |
Tim Wawrzynczak | 71f69dd | 2021-05-21 19:34:38 +0000 | [diff] [blame] | 281 | end |
Maulik V Vaghela | 9e23d01 | 2021-06-09 14:03:08 +0530 | [diff] [blame] | 282 | device ref tcss_dma0 on |
| 283 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 284 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 285 | use tcss_usb3_port1 as dfp[0].typec_port |
Maulik V Vaghela | 9e23d01 | 2021-06-09 14:03:08 +0530 | [diff] [blame] | 286 | device generic 0 on end |
| 287 | end |
| 288 | end |
| 289 | device ref tcss_dma1 on |
| 290 | chip drivers/intel/usb4/retimer |
Maulik V Vaghela | 91c38c8 | 2021-06-29 18:07:55 +0530 | [diff] [blame] | 291 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)" |
| 292 | use tcss_usb3_port3 as dfp[0].typec_port |
Maulik V Vaghela | 9e23d01 | 2021-06-09 14:03:08 +0530 | [diff] [blame] | 293 | device generic 0 on end |
| 294 | end |
| 295 | end |
Eric Lai | b1e8a8a | 2021-04-23 14:34:57 +0800 | [diff] [blame] | 296 | device ref pcie_rp8 on |
| 297 | chip soc/intel/common/block/pcie/rtd3 |
| 298 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 299 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)" |
| 300 | register "srcclk_pin" = "3" |
| 301 | device generic 0 on end |
| 302 | end |
| 303 | end #PCIE8 SD card |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 304 | device ref i2c0 on |
| 305 | chip drivers/i2c/generic |
| 306 | register "hid" = ""10EC5682"" |
| 307 | register "name" = ""RT58"" |
| 308 | register "desc" = ""Headset Codec"" |
| 309 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 310 | # Set the jd_src to RT5668_JD1 for jack detection |
| 311 | register "property_count" = "1" |
| 312 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 313 | register "property_list[0].name" = ""realtek,jd-src"" |
| 314 | register "property_list[0].integer" = "1" |
Sugnan Prabhu S | 3bfa1bd | 2021-05-12 11:44:47 +0530 | [diff] [blame] | 315 | device i2c 1a on |
| 316 | probe AUDIO MAX98357_ALC5682I_I2S |
Amanda Huang | e7a14cf | 2022-04-08 17:52:29 +0800 | [diff] [blame] | 317 | probe AUDIO MAX98360_ALC5682I_I2S |
Sugnan Prabhu S | 3bfa1bd | 2021-05-12 11:44:47 +0530 | [diff] [blame] | 318 | end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 319 | end |
Eric Lai | 312fb71 | 2021-08-18 15:47:20 +0800 | [diff] [blame] | 320 | chip drivers/i2c/nau8825 |
| 321 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A23)" |
| 322 | register "jkdet_enable" = "1" |
| 323 | register "jkdet_pull_enable" = "0" |
Paul Menzel | a3ce81d | 2021-08-21 09:20:47 +0200 | [diff] [blame] | 324 | register "jkdet_polarity" = "1" # ActiveLow |
| 325 | register "vref_impedance" = "2" # 125kOhm |
| 326 | register "micbias_voltage" = "6" # 2.754 |
Eric Lai | 312fb71 | 2021-08-18 15:47:20 +0800 | [diff] [blame] | 327 | register "sar_threshold_num" = "4" |
| 328 | register "sar_threshold[0]" = "0x0c" |
| 329 | register "sar_threshold[1]" = "0x1c" |
| 330 | register "sar_threshold[2]" = "0x38" |
| 331 | register "sar_threshold[3]" = "0x60" |
| 332 | register "sar_hysteresis" = "1" |
Paul Menzel | a3ce81d | 2021-08-21 09:20:47 +0200 | [diff] [blame] | 333 | register "sar_voltage" = "0" # VDDA |
| 334 | register "sar_compare_time" = "0" # 500ns |
| 335 | register "sar_sampling_time" = "0" # 2us |
| 336 | register "short_key_debounce" = "2" # 100ms |
| 337 | register "jack_insert_debounce" = "7" # 512ms |
| 338 | register "jack_eject_debounce" = "7" # 512ms |
Eric Lai | 312fb71 | 2021-08-18 15:47:20 +0800 | [diff] [blame] | 339 | device i2c 1a on |
| 340 | probe AUDIO ALC1019_NAU88L25B_I2S |
| 341 | end |
| 342 | end |
| 343 | chip drivers/generic/alc1015 |
| 344 | register "hid" = ""RTL1019"" |
| 345 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 346 | device generic 1 on |
| 347 | probe AUDIO ALC1019_NAU88L25B_I2S |
| 348 | end |
| 349 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 350 | chip drivers/intel/mipi_camera |
| 351 | register "acpi_hid" = ""OVTI8856"" |
| 352 | register "acpi_uid" = "0" |
| 353 | register "acpi_name" = ""CAM0"" |
| 354 | register "chip_name" = ""Ov 8856 Camera"" |
| 355 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 356 | |
| 357 | register "ssdb.lanes_used" = "4" |
| 358 | register "ssdb.link_used" = "0" |
| 359 | register "ssdb.vcm_type" = "0x0C" |
| 360 | register "vcm_name" = ""VCM0"" |
| 361 | register "num_freq_entries" = "2" |
| 362 | register "link_freq[0]" = "360 * MHz" # 360 MHz |
| 363 | register "link_freq[1]" = "180 * MHz" # 180 MHz |
| 364 | register "remote_name" = ""IPU0"" |
| 365 | |
| 366 | register "has_power_resource" = "1" |
| 367 | #Controls |
| 368 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 369 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 370 | |
| 371 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" #power_enable_2p8 |
| 372 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" #power_enable_1p2 |
| 373 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" #reset |
| 374 | |
| 375 | #_ON |
| 376 | register "on_seq.ops_cnt" = "5" |
| 377 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 378 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 379 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 380 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 381 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 382 | |
| 383 | #_OFF |
| 384 | register "off_seq.ops_cnt" = "4" |
| 385 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 386 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 387 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 388 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 389 | |
Nick Vaccaro | 01ab9b1 | 2022-09-30 16:17:28 -0700 | [diff] [blame] | 390 | device i2c 10 on |
| 391 | probe WFC WFC_MIPI_OVTI8856 |
| 392 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 393 | end |
| 394 | chip drivers/intel/mipi_camera |
| 395 | register "acpi_uid" = "2" |
| 396 | register "acpi_name" = ""VCM0"" |
| 397 | register "chip_name" = ""DW9768 VCM"" |
| 398 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 399 | |
| 400 | register "pr0" = ""\\_SB.PCI0.I2C0.CAM0.PRIC"" |
| 401 | register "vcm_compat" = ""dongwoon,dw9768"" |
| 402 | |
Nick Vaccaro | 01ab9b1 | 2022-09-30 16:17:28 -0700 | [diff] [blame] | 403 | device i2c 0C on |
| 404 | probe WFC WFC_MIPI_OVTI8856 |
| 405 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 406 | end |
| 407 | chip drivers/intel/mipi_camera |
| 408 | register "acpi_uid" = "1" |
| 409 | register "acpi_name" = ""NVM0"" |
| 410 | register "chip_name" = ""AT24 EEPROM"" |
| 411 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 412 | |
| 413 | register "pr0" = ""\\_SB.PCI0.I2C0.CAM0.PRIC"" |
| 414 | register "nvm_compat" = ""atmel,24c1024"" |
| 415 | |
| 416 | register "nvm_size" = "0x2800" |
| 417 | register "nvm_pagesize" = "0x01" |
| 418 | register "nvm_readonly" = "0x01" |
Varshit B Pandya | 73161c6 | 2021-10-30 15:37:28 +0530 | [diff] [blame] | 419 | register "nvm_width" = "0x10" |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 420 | |
Nick Vaccaro | 01ab9b1 | 2022-09-30 16:17:28 -0700 | [diff] [blame] | 421 | device i2c 58 on |
| 422 | probe WFC WFC_MIPI_OVTI8856 |
| 423 | end |
| 424 | end |
| 425 | chip drivers/intel/mipi_camera |
| 426 | register "acpi_hid" = ""OVTI8856"" |
| 427 | register "acpi_uid" = "0" |
| 428 | register "acpi_name" = ""CAM0"" |
| 429 | register "chip_name" = ""Ov 8856 Camera"" |
| 430 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 431 | |
| 432 | register "ssdb.lanes_used" = "4" |
| 433 | register "ssdb.link_used" = "0" |
| 434 | register "ssdb.vcm_type" = "0x0C" |
| 435 | register "vcm_name" = ""VCM0"" |
| 436 | register "num_freq_entries" = "2" |
| 437 | register "link_freq[0]" = "360 * MHz" # 360 MHz |
| 438 | register "link_freq[1]" = "180 * MHz" # 180 MHz |
| 439 | register "remote_name" = ""IPU0"" |
| 440 | |
| 441 | register "has_power_resource" = "1" |
| 442 | #Controls |
| 443 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 444 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 445 | |
| 446 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" #power_enable_2p8 |
| 447 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" #power_enable_1p2 |
| 448 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" #reset |
| 449 | |
| 450 | #_ON |
| 451 | register "on_seq.ops_cnt" = "5" |
| 452 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 453 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 454 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 455 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 456 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 457 | |
| 458 | #_OFF |
| 459 | register "off_seq.ops_cnt" = "4" |
| 460 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 461 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 462 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 463 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 464 | |
| 465 | device i2c 36 on |
| 466 | probe WFC WFC_MIPI_KBAE350 |
| 467 | end |
| 468 | end |
| 469 | chip drivers/intel/mipi_camera |
| 470 | register "acpi_uid" = "2" |
| 471 | register "acpi_name" = ""VCM0"" |
| 472 | register "chip_name" = ""DW AF DAC"" |
| 473 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 474 | |
| 475 | register "pr0" = ""\\_SB.PCI0.I2C0.CAM0.PRIC"" |
| 476 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 477 | |
| 478 | device i2c 0C on |
| 479 | probe WFC WFC_MIPI_KBAE350 |
| 480 | end |
| 481 | end |
| 482 | chip drivers/intel/mipi_camera |
| 483 | register "acpi_uid" = "1" |
| 484 | register "acpi_name" = ""NVM0"" |
| 485 | register "chip_name" = ""GT24C08"" |
| 486 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 487 | |
| 488 | register "pr0" = ""\\_SB.PCI0.I2C0.CAM0.PRIC"" |
| 489 | register "nvm_compat" = ""atmel,24c08"" |
| 490 | |
| 491 | register "nvm_size" = "0x2000" |
| 492 | register "nvm_pagesize" = "0x01" |
| 493 | register "nvm_readonly" = "0x01" |
| 494 | register "nvm_width" = "0x10" |
| 495 | |
| 496 | device i2c 50 on |
| 497 | probe WFC WFC_MIPI_KBAE350 |
| 498 | end |
Scott Chao | 890702f | 2021-06-02 14:32:27 +0800 | [diff] [blame] | 499 | end |
| 500 | end #I2C0 |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 501 | device ref i2c1 on |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 502 | chip drivers/i2c/tpm |
| 503 | register "hid" = ""GOOG0005"" |
| 504 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 505 | device i2c 50 on end |
Eric Lai | bd9d6ab | 2021-04-26 13:58:17 +0800 | [diff] [blame] | 506 | end |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 507 | end #I2C1 |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 508 | device ref i2c2 on |
| 509 | chip drivers/i2c/sx9324 |
| 510 | register "desc" = ""SAR1 Proximity Sensor"" |
Eric Lai | cf6e457 | 2021-06-30 14:09:22 +0800 | [diff] [blame] | 511 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 512 | register "speed" = "I2C_SPEED_FAST" |
Tim Wawrzynczak | 37c3327 | 2021-03-01 08:24:52 -0700 | [diff] [blame] | 513 | register "uid" = "1" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 514 | register "reg_gnrl_ctrl0" = "0x16" |
| 515 | register "reg_gnrl_ctrl1" = "0x21" |
| 516 | register "reg_afe_ctrl0" = "0x00" |
| 517 | register "reg_afe_ctrl1" = "0x10" |
| 518 | register "reg_afe_ctrl2" = "0x00" |
| 519 | register "reg_afe_ctrl3" = "0x00" |
| 520 | register "reg_afe_ctrl4" = "0x07" |
| 521 | register "reg_afe_ctrl5" = "0x00" |
| 522 | register "reg_afe_ctrl6" = "0x00" |
| 523 | register "reg_afe_ctrl7" = "0x07" |
| 524 | register "reg_afe_ctrl8" = "0x12" |
| 525 | register "reg_afe_ctrl9" = "0x0f" |
| 526 | register "reg_prox_ctrl0" = "0x12" |
| 527 | register "reg_prox_ctrl1" = "0x12" |
| 528 | register "reg_prox_ctrl2" = "0x90" |
| 529 | register "reg_prox_ctrl3" = "0x60" |
| 530 | register "reg_prox_ctrl4" = "0x0c" |
| 531 | register "reg_prox_ctrl5" = "0x12" |
| 532 | register "reg_prox_ctrl6" = "0x3c" |
| 533 | register "reg_prox_ctrl7" = "0x58" |
| 534 | register "reg_adv_ctrl0" = "0x00" |
| 535 | register "reg_adv_ctrl1" = "0x00" |
| 536 | register "reg_adv_ctrl2" = "0x00" |
| 537 | register "reg_adv_ctrl3" = "0x00" |
| 538 | register "reg_adv_ctrl4" = "0x00" |
| 539 | register "reg_adv_ctrl5" = "0x05" |
| 540 | register "reg_adv_ctrl6" = "0x00" |
| 541 | register "reg_adv_ctrl7" = "0x00" |
| 542 | register "reg_adv_ctrl8" = "0x00" |
| 543 | register "reg_adv_ctrl9" = "0x00" |
| 544 | register "reg_adv_ctrl10" = "0x5c" |
| 545 | register "reg_adv_ctrl11" = "0x52" |
| 546 | register "reg_adv_ctrl12" = "0xb5" |
| 547 | register "reg_adv_ctrl13" = "0x00" |
| 548 | register "reg_adv_ctrl14" = "0x80" |
| 549 | register "reg_adv_ctrl15" = "0x0c" |
| 550 | register "reg_adv_ctrl16" = "0x38" |
| 551 | register "reg_adv_ctrl17" = "0x56" |
| 552 | register "reg_adv_ctrl18" = "0x33" |
| 553 | register "reg_adv_ctrl19" = "0xf0" |
| 554 | register "reg_adv_ctrl20" = "0xf0" |
| 555 | device i2c 28 on end |
| 556 | end |
| 557 | chip drivers/i2c/sx9324 |
| 558 | register "desc" = ""SAR2 Proximity Sensor"" |
Eric Lai | cf6e457 | 2021-06-30 14:09:22 +0800 | [diff] [blame] | 559 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_H19_IRQ)" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 560 | register "speed" = "I2C_SPEED_FAST" |
| 561 | register "uid" = "2" |
| 562 | register "reg_gnrl_ctrl0" = "0x16" |
| 563 | register "reg_gnrl_ctrl1" = "0x21" |
| 564 | register "reg_afe_ctrl0" = "0x00" |
| 565 | register "reg_afe_ctrl1" = "0x10" |
| 566 | register "reg_afe_ctrl2" = "0x00" |
| 567 | register "reg_afe_ctrl3" = "0x00" |
| 568 | register "reg_afe_ctrl4" = "0x07" |
| 569 | register "reg_afe_ctrl5" = "0x00" |
| 570 | register "reg_afe_ctrl6" = "0x00" |
| 571 | register "reg_afe_ctrl7" = "0x07" |
| 572 | register "reg_afe_ctrl8" = "0x12" |
| 573 | register "reg_afe_ctrl9" = "0x0f" |
| 574 | register "reg_prox_ctrl0" = "0x12" |
| 575 | register "reg_prox_ctrl1" = "0x12" |
| 576 | register "reg_prox_ctrl2" = "0x90" |
| 577 | register "reg_prox_ctrl3" = "0x60" |
| 578 | register "reg_prox_ctrl4" = "0x0c" |
| 579 | register "reg_prox_ctrl5" = "0x12" |
| 580 | register "reg_prox_ctrl6" = "0x3c" |
| 581 | register "reg_prox_ctrl7" = "0x58" |
| 582 | register "reg_adv_ctrl0" = "0x00" |
| 583 | register "reg_adv_ctrl1" = "0x00" |
| 584 | register "reg_adv_ctrl2" = "0x00" |
| 585 | register "reg_adv_ctrl3" = "0x00" |
| 586 | register "reg_adv_ctrl4" = "0x00" |
| 587 | register "reg_adv_ctrl5" = "0x05" |
| 588 | register "reg_adv_ctrl6" = "0x00" |
| 589 | register "reg_adv_ctrl7" = "0x00" |
| 590 | register "reg_adv_ctrl8" = "0x00" |
| 591 | register "reg_adv_ctrl9" = "0x00" |
| 592 | register "reg_adv_ctrl10" = "0x5c" |
| 593 | register "reg_adv_ctrl11" = "0x52" |
| 594 | register "reg_adv_ctrl12" = "0xb5" |
| 595 | register "reg_adv_ctrl13" = "0x00" |
| 596 | register "reg_adv_ctrl14" = "0x80" |
| 597 | register "reg_adv_ctrl15" = "0x0c" |
| 598 | register "reg_adv_ctrl16" = "0x38" |
| 599 | register "reg_adv_ctrl17" = "0x56" |
| 600 | register "reg_adv_ctrl18" = "0x33" |
| 601 | register "reg_adv_ctrl19" = "0xf0" |
| 602 | register "reg_adv_ctrl20" = "0xf0" |
| 603 | device i2c 2C on end |
| 604 | end |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 605 | chip drivers/intel/mipi_camera |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 606 | register "acpi_hid" = ""INT3478"" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 607 | register "acpi_uid" = "0" |
| 608 | register "acpi_name" = ""CAM1"" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 609 | register "chip_name" = ""imx 208 Camera"" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 610 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 611 | |
| 612 | register "ssdb.lanes_used" = "2" |
| 613 | register "ssdb.link_used" = "1" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 614 | register "num_freq_entries" = "2" |
| 615 | register "link_freq[0]" = "384 * MHz" # 384 MHz |
| 616 | register "link_freq[1]" = "96 * MHz" # 96 MHz |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 617 | register "remote_name" = ""IPU0"" |
| 618 | |
| 619 | register "has_power_resource" = "1" |
| 620 | #Controls |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 621 | register "gpio_panel.gpio[0].gpio_num" = "GPP_C3" #PP3300_FCAM_X |
| 622 | register "gpio_panel.gpio[1].gpio_num" = "GPP_A17" #EN_UCAM_PWR |
| 623 | register "gpio_panel.gpio[2].gpio_num" = "GPP_F20" #reset |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 624 | register "gpio_panel.gpio[3].gpio_num" = "GPP_H21" #CLK_EN |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 625 | |
| 626 | #_ON |
| 627 | register "on_seq.ops_cnt" = "5" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 628 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(3, 0)" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 629 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 630 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 631 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 632 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 633 | |
| 634 | #_OFF |
| 635 | register "off_seq.ops_cnt" = "4" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 636 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(3, 0)" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 637 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 638 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 639 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 640 | |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 641 | device i2c 10 on |
| 642 | probe UFC UFC_MIPI_IMX208 |
| 643 | end |
| 644 | end |
| 645 | chip drivers/intel/mipi_camera |
Bernardo Perez Priego | 0f42e5e | 2021-10-15 14:22:54 -0700 | [diff] [blame] | 646 | register "acpi_hid" = ""ACPI_DT_NAMESPACE_HID"" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 647 | register "acpi_uid" = "1" |
| 648 | register "acpi_name" = ""NVM1"" |
| 649 | register "chip_name" = ""GT24C16S"" |
| 650 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 651 | |
| 652 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM1.PRIC"" |
Bernardo Perez Priego | 0f42e5e | 2021-10-15 14:22:54 -0700 | [diff] [blame] | 653 | register "nvm_compat" = ""atmel,24c1024"" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 654 | |
Bernardo Perez Priego | 0f42e5e | 2021-10-15 14:22:54 -0700 | [diff] [blame] | 655 | register "nvm_size" = "0x800" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 656 | register "nvm_pagesize" = "0x01" |
| 657 | register "nvm_readonly" = "0x01" |
Bernardo Perez Priego | 0f42e5e | 2021-10-15 14:22:54 -0700 | [diff] [blame] | 658 | register "nvm_width" = "0x08" |
Varshit B Pandya | 5d71994 | 2021-07-27 09:39:31 +0530 | [diff] [blame] | 659 | |
| 660 | device i2c 50 on |
| 661 | probe UFC UFC_MIPI_IMX208 |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 662 | end |
| 663 | end |
Dan Callaghan | 4e6c915 | 2021-10-28 21:22:22 +1100 | [diff] [blame] | 664 | chip drivers/i2c/generic |
| 665 | register "hid" = ""GOOG0020"" |
Jon Murphy | c4e9045 | 2022-06-28 10:36:23 -0600 | [diff] [blame] | 666 | register "desc" = ""ChromeOS HPS"" |
Dan Callaghan | 4e6c915 | 2021-10-28 21:22:22 +1100 | [diff] [blame] | 667 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E7)" # EN_HPS_PWR |
| 668 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E3_IRQ)" # HPS_INT_ODL |
| 669 | # HPS uses I2C addresses 0x30 and 0x51. |
| 670 | # The address we provide here is not significant because |
| 671 | # neither coreboot nor Linux have a driver for HPS, |
| 672 | # it's only used from userspace. |
| 673 | device i2c 30 on |
| 674 | probe HPS HPS_PRESENT |
| 675 | end |
| 676 | end |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 677 | end #I2C2 |
David Wu | 6de4898 | 2021-11-18 21:22:33 +0800 | [diff] [blame] | 678 | device ref i2c3 on |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 679 | chip drivers/i2c/hid |
| 680 | register "generic.hid" = ""ELAN9050"" |
| 681 | register "generic.desc" = ""ELAN Touchscreen"" |
| 682 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 683 | register "generic.probed" = "1" |
| 684 | register "generic.reset_gpio" = |
| 685 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 686 | register "generic.reset_delay_ms" = "300" |
| 687 | register "generic.reset_off_delay_ms" = "1" |
| 688 | register "generic.enable_gpio" = |
| 689 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 690 | register "generic.enable_delay_ms" = "6" |
| 691 | register "generic.stop_gpio" = |
| 692 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 693 | register "generic.stop_off_delay_ms" = "1" |
| 694 | register "generic.has_power_resource" = "1" |
| 695 | register "hid_desc_reg_offset" = "0x01" |
| 696 | device i2c 0x10 on end |
David Wu | 6de4898 | 2021-11-18 21:22:33 +0800 | [diff] [blame] | 697 | end |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 698 | chip drivers/i2c/hid |
| 699 | register "generic.hid" = ""GDIX0000"" |
| 700 | register "generic.desc" = ""Goodix Touchscreen"" |
| 701 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 702 | register "generic.probed" = "1" |
| 703 | register "generic.reset_gpio" = |
| 704 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 705 | register "generic.reset_delay_ms" = "120" |
| 706 | register "generic.reset_off_delay_ms" = "3" |
| 707 | register "generic.enable_gpio" = |
| 708 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 709 | register "generic.enable_delay_ms" = "12" |
| 710 | register "generic.stop_gpio" = |
| 711 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 712 | register "generic.stop_off_delay_ms" = "1" |
| 713 | register "generic.has_power_resource" = "1" |
| 714 | register "hid_desc_reg_offset" = "0x01" |
| 715 | device i2c 0x5d on end |
| 716 | end |
| 717 | chip drivers/i2c/hid |
| 718 | register "generic.hid" = ""SIS9815"" |
| 719 | register "generic.desc" = ""SIS Touchscreen"" |
| 720 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 721 | register "generic.probed" = "1" |
| 722 | register "generic.reset_gpio" = |
| 723 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 724 | register "generic.stop_gpio" = |
| 725 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 726 | register "generic.stop_delay_ms" = "100" |
| 727 | register "generic.enable_gpio" = |
| 728 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 729 | register "generic.enable_delay_ms" = "7" |
| 730 | register "generic.has_power_resource" = "1" |
| 731 | register "hid_desc_reg_offset" = "0x00" |
| 732 | device i2c 5c on end |
| 733 | end |
| 734 | end #I2C3 |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 735 | device ref i2c5 on |
| 736 | chip drivers/i2c/generic |
| 737 | register "hid" = ""ELAN0000"" |
| 738 | register "desc" = ""ELAN Touchpad"" |
| 739 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 740 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 741 | register "detect" = "1" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 742 | device i2c 15 on end |
| 743 | end |
Amanda Huang | 0c96291 | 2022-04-19 17:21:17 +0800 | [diff] [blame] | 744 | end #I2C5 |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 745 | device ref hda on |
| 746 | chip drivers/generic/max98357a |
| 747 | register "hid" = ""MX98357A"" |
| 748 | register "sdmode_gpio" = |
| 749 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 750 | register "sdmode_delay" = "5" |
Sugnan Prabhu S | 3bfa1bd | 2021-05-12 11:44:47 +0530 | [diff] [blame] | 751 | device generic 0 on |
| 752 | probe AUDIO MAX98357_ALC5682I_I2S |
| 753 | end |
| 754 | end |
| 755 | |
Amanda Huang | 651b765 | 2022-03-23 00:25:07 +0800 | [diff] [blame] | 756 | chip drivers/generic/max98357a |
| 757 | register "hid" = ""MX98360A"" |
| 758 | register "sdmode_gpio" = |
| 759 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 760 | register "sdmode_delay" = "5" |
| 761 | device generic 0 on |
Amanda Huang | e7a14cf | 2022-04-08 17:52:29 +0800 | [diff] [blame] | 762 | probe AUDIO MAX98360_ALC5682I_I2S |
Amanda Huang | 651b765 | 2022-03-23 00:25:07 +0800 | [diff] [blame] | 763 | end |
| 764 | end |
| 765 | |
Sugnan Prabhu S | 3bfa1bd | 2021-05-12 11:44:47 +0530 | [diff] [blame] | 766 | chip drivers/intel/soundwire |
| 767 | device generic 0 on |
| 768 | probe AUDIO MAX98373_ALC5682_SNDW |
| 769 | chip drivers/soundwire/alc5682 |
| 770 | # SoundWire Link 0 ID 1 |
| 771 | register "desc" = ""Headset Codec"" |
| 772 | device generic 0.1 on end |
| 773 | end |
| 774 | chip drivers/soundwire/max98373 |
| 775 | # SoundWire Link 2 ID 3 |
| 776 | register "desc" = ""Left Speaker Amp"" |
| 777 | device generic 2.3 on end |
| 778 | end |
| 779 | chip drivers/soundwire/max98373 |
| 780 | # SoundWire Link 2 ID 7 |
| 781 | register "desc" = ""Right Speaker Amp"" |
| 782 | device generic 2.7 on end |
| 783 | end |
| 784 | end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 785 | end |
| 786 | end |
| 787 | device ref gspi1 on |
| 788 | chip drivers/spi/acpi |
| 789 | register "name" = ""CRFP"" |
| 790 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 791 | register "uid" = "1" |
| 792 | register "compat_string" = ""google,cros-ec-spi"" |
Tim Wawrzynczak | 0b7bc80 | 2021-06-02 16:29:01 -0600 | [diff] [blame] | 793 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 794 | register "wake" = "GPE0_DW2_15" |
Tarun Tuli | 2b523ce | 2022-08-29 13:39:58 -0400 | [diff] [blame] | 795 | register "has_power_resource" = "1" |
| 796 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)" |
| 797 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)" |
| 798 | register "enable_delay_ms" = "3" |
Tim Wawrzynczak | 0b7bc80 | 2021-06-02 16:29:01 -0600 | [diff] [blame] | 799 | device spi 0 on end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 800 | end # FPMCU |
| 801 | end |
| 802 | device ref pch_espi on |
| 803 | chip ec/google/chromeec |
Tim Wawrzynczak | ba2e51b | 2021-03-03 15:22:00 -0700 | [diff] [blame] | 804 | use conn0 as mux_conn[0] |
| 805 | use conn1 as mux_conn[1] |
| 806 | use conn2 as mux_conn[2] |
Anil Kumar | a98d7a9 | 2023-01-18 11:56:36 -0800 | [diff] [blame^] | 807 | device pnp 0c09.0 on end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 808 | end |
| 809 | end |
Tim Wawrzynczak | ba2e51b | 2021-03-03 15:22:00 -0700 | [diff] [blame] | 810 | device ref pmc hidden |
| 811 | chip drivers/intel/pmc_mux |
| 812 | device generic 0 on |
| 813 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 814 | use usb2_port1 as usb2_port |
| 815 | use tcss_usb3_port1 as usb3_port |
Tim Wawrzynczak | ba2e51b | 2021-03-03 15:22:00 -0700 | [diff] [blame] | 816 | device generic 0 alias conn0 on end |
| 817 | end |
| 818 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 819 | use usb2_port2 as usb2_port |
| 820 | use tcss_usb3_port2 as usb3_port |
Tim Wawrzynczak | ba2e51b | 2021-03-03 15:22:00 -0700 | [diff] [blame] | 821 | device generic 1 alias conn1 on end |
| 822 | end |
| 823 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 824 | use usb2_port3 as usb2_port |
| 825 | use tcss_usb3_port3 as usb3_port |
Tim Wawrzynczak | ba2e51b | 2021-03-03 15:22:00 -0700 | [diff] [blame] | 826 | device generic 2 alias conn2 on end |
| 827 | end |
| 828 | end |
| 829 | end |
| 830 | end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 831 | device ref tcss_xhci on |
| 832 | chip drivers/usb/acpi |
| 833 | device ref tcss_root_hub on |
| 834 | chip drivers/usb/acpi |
| 835 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 836 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 837 | register "use_custom_pld" = "true" |
Won Chung | 2b755aa | 2022-05-23 22:02:18 +0000 | [diff] [blame] | 838 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 839 | device ref tcss_usb3_port1 on end |
| 840 | end |
| 841 | chip drivers/usb/acpi |
| 842 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 843 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 844 | register "use_custom_pld" = "true" |
Subrata Banik | d2133c2 | 2022-02-16 16:56:23 +0530 | [diff] [blame] | 845 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 846 | device ref tcss_usb3_port2 on end |
| 847 | end |
| 848 | chip drivers/usb/acpi |
| 849 | register "desc" = ""USB3 Type-C Port C2 (MLB)"" |
| 850 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 851 | register "use_custom_pld" = "true" |
Won Chung | 2b755aa | 2022-05-23 22:02:18 +0000 | [diff] [blame] | 852 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 853 | device ref tcss_usb3_port3 on end |
| 854 | end |
| 855 | end |
| 856 | end |
| 857 | end |
| 858 | device ref xhci on |
| 859 | chip drivers/usb/acpi |
| 860 | device ref xhci_root_hub on |
| 861 | chip drivers/usb/acpi |
| 862 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 863 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 864 | register "use_custom_pld" = "true" |
Won Chung | 2b755aa | 2022-05-23 22:02:18 +0000 | [diff] [blame] | 865 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 866 | device ref usb2_port1 on end |
| 867 | end |
| 868 | chip drivers/usb/acpi |
| 869 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 870 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 871 | register "use_custom_pld" = "true" |
Subrata Banik | d2133c2 | 2022-02-16 16:56:23 +0530 | [diff] [blame] | 872 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 873 | device ref usb2_port2 on end |
| 874 | end |
| 875 | chip drivers/usb/acpi |
| 876 | register "desc" = ""USB2 Type-C Port C2 (MLB)"" |
| 877 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 878 | register "use_custom_pld" = "true" |
Won Chung | 2b755aa | 2022-05-23 22:02:18 +0000 | [diff] [blame] | 879 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(3, 1))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 880 | device ref usb2_port3 on end |
| 881 | end |
| 882 | chip drivers/usb/acpi |
| 883 | register "desc" = ""USB2 WWAN"" |
| 884 | register "type" = "UPC_TYPE_INTERNAL" |
| 885 | device ref usb2_port4 on end |
| 886 | end |
| 887 | chip drivers/usb/acpi |
| 888 | register "desc" = ""USB2 Camera"" |
| 889 | register "type" = "UPC_TYPE_INTERNAL" |
Varshit B Pandya | bee9d6028 | 2021-06-18 20:18:50 +0530 | [diff] [blame] | 890 | device ref usb2_port6 on |
| 891 | probe UFC UFC_USB |
| 892 | end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 893 | end |
| 894 | chip drivers/usb/acpi |
Tim Wawrzynczak | 2091965 | 2021-02-16 15:17:48 -0700 | [diff] [blame] | 895 | register "desc" = ""USB2 Type-A Port A0 (DB)"" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 896 | register "type" = "UPC_TYPE_A" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 897 | register "use_custom_pld" = "true" |
Subrata Banik | d2133c2 | 2022-02-16 16:56:23 +0530 | [diff] [blame] | 898 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 899 | device ref usb2_port9 on end |
| 900 | end |
| 901 | chip drivers/usb/acpi |
| 902 | register "desc" = ""USB2 Bluetooth"" |
| 903 | register "type" = "UPC_TYPE_INTERNAL" |
| 904 | register "reset_gpio" = |
Aamir Bohra | 1d14ef2 | 2021-03-02 19:18:30 +0530 | [diff] [blame] | 905 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 906 | device ref usb2_port10 on end |
| 907 | end |
| 908 | chip drivers/usb/acpi |
Tim Wawrzynczak | 2091965 | 2021-02-16 15:17:48 -0700 | [diff] [blame] | 909 | register "desc" = ""USB3 Type-A Port A0 (DB)"" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 910 | register "type" = "UPC_TYPE_USB3_A" |
Won Chung | f1a3f18 | 2022-01-25 22:30:12 +0000 | [diff] [blame] | 911 | register "use_custom_pld" = "true" |
Subrata Banik | d2133c2 | 2022-02-16 16:56:23 +0530 | [diff] [blame] | 912 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 913 | device ref usb3_port1 on end |
| 914 | end |
| 915 | chip drivers/usb/acpi |
| 916 | register "desc" = ""USB3 WWAN"" |
| 917 | register "type" = "UPC_TYPE_INTERNAL" |
Tim Wawrzynczak | 2091965 | 2021-02-16 15:17:48 -0700 | [diff] [blame] | 918 | device ref usb3_port4 on end |
Eric Lai | 2bec7f0 | 2020-12-21 17:28:31 +0800 | [diff] [blame] | 919 | end |
| 920 | end |
| 921 | end |
| 922 | end |
| 923 | end |
| 924 | end |