Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
Wisley Chen | 6476e41 | 2019-12-31 13:26:04 +0800 | [diff] [blame^] | 2 | register "tdp_pl1_override" = "15" |
| 3 | register "tdp_pl2_override" = "51" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 4 | |
| 5 | register "SerialIoDevMode" = "{ |
| 6 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 7 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 8 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 13 | [PchSerialIoIndexSPI1] = PchSerialIoPci, |
| 14 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 15 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 16 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 17 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 18 | }" |
| 19 | |
| 20 | # Intel Common SoC Config |
| 21 | #+-------------------+---------------------------+ |
| 22 | #| Field | Value | |
| 23 | #+-------------------+---------------------------+ |
| 24 | #| GSPI0 | cr50 TPM. Early init is | |
| 25 | #| | required to set up a BAR | |
| 26 | #| | for TPM communication | |
| 27 | #| | before memory is up | |
| 28 | #| GSPI1 | FP MCU | |
| 29 | #| I2C0 | Touchpad | |
| 30 | #| I2C1 | Touch screen | |
| 31 | #| I2C4 | Audio | |
| 32 | #+-------------------+---------------------------+ |
| 33 | register "common_soc_config" = "{ |
| 34 | .gspi[0] = { |
| 35 | .speed_mhz = 1, |
| 36 | .early_init = 1, |
| 37 | }, |
| 38 | .i2c[0] = { |
| 39 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 4217423 | 2019-12-09 19:14:13 +0800 | [diff] [blame] | 40 | .rise_time_ns = 50, |
| 41 | .fall_time_ns = 15, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 42 | }, |
| 43 | .i2c[1] = { |
| 44 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 4217423 | 2019-12-09 19:14:13 +0800 | [diff] [blame] | 45 | .rise_time_ns = 60, |
| 46 | .fall_time_ns = 25, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 47 | }, |
| 48 | .i2c[4] = { |
| 49 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 4217423 | 2019-12-09 19:14:13 +0800 | [diff] [blame] | 50 | .rise_time_ns = 60, |
| 51 | .fall_time_ns = 60, |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 52 | }, |
| 53 | }" |
| 54 | |
| 55 | # GPIO for SD card detect |
| 56 | register "sdcard_cd_gpio" = "vSD3_CD_B" |
| 57 | |
| 58 | # Enable eMMC HS400 |
| 59 | register "ScsEmmcHs400Enabled" = "1" |
| 60 | |
| 61 | device domain 0 on |
| 62 | device pci 15.0 on |
| 63 | chip drivers/i2c/generic |
| 64 | register "hid" = ""ELAN0000"" |
| 65 | register "desc" = ""ELAN Touchpad"" |
| 66 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_A21_IRQ)" |
| 67 | register "wake" = "GPE0_DW0_21" |
| 68 | register "probed" = "1" |
| 69 | device i2c 15 on end |
| 70 | end |
| 71 | end # I2C #0 |
| 72 | device pci 15.1 on |
Wisley Chen | 31f5283 | 2019-09-19 15:20:45 +0800 | [diff] [blame] | 73 | chip drivers/i2c/hid |
| 74 | register "generic.hid" = ""GTCH7503"" |
| 75 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
| 76 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" |
| 77 | register "generic.probed" = "1" |
| 78 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 79 | register "generic.reset_delay_ms" = "50" |
| 80 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 81 | register "generic.enable_delay_ms" = "1" |
| 82 | register "generic.has_power_resource" = "1" |
| 83 | register "generic.disable_gpio_export_in_crs" = "1" |
| 84 | register "hid_desc_reg_offset" = "0x01" |
| 85 | device i2c 40 on end |
| 86 | end |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 87 | chip drivers/i2c/generic |
| 88 | register "hid" = ""ELAN0001"" |
| 89 | register "desc" = ""ELAN Touchscreen"" |
| 90 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" |
| 91 | register "probed" = "1" |
| 92 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 93 | register "reset_delay_ms" = "100" |
| 94 | register "reset_off_delay_ms" = "5" |
| 95 | register "has_power_resource" = "1" |
Wisley Chen | f88c0115 | 2019-10-15 21:23:16 +0800 | [diff] [blame] | 96 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 97 | register "enable_delay_ms" = "10" |
| 98 | register "enable_off_delay_ms" = "1" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 99 | device i2c 10 on end |
| 100 | end |
| 101 | chip drivers/i2c/hid |
| 102 | register "generic.hid" = ""GDIX0000"" |
| 103 | register "generic.desc" = ""Goodix Touchscreen"" |
| 104 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" |
| 105 | register "generic.probed" = "1" |
Wisley Chen | 7bb9606 | 2019-10-15 17:46:38 +0800 | [diff] [blame] | 106 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 107 | register "generic.reset_delay_ms" = "120" |
| 108 | register "generic.reset_off_delay_ms" = "3" |
| 109 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 110 | register "generic.enable_delay_ms" = "10" |
| 111 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 112 | register "generic.stop_off_delay_ms" = "20" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 113 | register "generic.has_power_resource" = "1" |
| 114 | register "hid_desc_reg_offset" = "0x01" |
| 115 | device i2c 5d on end |
| 116 | end |
Wisley Chen | ad4bf67 | 2019-10-18 15:15:01 +0800 | [diff] [blame] | 117 | chip drivers/i2c/hid |
| 118 | register "generic.hid" = ""ELAN2513"" |
| 119 | register "generic.desc" = ""ELAN Touchscreen"" |
| 120 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" |
| 121 | register "generic.probed" = "1" |
| 122 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 123 | register "generic.reset_delay_ms" = "20" |
| 124 | register "generic.reset_off_delay_ms" = "2" |
| 125 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 126 | register "generic.enable_delay_ms" = "10" |
| 127 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 128 | register "generic.stop_delay_ms" = "130" |
| 129 | register "generic.has_power_resource" = "1" |
| 130 | register "hid_desc_reg_offset" = "0x01" |
| 131 | device i2c 15 on end |
| 132 | end |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 133 | end # I2C #1 |
| 134 | device pci 15.2 off end # I2C #2 |
| 135 | device pci 15.3 off end # I2C #3 |
| 136 | device pci 19.0 on |
| 137 | chip drivers/i2c/generic |
| 138 | register "hid" = ""10EC5682"" |
| 139 | register "name" = ""RT58"" |
| 140 | register "desc" = ""Realtek RT5682"" |
| 141 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 142 | register "property_count" = "1" |
| 143 | # Set the jd_src to RT5668_JD1 for jack detection |
| 144 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 145 | register "property_list[0].name" = ""realtek,jd-src"" |
| 146 | register "property_list[0].integer" = "1" |
| 147 | device i2c 1a on end |
| 148 | end |
| 149 | end #I2C #4 |
| 150 | device pci 1a.0 on end # eMMC |
| 151 | device pci 1e.3 on |
| 152 | chip drivers/spi/acpi |
| 153 | register "name" = ""CRFP"" |
| 154 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 155 | register "uid" = "1" |
| 156 | register "compat_string" = ""google,cros-ec-spi"" |
Shelley Chen | 9b93383 | 2019-10-08 14:17:26 -0700 | [diff] [blame] | 157 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 158 | register "wake" = "GPE0_DW0_23" |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 159 | device spi 1 on end |
| 160 | end # FPMCU |
| 161 | end # GSPI #1 |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 162 | device pci 1f.3 on |
| 163 | chip drivers/generic/max98357a |
| 164 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 165 | register "sdmode_delay" = "5" |
| 166 | device generic 0 on end |
| 167 | end |
| 168 | end # Intel HDA |
Wisley Chen | ded3f90 | 2019-09-06 20:01:32 +0800 | [diff] [blame] | 169 | end |
| 170 | |
| 171 | end |