xref: /aosp_15_r20/external/coreboot/src/mainboard/asus/p5qc/variants/p5q/devicetree.cb (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1# SPDX-License-Identifier: GPL-2.0-or-later
2
3chip northbridge/intel/x4x		# Northbridge
4	device cpu_cluster 0 on ops x4x_cpu_bus_ops end		# APIC cluster
5	device domain 0 on
6		ops x4x_pci_domain_ops		# PCI domain
7		device pci 0.0 on  end		# Host Bridge
8		device pci 1.0 on  end		# PEG
9		device pci 6.0 off end		# PEG 2
10		chip southbridge/intel/i82801jx	# Southbridge
11			register "gpe0_en" = "0x40"
12
13			# Enable all six SATA ports.
14			register "sata_port_map"	= "0x3f"
15
16			# Enable PCIe ports 0,2,3 as slots.
17			register "pcie_slot_implemented"	= "0x31"
18
19			register "gen1_dec" = "0x00000295"
20			register "gen2_dec" = "0x001c4701"
21
22			device pci 19.0 off end		# GBE
23			device pci 1a.0 on  end		# USB
24			device pci 1a.1 on  end		# USB
25			device pci 1a.2 on  end		# USB
26			device pci 1a.7 on  end		# USB
27			device pci 1b.0 on  end		# Audio
28			device pci 1c.0 on  end		# PCIe 1: PCIEX1_1 slot
29			device pci 1c.1 on  end		# PCIe 2: PCIEX1_2 slot
30			device pci 1c.2 off end		# PCIe 3: Unconnected
31			device pci 1c.3 off end		# PCIe 4: Unconnected
32			device pci 1c.4 on  end		# PCIe 5: Marvell 88SE6121 IDE/SATA controller
33			device pci 1c.5 on  end		# PCIe 6: Atheros AR8121 Ethernet NIC
34			device pci 1d.0 on  end		# USB
35			device pci 1d.1 on  end		# USB
36			device pci 1d.2 on  end		# USB
37			device pci 1d.7 on  end		# USB
38			device pci 1e.0 on  end		# PCI bridge
39			device pci 1f.0 on		# LPC bridge
40				chip superio/winbond/w83667hg-a	# Super I/O
41					device pnp 2e.0 on		# FDC
42						# Global registers
43						irq 0x2a = 0x00
44						irq 0x2c = 0x22
45						irq 0x2d = 0x00
46						# Floppy
47						io 0x60  = 0x3f0
48						irq 0xf0 = 0x0e
49					end
50					device pnp 2e.1 off end		# LPT1
51					device pnp 2e.2 on		# COM1
52						io 0x60 = 0x3f8
53						irq 0x70 = 4
54					end
55					device pnp 2e.3 off end		# COM2
56					device pnp 2e.5 on		# PS/2 keyboard & mouse
57						io 0x60 = 0x60
58						io 0x62 = 0x64
59						irq 0x70 = 1
60						irq 0x72 = 12
61					end
62					device pnp 2e.106 off end	# SPI1
63					device pnp 2e.107 off end	# GPIO6
64					device pnp 2e.207 off end	# GPIO7
65					device pnp 2e.307 on		# GPIO8
66						irq 0xe4 = 0xfb
67					end
68					device pnp 2e.407 off end	# GPIO9
69					device pnp 2e.8   off end	# WDT
70					device pnp 2e.108 off end	# GPIO1
71					device pnp 2e.9   off end	# GPIO2
72					device pnp 2e.109 on  end	# GPIO3
73					device pnp 2e.209 on		# GPIO4
74						irq 0xf0 = 0x7f
75						irq 0xfe = 0x07
76					end
77					device pnp 2e.309 on end	# GPIO5
78					device pnp 2e.a   on		# ACPI
79						irq 0xe4 = 0x10 # 3VSBSW# enable
80						irq 0xe5 = 0x02
81						irq 0xf2 = 0xfc
82					end
83					device pnp 2e.b on		# HW Monitor
84						io 0x60 = 0x290
85						irq 0x70 = 0
86						# IRQ purposefully not assigned to prevent lockups
87					end
88					device pnp 2e.c on end		# PECI
89					device pnp 2e.d on end		# VID_BUSSEL
90					device pnp 2e.f on end		# GPIO_PP_OD
91				end
92			end
93			device pci 1f.2 on  end		# SATA
94			device pci 1f.3 on  end		# SMbus
95			device pci 1f.4 off end
96			device pci 1f.5 off end		# SATA (legacy mode)
97			device pci 1f.6 off end
98		end
99	end
100end
101