Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
| 2 | # CPU |
| 3 | # Enable Enhanced Intel SpeedStep |
| 4 | register "eist_enable" = "1" |
| 5 | |
| 6 | # Graphics |
| 7 | # IGD Displays |
| 8 | register "panel_cfg" = "{ |
| 9 | .up_delay_ms = 0, // T3 |
| 10 | .backlight_on_delay_ms = 0, // T7 |
| 11 | .backlight_off_delay_ms = 0, // T9 |
| 12 | .down_delay_ms = 0, // T10 |
| 13 | .cycle_delay_ms = 500, // T12 |
| 14 | .backlight_pwm_hz = 200, // PWM |
| 15 | }" |
| 16 | |
| 17 | # FSP Memory |
| 18 | register "enable_c6dram" = "1" |
| 19 | register "SaGv" = "SaGv_Enabled" |
| 20 | |
| 21 | # FSP Silicon |
| 22 | # Serial I/O |
| 23 | register "SerialIoDevMode" = "{ |
| 24 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 25 | [PchSerialIoIndexI2C4] = PchSerialIoSkipInit, |
| 26 | [PchSerialIoIndexUART2] = PchSerialIoSkipInit, |
| 27 | }" |
| 28 | |
| 29 | # Power |
| 30 | register "PchPmSlpS3MinAssert" = "2" # 50ms |
| 31 | register "PchPmSlpS4MinAssert" = "3" # 1s |
| 32 | register "PchPmSlpSusMinAssert" = "3" # 500ms |
| 33 | register "PchPmSlpAMinAssert" = "3" # 2s |
| 34 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 35 | # PM Util |
| 36 | # GPE configuration |
| 37 | # Note that GPE events called out in ASL code rely on this |
| 38 | # route. i.e. If this route changes then the affected GPE |
| 39 | # offset bits also need to be changed. |
| 40 | # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG) |
| 41 | register "gpe0_dw0" = "PMC_GPP_B" |
| 42 | register "gpe0_dw1" = "PMC_GPP_C" |
| 43 | register "gpe0_dw2" = "PMC_GPP_E" |
| 44 | |
| 45 | # PCIe Clock |
| 46 | register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED" |
| 47 | register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED" |
| 48 | register "PcieClkSrcClkReq[3]" = "PCIE_CLK_NOTUSED" |
| 49 | register "PcieClkSrcClkReq[4]" = "PCIE_CLK_NOTUSED" |
| 50 | register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED" |
| 51 | |
| 52 | # Actual device tree. |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame] | 53 | device cpu_cluster 0 on end |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 54 | |
| 55 | device domain 0 on |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 56 | device ref system_agent on end |
| 57 | device ref igpu on end |
| 58 | device ref dptf on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 59 | register "Device4Enable" = "1" |
| 60 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 61 | device ref thermal off end |
| 62 | device ref ufs off end |
| 63 | device ref gspi2 off end |
| 64 | device ref xhci on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 65 | # Motherboard USB Type C |
| 66 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" |
Sean Rhodes | 840915b | 2022-05-26 20:46:35 +0100 | [diff] [blame] | 67 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 68 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 69 | # Motherboard USB 3.0 |
| 70 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 840915b | 2022-05-26 20:46:35 +0100 | [diff] [blame] | 71 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 72 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 73 | # Daughterboard SD Card |
| 74 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 840915b | 2022-05-26 20:46:35 +0100 | [diff] [blame] | 75 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 76 | # Daughterboard USB 3.0 |
| 77 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 840915b | 2022-05-26 20:46:35 +0100 | [diff] [blame] | 78 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 79 | |
Sean Rhodes | 2eb2dce | 2022-05-26 20:56:14 +0100 | [diff] [blame] | 80 | # Webcam |
| 81 | register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 840915b | 2022-05-26 20:46:35 +0100 | [diff] [blame] | 82 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 83 | # Internal Bluetooth |
| 84 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 85 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 86 | device ref xdci off end |
| 87 | device ref shared_sram on end |
| 88 | device ref cnvi_wifi on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 89 | chip drivers/wifi/generic |
| 90 | register "wake" = "GPE0_PME_B0" |
| 91 | device generic 0 on end |
| 92 | end |
| 93 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 94 | device ref sdxc off end |
| 95 | device ref i2c0 on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 96 | chip drivers/i2c/hid |
| 97 | register "generic.hid" = ""STAR0001"" |
| 98 | register "generic.desc" = ""Touchpad"" |
| 99 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 100 | register "generic.detect" = "1" |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 101 | register "hid_desc_reg_offset" = "0x20" |
| 102 | device i2c 2c on end |
| 103 | end |
| 104 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 105 | device ref i2c1 off end |
| 106 | device ref i2c2 off end |
| 107 | device ref i2c3 off end |
| 108 | device ref heci1 on end |
| 109 | device ref heci2 off end |
| 110 | device ref csme_ider off end |
| 111 | device ref csme_ktr off end |
| 112 | device ref heci3 off end |
| 113 | device ref heci4 off end |
| 114 | device ref sata on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 115 | register "SataSalpSupport" = "1" |
| 116 | # Port 1 |
| 117 | register "SataPortsEnable[1]" = "1" |
| 118 | register "SataPortsDevSlp[1]" = "1" |
| 119 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 120 | device ref i2c4 on end |
| 121 | device ref i2c5 off end |
| 122 | device ref uart2 on end |
| 123 | device ref emmc off end |
| 124 | device ref pcie_rp1 off end |
| 125 | device ref pcie_rp2 off end |
| 126 | device ref pcie_rp3 off end |
| 127 | device ref pcie_rp4 off end |
| 128 | device ref pcie_rp5 off end |
| 129 | device ref pcie_rp6 off end |
| 130 | device ref pcie_rp7 off end |
| 131 | device ref pcie_rp8 off end |
| 132 | device ref pcie_rp9 on # SSD x4 |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 133 | register "PcieRpSlotImplemented[8]" = "1" |
| 134 | register "PcieRpEnable[8]" = "1" |
| 135 | register "PcieRpLtrEnable[8]" = "1" |
| 136 | register "PcieClkSrcUsage[1]" = "0x08" |
| 137 | register "PcieClkSrcClkReq[1]" = "1" |
| 138 | smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X" |
| 139 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 140 | device ref pcie_rp10 off end |
| 141 | device ref pcie_rp11 off end |
| 142 | device ref pcie_rp12 off end |
| 143 | device ref uart0 off end |
| 144 | device ref uart1 off end |
| 145 | device ref gspi0 off end |
| 146 | device ref gspi1 off end |
| 147 | device ref lpc_espi on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 148 | register "gen1_dec" = "0x000c0681" |
| 149 | register "gen2_dec" = "0x000c1641" |
| 150 | register "gen3_dec" = "0x00fc0201" |
| 151 | register "gen4_dec" = "0x000c0081" |
| 152 | |
| 153 | chip ec/starlabs/merlin |
| 154 | # Port pair 4Eh/4Fh |
| 155 | device pnp 4e.00 on end # IO Interface |
| 156 | device pnp 4e.01 off end # Com 1 |
| 157 | device pnp 4e.02 off end # Com 2 |
| 158 | device pnp 4e.04 off end # System Wake-Up |
| 159 | device pnp 4e.05 off end # PS/2 Mouse |
| 160 | device pnp 4e.06 on # PS/2 Keyboard |
| 161 | io 0x60 = 0x0060 |
| 162 | io 0x62 = 0x0064 |
| 163 | irq 0x70 = 1 |
| 164 | end |
| 165 | device pnp 4e.0a off end # Consumer IR |
| 166 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 167 | device pnp 4e.10 off end # RTC-like Timer |
| 168 | device pnp 4e.11 off end # Power Management Channel 1 |
| 169 | device pnp 4e.12 off end # Power Management Channel 2 |
| 170 | device pnp 4e.13 off end # Serial Peripheral Interface |
| 171 | device pnp 4e.14 off end # Platform EC Interface |
| 172 | device pnp 4e.17 off end # Power Management Channel 3 |
| 173 | device pnp 4e.18 off end # Power Management Channel 4 |
| 174 | device pnp 4e.19 off end # Power Management Channel 5 |
| 175 | end |
| 176 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 177 | device ref p2sb on end |
| 178 | device ref pmc hidden end |
| 179 | device ref hda on |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 180 | register "PchHdaAudioLinkHda" = "1" |
| 181 | end |
Felix Singer | 023846e | 2024-01-18 06:43:20 +0100 | [diff] [blame] | 182 | device ref smbus on end |
| 183 | device ref fast_spi on end |
| 184 | device ref gbe off end |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 185 | end |
| 186 | chip drivers/crb |
| 187 | device mmio 0xfed40000 on end |
| 188 | end |
| 189 | end |