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, |
| 10 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 13 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 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 |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 72 | device pci 02.0 on |
Matt DeVillier | e611905 | 2022-03-04 15:32:41 -0600 | [diff] [blame] | 73 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 74 | chip drivers/gfx/generic |
| 75 | register "device_count" = "1" |
| 76 | register "device[0].name" = ""LCD"" |
| 77 | # Internal panel on the first port of the graphics chip |
| 78 | register "device[0].addr" = "0x80010400" |
| 79 | register "device[0].privacy.enabled" = "1" |
| 80 | register "device[0].privacy.gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E0)" |
Matt DeVillier | e611905 | 2022-03-04 15:32:41 -0600 | [diff] [blame] | 81 | device generic 0 alias eps on end |
Rajat Jain | 68cd0d0 | 2020-02-26 21:10:54 -0800 | [diff] [blame] | 82 | end |
| 83 | end # Integrated Graphics Device |
Ricardo Ribalda | 43d0a7e | 2020-10-05 12:53:46 +0000 | [diff] [blame] | 84 | device pci 14.0 on |
| 85 | chip drivers/usb/acpi |
| 86 | device usb 0.0 on |
| 87 | chip drivers/usb/acpi |
| 88 | # The Linux Kernel does not allow an inverted BOTH_EDGE irq |
| 89 | # So we need to use GpioIO() instead of GpioInt() |
| 90 | # https://www.kernel.org/doc/Documentation/acpi/gpio-properties.txt |
| 91 | register "privacy_gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D4)" |
| 92 | device usb 2.6 on end |
| 93 | end |
| 94 | end |
| 95 | end |
| 96 | end # USB xHCI |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 97 | device pci 15.0 on |
| 98 | chip drivers/i2c/generic |
| 99 | register "hid" = ""ELAN0000"" |
| 100 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame^] | 101 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 102 | register "wake" = "GPE0_DW0_21" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 103 | register "detect" = "1" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 104 | device i2c 15 on end |
| 105 | end |
| 106 | end # I2C #0 |
| 107 | device pci 15.1 on |
| 108 | chip drivers/i2c/hid |
| 109 | register "generic.hid" = ""GTCH7503"" |
| 110 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 111 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 112 | register "generic.probed" = "1" |
| 113 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 114 | register "generic.reset_delay_ms" = "50" |
| 115 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 116 | register "generic.enable_delay_ms" = "1" |
| 117 | register "generic.has_power_resource" = "1" |
| 118 | register "generic.disable_gpio_export_in_crs" = "1" |
| 119 | register "hid_desc_reg_offset" = "0x01" |
| 120 | device i2c 40 on end |
| 121 | end |
| 122 | chip drivers/i2c/generic |
| 123 | register "hid" = ""ELAN0001"" |
| 124 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame^] | 125 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 126 | register "probed" = "1" |
| 127 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 128 | register "reset_delay_ms" = "100" |
| 129 | register "reset_off_delay_ms" = "5" |
| 130 | register "has_power_resource" = "1" |
| 131 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 132 | register "enable_delay_ms" = "10" |
| 133 | register "enable_off_delay_ms" = "1" |
| 134 | device i2c 10 on end |
| 135 | end |
| 136 | chip drivers/i2c/hid |
| 137 | register "generic.hid" = ""GDIX0000"" |
| 138 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 139 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 140 | register "generic.probed" = "1" |
| 141 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 142 | register "generic.reset_delay_ms" = "120" |
| 143 | register "generic.reset_off_delay_ms" = "3" |
| 144 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 145 | register "generic.enable_delay_ms" = "10" |
| 146 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 147 | register "generic.stop_off_delay_ms" = "20" |
| 148 | register "generic.has_power_resource" = "1" |
| 149 | register "hid_desc_reg_offset" = "0x01" |
| 150 | device i2c 5d on end |
| 151 | end |
| 152 | chip drivers/i2c/hid |
| 153 | register "generic.hid" = ""ELAN2513"" |
| 154 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 155 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 156 | register "generic.probed" = "1" |
| 157 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 158 | register "generic.reset_delay_ms" = "20" |
| 159 | register "generic.reset_off_delay_ms" = "2" |
| 160 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 161 | register "generic.enable_delay_ms" = "10" |
| 162 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 163 | register "generic.stop_delay_ms" = "130" |
| 164 | register "generic.has_power_resource" = "1" |
| 165 | register "hid_desc_reg_offset" = "0x01" |
| 166 | device i2c 15 on end |
| 167 | end |
| 168 | end # I2C #1 |
| 169 | device pci 15.2 off end # I2C #2 |
| 170 | device pci 15.3 off end # I2C #3 |
| 171 | device pci 19.0 on |
| 172 | chip drivers/i2c/generic |
| 173 | register "hid" = ""10EC5682"" |
| 174 | register "name" = ""RT58"" |
| 175 | register "desc" = ""Realtek RT5682"" |
| 176 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 177 | register "property_count" = "1" |
| 178 | # Set the jd_src to RT5668_JD1 for jack detection |
| 179 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 180 | register "property_list[0].name" = ""realtek,jd-src"" |
| 181 | register "property_list[0].integer" = "1" |
| 182 | device i2c 1a on end |
| 183 | end |
| 184 | end #I2C #4 |
| 185 | device pci 1a.0 on end # eMMC |
| 186 | device pci 1e.3 on |
| 187 | chip drivers/spi/acpi |
| 188 | register "name" = ""CRFP"" |
| 189 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 190 | register "uid" = "1" |
| 191 | register "compat_string" = ""google,cros-ec-spi"" |
| 192 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 193 | register "wake" = "GPE0_DW0_23" |
| 194 | device spi 1 on end |
| 195 | end # FPMCU |
| 196 | end # GSPI #1 |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 197 | device pci 1f.3 on |
| 198 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 199 | register "hid" = ""MX98357A"" |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 200 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 201 | register "sdmode_delay" = "5" |
| 202 | device generic 0 on end |
| 203 | end |
| 204 | end # Intel HDA |
Wisley Chen | 3bc7022 | 2019-11-08 23:51:00 +0800 | [diff] [blame] | 205 | end |
| 206 | |
| 207 | end |