Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 1 | fw_config |
Jianeng Ceng | fdcbb25 | 2024-01-11 10:05:54 +0800 | [diff] [blame] | 2 | field WIFI 10 11 |
| 3 | option UNKNOWN 0 |
| 4 | option WIFI_6 1 |
| 5 | option WIFI_6E 2 |
| 6 | end |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 7 | field CAMERA 12 13 |
| 8 | option UF_720P_WF 0 |
| 9 | option UF_1080P 1 |
| 10 | option UF_720P 2 |
| 11 | option UF_1080P_WF 3 |
| 12 | end |
Weimin Wu | 0740d96 | 2024-01-31 20:43:42 +0800 | [diff] [blame] | 13 | field DB_AUX_BIAS 3 4 |
| 14 | option REDRIVER 0 |
| 15 | option SOC 1 |
| 16 | end |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 17 | end |
| 18 | |
wuweimin | 94f3866 | 2023-10-13 22:08:39 +0800 | [diff] [blame] | 19 | chip soc/intel/alderlake |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 20 | register "sagv" = "SaGv_Enabled" |
wuweimin | 94f3866 | 2023-10-13 22:08:39 +0800 | [diff] [blame] | 21 | |
Simon Yang | ae2f046 | 2023-11-14 11:41:08 +0800 | [diff] [blame] | 22 | # EMMC Tx CMD Delay |
| 23 | # Refer to EDS-Vol2-42.3.7. |
| 24 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 25 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 26 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 27 | |
| 28 | # EMMC TX DATA Delay 1 |
| 29 | # Refer to EDS-Vol2-42.3.8. |
| 30 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 31 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 32 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 33 | |
| 34 | # EMMC TX DATA Delay 2 |
| 35 | # Refer to EDS-Vol2-42.3.9. |
| 36 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 37 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 38 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 39 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 40 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C2A2828" |
| 41 | |
| 42 | # EMMC RX CMD/DATA Delay 1 |
| 43 | # Refer to EDS-Vol2-42.3.10. |
| 44 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 45 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 46 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 47 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 48 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C1B4F1B" |
| 49 | |
| 50 | # EMMC RX CMD/DATA Delay 2 |
| 51 | # Refer to EDS-Vol2-42.3.12. |
| 52 | # [17:16] stands for Rx Clock before Output Buffer, |
| 53 | # 00: Rx clock after output buffer, |
| 54 | # 01: Rx clock before output buffer, |
| 55 | # 10: Automatic selection based on working mode. |
| 56 | # 11: Reserved |
| 57 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 58 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 59 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10051" |
| 60 | |
| 61 | # EMMC Rx Strobe Delay |
| 62 | # Refer to EDS-Vol2-42.3.11. |
| 63 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 64 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 65 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x01515" |
| 66 | |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 67 | # FIVR configurations for anraggar are disabled since the board doesn't have V1p05 and Vnn |
| 68 | # bypass rails implemented. |
| 69 | register "ext_fivr_settings" = "{ |
| 70 | .configure_ext_fivr = 0, |
| 71 | }" |
| 72 | |
Jianeng Ceng | 35446d5 | 2024-01-19 09:40:50 +0800 | [diff] [blame] | 73 | # Enable the Cnvi BT Audio Offload |
| 74 | register "cnvi_bt_audio_offload" = "1" |
| 75 | |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 76 | # Intel Common SoC Config |
| 77 | #+-------------+------------------------------+ |
| 78 | #| Field | Value | |
| 79 | #+-------------+------------------------------+ |
| 80 | #| I2C0 | TPM. Early init is | |
| 81 | #| | required to set up a BAR | |
| 82 | #| | for TPM communication | |
| 83 | #| I2C1 | Touchscreen | |
| 84 | #| I2C2 | Sub-board(PSensor)/WCAM | |
| 85 | #| I2C3 | Audio | |
| 86 | #| I2C5 | Trackpad | |
| 87 | #+-------------+------------------------------+ |
| 88 | register "common_soc_config" = "{ |
| 89 | .i2c[0] = { |
| 90 | .early_init = 1, |
| 91 | .speed = I2C_SPEED_FAST_PLUS, |
| 92 | .speed_config[0] = { |
| 93 | .speed = I2C_SPEED_FAST_PLUS, |
| 94 | .scl_lcnt = 55, |
| 95 | .scl_hcnt = 30, |
| 96 | .sda_hold = 7, |
| 97 | } |
| 98 | }, |
| 99 | .i2c[1] = { |
| 100 | .speed = I2C_SPEED_FAST, |
| 101 | .speed_config[0] = { |
| 102 | .speed = I2C_SPEED_FAST, |
| 103 | .scl_lcnt = 160, |
| 104 | .scl_hcnt = 79, |
| 105 | .sda_hold = 7, |
| 106 | } |
| 107 | }, |
| 108 | .i2c[2] = { |
| 109 | .speed = I2C_SPEED_FAST, |
| 110 | .speed_config[0] = { |
| 111 | .speed = I2C_SPEED_FAST, |
| 112 | .scl_lcnt = 157, |
| 113 | .scl_hcnt = 79, |
| 114 | .sda_hold = 7, |
| 115 | } |
| 116 | }, |
| 117 | .i2c[3] = { |
| 118 | .speed = I2C_SPEED_FAST, |
| 119 | .speed_config[0] = { |
| 120 | .speed = I2C_SPEED_FAST, |
| 121 | .scl_lcnt = 157, |
| 122 | .scl_hcnt = 79, |
| 123 | .sda_hold = 7, |
| 124 | } |
| 125 | }, |
| 126 | .i2c[5] = { |
| 127 | .speed = I2C_SPEED_FAST, |
| 128 | .speed_config[0] = { |
| 129 | .speed = I2C_SPEED_FAST, |
| 130 | .scl_lcnt = 152, |
| 131 | .scl_hcnt = 79, |
| 132 | .sda_hold = 7, |
| 133 | } |
| 134 | }, |
| 135 | }" |
| 136 | |
| 137 | device domain 0 on |
| 138 | device ref dtt on |
| 139 | chip drivers/intel/dptf |
| 140 | ## sensor information |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 141 | register "options.tsr[0].desc" = ""CPU_VR"" |
| 142 | register "options.tsr[1].desc" = ""CPU"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 143 | register "options.tsr[2].desc" = ""Ambient"" |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 144 | register "options.tsr[3].desc" = ""Charger"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 145 | |
| 146 | # TODO: below values are initial reference values only |
| 147 | ## Passive Policy |
| 148 | register "policies.passive" = "{ |
| 149 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 150 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000), |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 151 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 75, 5000), |
| 152 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000), |
| 153 | [4] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_3, 75, 5000), |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 154 | }" |
| 155 | |
| 156 | ## Critical Policy |
| 157 | register "policies.critical" = "{ |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 158 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 159 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 80, SHUTDOWN), |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 160 | }" |
| 161 | |
| 162 | register "controls.power_limits" = "{ |
| 163 | .pl1 = { |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 164 | .min_power = 6000, |
| 165 | .max_power = 15000, |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 166 | .time_window_min = 28 * MSECS_PER_SEC, |
| 167 | .time_window_max = 32 * MSECS_PER_SEC, |
| 168 | .granularity = 200 |
| 169 | }, |
| 170 | .pl2 = { |
| 171 | .min_power = 25000, |
| 172 | .max_power = 25000, |
| 173 | .time_window_min = 28 * MSECS_PER_SEC, |
| 174 | .time_window_max = 32 * MSECS_PER_SEC, |
| 175 | .granularity = 1000 |
| 176 | } |
| 177 | }" |
| 178 | |
| 179 | ## Charger Performance Control (Control, mA) |
| 180 | register "controls.charger_perf" = "{ |
Weimin Wu | 5ba045c | 2023-12-13 10:15:00 +0800 | [diff] [blame] | 181 | [0] = { 255, 3000 }, |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 182 | [1] = { 24, 1500 }, |
| 183 | [2] = { 16, 1000 }, |
| 184 | [3] = { 8, 500 } |
| 185 | }" |
| 186 | |
| 187 | device generic 0 on end |
| 188 | end |
| 189 | end |
| 190 | device ref igpu on |
| 191 | chip drivers/gfx/generic |
| 192 | register "device_count" = "4" |
| 193 | # DDIA for eDP |
Matt DeVillier | 4e685bf | 2024-01-19 20:37:58 -0600 | [diff] [blame] | 194 | register "device[0].name" = ""LCD0"" |
Matt DeVillier | cf29efa | 2024-01-16 18:46:20 -0600 | [diff] [blame] | 195 | # Internal panel on the first port of the graphics chip |
Matt DeVillier | 1810a18 | 2024-01-26 16:09:42 -0600 | [diff] [blame^] | 196 | register "device[0].type" = "panel" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 197 | # DDIB for HDMI |
| 198 | # If HDMI is not enumerated in the kernel, then no GFX device should be added for DDIB |
| 199 | register "device[1].name" = ""DD01"" |
| 200 | # TCP0 (DP-1) for port C0 |
| 201 | register "device[2].name" = ""DD02"" |
| 202 | register "device[2].use_pld" = "true" |
| 203 | register "device[2].pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 204 | # TCP1 (DP-2) for port C1 |
| 205 | register "device[3].name" = ""DD03"" |
| 206 | register "device[3].use_pld" = "true" |
| 207 | register "device[3].pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 208 | device generic 0 on end |
| 209 | end |
| 210 | end |
| 211 | device ref ipu on |
| 212 | chip drivers/intel/mipi_camera |
| 213 | register "acpi_uid" = "0x50000" |
| 214 | register "acpi_name" = ""IPU0"" |
| 215 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 216 | |
| 217 | register "cio2_num_ports" = "1" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 218 | register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 219 | register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0"" |
| 220 | register "cio2_prt[0]" = "1" |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 221 | device generic 0 on |
| 222 | probe CAMERA UF_720P_WF |
| 223 | probe CAMERA UF_1080P_WF |
| 224 | end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 225 | end |
| 226 | end |
| 227 | device ref i2c1 on |
| 228 | chip drivers/i2c/hid |
| 229 | register "generic.hid" = ""ILTK0001"" |
| 230 | register "generic.desc" = ""ILITEK Touchscreen"" |
| 231 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
| 232 | register "generic.detect" = "1" |
| 233 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" |
| 234 | register "generic.reset_delay_ms" = "200" |
Weimin Wu | 10db713 | 2023-11-18 12:03:40 +0800 | [diff] [blame] | 235 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C6)" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 236 | register "generic.enable_delay_ms" = "12" |
Weimin Wu | 10db713 | 2023-11-18 12:03:40 +0800 | [diff] [blame] | 237 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" |
| 238 | register "generic.stop_off_delay_ms" = "200" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 239 | register "generic.has_power_resource" = "1" |
| 240 | register "hid_desc_reg_offset" = "0x01" |
| 241 | device i2c 41 on end |
| 242 | end |
| 243 | chip drivers/generic/gpio_keys |
| 244 | register "name" = ""PENH"" |
| 245 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)" |
| 246 | register "key.wake_gpe" = "GPE0_DW2_15" |
| 247 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
| 248 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 249 | register "key.dev_name" = ""EJCT"" |
| 250 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 251 | register "key.linux_input_type" = "EV_SW" |
| 252 | register "key.label" = ""pen_eject"" |
| 253 | device generic 0 on end |
| 254 | end |
| 255 | end |
| 256 | device ref i2c2 on |
| 257 | chip drivers/intel/mipi_camera |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 258 | register "acpi_hid" = ""OVTIDB10"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 259 | register "acpi_uid" = "0" |
| 260 | register "acpi_name" = ""CAM0"" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 261 | register "chip_name" = ""Ov 13b10 Camera"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 262 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 263 | |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 264 | register "ssdb.lanes_used" = "4" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 265 | register "ssdb.vcm_type" = "0x0C" |
| 266 | register "vcm_name" = ""VCM0"" |
| 267 | register "num_freq_entries" = "1" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 268 | register "link_freq[0]" = "560 * MHz" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 269 | register "remote_name" = ""IPU0"" |
| 270 | |
| 271 | register "has_power_resource" = "1" |
| 272 | #Controls |
| 273 | register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" |
| 274 | register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" |
| 275 | |
Weimin Wu | b8fd150 | 2023-12-18 10:16:38 +0800 | [diff] [blame] | 276 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 277 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1200_WCAM_X |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 278 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L |
| 279 | |
| 280 | #_ON |
Weimin Wu | b8fd150 | 2023-12-18 10:16:38 +0800 | [diff] [blame] | 281 | register "on_seq.ops_cnt" = "5" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 282 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 283 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 284 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
Weimin Wu | b8fd150 | 2023-12-18 10:16:38 +0800 | [diff] [blame] | 285 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 286 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 287 | |
| 288 | #_OFF |
| 289 | register "off_seq.ops_cnt" = "4" |
| 290 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 291 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 292 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 293 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 294 | |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 295 | device i2c 36 on |
| 296 | probe CAMERA UF_720P_WF |
| 297 | probe CAMERA UF_1080P_WF |
| 298 | end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 299 | end |
| 300 | chip drivers/intel/mipi_camera |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 301 | register "acpi_uid" = "2" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 302 | register "acpi_name" = ""VCM0"" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 303 | register "chip_name" = ""DW9714 VCM "" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 304 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 305 | |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 306 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 307 | |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 308 | register "has_power_resource" = "1" |
| 309 | #Controls |
| 310 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_AFVDD |
| 311 | |
| 312 | #_ON |
| 313 | register "on_seq.ops_cnt" = "1" |
| 314 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 315 | |
| 316 | #_OFF |
| 317 | register "off_seq.ops_cnt" = "1" |
| 318 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 319 | |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 320 | device i2c 0C on |
| 321 | probe CAMERA UF_720P_WF |
| 322 | probe CAMERA UF_1080P_WF |
| 323 | end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 324 | end |
| 325 | chip drivers/intel/mipi_camera |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 326 | register "acpi_uid" = "1" |
| 327 | register "acpi_name" = ""NVM0"" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 328 | register "chip_name" = ""GT24P64E"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 329 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 330 | |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 331 | register "nvm_size" = "0x2000" |
| 332 | register "nvm_pagesize" = "1" |
| 333 | register "nvm_readonly" = "1" |
| 334 | register "nvm_width" = "0x10" |
Weimin Wu | fd1c2f4 | 2023-11-17 22:12:54 +0800 | [diff] [blame] | 335 | register "nvm_compat" = ""atmel,24c64"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 336 | |
Weimin Wu | b895d55 | 2024-01-08 20:52:58 +0800 | [diff] [blame] | 337 | device i2c 50 on |
| 338 | probe CAMERA UF_720P_WF |
| 339 | probe CAMERA UF_1080P_WF |
| 340 | end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 341 | end |
| 342 | end |
| 343 | device ref i2c3 on |
| 344 | chip drivers/i2c/generic |
| 345 | register "hid" = ""10EC5650"" |
| 346 | register "name" = ""RT58"" |
| 347 | register "desc" = ""Realtek RT5650"" |
| 348 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" |
| 349 | register "property_count" = "1" |
| 350 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 351 | register "property_list[0].name" = ""realtek,jd-mode"" |
| 352 | register "property_list[0].integer" = "2" |
| 353 | device i2c 1a on end |
| 354 | end |
| 355 | end |
| 356 | device ref i2c5 on |
| 357 | chip drivers/i2c/hid |
| 358 | register "generic.hid" = ""PNP0C50"" |
| 359 | register "generic.desc" = ""PRIMAX Touchpad"" |
| 360 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" |
| 361 | register "generic.wake" = "GPE0_DW2_14" |
| 362 | register "generic.detect" = "1" |
| 363 | register "hid_desc_reg_offset" = "0x01" |
| 364 | device i2c 15 on end |
| 365 | end |
| 366 | end |
| 367 | device ref cnvi_wifi on |
| 368 | chip drivers/wifi/generic |
| 369 | register "wake" = "GPE0_PME_B0" |
| 370 | register "enable_cnvi_ddr_rfim" = "true" |
| 371 | register "add_acpi_dma_property" = "true" |
| 372 | device generic 0 on end |
| 373 | end |
| 374 | end |
| 375 | device ref pcie_rp4 on |
| 376 | # PCIe 4 WLAN |
| 377 | register "pch_pcie_rp[PCH_RP(4)]" = "{ |
| 378 | .clk_src = 2, |
| 379 | .clk_req = 2, |
| 380 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 381 | }" |
| 382 | chip drivers/wifi/generic |
| 383 | register "wake" = "GPE0_DW1_03" |
| 384 | register "add_acpi_dma_property" = "true" |
| 385 | device pci 00.0 on end |
| 386 | end |
| 387 | end |
| 388 | device ref pch_espi on |
| 389 | chip ec/google/chromeec |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 390 | use conn0 as mux_conn[0] |
| 391 | use conn1 as mux_conn[1] |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 392 | device pnp 0c09.0 on end |
| 393 | end |
| 394 | end |
| 395 | device ref pmc hidden |
| 396 | chip drivers/intel/pmc_mux |
| 397 | device generic 0 on |
| 398 | chip drivers/intel/pmc_mux/conn |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 399 | use usb2_port1 as usb2_port |
| 400 | use tcss_usb3_port2 as usb3_port |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 401 | device generic 0 alias conn0 on end |
| 402 | end |
| 403 | chip drivers/intel/pmc_mux/conn |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 404 | use usb2_port2 as usb2_port |
| 405 | use tcss_usb3_port1 as usb3_port |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 406 | device generic 1 alias conn1 on end |
| 407 | end |
| 408 | end |
| 409 | end |
| 410 | end |
| 411 | device ref tcss_xhci on |
| 412 | chip drivers/usb/acpi |
| 413 | device ref tcss_root_hub on |
| 414 | chip drivers/usb/acpi |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 415 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 416 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 417 | register "use_custom_pld" = "true" |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 418 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 419 | device ref tcss_usb3_port2 on end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 420 | end |
| 421 | chip drivers/usb/acpi |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 422 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 423 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 424 | register "use_custom_pld" = "true" |
Weimin Wu | c6fd32d | 2023-12-06 23:06:15 +0800 | [diff] [blame] | 425 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
| 426 | device ref tcss_usb3_port1 on end |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 427 | end |
| 428 | end |
| 429 | end |
| 430 | end |
| 431 | device ref xhci on |
Weimin Wu | 133e3ee | 2023-12-06 23:48:04 +0800 | [diff] [blame] | 432 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C MB (7.5 inch) |
| 433 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C DB (7.1 inch) |
| 434 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A MB (6.4 inch) |
| 435 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A DB (6.2 inch) |
| 436 | register "usb2_ports[4]" = "USB2_PORT_SHORT(OC_SKIP)" # LTE (3.3 inch) |
| 437 | register "usb2_ports[5]" = "USB2_PORT_SHORT(OC_SKIP)" # UFC (3.7 inch) |
| 438 | register "usb2_ports[7]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth port for PCIe WLAN (2.5 inch) |
| 439 | register "usb2_ports[9]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth port for CNVi WLAN |
Weimin Wu | 6215ef4 | 2023-12-08 10:58:20 +0800 | [diff] [blame] | 440 | |
| 441 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 Type-A port A0(MLB)) |
| 442 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 Type-A port A1(DB) |
| 443 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 WWAN(LTE) |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 444 | chip drivers/usb/acpi |
| 445 | device ref xhci_root_hub on |
| 446 | chip drivers/usb/acpi |
| 447 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 448 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 449 | register "use_custom_pld" = "true" |
| 450 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))" |
| 451 | device ref usb2_port1 on end |
| 452 | end |
| 453 | chip drivers/usb/acpi |
| 454 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 455 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 456 | register "use_custom_pld" = "true" |
| 457 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))" |
| 458 | device ref usb2_port2 on end |
| 459 | end |
| 460 | chip drivers/usb/acpi |
| 461 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 462 | register "type" = "UPC_TYPE_A" |
| 463 | register "use_custom_pld" = "true" |
| 464 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 465 | device ref usb2_port3 on end |
| 466 | end |
| 467 | chip drivers/usb/acpi |
| 468 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 469 | register "type" = "UPC_TYPE_A" |
| 470 | register "use_custom_pld" = "true" |
| 471 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 472 | device ref usb2_port4 on end |
| 473 | end |
| 474 | chip drivers/usb/acpi |
| 475 | register "desc" = ""USB2 LTE"" |
| 476 | register "type" = "UPC_TYPE_INTERNAL" |
| 477 | device ref usb2_port5 on end |
| 478 | end |
| 479 | chip drivers/usb/acpi |
| 480 | register "desc" = ""USB2 UFC"" |
| 481 | register "type" = "UPC_TYPE_INTERNAL" |
| 482 | device ref usb2_port6 on end |
| 483 | end |
| 484 | chip drivers/usb/acpi |
Weimin Wu | b667e27 | 2023-11-14 16:14:25 +0800 | [diff] [blame] | 485 | register "desc" = ""PCIe Bluetooth"" |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 486 | register "type" = "UPC_TYPE_INTERNAL" |
| 487 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 488 | device ref usb2_port8 on end |
| 489 | end |
| 490 | chip drivers/usb/acpi |
Weimin Wu | b667e27 | 2023-11-14 16:14:25 +0800 | [diff] [blame] | 491 | register "desc" = ""CNVi Bluetooth"" |
| 492 | register "type" = "UPC_TYPE_INTERNAL" |
| 493 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 494 | device ref usb2_port10 on end |
| 495 | end |
| 496 | chip drivers/usb/acpi |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 497 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 498 | register "type" = "UPC_TYPE_USB3_A" |
| 499 | register "use_custom_pld" = "true" |
| 500 | register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))" |
| 501 | device ref usb3_port1 on end |
| 502 | end |
| 503 | chip drivers/usb/acpi |
| 504 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 505 | register "type" = "UPC_TYPE_USB3_A" |
| 506 | register "use_custom_pld" = "true" |
| 507 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 508 | device ref usb3_port2 on end |
| 509 | end |
| 510 | chip drivers/usb/acpi |
| 511 | register "desc" = ""USB3 WWAN"" |
| 512 | register "type" = "UPC_TYPE_INTERNAL" |
| 513 | device ref usb3_port3 on end |
| 514 | end |
| 515 | chip drivers/usb/acpi |
| 516 | register "desc" = ""USB3 WLAN"" |
| 517 | register "type" = "UPC_TYPE_INTERNAL" |
| 518 | device ref usb3_port4 on end |
| 519 | end |
| 520 | end |
| 521 | end |
| 522 | end |
Weimin Wu | 9b2d96e | 2023-12-15 14:52:51 +0800 | [diff] [blame] | 523 | device ref pcie_rp7 off end # SDCard |
wuweimin | 5bd3de2 | 2023-10-18 11:49:50 +0800 | [diff] [blame] | 524 | device ref hda on |
| 525 | chip drivers/sof |
| 526 | register "spkr_tplg" = "rt5650_sp" |
| 527 | register "jack_tplg" = "rt5650_hp" |
| 528 | register "mic_tplg" = "_2ch_pdm0" |
| 529 | device generic 0 on end |
| 530 | end |
| 531 | end |
| 532 | end |
wuweimin | 94f3866 | 2023-10-13 22:08:39 +0800 | [diff] [blame] | 533 | end |