Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +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 | 3bc7022 | 2019-11-08 23:51:00 +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 | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 13 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +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 | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 30 | # Intel Common SoC Config |
| 31 | #+-------------------+---------------------------+ |
| 32 | #| Field | Value | |
| 33 | #+-------------------+---------------------------+ |
| 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 | |
| 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, |
Wisley Chen | fadd635 | 2020-04-24 19:04:09 +0800 | [diff] [blame] | 50 | .rise_time_ns = 30, |
| 51 | .fall_time_ns = 15, |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 52 | }, |
| 53 | .i2c[1] = { |
| 54 | .speed = I2C_SPEED_FAST, |
Wisley Chen | fadd635 | 2020-04-24 19:04:09 +0800 | [diff] [blame] | 55 | .rise_time_ns = 20, |
| 56 | .fall_time_ns = 25, |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 57 | }, |
| 58 | .i2c[4] = { |
| 59 | .speed = I2C_SPEED_FAST, |
Wisley Chen | fadd635 | 2020-04-24 19:04:09 +0800 | [diff] [blame] | 60 | .rise_time_ns = 40, |
| 61 | .fall_time_ns = 60, |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +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 | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 72 | device ref igpu on |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 73 | chip drivers/gfx/generic |
| 74 | register "device_count" = "1" |
Matt DeVillier | f6d8efd | 2024-01-19 20:49:14 -0600 | [diff] [blame] | 75 | register "device[0].name" = ""LCD0"" |
Kornel Dulęba | 4e4141a | 2023-05-16 12:20:39 +0000 | [diff] [blame] | 76 | # Use ChromeOS privacy screen HID |
| 77 | register "device[0].hid" = ""GOOG0010"" |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 78 | # Internal panel on the first port of the graphics chip |
| 79 | register "device[0].addr" = "0x80010400" |
| 80 | register "device[0].privacy.enabled" = "1" |
| 81 | register "device[0].privacy.gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E0)" |
Matt DeVillier | e611905 | 2022-03-04 15:32:41 -0600 | [diff] [blame] | 82 | device generic 0 alias eps on end |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 83 | end |
Matt DeVillier | 73cc08a | 2024-01-19 20:51:24 -0600 | [diff] [blame^] | 84 | chip drivers/gfx/generic |
| 85 | register "device_count" = "1" |
| 86 | register "device[0].name" = ""LCD0"" |
| 87 | # Internal panel on the first port of the graphics chip |
| 88 | register "device[0].addr" = "0x80010400" |
| 89 | device generic 1 alias no_eps on end |
| 90 | end |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 91 | end |
| 92 | device ref xhci on |
Ricardo Ribalda | 43d0a7e | 2020-10-05 12:53:46 +0000 | [diff] [blame] | 93 | chip drivers/usb/acpi |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 94 | device ref xhci_root_hub on |
Ricardo Ribalda | 43d0a7e | 2020-10-05 12:53:46 +0000 | [diff] [blame] | 95 | chip drivers/usb/acpi |
| 96 | # The Linux Kernel does not allow an inverted BOTH_EDGE irq |
| 97 | # So we need to use GpioIO() instead of GpioInt() |
| 98 | # https://www.kernel.org/doc/Documentation/acpi/gpio-properties.txt |
| 99 | register "privacy_gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D4)" |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 100 | device ref usb2_port7 on end |
Ricardo Ribalda | 43d0a7e | 2020-10-05 12:53:46 +0000 | [diff] [blame] | 101 | end |
| 102 | end |
| 103 | end |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 104 | end |
| 105 | device ref sdxc on end |
| 106 | device ref i2c0 on |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 107 | chip drivers/i2c/generic |
| 108 | register "hid" = ""ELAN0000"" |
| 109 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 110 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 111 | register "wake" = "GPE0_DW0_21" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 112 | register "detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 113 | device i2c 15 on end |
| 114 | end |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 115 | end |
| 116 | device ref i2c1 on |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 117 | chip drivers/i2c/hid |
| 118 | register "generic.hid" = ""GTCH7503"" |
| 119 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 120 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 121 | register "generic.detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 122 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 123 | register "generic.reset_delay_ms" = "50" |
| 124 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 125 | register "generic.enable_delay_ms" = "1" |
| 126 | register "generic.has_power_resource" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 127 | register "hid_desc_reg_offset" = "0x01" |
| 128 | device i2c 40 on end |
| 129 | end |
| 130 | chip drivers/i2c/generic |
| 131 | register "hid" = ""ELAN0001"" |
| 132 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 133 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 134 | register "detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 135 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 136 | register "reset_delay_ms" = "100" |
| 137 | register "reset_off_delay_ms" = "5" |
| 138 | register "has_power_resource" = "1" |
| 139 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 140 | register "enable_delay_ms" = "10" |
| 141 | register "enable_off_delay_ms" = "1" |
| 142 | device i2c 10 on end |
| 143 | end |
| 144 | chip drivers/i2c/hid |
| 145 | register "generic.hid" = ""GDIX0000"" |
| 146 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 147 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 148 | register "generic.detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 149 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 150 | register "generic.reset_delay_ms" = "120" |
| 151 | register "generic.reset_off_delay_ms" = "3" |
| 152 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 153 | register "generic.enable_delay_ms" = "10" |
| 154 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 155 | register "generic.stop_off_delay_ms" = "20" |
| 156 | register "generic.has_power_resource" = "1" |
| 157 | register "hid_desc_reg_offset" = "0x01" |
| 158 | device i2c 5d on end |
| 159 | end |
| 160 | chip drivers/i2c/hid |
| 161 | register "generic.hid" = ""ELAN2513"" |
| 162 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 163 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 164 | register "generic.detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 165 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 166 | register "generic.reset_delay_ms" = "20" |
| 167 | register "generic.reset_off_delay_ms" = "2" |
| 168 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 169 | register "generic.enable_delay_ms" = "10" |
| 170 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 171 | register "generic.stop_delay_ms" = "130" |
| 172 | register "generic.has_power_resource" = "1" |
| 173 | register "hid_desc_reg_offset" = "0x01" |
| 174 | device i2c 15 on end |
| 175 | end |
| 176 | end # I2C #1 |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 177 | device ref i2c4 on |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 178 | chip drivers/i2c/generic |
| 179 | register "hid" = ""10EC5682"" |
| 180 | register "name" = ""RT58"" |
| 181 | register "desc" = ""Realtek RT5682"" |
| 182 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 183 | register "property_count" = "1" |
| 184 | # Set the jd_src to RT5668_JD1 for jack detection |
| 185 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 186 | register "property_list[0].name" = ""realtek,jd-src"" |
| 187 | register "property_list[0].integer" = "1" |
| 188 | device i2c 1a on end |
| 189 | end |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 190 | end |
| 191 | device ref emmc on end |
| 192 | device ref gspi1 on |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 193 | chip drivers/spi/acpi |
| 194 | register "name" = ""CRFP"" |
| 195 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 196 | register "uid" = "1" |
| 197 | register "compat_string" = ""google,cros-ec-spi"" |
| 198 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 199 | register "wake" = "GPE0_DW0_23" |
Matt DeVillier | 7065ea3 | 2023-10-28 11:10:35 -0500 | [diff] [blame] | 200 | device spi 1 hidden end |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 201 | end # FPMCU |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 202 | end |
| 203 | device ref hda on |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 204 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 205 | register "hid" = ""MX98357A"" |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 206 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 207 | register "sdmode_delay" = "5" |
| 208 | device generic 0 on end |
| 209 | end |
Matt DeVillier | 10e92831 | 2023-01-17 11:24:25 -0600 | [diff] [blame] | 210 | chip drivers/sof |
| 211 | register "spkr_tplg" = "max98357a" |
| 212 | register "jack_tplg" = "rt5682" |
| 213 | register "mic_tplg" = "_2ch_pdm0" |
| 214 | device generic 0 on end |
| 215 | end |
Matt DeVillier | d7a8da3 | 2023-10-22 17:45:29 -0500 | [diff] [blame] | 216 | end |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 217 | end |
| 218 | |
| 219 | end |