Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
| 2 | |
| 3 | register "SerialIoDevMode" = "{ |
| 4 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 5 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame^] | 6 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 7 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 8 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame^] | 9 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 10 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexSPI1] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 13 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 14 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 15 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 16 | }" |
| 17 | |
| 18 | # VR Slew rate setting |
| 19 | register "AcousticNoiseMitigation" = "1" |
| 20 | register "SlowSlewRateForIa" = "2" |
| 21 | register "SlowSlewRateForGt" = "2" |
| 22 | register "SlowSlewRateForSa" = "2" |
| 23 | register "FastPkgCRampDisableIa" = "1" |
| 24 | register "FastPkgCRampDisableGt" = "1" |
| 25 | register "FastPkgCRampDisableSa" = "1" |
| 26 | |
Sumeet R Pawnikar | 309ccf7 | 2020-05-09 16:37:30 +0530 | [diff] [blame] | 27 | register "power_limits_config" = "{ |
| 28 | .tdp_pl1_override = 25, |
| 29 | .tdp_pl2_override = 44, |
| 30 | }" |
John Su | 8eaa5dc | 2020-05-08 17:29:48 +0800 | [diff] [blame] | 31 | |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 32 | # Intel Common SoC Config |
| 33 | #+-------------------+---------------------------+ |
| 34 | #| Field | Value | |
| 35 | #+-------------------+---------------------------+ |
| 36 | #| GSPI0 | cr50 TPM. Early init is | |
| 37 | #| | required to set up a BAR | |
| 38 | #| | for TPM communication | |
| 39 | #| | before memory is up | |
| 40 | #| GSPI1 | FP MCU | |
| 41 | #| I2C0 | Touchpad | |
| 42 | #| I2C1 | Touch screen | |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame^] | 43 | #| I2C3 | Proximity sensor | |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 44 | #| I2C4 | Audio | |
| 45 | #+-------------------+---------------------------+ |
| 46 | register "common_soc_config" = "{ |
| 47 | .gspi[0] = { |
| 48 | .speed_mhz = 1, |
| 49 | .early_init = 1, |
| 50 | }, |
| 51 | .i2c[0] = { |
| 52 | .speed = I2C_SPEED_FAST, |
| 53 | .rise_time_ns = 50, |
| 54 | .fall_time_ns = 15, |
| 55 | }, |
| 56 | .i2c[1] = { |
| 57 | .speed = I2C_SPEED_FAST, |
| 58 | .rise_time_ns = 60, |
| 59 | .fall_time_ns = 25, |
| 60 | }, |
| 61 | .i2c[3] = { |
| 62 | .speed = I2C_SPEED_FAST, |
| 63 | .rise_time_ns = 150, |
| 64 | .fall_time_ns = 150, |
| 65 | }, |
| 66 | .i2c[4] = { |
| 67 | .speed = I2C_SPEED_FAST, |
| 68 | .rise_time_ns = 120, |
| 69 | .fall_time_ns = 120, |
| 70 | }, |
| 71 | }" |
| 72 | |
Amanda Huang | b48148f | 2020-02-04 11:36:43 +0800 | [diff] [blame] | 73 | # PCIe port 7 for M.2 E-key WLAN |
| 74 | register "PcieRpEnable[6]" = "1" |
| 75 | register "PcieRpLtrEnable[6]" = "1" |
| 76 | # RP 7 uses CLK SRC 3 |
| 77 | register "PcieClkSrcUsage[3]" = "6" |
| 78 | register "PcieClkSrcClkReq[3]" = "3" |
| 79 | |
| 80 | # Enable Root port 13 (x4) for dGPU |
| 81 | register "PcieRpEnable[12]" = "1" |
| 82 | register "PcieRpLtrEnable[12]" = "1" |
| 83 | # RP 13 uses CLK SRC 5 |
| 84 | register "PcieClkSrcUsage[5]" = "12" |
| 85 | # ClkReq-to-ClkSrc mapping for CLK SRC 5 |
| 86 | register "PcieClkSrcClkReq[5]" = "5" |
| 87 | |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 88 | # GPIO for SD card detect |
| 89 | register "sdcard_cd_gpio" = "vSD3_CD_B" |
| 90 | |
| 91 | device domain 0 on |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 92 | device pci 02.0 on # Integrated Graphics Device |
| 93 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 94 | end |
Matt DeVillier | 53f4caf | 2023-10-22 13:40:06 -0500 | [diff] [blame] | 95 | device pci 14.5 on end # SDCard |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 96 | device pci 15.0 on |
| 97 | chip drivers/i2c/generic |
| 98 | register "hid" = ""ELAN0000"" |
| 99 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 100 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 101 | register "wake" = "GPE0_DW0_21" |
| 102 | device i2c 15 on end |
| 103 | end |
| 104 | end # I2C #0 |
| 105 | device pci 15.1 on |
| 106 | chip drivers/i2c/generic |
| 107 | register "hid" = ""ELAN0001"" |
| 108 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 109 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 110 | register "detect" = "1" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 111 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 112 | register "reset_delay_ms" = "100" |
| 113 | register "reset_off_delay_ms" = "5" |
Matt DeVillier | 4534ed7 | 2022-12-18 18:40:34 -0600 | [diff] [blame] | 114 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 115 | register "enable_delay_ms" = "10" |
| 116 | register "enable_off_delay_ms" = "1" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 117 | register "has_power_resource" = "1" |
| 118 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 119 | register "stop_off_delay_ms" = "5" |
| 120 | device i2c 49 on end |
| 121 | end |
| 122 | chip drivers/i2c/hid |
| 123 | register "generic.hid" = ""GDIX0000"" |
| 124 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 125 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 126 | register "generic.detect" = "1" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 127 | register "generic.reset_gpio" = |
| 128 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 129 | register "generic.reset_delay_ms" = "120" |
| 130 | register "generic.reset_off_delay_ms" = "3" |
| 131 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 132 | register "generic.enable_delay_ms" = "12" |
| 133 | register "generic.has_power_resource" = "1" |
| 134 | register "hid_desc_reg_offset" = "0x01" |
| 135 | device i2c 5d on end |
| 136 | end |
| 137 | chip drivers/generic/gpio_keys |
| 138 | register "name" = ""PENH"" |
| 139 | register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A8)" |
Furquan Shaikh | fa8b75f | 2020-06-26 01:19:46 -0700 | [diff] [blame] | 140 | register "key.wake_gpe" = "GPE0_DW0_08" |
| 141 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 142 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 143 | register "key.dev_name" = ""EJCT"" |
| 144 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 145 | register "key.linux_input_type" = "EV_SW" |
| 146 | register "key.label" = ""pen_eject"" |
| 147 | device generic 0 on end |
| 148 | end |
| 149 | end # I2C #1 |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 150 | device pci 15.3 on |
| 151 | chip drivers/i2c/sx9310 |
| 152 | register "desc" = ""SAR Proximity Sensor"" |
| 153 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A0)" |
| 154 | register "speed" = "I2C_SPEED_FAST" |
| 155 | register "uid" = "1" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 156 | register "cs0_ground" = "0x0" |
Gwendal Grignou | 2f135a9 | 2021-03-22 12:59:02 -0700 | [diff] [blame] | 157 | register "combined_sensors_count" = "2" |
| 158 | register "combined_sensors[0]" = "1" |
| 159 | register "combined_sensors[1]" = "2" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 160 | register "resolution" = "SX9310_FINEST" |
| 161 | register "avg_pos_strength" = "512" |
Gwendal Grignou | 2f135a9 | 2021-03-22 12:59:02 -0700 | [diff] [blame] | 162 | register "startup_sensor" = "1" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 163 | register "proxraw_strength" = "0" |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 164 | device i2c 28 on end |
| 165 | end |
| 166 | end # I2C #3 |
| 167 | device pci 19.0 on |
| 168 | chip drivers/i2c/generic |
| 169 | register "hid" = ""10EC5682"" |
| 170 | register "name" = ""RT58"" |
| 171 | register "desc" = ""Realtek RT5682"" |
| 172 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 173 | register "property_count" = "1" |
| 174 | # Set the jd_src to RT5668_JD1 for jack detection |
| 175 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 176 | register "property_list[0].name" = ""realtek,jd-src"" |
| 177 | register "property_list[0].integer" = "1" |
| 178 | device i2c 1a on end |
| 179 | end |
| 180 | end #I2C #4 |
| 181 | device pci 1e.3 on |
| 182 | chip drivers/spi/acpi |
| 183 | register "name" = ""CRFP"" |
| 184 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 185 | register "uid" = "1" |
| 186 | register "compat_string" = ""google,cros-ec-spi"" |
| 187 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 188 | register "wake" = "GPE0_DW0_23" |
| 189 | device spi 1 on end |
| 190 | end # FPMCU |
| 191 | end # GSPI #1 |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 192 | device pci 1f.3 on |
| 193 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 194 | register "hid" = ""MX98357A"" |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 195 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 196 | register "sdmode_delay" = "5" |
| 197 | device generic 0 on end |
| 198 | end |
Matt DeVillier | 10e92831 | 2023-01-17 11:24:25 -0600 | [diff] [blame] | 199 | chip drivers/sof |
| 200 | register "spkr_tplg" = "max98357a" |
| 201 | register "jack_tplg" = "rt5682" |
| 202 | register "mic_tplg" = "_2ch_pdm0" |
| 203 | device generic 0 on end |
| 204 | end |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 205 | end # Intel HDA |
Bob Moragues | f82fa74 | 2019-12-06 14:20:00 -0800 | [diff] [blame] | 206 | end |
| 207 | |
| 208 | end |