summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/f2a85-m/devicetree_f2a85-m_pro.cb
blob: 830d3a8bcd59db5c5cd564559c5e8e24c57ee3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# SPDX-License-Identifier: GPL-2.0-only

chip northbridge/amd/agesa/family15tn/root_complex

	device cpu_cluster 0 on
		chip cpu/amd/agesa/family15tn
			device lapic 10 on end
		end
	end

	device domain 0 on
		subsystemid 0x1022 0x1410 inherit
		chip northbridge/amd/agesa/family15tn # CPU side of HT root complex

			chip northbridge/amd/agesa/family15tn # PCI side of HT root complex
				device pci 0.0 on  end # Root Complex
				device pci 2.0 on  end # Internal Graphics P2P bridge 0x99XX
			end	#chip northbridge/amd/agesa/family15tn # PCI side of HT root complex

			chip southbridge/amd/agesa/hudson # it is under NB/SB Link, but on the same pci bus
				device pci 10.0 on  end # XHCI HC0
				device pci 10.1 on  end # XHCI HC1
				device pci 11.0 on  end # SATA
				device pci 12.0 on  end # USB
				device pci 12.2 on  end # USB
				device pci 13.0 on  end # USB
				device pci 13.2 on  end # USB
				device pci 14.0 on  end # SMBUS
				device pci 14.1 off end # unused
				device pci 14.2 on  end # HDA	0x4383
				device pci 14.3 on      # LPC	0x780e
					chip superio/nuvoton/nct6779d
						device pnp 2e.0 off end	# FDC
						device pnp 2e.1 off end	# LPT1
						device pnp 2e.2 on	#  COM1
							io 0x60 = 0x3f8
							irq 0x70 = 4
						end
						device pnp 2e.3 off end # COM2/IR
						device pnp 2e.5 on      # Keyboard
							io 0x60 = 0x0060        # KBC1 base
							io 0x62 = 0x0064        # KBC2 base
							irq 0x70 = 1
							irq 0x72 = 12
						end
						device pnp 2e.6 off end # CIR
						device pnp 2e.7 on	# GPIO6, GPIO7, GPIO8
							irq 0xf4 = 0xff # GPIO6 i/o

							irq 0xe0 = 0x7f # GPIO7 i/o
							irq 0xe1 = 0x00 # GPIO7 data
						end
						device pnp 2e.008 off	# WDT1
						end
						device pnp 2e.108 on	# GPIO0, GPIO1
							irq 0xe0 = 0xff # GPIO0 i/o
							irq 0xe2 = 0xff # GPIO0 inversion
							irq 0xe4 = 0xff # GPIO0 multiplex

							irq 0xf0 = 0xff # GPIO1 i/o
							irq 0xf4 = 0x08 # GPIO1 multiplex

							irq 0xf5 = 0xff # WDT1 control mode
							irq 0xf6 = 0x00 # WDT1 counter
							irq 0xf7 = 0xff # WDT1 control / status
						end
						device pnp 2e.009 off	# GPIO8
						end
						device pnp 2e.109 on	# GPIO1
						end
						device pnp 2e.209 on	# GPIO2
							irq 0xe0 = 0xff # GPIO2 i/o
						end
						device pnp 2e.309 on	# GPIO3
							irq 0xe4 = 0x7f # GPIO3 i/o
							irq 0xe5 = 0x00 # GPIO3 data
						end
						device pnp 2e.409 on	# GPIO4
							irq 0xf0 = 0xff # GPIO4 i/o
						end
						device pnp 2e.509 on	# GPIO5
							irq 0xf4 = 0xff # GPIO5 i/o
						end
						device pnp 2e.609 on	# GPIO6
						end
						device pnp 2e.709 on	# GPIO7
						end
						device pnp 2e.a on	# ACPI
							irq 0xe6 = 0x4c
							irq 0xe7 = 0x11
							irq 0xf2 = 0x5d
						end
						device pnp 2e.b on	# Hardware Monitor, Front Panel LED
							io  0x60 = 0x0290
							irq 0xe2 = 0x7f
							irq 0xe4 = 0xf1
						end
						device pnp 2e.d off end	# WDT1
						device pnp 2e.e off end # CIR WAKE-UP
						device pnp 2e.f on	# GPIO Push-pull/Open-drain selection
							irq 0xe6 = 7f
						end
						device pnp 2e.14 on	# PORT80 UART
							irq 0xe0 = 0x00
						end
						device pnp 2e.16 off end # Deep Sleep
					end
				end	#device pci 14.3 # LPC

				device pci 14.4 on end # PCI bridge
				device pci 14.7 off end # Not present with BIOS ([AMD] FCH SD Flash Controller [1022:7806])
				device pci 15.0 on end # PCI bridge
				device pci 15.1 on end # PCI bridge
				# FIXME: serial console stops working when enabling resources
				# for 15.2, and payloads hang
				device pci 15.2 off end # PCI bridge
			end	#chip southbridge/amd/hudson

			device pci 18.0 on end
			device pci 18.1 on end
			device pci 18.2 on end
			device pci 18.3 on end
			device pci 18.4 on end
			device pci 18.5 on end

			register "spdAddrLookup" = "
			{
				{ {0xA0, 0xA4}, {0xA2, 0xA6}, }, // socket 0 - Channel 0 & 1 - 8-bit SPD addresses
				{ {0x00, 0x00}, {0x00, 0x00}, }, // socket 1 - Channel 0 & 1 - 8-bit SPD addresses
			}"

		end	#chip northbridge/amd/agesa/family15tn # CPU side of HT root complex
	end	#domain
end	#chip northbridge/amd/agesa/family15tn/root_complex