Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
Michael Niewöhner | 0ca534e | 2020-12-03 23:57:22 +0100 | [diff] [blame] | 2 | register "s0ix_enable" = "1" |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 3 | register "common_soc_config" = "{ |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 4 | /* Touchpad */ |
| 5 | .i2c[0] = { |
| 6 | .speed = I2C_SPEED_FAST, |
| 7 | .rise_time_ns = 80, |
| 8 | .fall_time_ns = 110, |
| 9 | }, |
| 10 | }" |
| 11 | |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 12 | # CPU (soc/intel/cannonlake/cpu.c) |
| 13 | # Power limit |
| 14 | register "power_limits_config" = "{ |
| 15 | .tdp_pl1_override = 20, |
| 16 | .tdp_pl2_override = 30, |
| 17 | }" |
| 18 | |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 19 | # Enable Enhanced Intel SpeedStep |
| 20 | register "eist_enable" = "1" |
| 21 | |
| 22 | # FSP Memory (soc/intel/cannonlake/romstage/fsp_params.c) |
| 23 | register "SaGv" = "SaGv_Enabled" |
| 24 | #register "enable_c6dram" = "1" |
| 25 | |
| 26 | # FSP Silicon (soc/intel/cannonlake/fsp_params.c) |
| 27 | # Serial I/O |
| 28 | register "SerialIoDevMode" = "{ |
| 29 | [PchSerialIoIndexI2C0] = PchSerialIoPci, // Touchpad |
| 30 | [PchSerialIoIndexUART2] = PchSerialIoSkipInit, // LPSS UART |
| 31 | }" |
| 32 | |
| 33 | # Misc |
| 34 | register "AcousticNoiseMitigation" = "1" |
| 35 | #register "dmipwroptimize" = "1" |
| 36 | #register "satapwroptimize" = "1" |
| 37 | |
| 38 | # Power |
| 39 | register "PchPmSlpS3MinAssert" = "3" # 50ms |
| 40 | register "PchPmSlpS4MinAssert" = "1" # 1s |
| 41 | register "PchPmSlpSusMinAssert" = "2" # 500ms |
| 42 | register "PchPmSlpAMinAssert" = "4" # 2s |
| 43 | |
| 44 | # Thermal |
| 45 | register "tcc_offset" = "12" |
| 46 | |
| 47 | # PM Util (soc/intel/cannonlake/pmutil.c) |
| 48 | # GPE configuration |
| 49 | # Note that GPE events called out in ASL code rely on this |
| 50 | # route. i.e. If this route changes then the affected GPE |
| 51 | # offset bits also need to be changed. |
| 52 | # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG) |
| 53 | register "gpe0_dw0" = "PMC_GPP_C" |
| 54 | register "gpe0_dw1" = "PMC_GPP_D" |
| 55 | register "gpe0_dw2" = "PMC_GPP_E" |
| 56 | |
| 57 | # Actual device tree |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame^] | 58 | device cpu_cluster 0 on end |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 59 | |
| 60 | device domain 0 on |
| 61 | subsystemid 0x1558 0x1401 inherit |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 62 | device pci 00.0 on end # Host Bridge |
Michael Niewöhner | 6efff74 | 2020-12-19 14:12:41 +0100 | [diff] [blame] | 63 | device pci 02.0 on # Integrated Graphics Device |
| 64 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 65 | register "panel_cfg" = "{ |
| 66 | .up_delay_ms = 200, |
| 67 | .down_delay_ms = 50, |
| 68 | .cycle_delay_ms = 500, |
| 69 | .backlight_pwm_hz = 1000, |
| 70 | .backlight_on_delay_ms = 1, |
| 71 | .backlight_off_delay_ms = 1, |
| 72 | }" |
| 73 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 74 | device pci 04.0 on # SA Thermal device |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 75 | register "Device4Enable" = "1" |
| 76 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 77 | device pci 12.0 on end # Thermal Subsystem |
| 78 | device pci 12.5 off end # UFS SCS |
| 79 | device pci 12.6 off end # GSPI #2 |
| 80 | device pci 13.0 off end # Integrated Sensor Hub |
| 81 | device pci 14.0 on # USB xHCI |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 82 | # USB2 |
| 83 | register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A port 1 |
| 84 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C port 2 |
| 85 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A port 3 |
| 86 | register "usb2_ports[6]" = "USB2_PORT_MAX(OC_SKIP)" # Camera |
| 87 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
| 88 | # USB3 |
| 89 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A port 1 |
| 90 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C port 2 |
| 91 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A port 3 |
| 92 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 93 | device pci 14.1 off end # USB xDCI (OTG) |
| 94 | device pci 14.3 on # CNVi wifi |
Furquan Shaikh | edac4ef | 2020-10-09 08:50:14 -0700 | [diff] [blame] | 95 | chip drivers/wifi/generic |
| 96 | register "wake" = "GPE0_PME_B0" |
| 97 | device generic 0 on end |
| 98 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 99 | end |
| 100 | device pci 14.5 off end # SDCard |
| 101 | device pci 15.0 on # I2C #0 |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 102 | chip drivers/i2c/hid |
| 103 | register "generic.hid" = ""ELAN040D"" |
| 104 | register "generic.desc" = ""ELAN Touchpad"" |
Michael Niewöhner | d990455 | 2020-11-25 00:38:19 +0100 | [diff] [blame] | 105 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 106 | register "generic.detect" = "1" |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 107 | register "hid_desc_reg_offset" = "0x01" |
| 108 | device i2c 15 on end |
| 109 | end |
Felix Singer | 310e050 | 2020-09-30 20:05:41 +0000 | [diff] [blame] | 110 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 111 | device pci 15.1 off end # I2C #1 |
| 112 | device pci 15.2 off end # I2C #2 |
| 113 | device pci 15.3 off end # I2C #3 |
| 114 | device pci 16.0 off end # Management Engine Interface 1 |
| 115 | device pci 16.1 off end # Management Engine Interface 2 |
| 116 | device pci 16.2 off end # Management Engine IDE-R |
| 117 | device pci 16.3 off end # Management Engine KT Redirection |
| 118 | device pci 16.4 off end # Management Engine Interface 3 |
| 119 | device pci 16.5 off end # Management Engine Interface 4 |
| 120 | device pci 17.0 on # SATA |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 121 | register "SataSalpSupport" = "1" |
| 122 | # Port 2 (J_SSD2) |
| 123 | register "SataPortsEnable[1]" = "1" |
| 124 | register "SataPortsDevSlp[1]" = "1" |
| 125 | # Port 3 (J_SSD1) |
| 126 | register "SataPortsEnable[2]" = "1" |
| 127 | register "SataPortsDevSlp[2]" = "1" |
| 128 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 129 | device pci 19.0 off end # I2C #4 |
| 130 | device pci 19.1 off end # I2C #5 |
| 131 | device pci 19.2 on end # UART #2 |
| 132 | device pci 1a.0 off end # eMMC |
| 133 | device pci 1c.0 off end # PCI Express Port 1 |
| 134 | device pci 1c.1 off end # PCI Express Port 2 |
| 135 | device pci 1c.2 off end # PCI Express Port 3 |
| 136 | device pci 1c.3 off end # PCI Express Port 4 |
| 137 | device pci 1c.4 off end # PCI Express Port 5 |
| 138 | device pci 1c.5 on # PCI Express Port 6 |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 139 | device pci 00.0 on end # x1 Card reader |
| 140 | register "PcieRpEnable[5]" = "1" |
| 141 | register "PcieRpLtrEnable[5]" = "1" |
| 142 | register "PcieClkSrcUsage[3]" = "5" |
| 143 | register "PcieClkSrcClkReq[3]" = "3" |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 144 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 145 | device pci 1c.6 off end # PCI Express Port 7 |
| 146 | device pci 1c.7 on # PCI Express Port 8 |
Furquan Shaikh | a266d1e | 2020-10-04 12:52:54 -0700 | [diff] [blame] | 147 | chip drivers/wifi/generic |
Felix Singer | 8271cce | 2020-12-06 04:58:23 +0100 | [diff] [blame] | 148 | device pci 00.0 on end |
Michael Niewöhner | 92c1546 | 2020-09-24 10:17:58 +0200 | [diff] [blame] | 149 | end |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 150 | register "PcieRpEnable[7]" = "1" |
| 151 | register "PcieRpLtrEnable[7]" = "1" |
| 152 | register "PcieClkSrcUsage[2]" = "7" |
| 153 | register "PcieClkSrcClkReq[2]" = "2" |
| 154 | register "PcieRpSlotImplemented[7]" = "1" |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 155 | smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" "M.2/E 2230 (J_WLAN1)" "SlotDataBusWidth1X" |
| 156 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 157 | device pci 1d.0 on # PCI Express Port 9 |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 158 | register "PcieRpEnable[8]" = "1" |
| 159 | register "PcieRpLtrEnable[8]" = "1" |
| 160 | register "PcieClkSrcUsage[4]" = "8" |
| 161 | register "PcieClkSrcClkReq[4]" = "4" |
| 162 | register "PcieRpSlotImplemented[8]" = "1" |
| 163 | smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD2)" "SlotDataBusWidth4X" |
| 164 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 165 | device pci 1d.1 off end # PCI Express Port 10 |
| 166 | device pci 1d.2 off end # PCI Express Port 11 |
| 167 | device pci 1d.3 off end # PCI Express Port 12 |
| 168 | device pci 1d.4 on # PCI Express Port 13 |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 169 | register "PcieRpEnable[12]" = "1" |
| 170 | register "PcieRpLtrEnable[12]" = "1" |
| 171 | register "PcieClkSrcUsage[5]" = "12" |
| 172 | register "PcieClkSrcClkReq[5]" = "5" |
| 173 | register "PcieRpSlotImplemented[12]" = "1" |
| 174 | smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD1)" "SlotDataBusWidth4X" |
| 175 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 176 | device pci 1d.5 off end # PCI Express Port 14 |
| 177 | device pci 1d.6 off end # PCI Express Port 15 |
| 178 | device pci 1d.7 off end # PCI Express Port 16 |
| 179 | device pci 1e.0 off end # UART #0 |
| 180 | device pci 1e.1 off end # UART #1 |
| 181 | device pci 1e.2 off end # GSPI #0 |
| 182 | device pci 1e.3 off end # GSPI #1 |
| 183 | device pci 1f.0 on # LPC Interface |
Michael Niewöhner | dc3e7de | 2021-11-28 23:53:55 +0100 | [diff] [blame] | 184 | chip ec/clevo/it5570e |
| 185 | device generic 0 on end |
| 186 | register "pl2_on_battery" = "15" |
| 187 | end |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 188 | chip drivers/pc80/tpm # TPM |
| 189 | device pnp 0c31.0 on end |
| 190 | end |
| 191 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 192 | device pci 1f.1 hidden end # P2SB |
| 193 | device pci 1f.2 hidden end # Power Management Controller |
| 194 | device pci 1f.3 on # Intel HDA |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 195 | register "PchHdaAudioLinkHda" = "1" |
| 196 | end |
Felix Singer | e9da62a | 2020-12-06 04:56:03 +0100 | [diff] [blame] | 197 | device pci 1f.4 on end # SMBus |
| 198 | device pci 1f.5 on end # PCH SPI |
| 199 | device pci 1f.6 off end # GbE |
Felix Singer | da3375e | 2020-09-22 20:32:33 +0000 | [diff] [blame] | 200 | end |
| 201 | end |