Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +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 | }" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +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, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame^] | 13 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 14 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 15 | [PchSerialIoIndexSPI1] = PchSerialIoPci, |
| 16 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 17 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 18 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 19 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 20 | }" |
| 21 | |
Wisley Chen | eae254e | 2020-01-06 17:44:10 +0800 | [diff] [blame] | 22 | # VR Slew rate setting |
| 23 | register "AcousticNoiseMitigation" = "1" |
| 24 | register "SlowSlewRateForIa" = "2" |
| 25 | register "SlowSlewRateForGt" = "2" |
Wisley Chen | eae254e | 2020-01-06 17:44:10 +0800 | [diff] [blame] | 26 | register "FastPkgCRampDisableIa" = "1" |
| 27 | register "FastPkgCRampDisableGt" = "1" |
| 28 | register "FastPkgCRampDisableSa" = "1" |
| 29 | |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 30 | # Intel Common SoC Config |
| 31 | #+-------------------+---------------------------+ |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 32 | #| Field | Value | |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 33 | #+-------------------+---------------------------+ |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 34 | #| GSPI0 | cr50 TPM. Early init is | |
| 35 | #| | required to set up a BAR | |
| 36 | #| | for TPM communication | |
| 37 | #| | before memory is up | |
| 38 | #| GSPI1 | FP MCU | |
| 39 | #| I2C0 | Touchpad | |
| 40 | #| I2C1 | Touch screen | |
| 41 | #| I2C4 | Audio | |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 42 | #+-------------------+---------------------------+ |
| 43 | register "common_soc_config" = "{ |
| 44 | .gspi[0] = { |
| 45 | .speed_mhz = 1, |
| 46 | .early_init = 1, |
| 47 | }, |
| 48 | .i2c[0] = { |
| 49 | .speed = I2C_SPEED_FAST, |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 50 | .rise_time_ns = 50, |
| 51 | .fall_time_ns = 15, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 52 | }, |
| 53 | .i2c[1] = { |
| 54 | .speed = I2C_SPEED_FAST, |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 55 | .rise_time_ns = 60, |
| 56 | .fall_time_ns = 25, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 57 | }, |
| 58 | .i2c[4] = { |
| 59 | .speed = I2C_SPEED_FAST, |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 60 | .rise_time_ns = 60, |
| 61 | .fall_time_ns = 60, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 62 | }, |
| 63 | }" |
| 64 | |
| 65 | # GPIO for SD card detect |
| 66 | register "sdcard_cd_gpio" = "vSD3_CD_B" |
| 67 | |
| 68 | # Enable eMMC HS400 |
| 69 | register "ScsEmmcHs400Enabled" = "1" |
| 70 | |
| 71 | device domain 0 on |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 72 | device ref igpu on |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 73 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 74 | end |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 75 | device ref sdxc on end |
| 76 | device ref i2c0 on |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 77 | chip drivers/i2c/generic |
| 78 | register "hid" = ""ELAN0000"" |
| 79 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 80 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 81 | register "wake" = "GPE0_DW0_21" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 82 | register "detect" = "1" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 83 | device i2c 15 on end |
| 84 | end |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 85 | end |
| 86 | device ref i2c1 on |
Wisley Chen | 31f5283 | 2019-09-19 15:20:45 +0800 | [diff] [blame] | 87 | chip drivers/i2c/hid |
| 88 | register "generic.hid" = ""GTCH7503"" |
| 89 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 90 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 91 | register "generic.detect" = "1" |
Wisley Chen | 31f5283 | 2019-09-19 15:20:45 +0800 | [diff] [blame] | 92 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 93 | register "generic.reset_delay_ms" = "50" |
| 94 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 95 | register "generic.enable_delay_ms" = "1" |
| 96 | register "generic.has_power_resource" = "1" |
Wisley Chen | 31f5283 | 2019-09-19 15:20:45 +0800 | [diff] [blame] | 97 | register "hid_desc_reg_offset" = "0x01" |
| 98 | device i2c 40 on end |
| 99 | end |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 100 | chip drivers/i2c/generic |
| 101 | register "hid" = ""ELAN0001"" |
| 102 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 103 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 104 | register "detect" = "1" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 105 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 106 | register "reset_delay_ms" = "100" |
| 107 | register "reset_off_delay_ms" = "5" |
| 108 | register "has_power_resource" = "1" |
Wisley Chen | f88c0115 | 2019-10-15 21:23:16 +0800 | [diff] [blame] | 109 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 110 | register "enable_delay_ms" = "10" |
| 111 | register "enable_off_delay_ms" = "1" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 112 | device i2c 10 on end |
| 113 | end |
| 114 | chip drivers/i2c/hid |
| 115 | register "generic.hid" = ""GDIX0000"" |
| 116 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 117 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 118 | register "generic.detect" = "1" |
Wisley Chen | 7bb9606 | 2019-10-15 17:46:38 +0800 | [diff] [blame] | 119 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 120 | register "generic.reset_delay_ms" = "120" |
| 121 | register "generic.reset_off_delay_ms" = "3" |
| 122 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 123 | register "generic.enable_delay_ms" = "10" |
| 124 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 125 | register "generic.stop_off_delay_ms" = "20" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 126 | register "generic.has_power_resource" = "1" |
| 127 | register "hid_desc_reg_offset" = "0x01" |
| 128 | device i2c 5d on end |
| 129 | end |
Wisley Chen | ad4bf67 | 2019-10-18 15:15:01 +0800 | [diff] [blame] | 130 | chip drivers/i2c/hid |
| 131 | register "generic.hid" = ""ELAN2513"" |
| 132 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 133 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 134 | register "generic.detect" = "1" |
Wisley Chen | ad4bf67 | 2019-10-18 15:15:01 +0800 | [diff] [blame] | 135 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 136 | register "generic.reset_delay_ms" = "20" |
| 137 | register "generic.reset_off_delay_ms" = "2" |
| 138 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 139 | register "generic.enable_delay_ms" = "10" |
| 140 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 141 | register "generic.stop_delay_ms" = "130" |
| 142 | register "generic.has_power_resource" = "1" |
| 143 | register "hid_desc_reg_offset" = "0x01" |
| 144 | device i2c 15 on end |
| 145 | end |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 146 | end # I2C #1 |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 147 | device ref i2c4 on |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 148 | chip drivers/i2c/generic |
| 149 | register "hid" = ""10EC5682"" |
| 150 | register "name" = ""RT58"" |
| 151 | register "desc" = ""Realtek RT5682"" |
| 152 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 153 | register "property_count" = "1" |
| 154 | # Set the jd_src to RT5668_JD1 for jack detection |
| 155 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 156 | register "property_list[0].name" = ""realtek,jd-src"" |
| 157 | register "property_list[0].integer" = "1" |
| 158 | device i2c 1a on end |
| 159 | end |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 160 | end |
| 161 | device ref emmc on end |
| 162 | device ref gspi1 on |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 163 | chip drivers/spi/acpi |
| 164 | register "name" = ""CRFP"" |
| 165 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 166 | register "uid" = "1" |
| 167 | register "compat_string" = ""google,cros-ec-spi"" |
Shelley Chen | 9b93383 | 2019-10-08 14:17:26 -0700 | [diff] [blame] | 168 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 169 | register "wake" = "GPE0_DW0_23" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 170 | device spi 1 on end |
| 171 | end # FPMCU |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 172 | end |
| 173 | device ref lpc_espi on |
Tim Wawrzynczak | 1e5edb4 | 2020-07-14 10:43:20 -0600 | [diff] [blame] | 174 | chip ec/google/chromeec |
| 175 | device pnp 0c09.0 on |
| 176 | chip ec/google/chromeec/i2c_tunnel |
| 177 | register "uid" = "1" |
| 178 | register "remote_bus" = "5" |
| 179 | device generic 0 on |
| 180 | chip drivers/i2c/generic |
| 181 | register "hid" = ""ACPI_DT_NAMESPACE_HID"" |
| 182 | register "name" = ""SBS0"" |
| 183 | register "uid" = "1" |
| 184 | register "compat_string" = ""sbs,sbs-battery"" |
| 185 | device i2c 0b on end |
| 186 | end |
| 187 | end |
| 188 | end |
| 189 | end |
| 190 | end |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 191 | end |
| 192 | device ref hda on |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 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 |
Matt DeVillier | df6473f | 2023-10-22 17:15:24 -0500 | [diff] [blame] | 205 | end |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 206 | end |
| 207 | |
| 208 | end |