mb/purism/librem_jsl: Use device aliases in devicetree
Convert all PCI device and USB port references in the librem_jsl devicetree to use device aliases from the Jasperlake chipset.cb instead of direct device/function numbers. This improves maintainability by using symbolic names, and reduces file size by eliminating entries which match those in the chipset devicetree. Additionally, the p2sb device reference is dropped, as the correct state (hidden) is set by the chipset devicetree. TEST=Build librem_jsl Change-Id: Iba2959156ccede68bceb46f8458676bc7a88247a Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90903 Reviewed-by: Jonathon Hall <jonathon.hall@puri.sm> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
90b819b279
commit
7ee1bdf9b3
1 changed files with 21 additions and 53 deletions
|
|
@ -43,13 +43,10 @@ chip soc/intel/jasperlake
|
|||
register "PchHdaAudioLinkHdaEnable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device pci 00.0 on end # Host Bridge
|
||||
device pci 02.0 on end # Integrated Graphics Device
|
||||
device pci 04.0 on end # SA Thermal device
|
||||
device pci 05.0 on end # IPU
|
||||
device pci 09.0 off end # Intel Trace Hub
|
||||
device pci 12.6 off end # GSPI 2
|
||||
device pci 14.0 on # USB xHCI
|
||||
device ref igpu on end
|
||||
device ref dptf on end
|
||||
device ref ipu on end
|
||||
device ref south_xhci on
|
||||
register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Fingerprint reader
|
||||
register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # microSD
|
||||
register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-C 1
|
||||
|
|
@ -64,70 +61,66 @@ chip soc/intel/jasperlake
|
|||
chip drivers/usb/acpi
|
||||
register "desc" = ""Root Hub""
|
||||
register "type" = "UPC_TYPE_HUB"
|
||||
device usb 0.0 on
|
||||
device ref xhci_root_hub on
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Fingerprint Reader""
|
||||
register "type" = "UPC_TYPE_INTERNAL"
|
||||
device usb 2.0 on end
|
||||
device ref usb2_port1 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""microSD Card Reader""
|
||||
register "type" = "UPC_TYPE_INTERNAL"
|
||||
device usb 2.1 on end
|
||||
device ref usb2_port2 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Type-C Port 1""
|
||||
register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
|
||||
register "group" = "ACPI_PLD_GROUP(0, 0)"
|
||||
device usb 2.2 on end
|
||||
device ref usb2_port3 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Type-C Port 2""
|
||||
register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
|
||||
register "group" = "ACPI_PLD_GROUP(0, 1)"
|
||||
device usb 2.3 on end
|
||||
device ref usb2_port4 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Cameras""
|
||||
register "type" = "UPC_TYPE_INTERNAL"
|
||||
device usb 2.5 on end
|
||||
device ref usb2_port6 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Keyboard Dock""
|
||||
register "type" = "UPC_TYPE_PROPRIETARY"
|
||||
device usb 2.6 on end
|
||||
device ref usb2_port7 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Bluetooth""
|
||||
register "type" = "UPC_TYPE_INTERNAL"
|
||||
device usb 2.7 on end
|
||||
device ref usb2_port8 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Type-C Port 2""
|
||||
register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
|
||||
register "group" = "ACPI_PLD_GROUP(0, 1)"
|
||||
device usb 3.0 on end
|
||||
device ref usb3_port1 on end
|
||||
end
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""Type-C Port 1""
|
||||
register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
|
||||
register "group" = "ACPI_PLD_GROUP(0, 0)"
|
||||
device usb 3.1 on end
|
||||
device ref usb3_port2 on end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
device pci 14.1 off end # USB xDCI (OTG)
|
||||
device pci 14.2 on end # PMC SRAM
|
||||
device pci 14.3 on # CNVi wifi
|
||||
device ref shared_ram on end
|
||||
device ref cnvi_wifi on
|
||||
chip drivers/wifi/generic
|
||||
device generic 0 on end
|
||||
end
|
||||
end
|
||||
device pci 14.5 off end # SD card
|
||||
device pci 15.0 off end # I2C 0
|
||||
device pci 15.1 off end # I2C 1
|
||||
device pci 15.2 on # I2C 2
|
||||
device ref i2c2 on
|
||||
chip drivers/i2c/hid
|
||||
register "generic.hid" = ""GXTP7380""
|
||||
register "generic.cid" = ""PNP0C50""
|
||||
|
|
@ -138,7 +131,7 @@ chip soc/intel/jasperlake
|
|||
device i2c 5d on end
|
||||
end
|
||||
end
|
||||
device pci 15.3 on # I2C 3
|
||||
device ref i2c3 on
|
||||
chip drivers/i2c/generic
|
||||
register "hid" = ""MXC6655""
|
||||
register "cid" = ""MXC6655""
|
||||
|
|
@ -147,37 +140,12 @@ chip soc/intel/jasperlake
|
|||
device i2c 15 on end
|
||||
end
|
||||
end
|
||||
device pci 16.0 off end # HECI 1
|
||||
device pci 16.1 off end # HECI 2
|
||||
device pci 16.4 off end # HECI 3
|
||||
device pci 16.5 off end # HECI 4
|
||||
device pci 17.0 off end # SATA
|
||||
device pci 19.0 on end # I2C 4
|
||||
device pci 19.1 off end # I2C 5
|
||||
device pci 19.2 off end # UART 2
|
||||
device pci 1a.0 off end # eMMC
|
||||
device pci 1c.0 off end # PCI Express Root Port 1
|
||||
device pci 1c.1 off end # PCI Express Root Port 2
|
||||
device pci 1c.2 on # PCI Express Root Port 3 - M.2 M-key, PCIe only
|
||||
device ref i2c4 on end
|
||||
device ref pcie_rp3 on
|
||||
register "PcieClkSrcUsage[0]" = "2"
|
||||
register "PcieClkSrcClkReq[0]" = "0"
|
||||
smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth2X"
|
||||
end
|
||||
device pci 1c.3 off end # PCI Express Root Port 4
|
||||
device pci 1c.4 off end # PCI Express Root Port 5
|
||||
device pci 1c.5 off end # PCI Express Root Port 6
|
||||
device pci 1c.6 off end # PCI Express Root Port 7
|
||||
device pci 1c.7 off end # PCI Express Root Port 8
|
||||
device pci 1e.0 off end # UART 0
|
||||
device pci 1e.1 off end # UART 1
|
||||
device pci 1e.2 off end # GSPI 0
|
||||
device pci 1e.3 off end # GSPI 1
|
||||
device pci 1f.0 on end # eSPI Interface
|
||||
device pci 1f.1 off end # P2SB
|
||||
device pci 1f.2 hidden end # Power Management Controller
|
||||
device pci 1f.3 on end # Intel HDA/cAVS
|
||||
device pci 1f.4 off end # SMBus
|
||||
device pci 1f.5 on end # PCH SPI
|
||||
device pci 1f.7 off end # Intel Trace Hub
|
||||
device ref hda on end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue