Sugnan Prabhu S | 2db184d | 2021-03-30 10:28:32 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field CAMERA_WFC 38 40 |
Ren Kuo | 163dfe6 | 2021-08-02 14:31:35 +0800 | [diff] [blame] | 3 | option CAMERA_UNPROVISIONED 0 |
Sugnan Prabhu S | 2db184d | 2021-03-30 10:28:32 +0800 | [diff] [blame] | 4 | option CAMERA_OVTI5675 1 |
| 5 | option CAMERA_OVTI8856 2 |
| 6 | end |
Ren Kuo | 163dfe6 | 2021-08-02 14:31:35 +0800 | [diff] [blame] | 7 | field CAMERA_UFC 41 42 |
| 8 | option CAMERA_UFC_UNPROVISIONED 0 |
| 9 | end |
| 10 | field CAMERA_VCM 43 44 |
| 11 | option CAMERA_VCM_UNPROVISIONED 0 |
| 12 | option CAMERA_VCM0 1 |
| 13 | end |
| 14 | field TS_SOURCE 45 48 |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 15 | option TS_UNPROVISIONED 0 |
| 16 | option TS_ELAN_6915 1 |
| 17 | option TS_ELAN_6918 2 |
| 18 | option TS_ELAN_0001 3 |
| 19 | option TS_RAYD_0001 4 |
David Wu | 7abdb65 | 2021-06-21 15:06:02 +0800 | [diff] [blame] | 20 | option TS_WDHT0002 5 |
Tyler Wang | de62f55 | 2021-06-30 09:12:29 +0800 | [diff] [blame] | 21 | option TS_GTCH7503 6 |
Tyler Wang | e9654a8 | 2021-11-05 11:12:23 +0800 | [diff] [blame] | 22 | option TS_ELAN_9004 7 |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 23 | end |
Tyler Wang | 28e2945 | 2021-09-16 12:17:07 +0800 | [diff] [blame] | 24 | field AUDIO_CODEC_SOURCE 49 51 |
| 25 | option AUDIO_CODEC_UNPROVISIONED 0 |
| 26 | option AUDIO_CODEC_DA7219 1 |
| 27 | option AUDIO_CODEC_RT5682 2 |
Tyler Wang | 3c1ee4b | 2021-12-03 18:43:49 +0800 | [diff] [blame] | 28 | option AUDIO_CODEC_ALC5682I_VS 3 |
Tyler Wang | 28e2945 | 2021-09-16 12:17:07 +0800 | [diff] [blame] | 29 | end |
Sugnan Prabhu S | 2db184d | 2021-03-30 10:28:32 +0800 | [diff] [blame] | 30 | end |
| 31 | |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 32 | chip soc/intel/jasperlake |
| 33 | |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 34 | # USB Port Configuration |
| 35 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
| 36 | |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 37 | # Intel Common SoC Config |
| 38 | #+-------------------+---------------------------+ |
| 39 | #| Field | Value | |
| 40 | #+-------------------+---------------------------+ |
| 41 | #| GSPI0 | cr50 TPM. Early init is | |
| 42 | #| | required to set up a BAR | |
| 43 | #| | for TPM communication | |
| 44 | #| | before memory is up | |
| 45 | #| I2C0 | Trackpad | |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 46 | #| I2C1 | TBD | |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 47 | #| I2C2 | Touchscreen | |
| 48 | #| I2C3 | Camera | |
| 49 | #| I2C4 | Audio | |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 50 | #| I2C5 | TBD | |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 51 | #+-------------------+---------------------------+ |
| 52 | register "common_soc_config" = "{ |
| 53 | .gspi[0] = { |
| 54 | .speed_mhz = 1, |
| 55 | .early_init = 1, |
| 56 | }, |
| 57 | .i2c[0] = { |
| 58 | .speed = I2C_SPEED_FAST, |
Ren Kuo | 12b376c | 2020-10-21 11:26:48 +0800 | [diff] [blame] | 59 | .speed_config[0] = { |
| 60 | .speed = I2C_SPEED_FAST, |
| 61 | .scl_lcnt = 190, |
| 62 | .scl_hcnt = 100, |
| 63 | .sda_hold = 40, |
| 64 | } |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 65 | }, |
| 66 | .i2c[1] = { |
| 67 | .speed = I2C_SPEED_FAST, |
| 68 | }, |
| 69 | .i2c[2] = { |
| 70 | .speed = I2C_SPEED_FAST, |
Ren Kuo | 12b376c | 2020-10-21 11:26:48 +0800 | [diff] [blame] | 71 | .speed_config[0] = { |
| 72 | .speed = I2C_SPEED_FAST, |
| 73 | .scl_lcnt = 190, |
| 74 | .scl_hcnt = 100, |
| 75 | .sda_hold = 40, |
| 76 | } |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 77 | }, |
| 78 | .i2c[3] = { |
| 79 | .speed = I2C_SPEED_FAST, |
Ren Kuo | 12b376c | 2020-10-21 11:26:48 +0800 | [diff] [blame] | 80 | .speed_config[0] = { |
| 81 | .speed = I2C_SPEED_FAST, |
| 82 | .scl_lcnt = 190, |
| 83 | .scl_hcnt = 100, |
| 84 | .sda_hold = 40, |
| 85 | } |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 86 | }, |
| 87 | .i2c[4] = { |
| 88 | .speed = I2C_SPEED_FAST, |
Ren Kuo | 12b376c | 2020-10-21 11:26:48 +0800 | [diff] [blame] | 89 | .speed_config[0] = { |
| 90 | .speed = I2C_SPEED_FAST, |
| 91 | .scl_lcnt = 190, |
| 92 | .scl_hcnt = 100, |
| 93 | .sda_hold = 40, |
| 94 | } |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 95 | }, |
| 96 | }" |
| 97 | |
Chia-Ling Hou | b5a0328 | 2023-06-07 16:53:00 +0800 | [diff] [blame^] | 98 | # Power limit config |
| 99 | register "power_limits_config[JSL_N4500_6W_CORE]" = "{ |
| 100 | .tdp_pl1_override = 7, |
| 101 | .tdp_pl2_override = 12, |
| 102 | }" |
| 103 | |
| 104 | register "power_limits_config[JSL_N6000_6W_CORE]" = "{ |
| 105 | .tdp_pl1_override = 7, |
| 106 | .tdp_pl2_override = 12, |
| 107 | }" |
| 108 | |
| 109 | register "power_limits_config[JSL_N5100_6W_CORE]" = "{ |
Ren Kuo | bf3466b | 2020-09-15 17:06:01 +0800 | [diff] [blame] | 110 | .tdp_pl1_override = 7, |
| 111 | .tdp_pl2_override = 12, |
| 112 | }" |
| 113 | |
| 114 | register "tcc_offset" = "15" # TCC of 90C |
| 115 | |
Ren Kuo | 460b4f8 | 2021-01-29 10:22:30 +0800 | [diff] [blame] | 116 | # Enable Acoustic noise mitigation and set slew rate to 1/8 |
| 117 | # Rest of the parameters are 0 by default. |
| 118 | register "AcousticNoiseMitigation" = "1" |
| 119 | register "SlowSlewRate" = "SlewRateFastBy8" |
| 120 | register "FastPkgCRampDisable" = "1" |
| 121 | |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 122 | device domain 0 on |
Ren Kuo | bf3466b | 2020-09-15 17:06:01 +0800 | [diff] [blame] | 123 | device pci 04.0 on |
| 124 | chip drivers/intel/dptf |
| 125 | register "options.tsr[0].desc" = ""Memory"" |
| 126 | register "options.tsr[1].desc" = ""Ambient"" |
| 127 | |
Karthikeyan Ramasubramanian | 913824c | 2021-03-12 12:17:40 -0700 | [diff] [blame] | 128 | register "policies.passive" = "{ |
| 129 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 5000), |
| 130 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 70, 6000), |
| 131 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 60, 5000)}" |
| 132 | register "policies.critical" = "{ |
| 133 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 134 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN), |
| 135 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN)}" |
Ren Kuo | bf3466b | 2020-09-15 17:06:01 +0800 | [diff] [blame] | 136 | register "controls.power_limits.pl1" = "{ |
| 137 | .min_power = 3000, |
| 138 | .max_power = 7000, |
| 139 | .time_window_min = 1 * MSECS_PER_SEC, |
| 140 | .time_window_max = 1 * MSECS_PER_SEC, |
| 141 | .granularity = 200,}" |
| 142 | register "controls.power_limits.pl2" = "{ |
Sumeet R Pawnikar | 8af39ff | 2020-11-06 12:00:10 +0530 | [diff] [blame] | 143 | .min_power = 12000, |
Ren Kuo | bf3466b | 2020-09-15 17:06:01 +0800 | [diff] [blame] | 144 | .max_power = 12000, |
| 145 | .time_window_min = 1 * MSECS_PER_SEC, |
| 146 | .time_window_max = 1 * MSECS_PER_SEC, |
| 147 | .granularity = 1000,}" |
| 148 | |
| 149 | ## Charger Performance Control (Control, mA) |
| 150 | register "controls.charger_perf[0]" = "{ 255, 3000 }" |
| 151 | register "controls.charger_perf[1]" = "{ 24, 1500 }" |
| 152 | register "controls.charger_perf[2]" = "{ 16, 1000 }" |
| 153 | register "controls.charger_perf[3]" = "{ 8, 500 }" |
| 154 | |
| 155 | device generic 0 on end |
| 156 | end |
| 157 | end # SA Thermal device |
Ren Kuo | 03e74ba | 2020-09-14 14:26:19 +0800 | [diff] [blame] | 158 | device pci 05.0 on # IPU - MIPI Camera |
| 159 | chip drivers/intel/mipi_camera |
| 160 | register "acpi_uid" = "0x50000" |
| 161 | register "acpi_name" = ""IPU0"" |
| 162 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 163 | |
| 164 | register "cio2_num_ports" = "1" |
| 165 | register "cio2_lanes_used" = "{2}" |
| 166 | register "cio2_lane_endpoint[0]" = ""^I2C3.CAM0"" |
| 167 | register "cio2_prt[0]" = "2" |
| 168 | device generic 0 on end |
| 169 | end |
| 170 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 171 | device pci 14.0 on |
| 172 | chip drivers/usb/acpi |
| 173 | device usb 0.0 on |
| 174 | chip drivers/usb/acpi |
| 175 | register "desc" = ""Camera"" |
| 176 | register "type" = "UPC_TYPE_INTERNAL" |
| 177 | device usb 2.5 on end |
| 178 | end |
| 179 | end |
| 180 | end |
| 181 | end # USB xHCI |
| 182 | device pci 15.0 on |
| 183 | chip drivers/i2c/hid |
Matt DeVillier | 2f5aec4 | 2022-12-19 15:11:42 -0600 | [diff] [blame] | 184 | register "generic.hid" = ""SYNA0000"" |
| 185 | register "generic.cid" = ""ACPI0C50"" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 186 | register "generic.desc" = ""Synaptics Touchpad"" |
Karthikeyan Ramasubramanian | a879200 | 2020-11-10 12:29:37 -0700 | [diff] [blame] | 187 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 188 | register "generic.wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 189 | register "generic.detect" = "1" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 190 | register "hid_desc_reg_offset" = "0x20" |
| 191 | device i2c 0x2c on end |
| 192 | end |
| 193 | chip drivers/i2c/generic |
| 194 | register "hid" = ""ELAN0000"" |
| 195 | register "desc" = ""ELAN Touchpad"" |
| 196 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 197 | register "wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 198 | register "detect" = "1" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 199 | device i2c 15 on end |
| 200 | end |
| 201 | end # I2C 0 |
| 202 | device pci 15.2 on |
Ren Kuo | 84cd7c3 | 2021-12-16 14:32:17 +0800 | [diff] [blame] | 203 | chip drivers/generic/gpio_keys |
| 204 | register "name" = ""PENH"" |
| 205 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_C12)" |
| 206 | register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ" |
| 207 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 208 | register "key.dev_name" = ""EJCT"" |
| 209 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 210 | register "key.linux_input_type" = "EV_SW" |
| 211 | register "key.label" = ""pen_eject"" |
| 212 | device generic 0 on |
| 213 | probe STYLUS STYLUS_PRESENT |
| 214 | end |
| 215 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 216 | chip drivers/i2c/hid |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 217 | register "generic.hid" = ""ELAN6915"" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 218 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | a879200 | 2020-11-10 12:29:37 -0700 | [diff] [blame] | 219 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 220 | register "generic.detect" = "1" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 221 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 222 | register "generic.reset_delay_ms" = "20" |
| 223 | register "generic.reset_off_delay_ms" = "2" |
| 224 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 225 | register "generic.stop_delay_ms" = "280" |
| 226 | register "generic.stop_off_delay_ms" = "2" |
| 227 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 228 | register "generic.enable_delay_ms" = "1" |
| 229 | register "generic.has_power_resource" = "1" |
| 230 | register "hid_desc_reg_offset" = "0x01" |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 231 | device i2c 15 on |
| 232 | probe TS_SOURCE TS_UNPROVISIONED |
| 233 | probe TS_SOURCE TS_ELAN_6915 |
| 234 | end |
| 235 | end |
| 236 | chip drivers/i2c/hid |
| 237 | register "generic.hid" = ""ELAN6918"" |
| 238 | register "generic.desc" = ""ELAN Touchscreen"" |
| 239 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 240 | register "generic.detect" = "1" |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 241 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 242 | register "generic.reset_delay_ms" = "20" |
| 243 | register "generic.reset_off_delay_ms" = "2" |
| 244 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 245 | register "generic.stop_delay_ms" = "280" |
| 246 | register "generic.stop_off_delay_ms" = "2" |
| 247 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 248 | register "generic.enable_delay_ms" = "1" |
| 249 | register "generic.has_power_resource" = "1" |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 250 | register "hid_desc_reg_offset" = "0x01" |
| 251 | device i2c 10 on |
| 252 | probe TS_SOURCE TS_ELAN_6918 |
| 253 | end |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 254 | end |
David Wu | 7abdb65 | 2021-06-21 15:06:02 +0800 | [diff] [blame] | 255 | chip drivers/i2c/hid |
Tyler Wang | e9654a8 | 2021-11-05 11:12:23 +0800 | [diff] [blame] | 256 | register "generic.hid" = ""ELAN9004"" |
| 257 | register "generic.desc" = ""ELAN Touchscreen"" |
| 258 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 259 | register "generic.detect" = "1" |
Tyler Wang | e9654a8 | 2021-11-05 11:12:23 +0800 | [diff] [blame] | 260 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 261 | register "generic.reset_delay_ms" = "20" |
| 262 | register "generic.reset_off_delay_ms" = "2" |
| 263 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 264 | register "generic.stop_delay_ms" = "280" |
| 265 | register "generic.stop_off_delay_ms" = "2" |
| 266 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 267 | register "generic.enable_delay_ms" = "1" |
| 268 | register "generic.has_power_resource" = "1" |
Tyler Wang | e9654a8 | 2021-11-05 11:12:23 +0800 | [diff] [blame] | 269 | register "hid_desc_reg_offset" = "0x01" |
| 270 | device i2c 10 on |
| 271 | probe TS_SOURCE TS_ELAN_9004 |
| 272 | end |
| 273 | end |
| 274 | chip drivers/i2c/hid |
David Wu | 7abdb65 | 2021-06-21 15:06:02 +0800 | [diff] [blame] | 275 | register "generic.hid" = ""WDHT0002"" |
| 276 | register "generic.desc" = ""WDT Touchscreen"" |
| 277 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 278 | register "generic.detect" = "1" |
David Wu | 7abdb65 | 2021-06-21 15:06:02 +0800 | [diff] [blame] | 279 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 280 | register "generic.reset_delay_ms" = "20" |
| 281 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)" |
| 282 | register "generic.stop_delay_ms" = "130" |
| 283 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 284 | register "generic.enable_delay_ms" = "1" |
| 285 | register "generic.has_power_resource" = "1" |
David Wu | 7abdb65 | 2021-06-21 15:06:02 +0800 | [diff] [blame] | 286 | register "hid_desc_reg_offset" = "0x20" |
| 287 | device i2c 2c on |
| 288 | probe TS_SOURCE TS_UNPROVISIONED |
| 289 | probe TS_SOURCE TS_WDHT0002 |
| 290 | end |
| 291 | end |
Tyler Wang | de62f55 | 2021-06-30 09:12:29 +0800 | [diff] [blame] | 292 | chip drivers/i2c/hid |
| 293 | register "generic.hid" = ""GTCH7503"" |
| 294 | register "generic.desc" = ""G2 Touchscreen"" |
| 295 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 296 | register "generic.detect" = "1" |
Tyler Wang | de62f55 | 2021-06-30 09:12:29 +0800 | [diff] [blame] | 297 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 298 | register "generic.reset_delay_ms" = "120" |
| 299 | register "generic.reset_off_delay_ms" = "3" |
| 300 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 301 | register "generic.enable_delay_ms" = "12" |
| 302 | register "generic.has_power_resource" = "1" |
| 303 | register "hid_desc_reg_offset" = "0x01" |
| 304 | device i2c 0x40 on |
| 305 | probe TS_SOURCE TS_UNPROVISIONED |
| 306 | probe TS_SOURCE TS_GTCH7503 |
| 307 | end |
| 308 | end |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 309 | chip drivers/i2c/generic |
| 310 | register "hid" = ""ELAN0001"" |
| 311 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 7ab6ee6 | 2022-12-21 12:23:03 -0600 | [diff] [blame] | 312 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 313 | register "detect" = "1" |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 314 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 315 | register "reset_delay_ms" = "20" |
| 316 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 317 | register "enable_delay_ms" = "1" |
| 318 | register "has_power_resource" = "1" |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 319 | device i2c 10 on |
| 320 | probe TS_SOURCE TS_UNPROVISIONED |
| 321 | probe TS_SOURCE TS_ELAN_0001 |
| 322 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 323 | end |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 324 | chip drivers/i2c/generic |
| 325 | register "hid" = ""RAYD0001"" |
| 326 | register "desc" = ""Raydium Touchscreen"" |
Matt DeVillier | 7ab6ee6 | 2022-12-21 12:23:03 -0600 | [diff] [blame] | 327 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 328 | register "detect" = "1" |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 329 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
Ren Kuo | 64ab189 | 2020-12-29 11:37:49 +0800 | [diff] [blame] | 330 | register "reset_delay_ms" = "100" |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 331 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 332 | register "enable_delay_ms" = "50" |
| 333 | register "has_power_resource" = "1" |
David Wu | abfc0b1 | 2021-05-03 17:10:19 +0800 | [diff] [blame] | 334 | device i2c 39 on |
| 335 | probe TS_SOURCE TS_UNPROVISIONED |
| 336 | probe TS_SOURCE TS_RAYD_0001 |
| 337 | end |
Ren Kuo | 98b0a98 | 2020-09-10 10:44:30 +0800 | [diff] [blame] | 338 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 339 | end # I2C 2 |
Ren Kuo | 03e74ba | 2020-09-14 14:26:19 +0800 | [diff] [blame] | 340 | device pci 15.3 on # I2C 3 |
| 341 | chip drivers/intel/mipi_camera |
| 342 | register "acpi_hid" = ""OVTI5675"" |
| 343 | register "acpi_uid" = "0" |
| 344 | register "acpi_name" = ""CAM0"" |
| 345 | register "chip_name" = ""Ov 5675 Camera"" |
| 346 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 347 | |
| 348 | register "ssdb.lanes_used" = "2" |
| 349 | register "ssdb.link_used" = "1" |
| 350 | register "ssdb.vcm_type" = "0x0C" |
| 351 | register "vcm_name" = ""VCM0"" |
| 352 | register "num_freq_entries" = "1" |
| 353 | register "link_freq[0]" = "DEFAULT_LINK_FREQ" |
| 354 | register "remote_name" = ""IPU0"" |
| 355 | |
| 356 | register "has_power_resource" = "1" |
| 357 | #Controls |
| 358 | register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1 |
| 359 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 360 | |
| 361 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8 |
| 362 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2 |
| 363 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset |
| 364 | |
| 365 | #_ON |
| 366 | register "on_seq.ops_cnt" = "5" |
| 367 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 368 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 369 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 370 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 371 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 372 | |
| 373 | #_OFF |
| 374 | register "off_seq.ops_cnt" = "4" |
| 375 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 376 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 377 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 378 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 379 | |
Sugnan Prabhu S | 2db184d | 2021-03-30 10:28:32 +0800 | [diff] [blame] | 380 | device i2c 36 on |
Ren Kuo | 163dfe6 | 2021-08-02 14:31:35 +0800 | [diff] [blame] | 381 | probe CAMERA_WFC CAMERA_UNPROVISIONED |
Sugnan Prabhu S | 2db184d | 2021-03-30 10:28:32 +0800 | [diff] [blame] | 382 | probe CAMERA_WFC CAMERA_OVTI5675 |
| 383 | end |
| 384 | end |
| 385 | chip drivers/intel/mipi_camera |
| 386 | register "acpi_hid" = ""OVTI8856"" |
| 387 | register "acpi_uid" = "0" |
| 388 | register "acpi_name" = ""CAM0"" |
| 389 | register "chip_name" = ""Ov 8856 Camera"" |
| 390 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 391 | |
| 392 | register "ssdb.lanes_used" = "2" |
| 393 | register "ssdb.link_used" = "1" |
| 394 | register "ssdb.vcm_type" = "0x0C" |
| 395 | register "vcm_name" = ""VCM0"" |
| 396 | register "num_freq_entries" = "2" |
| 397 | register "link_freq[0]" = "720000000" |
| 398 | register "link_freq[1]" = "360000000" |
| 399 | register "remote_name" = ""IPU0"" |
| 400 | |
| 401 | register "has_power_resource" = "1" |
| 402 | #Controls |
| 403 | register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1 |
| 404 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 405 | |
| 406 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8 |
| 407 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2 |
| 408 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset |
| 409 | |
| 410 | #_ON |
| 411 | register "on_seq.ops_cnt" = "5" |
| 412 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 413 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 414 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 415 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 416 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 417 | |
| 418 | #_OFF |
| 419 | register "off_seq.ops_cnt" = "4" |
| 420 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 421 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 422 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 423 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 424 | |
| 425 | device i2c 10 on |
| 426 | probe CAMERA_WFC CAMERA_OVTI8856 |
| 427 | end |
Ren Kuo | 03e74ba | 2020-09-14 14:26:19 +0800 | [diff] [blame] | 428 | end |
| 429 | chip drivers/intel/mipi_camera |
| 430 | register "acpi_uid" = "3" |
| 431 | register "acpi_name" = ""VCM0"" |
| 432 | register "chip_name" = ""DW AF DAC"" |
| 433 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 434 | |
| 435 | register "pr0" = ""\\_SB.PCI0.I2C3.CAM0.PRIC"" |
| 436 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 437 | |
Ren Kuo | 163dfe6 | 2021-08-02 14:31:35 +0800 | [diff] [blame] | 438 | device i2c 0C on |
| 439 | probe CAMERA_VCM CAMERA_VCM_UNPROVISIONED |
| 440 | probe CAMERA_VCM CAMERA_VCM0 |
| 441 | end |
Ren Kuo | 03e74ba | 2020-09-14 14:26:19 +0800 | [diff] [blame] | 442 | end |
| 443 | chip drivers/intel/mipi_camera |
| 444 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 445 | register "acpi_uid" = "1" |
| 446 | register "acpi_name" = ""NVM0"" |
| 447 | register "chip_name" = ""GT24C08"" |
| 448 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 449 | |
| 450 | register "pr0" = ""\\_SB.PCI0.I2C3.CAM0.PRIC"" |
| 451 | |
| 452 | register "nvm_size" = "0x2000" |
| 453 | register "nvm_pagesize" = "1" |
| 454 | register "nvm_readonly" = "1" |
| 455 | register "nvm_width" = "0x10" |
| 456 | register "nvm_compat" = ""atmel,24c08"" |
| 457 | |
| 458 | device i2c 50 on end |
| 459 | end |
| 460 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 461 | device pci 19.0 on |
| 462 | chip drivers/i2c/generic |
| 463 | register "hid" = ""10EC5682"" |
| 464 | register "name" = ""RT58"" |
| 465 | register "desc" = ""Realtek RT5682"" |
| 466 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 467 | register "property_count" = "1" |
| 468 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 469 | register "property_list[0].name" = ""realtek,jd-src"" |
| 470 | register "property_list[0].integer" = "1" |
Tyler Wang | 28e2945 | 2021-09-16 12:17:07 +0800 | [diff] [blame] | 471 | device i2c 1a on |
| 472 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED |
| 473 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_RT5682 |
| 474 | end |
| 475 | end |
| 476 | chip drivers/i2c/da7219 |
| 477 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 478 | register "btn_cfg" = "50" |
| 479 | register "mic_det_thr" = "500" |
| 480 | register "jack_ins_deb" = "20" |
| 481 | register "jack_det_rate" = ""32ms_64ms"" |
| 482 | register "jack_rem_deb" = "1" |
| 483 | register "a_d_btn_thr" = "0xa" |
| 484 | register "d_b_btn_thr" = "0x16" |
| 485 | register "b_c_btn_thr" = "0x21" |
| 486 | register "c_mic_btn_thr" = "0x3e" |
| 487 | register "btn_avg" = "4" |
| 488 | register "adc_1bit_rpt" = "1" |
| 489 | register "micbias_lvl" = "2600" |
| 490 | register "mic_amp_in_sel" = ""diff"" |
| 491 | device i2c 1a on |
| 492 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_DA7219 |
| 493 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 494 | end |
| 495 | chip drivers/i2c/generic |
Tyler Wang | 3c1ee4b | 2021-12-03 18:43:49 +0800 | [diff] [blame] | 496 | register "hid" = ""RTL5682"" |
| 497 | register "name" = ""RT58"" |
| 498 | register "desc" = ""Realtek RT5682"" |
| 499 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 500 | register "property_count" = "1" |
| 501 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 502 | register "property_list[0].name" = ""realtek,jd-src"" |
| 503 | register "property_list[0].integer" = "1" |
| 504 | device i2c 1a on |
| 505 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS |
| 506 | end |
| 507 | end |
| 508 | chip drivers/i2c/generic |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 509 | register "hid" = ""10EC1015"" |
| 510 | register "desc" = ""Realtek SPK AMP L"" |
| 511 | register "uid" = "0" |
Tyler Wang | 3c1ee4b | 2021-12-03 18:43:49 +0800 | [diff] [blame] | 512 | device i2c 28 on |
| 513 | probe AUDIO_AMP UNPROVISIONED |
| 514 | probe AUDIO_AMP RT1015_I2C |
| 515 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 516 | end |
| 517 | chip drivers/i2c/generic |
| 518 | register "hid" = ""10EC1015"" |
| 519 | register "desc" = ""Realtek SPK AMP R"" |
| 520 | register "uid" = "1" |
Tyler Wang | 3c1ee4b | 2021-12-03 18:43:49 +0800 | [diff] [blame] | 521 | device i2c 29 on |
| 522 | probe AUDIO_AMP UNPROVISIONED |
| 523 | probe AUDIO_AMP RT1015_I2C |
| 524 | end |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 525 | end |
| 526 | end |
Tyler Wang | 3c1ee4b | 2021-12-03 18:43:49 +0800 | [diff] [blame] | 527 | device pci 1f.3 on |
| 528 | chip drivers/generic/alc1015 |
| 529 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 530 | device generic 0 on |
| 531 | probe AUDIO_AMP RT1015P_AUTO |
| 532 | end |
| 533 | end |
| 534 | end # Intel HDA |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 535 | device pci 1c.7 on |
| 536 | chip drivers/wifi/generic |
| 537 | register "wake" = "GPE0_DW2_03" |
Ren Kuo | 3818d03 | 2020-08-19 13:19:14 +0800 | [diff] [blame] | 538 | device pci 00.0 on end |
| 539 | end |
| 540 | end # PCI Express Root Port 8 - WLAN |
Ren Kuo | 98b7033 | 2020-07-16 18:36:55 +0800 | [diff] [blame] | 541 | end |
| 542 | end |