summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/galp5/devicetree.cb
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/system76/galp5/devicetree.cb')
-rw-r--r--src/mainboard/system76/galp5/devicetree.cb335
1 files changed, 0 insertions, 335 deletions
diff --git a/src/mainboard/system76/galp5/devicetree.cb b/src/mainboard/system76/galp5/devicetree.cb
deleted file mode 100644
index 4a525611b3..0000000000
--- a/src/mainboard/system76/galp5/devicetree.cb
+++ /dev/null
@@ -1,335 +0,0 @@
-chip soc/intel/tigerlake
- register "common_soc_config" = "{
- // Touchpad I2C bus
- .i2c[0] = {
- .speed = I2C_SPEED_FAST,
- .rise_time_ns = 80,
- .fall_time_ns = 110,
- },
- }"
-
-# ACPI (soc/intel/tigerlake/acpi.c)
- # Enable Enhanced Intel SpeedStep
- register "eist_enable" = "1"
-
- # Enable s0ix, required for TGL-U
- register "s0ix_enable" = "1"
-
-# CPU (soc/intel/tigerlake/cpu.c)
- # Power limits
- register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
- .tdp_pl1_override = 28,
- .tdp_pl2_override = 51,
- }"
- register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
- .tdp_pl1_override = 28,
- .tdp_pl2_override = 51,
- }"
-
-# FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c)
- # Enable C6 DRAM
- register "enable_c6dram" = "1"
-
- # System Agent dynamic frequency support
- register "SaGv" = "SaGv_Enabled"
-
-# FSP Silicon (soc/intel/tigerlake/fsp_params.c)
- # Acoustic settings
- register "AcousticNoiseMitigation" = "1"
- register "SlowSlewRate" = "SLEW_FAST_8"
- register "FastPkgCRampDisable" = "1"
-
- # FIVR configuration
- # Read EXT_RAIL_CONFIG to determine bitmaps
- # sudo devmem2 0xfe0011b8
- # 0x0
- # Read EXT_V1P05_VR_CONFIG
- # sudo devmem2 0xfe0011c0
- # 0x1a42000
- # Read EXT_VNN_VR_CONFIG0
- # sudo devmem2 0xfe0011c4
- # 0x1a42000
- # TODO: v1p05 voltage and vnn icc max?
- register "ext_fivr_settings" = "{
- .configure_ext_fivr = 1,
- .v1p05_enable_bitmap = 0,
- .vnn_enable_bitmap = 0,
- .v1p05_supported_voltage_bitmap = 0,
- .vnn_supported_voltage_bitmap = 0,
- .v1p05_icc_max_ma = 500,
- .vnn_sx_voltage_mv = 1050,
- }"
-
- # Read LPM_EN, make sure to invert the bits
- register "LpmStateDisableMask" = "
- LPM_S0i2_1 |
- LPM_S0i2_2 |
- LPM_S0i3_1 |
- LPM_S0i3_2 |
- LPM_S0i3_3 |
- LPM_S0i3_4
- "
-
- # Thermal
- register "tcc_offset" = "12"
-
- # Enable CNVi BT
- register "CnviBtCore" = "true"
-
-# PM Util (soc/intel/tigerlake/pmutil.c)
- # GPE configuration
- register "pmc_gpe0_dw0" = "PMC_GPP_A"
- register "pmc_gpe0_dw1" = "PMC_GPP_R"
- register "pmc_gpe0_dw2" = "PMC_GPD"
-
-# Actual device tree
- device cpu_cluster 0 on
- device lapic 0 on end
- end
-
- device domain 0 on
- subsystemid 0x1558 0x4018 inherit
-
- #From CPU EDS(575683)
- device ref system_agent on end
- device ref igpu on
- # DDIA is eDP
- register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
- register "DdiPortAHpd" = "1"
- register "DdiPortADdc" = "0"
-
- # DDIB is HDMI
- register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
- register "DdiPortBHpd" = "1"
- register "DdiPortBDdc" = "1"
-
- register "gfx" = "GMA_DEFAULT_PANEL(0)"
- end
- device ref dptf on end
- device ref peg on
- # PCIe PEG0 x4, Clock 0 (SSD1)
- register "PcieClkSrcUsage[0]" = "0x40"
- register "PcieClkSrcClkReq[0]" = "0"
- chip soc/intel/common/block/pcie/rtd3
- register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D14)" # SSD1_PWR_DN#
- register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)" # GPP_H0_RTD3
- register "srcclk_pin" = "0" # SSD1_CLKREQ#
- device generic 0 on end
- end
- end
- device ref tbt_pcie_rp0 on end # J_TYPEC2
- device ref gna on end
- device ref north_xhci on # J_TYPEC2
- register "UsbTcPortEn" = "1"
- register "TcssXhciEn" = "1"
- chip drivers/usb/acpi
- device ref tcss_root_hub on
- chip drivers/usb/acpi
- register "desc" = ""USB3 J_TYPEC2""
- register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
- register "group" = "ACPI_PLD_GROUP(1, 1)"
- device ref tcss_usb3_port1 on end
- end
- end
- end
- end
- device ref tbt_dma0 on # J_TYPEC2
- chip drivers/intel/usb4/retimer
- register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)"
- use tcss_usb3_port1 as dfp[0].typec_port
- device generic 0 on end
- end
- end
-
- # From PCH EDS(576591)
- device ref south_xhci on
- # USB2
- register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # J_USB3_2
- register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # J_TYPEC1
- register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # J_USB3_1
- register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # Fingerprint
- register "usb2_ports[5]" = "USB2_PORT_TYPE_C(OC_SKIP)" # J_TYPEC2
- register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Camera
- register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
- # USB3
- register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_USB3_2
- register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_TYPEC1 CH0
- register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_USB3_1
- register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # J_TYPEC1 CH1
- # ACPI
- chip drivers/usb/acpi
- device ref xhci_root_hub on
- chip drivers/usb/acpi
- register "desc" = ""USB2 J_USB3_2""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(1, 2)"
- device ref usb2_port1 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 J_TYPEC1""
- register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
- register "group" = "ACPI_PLD_GROUP(2, 1)"
- device ref usb2_port2 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 J_USB3_1""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(2, 2)"
- device ref usb2_port3 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 Fingerprint""
- register "type" = "UPC_TYPE_INTERNAL"
- device ref usb2_port5 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 J_TYPEC2""
- register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
- register "group" = "ACPI_PLD_GROUP(1, 1)"
- device ref usb2_port6 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 Camera""
- register "type" = "UPC_TYPE_INTERNAL"
- device ref usb2_port7 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB2 Bluetooth""
- register "type" = "UPC_TYPE_INTERNAL"
- device ref usb2_port10 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB3 J_USB3_2""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(1, 2)"
- device ref usb3_port1 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB3 J_TYPEC1 CH0""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(2, 1)"
- device ref usb3_port2 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB3 J_USB3_1""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(2, 2)"
- device ref usb3_port3 on end
- end
- chip drivers/usb/acpi
- register "desc" = ""USB3 J_TYPEC1 CH1""
- register "type" = "UPC_TYPE_A"
- register "group" = "ACPI_PLD_GROUP(2, 1)"
- device ref usb3_port4 on end
- end
- end
- end
- end
- device ref shared_ram on end
- device ref cnvi_wifi on
- chip drivers/wifi/generic
- register "wake" = "GPE0_PME_B0"
- device generic 0 on end
- end
- end
- device ref i2c0 on
- # Touchpad I2C bus
- register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
- chip drivers/i2c/hid
- register "generic.hid" = ""FTCS1000""
- register "generic.desc" = ""FocalTech Touchpad""
- register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
- register "generic.probed" = "1"
- register "hid_desc_reg_offset" = "0x01"
- device i2c 38 on end
- end
- end
- device ref i2c1 on
- # TODO: USB-PD?
- register "SerialIoI2cMode[PchSerialIoIndexI2C1]" = "PchSerialIoPci"
- end
- device ref i2c2 on
- # TODO: Pantone ROM?
- register "SerialIoI2cMode[PchSerialIoIndexI2C2]" = "PchSerialIoPci"
- end
- device ref heci1 on end
- device ref uart2 on
- # Debug console
- register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
- end
- device ref pcie_rp5 on
- # PCIe root port #5 x4, Clock 2 (NVIDIA GPU)
- register "PcieRpEnable[4]" = "1"
- register "PcieRpLtrEnable[4]" = "1"
- register "PcieClkSrcUsage[2]" = "4"
- register "PcieClkSrcClkReq[2]" = "2"
- chip soc/intel/common/block/pcie/rtd3
- register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_U5)" # DGPU_PWR_EN
- register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_U4)" # DGPU_RST#_PCH
- register "enable_delay_ms" = "16"
- register "enable_off_delay_ms" = "4"
- register "reset_delay_ms" = "10"
- register "reset_off_delay_ms" = "4"
- register "srcclk_pin" = "2" # PEG_CLKREQ#
- device generic 0 on end
- end
- end
- device ref pcie_rp9 on
- # PCIe root port #9 x1, Clock 3 (CARD)
- register "PcieRpEnable[8]" = "1"
- register "PcieRpLtrEnable[8]" = "1"
- register "PcieClkSrcUsage[3]" = "8"
- register "PcieClkSrcClkReq[3]" = "3"
- end
- device ref pcie_rp10 on
- # PCIe root port #10 x1, Clock 4 (GLAN)
- register "PcieRpEnable[9]" = "1"
- register "PcieRpLtrEnable[9]" = "1"
- register "PcieClkSrcUsage[4]" = "9"
- register "PcieClkSrcClkReq[4]" = "4"
- chip soc/intel/common/block/pcie/rtd3
- register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_F9)" # GPIO_LAN_EN
- register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F7)" # GPIO_LANRTD3
- register "srcclk_pin" = "4" # LAN_CLKREQ#
- device generic 0 on end
- end
- end
- device ref pcie_rp11 on
- # PCIe root port #11 x1, Clock 1 (WLAN)
- register "PcieRpEnable[10]" = "1"
- register "PcieRpLtrEnable[10]" = "1"
- register "PcieClkSrcUsage[1]" = "10"
- register "PcieClkSrcClkReq[1]" = "1"
- register "PcieRpSlotImplemented[10]" = "1"
- end
- device ref pch_espi on
- register "gen1_dec" = "0x00040069"
- register "gen2_dec" = "0x00fc0E01"
- register "gen3_dec" = "0x00fc0F01"
- chip drivers/pc80/tpm
- device pnp 0c31.0 on end
- end
- end
- device ref p2sb on end
- device ref pmc hidden
- # The pmc_mux chip driver is a placeholder for the
- # PMC.MUX device in the ACPI hierarchy.
- chip drivers/intel/pmc_mux
- device generic 0 on
- chip drivers/intel/pmc_mux/conn
- # J_TYPEC2
- use usb2_port6 as usb2_port
- use tcss_usb3_port1 as usb3_port
- # SBU & HSL follow CC
- device generic 0 alias conn0 on end
- end
- end
- end
- end
- device ref hda on
- register "PchHdaAudioLinkHdaEnable" = "1"
- end
- device ref smbus on end
- device ref fast_spi on end
- end
-end