Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 1 | fw_config |
| 2 | field DB_USB 0 1 |
Wisley Chen | d6c2e05 | 2023-08-22 17:01:00 +0800 | [diff] [blame] | 3 | option DB_1A 0 |
Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 4 | option DB_1C_1A 1 |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 5 | option DB_1C 2 |
| 6 | option DB_1C_LTE 3 |
| 7 | end |
Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 8 | field WIFI_SAR_ID 2 3 |
| 9 | option SAR_ID_0 0 |
Wisley Chen | 8e42ebe | 2023-08-22 16:03:05 +0800 | [diff] [blame] | 10 | option SAR_ID_1 1 |
| 11 | option SAR_ID_2 2 |
| 12 | option SAR_ID_3 3 |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 13 | end |
| 14 | field STYLUS 9 |
| 15 | option STYLUS_ABSENT 0 |
| 16 | option STYLUS_PRESENT 1 |
| 17 | end |
| 18 | field SD_CARD 10 |
| 19 | option SD_PRESENT 0 |
| 20 | option SD_ABSENT 1 |
| 21 | end |
| 22 | field WFC 11 |
| 23 | option WFC_ABSENT 0 |
| 24 | option WFC_MIPI_OVTI8856 1 |
| 25 | end |
| 26 | field MB_HDMI 12 |
| 27 | option HDMI_ABSENT 0 |
| 28 | option HDMI_PRESENT 1 |
| 29 | end |
| 30 | field MB_USB 15 |
| 31 | option MB_1C 0 |
| 32 | option MB_1C_2A 1 |
| 33 | end |
Wisley Chen | 725cb54 | 2023-08-02 13:00:25 +0600 | [diff] [blame] | 34 | field TOUCH_PANEL 40 41 |
| 35 | option TOUCH_HID_I2C 0 |
| 36 | option TOUCH_I2C 1 |
| 37 | end |
Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 38 | end |
| 39 | |
Wisley Chen | d53c478 | 2022-08-12 16:11:57 +0600 | [diff] [blame] | 40 | chip soc/intel/alderlake |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 41 | register "sagv" = "SaGv_Enabled" |
Wisley Chen | d53c478 | 2022-08-12 16:11:57 +0600 | [diff] [blame] | 42 | |
chia-ling.hou | 21fbf84 | 2023-02-14 12:04:18 +0800 | [diff] [blame] | 43 | # EMMC Tx CMD Delay |
| 44 | # Refer to EDS-Vol2-42.3.7. |
| 45 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 46 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 47 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 48 | |
| 49 | # EMMC TX DATA Delay 1 |
| 50 | # Refer to EDS-Vol2-42.3.8. |
| 51 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 52 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 53 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 54 | |
| 55 | # EMMC TX DATA Delay 2 |
| 56 | # Refer to EDS-Vol2-42.3.9. |
| 57 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 58 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 59 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 60 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 61 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C2A2828" |
| 62 | |
| 63 | # EMMC RX CMD/DATA Delay 1 |
| 64 | # Refer to EDS-Vol2-42.3.10. |
| 65 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 66 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 67 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 68 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
Chia-Ling Hou | 8c9ec5a | 2023-06-13 13:54:54 +0800 | [diff] [blame] | 69 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C1B193b" |
chia-ling.hou | 21fbf84 | 2023-02-14 12:04:18 +0800 | [diff] [blame] | 70 | |
| 71 | # EMMC RX CMD/DATA Delay 2 |
| 72 | # Refer to EDS-Vol2-42.3.12. |
| 73 | # [17:16] stands for Rx Clock before Output Buffer, |
| 74 | # 00: Rx clock after output buffer, |
| 75 | # 01: Rx clock before output buffer, |
| 76 | # 10: Automatic selection based on working mode. |
| 77 | # 11: Reserved |
| 78 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 79 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
Chia-Ling Hou | 8c9ec5a | 2023-06-13 13:54:54 +0800 | [diff] [blame] | 80 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10004" |
chia-ling.hou | 21fbf84 | 2023-02-14 12:04:18 +0800 | [diff] [blame] | 81 | |
| 82 | # EMMC Rx Strobe Delay |
| 83 | # Refer to EDS-Vol2-42.3.11. |
| 84 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 85 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 86 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x11515" |
| 87 | |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 88 | # Bit 0 - C0 has no redriver, so enable SBU muxing in the SoC. |
| 89 | # Bit 2 - C1 has a redriver which does SBU muxing. |
| 90 | # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1. |
| 91 | register "tcss_aux_ori" = "1" |
Wisley Chen | d53c478 | 2022-08-12 16:11:57 +0600 | [diff] [blame] | 92 | |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 93 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}" |
| 94 | |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 95 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # USB2 WWAN |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 96 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN |
| 97 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN |
| 98 | |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 99 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 WWAN |
| 100 | |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 101 | # Configure external V1P05/Vnn/VnnSx Rails |
| 102 | register "ext_fivr_settings" = "{ |
| 103 | .configure_ext_fivr = 1, |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 104 | }" |
| 105 | |
| 106 | # Intel Common SoC Config |
| 107 | #+-------------------+---------------------------+ |
| 108 | #| Field | Value | |
| 109 | #+-------------------+---------------------------+ |
| 110 | #| I2C0 | TPM. Early init is | |
| 111 | #| | required to set up a BAR | |
| 112 | #| | for TPM communication | |
| 113 | #| I2C1 | Touchscreen | |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 114 | #| I2C2 | WCAM | |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 115 | #| I2C3 | Audio | |
| 116 | #| I2C5 | Trackpad | |
| 117 | #+-------------------+---------------------------+ |
| 118 | register "common_soc_config" = "{ |
| 119 | .i2c[0] = { |
| 120 | .early_init = 1, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 121 | .speed = I2C_SPEED_FAST_PLUS, |
| 122 | .speed_config[0] = { |
| 123 | .speed = I2C_SPEED_FAST_PLUS, |
| 124 | .scl_lcnt = 56, |
| 125 | .scl_hcnt = 30, |
| 126 | .sda_hold = 7, |
| 127 | } |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 128 | }, |
| 129 | .i2c[1] = { |
| 130 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 131 | .speed_config[0] = { |
| 132 | .speed = I2C_SPEED_FAST, |
| 133 | .scl_lcnt = 158, |
| 134 | .scl_hcnt = 79, |
Wisley Chen | ed0e2bd | 2022-12-01 15:06:23 +0600 | [diff] [blame] | 135 | .sda_hold = 30, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 136 | } |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 137 | }, |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 138 | .i2c[2] = { |
| 139 | .speed = I2C_SPEED_FAST, |
| 140 | .speed_config[0] = { |
| 141 | .speed = I2C_SPEED_FAST, |
| 142 | .scl_lcnt = 158, |
| 143 | .scl_hcnt = 79, |
| 144 | .sda_hold = 7, |
| 145 | } |
| 146 | }, |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 147 | .i2c[3] = { |
| 148 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 149 | .speed_config[0] = { |
| 150 | .speed = I2C_SPEED_FAST, |
| 151 | .scl_lcnt = 158, |
| 152 | .scl_hcnt = 79, |
| 153 | .sda_hold = 7, |
| 154 | } |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 155 | }, |
| 156 | .i2c[5] = { |
| 157 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 158 | .speed_config[0] = { |
| 159 | .speed = I2C_SPEED_FAST, |
| 160 | .scl_lcnt = 158, |
| 161 | .scl_hcnt = 79, |
Wisley Chen | ed0e2bd | 2022-12-01 15:06:23 +0600 | [diff] [blame] | 162 | .sda_hold = 40, |
Wisley Chen | 11bf65c | 2022-10-03 15:34:20 +0600 | [diff] [blame] | 163 | } |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 164 | }, |
| 165 | }" |
| 166 | |
| 167 | device domain 0 on |
| 168 | device ref dtt on |
| 169 | chip drivers/intel/dptf |
| 170 | ## sensor information |
| 171 | register "options.tsr[0].desc" = ""CPU"" |
| 172 | register "options.tsr[1].desc" = ""5V Regulator"" |
| 173 | register "options.tsr[2].desc" = ""Charger"" |
| 174 | |
| 175 | # TODO: below values are initial reference values only |
| 176 | ## Passive Policy |
| 177 | register "policies.passive" = "{ |
| 178 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 179 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
| 180 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000), |
| 181 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 182 | }" |
| 183 | |
| 184 | ## Critical Policy |
| 185 | register "policies.critical" = "{ |
| 186 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 187 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN), |
| 188 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN), |
| 189 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN), |
| 190 | }" |
| 191 | |
| 192 | register "controls.power_limits" = "{ |
| 193 | .pl1 = { |
| 194 | .min_power = 3000, |
| 195 | .max_power = 6000, |
| 196 | .time_window_min = 28 * MSECS_PER_SEC, |
| 197 | .time_window_max = 32 * MSECS_PER_SEC, |
| 198 | .granularity = 200 |
| 199 | }, |
| 200 | .pl2 = { |
| 201 | .min_power = 25000, |
| 202 | .max_power = 25000, |
| 203 | .time_window_min = 28 * MSECS_PER_SEC, |
| 204 | .time_window_max = 32 * MSECS_PER_SEC, |
| 205 | .granularity = 1000 |
| 206 | } |
| 207 | }" |
| 208 | |
| 209 | ## Charger Performance Control (Control, mA) |
| 210 | register "controls.charger_perf" = "{ |
| 211 | [0] = { 255, 1700 }, |
| 212 | [1] = { 24, 1500 }, |
| 213 | [2] = { 16, 1000 }, |
| 214 | [3] = { 8, 500 } |
| 215 | }" |
| 216 | |
| 217 | device generic 0 on end |
| 218 | end |
| 219 | end |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 220 | device ref ipu on |
| 221 | chip drivers/intel/mipi_camera |
| 222 | register "acpi_uid" = "0x50000" |
| 223 | register "acpi_name" = ""IPU0"" |
| 224 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 225 | |
| 226 | register "cio2_num_ports" = "1" |
| 227 | register "cio2_lanes_used" = "{2}" # 2 CSI Camera lanes are used |
| 228 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 229 | register "cio2_prt[0]" = "1" |
| 230 | device generic 0 on end |
| 231 | end |
| 232 | probe WFC WFC_MIPI_OVTI8856 |
| 233 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 234 | device ref i2c1 on |
Wisley Chen | 725cb54 | 2023-08-02 13:00:25 +0600 | [diff] [blame] | 235 | chip drivers/i2c/generic |
| 236 | register "hid" = ""ELAN0001"" |
| 237 | register "desc" = ""ELAN Touchscreen"" |
| 238 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 239 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 240 | register "reset_delay_ms" = "20" |
| 241 | register "reset_off_delay_ms" = "2" |
| 242 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 243 | register "stop_delay_ms" = "20" |
| 244 | register "stop_off_delay_ms" = "2" |
| 245 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 246 | register "enable_delay_ms" = "5" |
| 247 | register "has_power_resource" = "1" |
| 248 | device i2c 10 on |
| 249 | probe TOUCH_PANEL TOUCH_I2C |
| 250 | end |
| 251 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 252 | chip drivers/i2c/hid |
| 253 | register "generic.hid" = ""ELAN2513"" |
| 254 | register "generic.desc" = ""ELAN Touchscreen"" |
| 255 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 256 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 257 | register "generic.reset_delay_ms" = "20" |
| 258 | register "generic.reset_off_delay_ms" = "2" |
| 259 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 260 | register "generic.stop_delay_ms" = "280" |
| 261 | register "generic.stop_off_delay_ms" = "2" |
| 262 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 263 | register "generic.enable_delay_ms" = "1" |
| 264 | register "generic.has_power_resource" = "1" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 265 | register "hid_desc_reg_offset" = "0x01" |
Wisley Chen | 725cb54 | 2023-08-02 13:00:25 +0600 | [diff] [blame] | 266 | device i2c 10 on |
| 267 | probe TOUCH_PANEL TOUCH_HID_I2C |
| 268 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 269 | end |
| 270 | chip drivers/i2c/hid |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 271 | register "generic.hid" = ""ELAN900C"" |
| 272 | register "generic.desc" = ""ELAN Touchscreen"" |
| 273 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 274 | register "generic.detect" = "1" |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 275 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 276 | register "generic.reset_delay_ms" = "20" |
| 277 | register "generic.reset_off_delay_ms" = "2" |
| 278 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 279 | register "generic.stop_delay_ms" = "280" |
| 280 | register "generic.stop_off_delay_ms" = "2" |
| 281 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 282 | register "generic.enable_delay_ms" = "1" |
| 283 | register "generic.has_power_resource" = "1" |
| 284 | register "hid_desc_reg_offset" = "0x01" |
| 285 | device i2c 15 on end |
| 286 | end |
| 287 | chip drivers/i2c/hid |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 288 | register "generic.hid" = ""GTCH7503"" |
| 289 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 290 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Matt DeVillier | 8a0e6b5 | 2023-04-27 10:04:27 -0500 | [diff] [blame] | 291 | register "generic.detect" = "1" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 292 | register "generic.reset_gpio" = |
| 293 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 294 | register "generic.reset_delay_ms" = "50" |
| 295 | register "generic.enable_gpio" = |
| 296 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" |
| 297 | register "generic.enable_delay_ms" = "1" |
| 298 | register "generic.has_power_resource" = "1" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 299 | register "hid_desc_reg_offset" = "0x01" |
| 300 | device i2c 40 on end |
| 301 | end |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 302 | chip drivers/generic/gpio_keys |
| 303 | register "name" = ""PENH"" |
| 304 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 305 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 306 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 307 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 308 | register "key.dev_name" = ""EJCT"" |
| 309 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 310 | register "key.linux_input_type" = "EV_SW" |
| 311 | register "key.label" = ""pen_eject"" |
| 312 | device generic 0 on |
| 313 | probe STYLUS STYLUS_PRESENT |
| 314 | end |
| 315 | end |
| 316 | end |
| 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" = "2" |
| 327 | register "ssdb.link_used" = "1" |
| 328 | register "ssdb.vcm_type" = "0x0C" |
| 329 | register "vcm_name" = ""VCM0"" |
| 330 | register "num_freq_entries" = "2" |
| 331 | register "link_freq[0]" = "360000000" |
| 332 | register "link_freq[1]" = "180000000" |
| 333 | register "remote_name" = ""IPU0"" |
| 334 | |
| 335 | #Controls |
| 336 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 337 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 338 | |
| 339 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
| 340 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X |
| 341 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 342 | |
| 343 | #_ON |
| 344 | register "on_seq.ops_cnt" = "5" |
| 345 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 346 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 347 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 348 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 349 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 350 | |
| 351 | #_OFF |
| 352 | register "off_seq.ops_cnt" = "4" |
| 353 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 354 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 355 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 356 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 357 | |
| 358 | device i2c 10 on |
| 359 | probe WFC WFC_MIPI_OVTI8856 |
| 360 | end |
| 361 | end |
| 362 | chip drivers/intel/mipi_camera |
| 363 | register "acpi_uid" = "3" |
| 364 | register "acpi_name" = ""VCM0"" |
| 365 | register "chip_name" = ""DW AF DAC"" |
| 366 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 367 | |
| 368 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 369 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 370 | |
| 371 | device i2c 0C on |
| 372 | probe WFC WFC_MIPI_OVTI8856 |
| 373 | end |
| 374 | end |
| 375 | chip drivers/intel/mipi_camera |
| 376 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 377 | register "acpi_uid" = "1" |
| 378 | register "acpi_name" = ""NVM0"" |
| 379 | register "chip_name" = ""GT24C08"" |
| 380 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 381 | |
| 382 | register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC"" |
| 383 | |
| 384 | register "nvm_size" = "0x2000" |
| 385 | register "nvm_pagesize" = "1" |
| 386 | register "nvm_readonly" = "1" |
| 387 | register "nvm_width" = "0x10" |
| 388 | register "nvm_compat" = ""atmel,24c08"" |
| 389 | |
| 390 | device i2c 50 on |
| 391 | probe WFC WFC_MIPI_OVTI8856 |
| 392 | end |
| 393 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 394 | end |
| 395 | device ref i2c3 on |
| 396 | chip drivers/i2c/generic |
| 397 | register "hid" = ""RTL5682"" |
| 398 | register "name" = ""RT58"" |
| 399 | register "desc" = ""Headset Codec"" |
| 400 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 401 | # Set the jd_src to RT5668_JD1 for jack detection |
| 402 | register "property_count" = "1" |
| 403 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 404 | register "property_list[0].name" = ""realtek,jd-src"" |
| 405 | register "property_list[0].integer" = "1" |
| 406 | device i2c 1a on end |
| 407 | end |
| 408 | end |
| 409 | device ref i2c5 on |
| 410 | chip drivers/i2c/generic |
| 411 | register "hid" = ""ELAN0000"" |
| 412 | register "desc" = ""ELAN Touchpad"" |
| 413 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 414 | register "wake" = "GPE0_DW2_14" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 415 | register "detect" = "1" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 416 | device i2c 15 on end |
| 417 | end |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 418 | chip drivers/i2c/hid |
| 419 | register "generic.hid" = ""SYNA0000"" |
| 420 | register "generic.cid" = ""ACPI0C50"" |
| 421 | register "generic.desc" = ""Synaptics Touchpad"" |
| 422 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 423 | register "generic.wake" = "GPE0_DW2_14" |
| 424 | register "generic.detect" = "1" |
| 425 | register "hid_desc_reg_offset" = "0x20" |
| 426 | device i2c 0x2c on end |
| 427 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 428 | end |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 429 | device ref hda on |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 430 | chip drivers/generic/max98357a |
| 431 | register "hid" = ""MX98360A"" |
| 432 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" |
| 433 | register "sdmode_delay" = "5" |
| 434 | device generic 0 on end |
| 435 | end |
Matt DeVillier | 189da31 | 2023-09-08 20:57:55 -0500 | [diff] [blame] | 436 | chip drivers/sof |
| 437 | register "spkr_tplg" = "max98360a" |
| 438 | register "jack_tplg" = "rt5682" |
| 439 | register "mic_tplg" = "_2ch_pdm0" |
| 440 | device generic 0 on end |
| 441 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 442 | end |
| 443 | device ref pcie_rp4 on |
| 444 | # PCIe 4 WLAN |
| 445 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 446 | .clk_src = 2, |
| 447 | .clk_req = 2, |
| 448 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 449 | }" |
| 450 | chip drivers/wifi/generic |
| 451 | register "wake" = "GPE0_DW1_03" |
Kapil Porwal | da1a58a | 2022-11-23 19:17:35 +0530 | [diff] [blame] | 452 | register "add_acpi_dma_property" = "true" |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 453 | device pci 00.0 on end |
| 454 | end |
| 455 | end |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 456 | device ref pcie_rp7 on |
| 457 | # Enable SD Card PCIe 7 using clk 3 |
| 458 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 459 | .clk_src = 3, |
| 460 | .clk_req = 3, |
| 461 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 462 | }" |
| 463 | chip soc/intel/common/block/pcie/rtd3 |
| 464 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 465 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H12)" |
| 466 | register "srcclk_pin" = "3" |
| 467 | device generic 0 on end |
| 468 | end |
| 469 | probe SD_CARD SD_PRESENT |
| 470 | end |
Reka Norman | ff207d7 | 2022-10-13 15:16:54 +1100 | [diff] [blame] | 471 | device ref emmc on end |
Reka Norman | 4ae5873 | 2022-12-12 10:36:19 +1100 | [diff] [blame] | 472 | device ref ish on |
| 473 | chip drivers/intel/ish |
| 474 | register "add_acpi_dma_property" = "true" |
| 475 | device generic 0 on end |
| 476 | end |
| 477 | end |
Reka Norman | ff207d7 | 2022-10-13 15:16:54 +1100 | [diff] [blame] | 478 | device ref ufs on end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 479 | device ref pch_espi on |
| 480 | chip ec/google/chromeec |
| 481 | use conn0 as mux_conn[0] |
| 482 | use conn1 as mux_conn[1] |
| 483 | device pnp 0c09.0 on end |
| 484 | end |
| 485 | end |
| 486 | device ref pmc hidden |
| 487 | chip drivers/intel/pmc_mux |
| 488 | device generic 0 on |
| 489 | chip drivers/intel/pmc_mux/conn |
| 490 | use usb2_port1 as usb2_port |
| 491 | use tcss_usb3_port1 as usb3_port |
| 492 | device generic 0 alias conn0 on end |
| 493 | end |
| 494 | chip drivers/intel/pmc_mux/conn |
| 495 | use usb2_port2 as usb2_port |
| 496 | use tcss_usb3_port2 as usb3_port |
Wisley Chen | c0dfd98 | 2023-09-28 15:16:06 +0800 | [diff] [blame^] | 497 | device generic 1 alias conn1 on |
| 498 | probe DB_USB DB_1C_1A |
| 499 | probe DB_USB DB_1C |
| 500 | probe DB_USB DB_1C_LTE |
| 501 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 502 | end |
| 503 | end |
| 504 | end |
| 505 | end |
| 506 | device ref tcss_xhci on |
| 507 | chip drivers/usb/acpi |
| 508 | device ref tcss_root_hub on |
| 509 | chip drivers/usb/acpi |
| 510 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 511 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 512 | register "use_custom_pld" = "true" |
| 513 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 514 | device ref tcss_usb3_port1 on end |
| 515 | end |
| 516 | chip drivers/usb/acpi |
| 517 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 518 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 519 | register "use_custom_pld" = "true" |
| 520 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Wisley Chen | c0dfd98 | 2023-09-28 15:16:06 +0800 | [diff] [blame^] | 521 | device ref tcss_usb3_port2 on |
| 522 | probe DB_USB DB_1C_1A |
| 523 | probe DB_USB DB_1C |
| 524 | probe DB_USB DB_1C_LTE |
| 525 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 526 | end |
| 527 | end |
| 528 | end |
| 529 | end |
| 530 | device ref xhci on |
| 531 | chip drivers/usb/acpi |
| 532 | device ref xhci_root_hub on |
| 533 | chip drivers/usb/acpi |
| 534 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 535 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 536 | register "use_custom_pld" = "true" |
| 537 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 538 | device ref usb2_port1 on end |
| 539 | end |
| 540 | chip drivers/usb/acpi |
| 541 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 542 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 543 | register "use_custom_pld" = "true" |
| 544 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
Wisley Chen | c0dfd98 | 2023-09-28 15:16:06 +0800 | [diff] [blame^] | 545 | device ref usb2_port2 on |
| 546 | probe DB_USB DB_1C_1A |
| 547 | probe DB_USB DB_1C |
| 548 | probe DB_USB DB_1C_LTE |
| 549 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 550 | end |
| 551 | chip drivers/usb/acpi |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 552 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 553 | register "type" = "UPC_TYPE_A" |
| 554 | register "use_custom_pld" = "true" |
| 555 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
| 556 | device ref usb2_port3 on |
| 557 | probe MB_USB MB_1C_2A |
| 558 | end |
| 559 | end |
| 560 | chip drivers/usb/acpi |
| 561 | register "desc" = ""USB2 Type-A Port A1 (MLB)"" |
| 562 | register "type" = "UPC_TYPE_A" |
| 563 | register "use_custom_pld" = "true" |
| 564 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
| 565 | device ref usb2_port4 on |
| 566 | probe MB_USB MB_1C_2A |
| 567 | end |
| 568 | end |
| 569 | chip drivers/usb/acpi |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 570 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 571 | register "type" = "UPC_TYPE_A" |
| 572 | register "use_custom_pld" = "true" |
| 573 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 574 | device ref usb2_port4 on |
| 575 | probe DB_USB DB_1C_1A |
Wisley Chen | c0dfd98 | 2023-09-28 15:16:06 +0800 | [diff] [blame^] | 576 | probe DB_USB DB_1A |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 577 | end |
| 578 | end |
| 579 | chip drivers/usb/acpi |
| 580 | register "desc" = ""USB2 WWAN"" |
| 581 | register "type" = "UPC_TYPE_INTERNAL" |
| 582 | device ref usb2_port5 on |
| 583 | probe DB_USB DB_1C_LTE |
| 584 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 585 | end |
| 586 | chip drivers/usb/acpi |
| 587 | register "desc" = ""USB2 UFC"" |
| 588 | register "type" = "UPC_TYPE_INTERNAL" |
Tony Huang | 0197ddf | 2023-04-24 13:01:25 +0800 | [diff] [blame] | 589 | device ref usb2_port6 on end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 590 | end |
| 591 | chip drivers/usb/acpi |
| 592 | register "desc" = ""USB2 Bluetooth"" |
| 593 | register "type" = "UPC_TYPE_INTERNAL" |
| 594 | register "reset_gpio" = |
| 595 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 596 | device ref usb2_port8 on end |
| 597 | end |
| 598 | chip drivers/usb/acpi |
| 599 | register "desc" = ""CNVi Bluetooth"" |
| 600 | register "type" = "UPC_TYPE_INTERNAL" |
| 601 | register "reset_gpio" = |
| 602 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 603 | device ref usb2_port10 on end |
| 604 | end |
| 605 | chip drivers/usb/acpi |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 606 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 607 | register "type" = "UPC_TYPE_USB3_A" |
| 608 | register "use_custom_pld" = "true" |
| 609 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
| 610 | device ref usb3_port1 on |
| 611 | probe MB_USB MB_1C_2A |
| 612 | end |
| 613 | end |
| 614 | chip drivers/usb/acpi |
| 615 | register "desc" = ""USB3 Type-A Port A1 (MLB)"" |
| 616 | register "type" = "UPC_TYPE_USB3_A" |
| 617 | register "use_custom_pld" = "true" |
| 618 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(3, 1))" |
| 619 | device ref usb3_port2 on |
| 620 | probe MB_USB MB_1C_2A |
| 621 | end |
| 622 | end |
| 623 | chip drivers/usb/acpi |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 624 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 625 | register "type" = "UPC_TYPE_USB3_A" |
| 626 | register "use_custom_pld" = "true" |
| 627 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 628 | device ref usb3_port2 on |
| 629 | probe DB_USB DB_1C_1A |
Wisley Chen | c0dfd98 | 2023-09-28 15:16:06 +0800 | [diff] [blame^] | 630 | probe DB_USB DB_1A |
Tony Huang | 046a155 | 2023-04-06 16:25:37 +0800 | [diff] [blame] | 631 | end |
| 632 | end |
| 633 | chip drivers/usb/acpi |
| 634 | register "desc" = ""USB3 WWAN"" |
| 635 | register "type" = "UPC_TYPE_INTERNAL" |
| 636 | device ref usb3_port3 on |
| 637 | probe DB_USB DB_1C_LTE |
| 638 | end |
Wisley Chen | 77963b9 | 2022-08-18 15:00:43 +0600 | [diff] [blame] | 639 | end |
| 640 | end |
| 641 | end |
| 642 | end |
| 643 | end |
Wisley Chen | d53c478 | 2022-08-12 16:11:57 +0600 | [diff] [blame] | 644 | end |