Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 1 | chip soc/intel/alderlake |
| 2 | # Graphics |
| 3 | # TODO: |
| 4 | # register "panel_cfg" = "{ |
| 5 | # .up_delay_ms = 200, // T3 |
| 6 | # .backlight_on_delay_ms = 0, // T7 |
| 7 | # .backlight_off_delay_ms = 50, // T9 |
| 8 | # .down_delay_ms = 0, // T10 |
| 9 | # .cycle_delay_ms = 500, // T12 |
| 10 | # .backlight_pwm_hz = 200, // PWM |
| 11 | # }" |
| 12 | |
| 13 | # FSP Memory |
| 14 | register "enable_c6dram" = "1" |
| 15 | register "sagv" = "SaGv_Enabled" |
| 16 | |
| 17 | # FSP Silicon |
| 18 | register "eist_enable" = "1" |
| 19 | |
| 20 | # Serial I/O |
| 21 | register "serial_io_i2c_mode" = "{ |
| 22 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 23 | }" |
| 24 | |
| 25 | register "serial_io_uart_mode" = "{ |
| 26 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 27 | }" |
| 28 | |
| 29 | # Power |
| 30 | register "pch_slp_s3_min_assertion_width" = "2" # 50ms |
| 31 | register "pch_slp_s4_min_assertion_width" = "3" # 1s |
| 32 | register "pch_slp_sus_min_assertion_width" = "3" # 500ms |
| 33 | register "pch_slp_a_min_assertion_width" = "3" # 2s |
| 34 | |
| 35 | # PM Util |
| 36 | register "pmc_gpe0_dw0" = "GPP_B" |
| 37 | register "pmc_gpe0_dw1" = "GPP_C" |
| 38 | register "pmc_gpe0_dw2" = "GPP_E" |
| 39 | |
| 40 | # Device Tree |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame] | 41 | device cpu_cluster 0 on end |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 42 | |
| 43 | device domain 0 on |
| 44 | device ref igpu on |
| 45 | register "ddi_portA_config" = "1" |
| 46 | register "ddi_ports_config" = "{ |
| 47 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 48 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 49 | }" |
| 50 | end |
| 51 | device ref gna on end |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 52 | device ref xhci on |
| 53 | # Motherboard USB Type C |
Sean Rhodes | 4d3a026 | 2023-03-27 11:33:32 +0100 | [diff] [blame] | 54 | register "usb2_ports[0]" = "USB2_PORT_MID(OC5)" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 55 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" |
| 56 | |
| 57 | # Motherboard USB 3.0 |
Sean Rhodes | 4d3a026 | 2023-03-27 11:33:32 +0100 | [diff] [blame] | 58 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" |
| 59 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC5)" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 60 | |
| 61 | # Daughterboard USB 3.0 |
Sean Rhodes | 4d3a026 | 2023-03-27 11:33:32 +0100 | [diff] [blame] | 62 | register "usb2_ports[6]" = "USB2_PORT_MID(OC0)" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 63 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 64 | |
| 65 | # Internal Webcam |
| 66 | register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)" |
| 67 | |
| 68 | # Fingerprint Reader |
Sean Rhodes | 4d3a026 | 2023-03-27 11:33:32 +0100 | [diff] [blame] | 69 | register "usb2_ports[5]" = "USB2_PORT_MID(OC0)" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 70 | |
| 71 | # Daughterboard SD Card |
| 72 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" |
| 73 | |
| 74 | # Internal Bluetooth |
| 75 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" |
| 76 | end |
| 77 | device ref i2c0 on |
| 78 | chip drivers/i2c/hid |
| 79 | register "generic.hid" = ""STAR0001"" |
| 80 | register "generic.desc" = ""Touchpad"" |
| 81 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E12_IRQ)" |
| 82 | register "hid_desc_reg_offset" = "0x20" |
| 83 | device i2c 2c on end |
| 84 | end |
| 85 | end |
| 86 | device ref shared_sram on end |
| 87 | device ref heci1 on end |
| 88 | device ref sata on |
| 89 | register "sata_salp_support" = "1" |
| 90 | register "sata_ports_enable[1]" = "1" |
| 91 | register "sata_ports_dev_slp[1]" = "1" |
| 92 | end |
| 93 | device ref pcie_rp5 on # WiFi |
| 94 | chip drivers/wifi/generic |
| 95 | register "wake" = "GPE0_PME_B0" |
| 96 | device generic 0 on end |
| 97 | end |
| 98 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 99 | .clk_src = 2, |
| 100 | .clk_req = 2, |
| 101 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 102 | }" |
| 103 | smbios_slot_desc "SlotTypePciExpressGen3X1" |
| 104 | "SlotLengthShort" |
| 105 | "M.2/M 2230" |
| 106 | "SlotDataBusWidth1X" |
| 107 | chip soc/intel/common/block/pcie/rtd3 |
| 108 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D13)" |
| 109 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H2)" |
| 110 | register "srcclk_pin" = "2" |
| 111 | device generic 0 on end |
| 112 | end |
| 113 | end |
| 114 | device ref pcie_rp9 on # SSD x4 |
| 115 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 116 | .clk_src = 1, |
| 117 | .clk_req = 1, |
| 118 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
Sean Rhodes | fe2f50f | 2023-02-02 15:53:03 +0000 | [diff] [blame] | 119 | |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 120 | }" |
| 121 | smbios_slot_desc "SlotTypeM2Socket3" |
| 122 | "SlotLengthLong" |
| 123 | "M.2/M 2280" |
| 124 | "SlotDataBusWidth4X" |
| 125 | chip soc/intel/common/block/pcie/rtd3 |
| 126 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)" |
| 127 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)" |
| 128 | register "srcclk_pin" = "1" |
| 129 | device generic 0 on end |
| 130 | end |
| 131 | end |
| 132 | device ref uart0 on end |
| 133 | device ref pch_espi on |
| 134 | register "gen1_dec" = "0x00fc0201" |
| 135 | register "gen2_dec" = "0x00000381" |
| 136 | register "gen3_dec" = "0x00000511" |
| 137 | |
| 138 | chip drivers/pc80/tpm |
| 139 | device pnp 0c31.0 on end |
| 140 | end |
| 141 | |
| 142 | chip ec/starlabs/merlin |
| 143 | # Port pair 4Eh/4Fh |
| 144 | device pnp 4e.00 on end # IO Interface |
| 145 | device pnp 4e.01 off end # Com 1 |
| 146 | device pnp 4e.02 off end # Com 2 |
| 147 | device pnp 4e.04 off end # System Wake-Up |
| 148 | device pnp 4e.05 off end # PS/2 Mouse |
| 149 | device pnp 4e.06 on # PS/2 Keyboard |
| 150 | io 0x60 = 0x0060 |
| 151 | io 0x62 = 0x0064 |
| 152 | irq 0x70 = 1 |
| 153 | end |
| 154 | device pnp 4e.0a off end # Consumer IR |
| 155 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 156 | device pnp 4e.10 off end # RTC-like Timer |
| 157 | device pnp 4e.11 off end # Power Management Channel 1 |
| 158 | device pnp 4e.12 off end # Power Management Channel 2 |
| 159 | device pnp 4e.13 off end # Serial Peripheral Interface |
| 160 | device pnp 4e.14 off end # Platform EC Interface |
| 161 | device pnp 4e.17 off end # Power Management Channel 3 |
| 162 | device pnp 4e.18 off end # Power Management Channel 4 |
| 163 | device pnp 4e.19 off end # Power Management Channel 5 |
| 164 | end |
| 165 | end |
| 166 | device ref p2sb on end |
| 167 | device ref hda on |
Sean Rhodes | 7c5625b | 2023-01-16 12:59:47 +0000 | [diff] [blame] | 168 | register "pch_hda_audio_link_hda_enable" = "1" |
| 169 | register "pch_hda_idisp_codec_enable" = "1" |
| 170 | register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" |
| 171 | register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 172 | end |
| 173 | device ref smbus on end |
| 174 | end |
| 175 | end |