raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
Sumeet R Pawnikar | 309ccf7 | 2020-05-09 16:37:30 +0530 | [diff] [blame] | 2 | register "power_limits_config" = "{ |
| 3 | .tdp_pl1_override = 15, |
| 4 | .tdp_pl2_override = 51, |
| 5 | }" |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 6 | |
| 7 | register "SerialIoDevMode" = "{ |
| 8 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 10 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 13 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 14 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 15 | [PchSerialIoIndexSPI1] = PchSerialIoDisabled, |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 16 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 17 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 18 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 19 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 20 | }" |
| 21 | |
| 22 | # No PCIe WiFi |
| 23 | register "PcieRpEnable[13]" = "0" |
| 24 | |
| 25 | # Enable DMIC1 |
| 26 | register "PchHdaAudioLinkDmic1" = "1" |
| 27 | |
Seunghwan Kim | 24a65f8 | 2020-04-23 14:04:38 +0900 | [diff] [blame] | 28 | register "usb2_ports[0]" = "USB2_PORT_SHORT(OC2)" # Type-C Port 0 |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 29 | register "usb2_ports[1]" = "USB2_PORT_LONG(OC2)" # Type-C Port 1 |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 30 | register "usb2_ports[6]" = "USB2_PORT_LONG(OC_SKIP)" # Camera |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 31 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # CnVi BT |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 32 | |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 33 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 0 |
| 34 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 1 |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 35 | |
| 36 | # Intel Common SoC Config |
| 37 | #+-------------------+---------------------------+ |
| 38 | #| Field | Value | |
| 39 | #+-------------------+---------------------------+ |
| 40 | #| I2C0 | Trackpad | |
| 41 | #| I2C1 | Touchscreen | |
| 42 | #| I2C2 | Digitizer | |
| 43 | #| I2C4 | Audio | |
| 44 | #+-------------------+---------------------------+ |
| 45 | register "common_soc_config" = "{ |
| 46 | .i2c[0] = { |
| 47 | .speed = I2C_SPEED_FAST, |
| 48 | .rise_time_ns = 135, |
| 49 | .fall_time_ns = 45, |
| 50 | }, |
| 51 | .i2c[1] = { |
| 52 | .speed = I2C_SPEED_FAST, |
| 53 | .rise_time_ns = 60, |
| 54 | .fall_time_ns = 25, |
| 55 | }, |
| 56 | .i2c[2] = { |
| 57 | .speed = I2C_SPEED_FAST, |
| 58 | .rise_time_ns = 95, |
| 59 | .fall_time_ns = 55, |
| 60 | }, |
| 61 | .i2c[4] = { |
| 62 | .speed = I2C_SPEED_FAST, |
| 63 | .rise_time_ns = 104, |
| 64 | .fall_time_ns = 52, |
| 65 | }, |
| 66 | .gspi[0] = { |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 67 | .speed_mhz = 1, |
| 68 | .early_init = 1, |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 69 | }, |
| 70 | }" |
| 71 | |
| 72 | # GPIO for SD card detect |
| 73 | register "sdcard_cd_gpio" = "vSD3_CD_B" |
| 74 | |
| 75 | # Enable eMMC HS400 |
| 76 | register "ScsEmmcHs400Enabled" = "1" |
| 77 | |
| 78 | # EMMC Tx CMD Delay |
| 79 | # Refer to EDS-Vol2-14.3.7. |
| 80 | # [14:8] steps of delay for DDR mode, each 125ps, range: 0 - 39. |
| 81 | # [6:0] steps of delay for SDR mode, each 125ps, range: 0 - 39. |
| 82 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 83 | |
| 84 | # EMMC TX DATA Delay 1 |
| 85 | # Refer to EDS-Vol2-14.3.8. |
| 86 | # [14:8] steps of delay for HS400, each 125ps, range: 0 - 78. |
| 87 | # [6:0] steps of delay for SDR104/HS200, each 125ps, range: 0 - 79. |
| 88 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x911" |
| 89 | |
| 90 | # EMMC TX DATA Delay 2 |
| 91 | # Refer to EDS-Vol2-14.3.9. |
| 92 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 79. |
| 93 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 94 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 -79. |
| 95 | # [6:0] steps of delay for SDR12, each 125ps. Range: 0 - 79. |
| 96 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C262828" |
| 97 | |
| 98 | # EMMC RX CMD/DATA Delay 1 |
| 99 | # Refer to EDS-Vol2-14.3.10. |
| 100 | # [30:24] steps of delay for SDR50, each 125ps, range: 0 - 119. |
| 101 | # [22:16] steps of delay for DDR50, each 125ps, range: 0 - 78. |
| 102 | # [14:8] steps of delay for SDR25/HS50, each 125ps, range: 0 - 119. |
| 103 | # [6:0] steps of delay for SDR12, each 125ps, range: 0 - 119. |
| 104 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C16583b" |
| 105 | |
| 106 | # EMMC RX CMD/DATA Delay 2 |
| 107 | # Refer to EDS-Vol2-14.3.12. |
| 108 | # [17:16] stands for Rx Clock before Output Buffer, |
| 109 | # 00: Rx clock after output buffer, |
| 110 | # 01: Rx clock before output buffer, |
| 111 | # 10: Automatic selection based on working mode. |
| 112 | # 11: Reserved |
| 113 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps, range: 0 - 39. |
| 114 | # [6:0] steps of delay for HS200, each 125ps, range: 0 - 79. |
| 115 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x1001D" |
| 116 | |
| 117 | # EMMC Rx Strobe Delay |
| 118 | # Refer to EDS-Vol2-14.3.11. |
| 119 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps, range: 0 - 39. |
| 120 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps, range: 0 - 39. |
| 121 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x1515" |
| 122 | |
| 123 | device domain 0 on |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 124 | device ref igpu on |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 125 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 126 | end |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 127 | device ref xhci on |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 128 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 129 | device ref xhci_root_hub on |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 130 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 131 | device ref usb2_port3 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 132 | end |
| 133 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 134 | device ref usb2_port4 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 135 | end |
| 136 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 137 | device ref usb2_port5 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 138 | end |
| 139 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 140 | device ref usb2_port6 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 141 | end |
| 142 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 143 | device ref usb2_port8 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 144 | end |
| 145 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 146 | device ref usb2_port9 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 147 | end |
| 148 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 149 | device ref usb3_port3 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 150 | end |
| 151 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 152 | device ref usb3_port4 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 153 | end |
| 154 | chip drivers/usb/acpi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 155 | device ref usb3_port5 off end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 156 | end |
| 157 | end |
| 158 | end |
| 159 | end |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 160 | device ref sdxc on end |
| 161 | device ref i2c0 on |
Seunghwan Kim | 2144bb5 | 2020-03-17 16:18:27 +0900 | [diff] [blame] | 162 | chip drivers/i2c/generic |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 163 | register "hid" = ""ELAN0000"" |
| 164 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 165 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 166 | register "detect" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 167 | register "wake" = "GPE0_DW0_21" |
| 168 | device i2c 0x15 on end |
| 169 | end |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 170 | end |
| 171 | device ref i2c1 on |
Seunghwan Kim | 2144bb5 | 2020-03-17 16:18:27 +0900 | [diff] [blame] | 172 | chip drivers/i2c/hid |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 173 | register "generic.hid" = ""ELAN902C"" |
| 174 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 175 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 176 | register "generic.detect" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 177 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)" |
| 178 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 179 | register "generic.reset_delay_ms" = "20" |
| 180 | register "generic.has_power_resource" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 181 | register "hid_desc_reg_offset" = "0x01" |
| 182 | device i2c 0x10 on end |
| 183 | end |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 184 | end |
| 185 | device ref i2c4 on |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 186 | chip drivers/i2c/da7219 |
| 187 | # TODO: these settings were copied from another board |
| 188 | # with the same chip. verify the settings |
| 189 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 190 | register "btn_cfg" = "50" |
Terry Cheong | 053c901 | 2023-12-12 11:04:33 +0800 | [diff] [blame^] | 191 | register "mic_det_thr" = "200" |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 192 | register "jack_ins_deb" = "20" |
| 193 | register "jack_det_rate" = ""32ms_64ms"" |
| 194 | register "jack_rem_deb" = "1" |
| 195 | register "a_d_btn_thr" = "0xa" |
| 196 | register "d_b_btn_thr" = "0x16" |
| 197 | register "b_c_btn_thr" = "0x21" |
| 198 | register "c_mic_btn_thr" = "0x3e" |
| 199 | register "btn_avg" = "4" |
| 200 | register "adc_1bit_rpt" = "1" |
| 201 | register "micbias_lvl" = "2600" |
| 202 | register "mic_amp_in_sel" = ""diff"" |
| 203 | device i2c 0x1a on end |
| 204 | end |
Seunghwan Kim | a1d0fb0 | 2020-05-07 13:26:57 +0900 | [diff] [blame] | 205 | chip drivers/i2c/max98390 |
| 206 | register "desc" = ""MAX98390 Speaker Amp 0"" |
| 207 | register "uid" = "0" |
| 208 | register "name" = ""MXW0"" |
| 209 | register "r0_calib_key" = ""dsm_calib_r0_0"" |
| 210 | register "temperature_calib_key" = ""dsm_calib_temp_0"" |
| 211 | device i2c 0x38 on end |
| 212 | end |
| 213 | chip drivers/i2c/max98390 |
| 214 | register "desc" = ""MAX98390 Speaker Amp 1"" |
| 215 | register "uid" = "1" |
| 216 | register "name" = ""MXW1"" |
| 217 | register "r0_calib_key" = ""dsm_calib_r0_1"" |
| 218 | register "temperature_calib_key" = ""dsm_calib_temp_1"" |
| 219 | device i2c 0x39 on end |
| 220 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 221 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 222 | # No PCIe WiFi |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 223 | device ref pcie_rp14 off end |
| 224 | device ref emmc on end |
| 225 | device ref hda on |
Matt DeVillier | 10e92831 | 2023-01-17 11:24:25 -0600 | [diff] [blame] | 226 | chip drivers/sof |
| 227 | register "spkr_tplg" = "max98390" |
| 228 | register "jack_tplg" = "da7219" |
| 229 | register "mic_tplg" = "_2ch_pdm0" |
| 230 | device generic 0 on end |
| 231 | end |
Matt DeVillier | b0b659a | 2023-10-22 18:46:25 -0500 | [diff] [blame] | 232 | end |
| 233 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 234 | end |