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 | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 124 | device pci 02.0 on # Integrated Graphics Device |
| 125 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 126 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 127 | device pci 14.0 on |
| 128 | chip drivers/usb/acpi |
| 129 | device usb 0.0 on |
| 130 | chip drivers/usb/acpi |
| 131 | register "desc" = ""Left Type-C Port"" |
| 132 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 133 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 134 | device usb 2.0 on end |
| 135 | end |
| 136 | chip drivers/usb/acpi |
| 137 | register "desc" = ""Right Type-C Port"" |
| 138 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 139 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 140 | device usb 2.1 on end |
| 141 | end |
| 142 | chip drivers/usb/acpi |
| 143 | device usb 2.2 off end |
| 144 | end |
| 145 | chip drivers/usb/acpi |
| 146 | device usb 2.3 off end |
| 147 | end |
| 148 | chip drivers/usb/acpi |
| 149 | device usb 2.4 off end |
| 150 | end |
| 151 | chip drivers/usb/acpi |
| 152 | device usb 2.5 off end |
| 153 | end |
| 154 | chip drivers/usb/acpi |
| 155 | register "desc" = ""Camera"" |
| 156 | register "type" = "UPC_TYPE_INTERNAL" |
| 157 | device usb 2.6 on end |
| 158 | end |
| 159 | chip drivers/usb/acpi |
| 160 | device usb 2.7 off end |
| 161 | end |
| 162 | chip drivers/usb/acpi |
| 163 | device usb 2.8 off end |
| 164 | end |
| 165 | chip drivers/usb/acpi |
| 166 | register "desc" = ""Bluetooth"" |
| 167 | register "type" = "UPC_TYPE_INTERNAL" |
| 168 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C14)" |
| 169 | device usb 2.9 on end |
| 170 | end |
| 171 | chip drivers/usb/acpi |
| 172 | register "desc" = ""Left Type-C Port"" |
| 173 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 174 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 175 | device usb 3.0 on end |
| 176 | end |
| 177 | chip drivers/usb/acpi |
| 178 | register "desc" = ""Right Type-C Port"" |
| 179 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 180 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 181 | device usb 3.1 on end |
| 182 | end |
| 183 | chip drivers/usb/acpi |
| 184 | device usb 3.2 off end |
| 185 | end |
| 186 | chip drivers/usb/acpi |
| 187 | device usb 3.3 off end |
| 188 | end |
| 189 | chip drivers/usb/acpi |
| 190 | device usb 3.4 off end |
| 191 | end |
| 192 | end |
| 193 | end |
| 194 | end |
| 195 | |
Matt DeVillier | 53f4caf | 2023-10-22 13:40:06 -0500 | [diff] [blame] | 196 | device pci 14.5 on end # SDCard |
| 197 | |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 198 | device pci 15.0 on |
Seunghwan Kim | 2144bb5 | 2020-03-17 16:18:27 +0900 | [diff] [blame] | 199 | chip drivers/i2c/generic |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 200 | register "hid" = ""ELAN0000"" |
| 201 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 202 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 203 | register "detect" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 204 | register "wake" = "GPE0_DW0_21" |
| 205 | device i2c 0x15 on end |
| 206 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 207 | end # I2C 0 |
| 208 | |
| 209 | device pci 15.1 on |
Seunghwan Kim | 2144bb5 | 2020-03-17 16:18:27 +0900 | [diff] [blame] | 210 | chip drivers/i2c/hid |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 211 | register "generic.hid" = ""ELAN902C"" |
| 212 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 213 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 214 | register "generic.detect" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 215 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)" |
| 216 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 217 | register "generic.reset_delay_ms" = "20" |
| 218 | register "generic.has_power_resource" = "1" |
Elyes HAOUAS | bfa8166 | 2020-03-25 08:05:28 +0100 | [diff] [blame] | 219 | register "hid_desc_reg_offset" = "0x01" |
| 220 | device i2c 0x10 on end |
| 221 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 222 | end # I2C #1 |
| 223 | |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 224 | device pci 19.0 on |
| 225 | chip drivers/i2c/da7219 |
| 226 | # TODO: these settings were copied from another board |
| 227 | # with the same chip. verify the settings |
| 228 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 229 | register "btn_cfg" = "50" |
| 230 | register "mic_det_thr" = "500" |
| 231 | register "jack_ins_deb" = "20" |
| 232 | register "jack_det_rate" = ""32ms_64ms"" |
| 233 | register "jack_rem_deb" = "1" |
| 234 | register "a_d_btn_thr" = "0xa" |
| 235 | register "d_b_btn_thr" = "0x16" |
| 236 | register "b_c_btn_thr" = "0x21" |
| 237 | register "c_mic_btn_thr" = "0x3e" |
| 238 | register "btn_avg" = "4" |
| 239 | register "adc_1bit_rpt" = "1" |
| 240 | register "micbias_lvl" = "2600" |
| 241 | register "mic_amp_in_sel" = ""diff"" |
| 242 | device i2c 0x1a on end |
| 243 | end |
Seunghwan Kim | a1d0fb0 | 2020-05-07 13:26:57 +0900 | [diff] [blame] | 244 | chip drivers/i2c/max98390 |
| 245 | register "desc" = ""MAX98390 Speaker Amp 0"" |
| 246 | register "uid" = "0" |
| 247 | register "name" = ""MXW0"" |
| 248 | register "r0_calib_key" = ""dsm_calib_r0_0"" |
| 249 | register "temperature_calib_key" = ""dsm_calib_temp_0"" |
| 250 | device i2c 0x38 on end |
| 251 | end |
| 252 | chip drivers/i2c/max98390 |
| 253 | register "desc" = ""MAX98390 Speaker Amp 1"" |
| 254 | register "uid" = "1" |
| 255 | register "name" = ""MXW1"" |
| 256 | register "r0_calib_key" = ""dsm_calib_r0_1"" |
| 257 | register "temperature_calib_key" = ""dsm_calib_temp_1"" |
| 258 | device i2c 0x39 on end |
| 259 | end |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 260 | end |
| 261 | |
| 262 | # No PCIe WiFi |
| 263 | device pci 1d.5 off end |
| 264 | device pci 1a.0 on end #eMMC |
Matt DeVillier | 10e92831 | 2023-01-17 11:24:25 -0600 | [diff] [blame] | 265 | device pci 1f.3 on |
| 266 | chip drivers/sof |
| 267 | register "spkr_tplg" = "max98390" |
| 268 | register "jack_tplg" = "da7219" |
| 269 | register "mic_tplg" = "_2ch_pdm0" |
| 270 | device generic 0 on end |
| 271 | end |
| 272 | end # Intel HDA |
raymondchung | d1f3022 | 2020-02-11 15:07:39 +0800 | [diff] [blame] | 273 | end # domain |
| 274 | end |