mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / asrock / z87e-itx / devicetree.cb
blobdcc7d5290f7fb00f355a195742bf82ff94f2fcba
1 ## SPDX-License-Identifier: GPL-2.0-or-later
3 chip northbridge/intel/haswell
4 register "spd_addresses" = "{0x50, 0, 0x52, 0}"
5 chip cpu/intel/haswell
6 device cpu_cluster 0 on ops haswell_cpu_bus_ops end
7 end
9 device domain 0 on
10 ops haswell_pci_domain_ops
12 device pci 00.0 on # Desktop Host bridge
13 subsystemid 0x1849 0x0c00
14 end
15 device pci 01.0 on end # PCIe Bridge for discrete graphics
16 device pci 02.0 on # Internal graphics VGA controller
17 subsystemid 0x1849 0x0412
18 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
19 register "gpu_ddi_e_connected" = "1"
20 register "gpu_dp_b_hotplug" = "4"
21 register "gpu_dp_c_hotplug" = "4"
22 register "gpu_dp_d_hotplug" = "4"
23 end
24 device pci 03.0 on # Mini-HD audio
25 subsystemid 0x1849 0x0c0c
26 end
28 chip southbridge/intel/lynxpoint # Intel Series 8 Lynx Point PCH
29 register "gpe0_en_1" = "0x46"
31 device pci 14.0 on # xHCI Controller
32 subsystemid 0x1849 0x8c31
33 end
34 device pci 16.0 on # Management Engine Interface 1
35 subsystemid 0x1849 0x8c3a
36 end
37 device pci 16.1 off end # Management Engine Interface 2
38 device pci 16.2 off end # Management Engine IDE-R
39 device pci 16.3 off end # Management Engine KT
40 device pci 19.0 on # Intel Gigabit Ethernet
41 subsystemid 0x1849 0x153b
42 end
43 device pci 1a.0 on # USB2 EHCI #2
44 subsystemid 0x1849 0x8c2d
45 end
46 device pci 1b.0 on # High Definition Audio
47 subsystemid 0x1849 0x1150
48 end
49 device pci 1c.0 on end # PCIe Port #1
50 device pci 1c.1 on end # PCIe Port #2
51 device pci 1c.2 on end # PCIe Port #3
52 device pci 1c.3 on end # PCIe Port #4
53 device pci 1c.4 on end # PCIe Port #5
54 device pci 1c.5 on end # PCIe Port #6
55 device pci 1c.6 on end # PCIe Port #7
56 device pci 1c.7 on end # PCIe Port #8
57 device pci 1d.0 on # USB2 EHCI #1
58 subsystemid 0x1849 0x8c26
59 end
60 device pci 1f.0 on # LPC bridge
61 subsystemid 0x1849 0x8c44
62 register "gen1_dec" = "0x000c0291"
63 register "gen2_dec" = "0x000c0241"
64 register "gen3_dec" = "0x000c0251"
66 chip superio/nuvoton/nct6776
67 device pnp 2e.0 off end # Floppy
68 device pnp 2e.1 off end # Parallel
69 device pnp 2e.2 off end # UART A
70 device pnp 2e.3 off end # UART B, IR
71 device pnp 2e.5 on # PS/2 Keyboard/Mouse
72 io 0x60 = 0x0060
73 io 0x62 = 0x0064
74 irq 0x70 = 1 # + Keyboard IRQ
75 irq 0x72 = 12 # + Mouse IRQ (unused)
76 end
77 device pnp 2e.6 off end # CIR
78 device pnp 2e.7 on # GPIO8
79 irq 0xe4 = 0xef # + GPIO8 direction
80 irq 0xe5 = 0 # + GPIO8 value
81 end
82 device pnp 2e.107 off end # GPIO9
83 device pnp 2e.8 off end # WDT
84 device pnp 2e.108 off end # GPIO0
85 device pnp 2e.208 on end # GPIOA
86 device pnp 2e.308 off end # GPIO base
87 device pnp 2e.109 on end # GPIO1
88 device pnp 2e.209 on # GPIO2
89 irq 0xe0 = 0xff # + GPIO2 direction
90 end
91 device pnp 2e.309 off end # GPIO3
92 device pnp 2e.409 off end # GPIO4
93 device pnp 2e.509 on # GPIO5
94 irq 0xf4 = 0x7f # + GPIO5 direction
95 irq 0xf5 = 0x80 # + GPIO5 value
96 end
97 device pnp 2e.609 off end # GPIO6
98 device pnp 2e.709 on end # GPIO7
99 device pnp 2e.a on # ACPI
100 irq 0xe6 = 0x4c
101 irq 0xf0 = 0x40
103 device pnp 2e.b on # HWM, LED
104 irq 0x30 = 0xe1 # + Fan RPM sense pins
105 io 0x60 = 0x0290 # + HWM base address
106 irq 0x70 = 0
107 irq 0xf7 = 0 # + Front Panel Green LED
109 device pnp 2e.d off end # VID
110 device pnp 2e.e off end # CIR wake-up
111 device pnp 2e.f off end # GPIO PP/OD
112 device pnp 2e.14 off end # SVID
113 device pnp 2e.16 off end # Deep sleep
114 device pnp 2e.17 on # GPIOA
115 irq 0xe0 = 0 # + GPIOA direction
116 irq 0xe1 = 0 # + GPIOA value
120 device pci 1f.2 on # SATA Controller (AHCI)
121 subsystemid 0x1849 0x8c02
122 register "sata_port0_gen3_dtle" = "0x2"
123 register "sata_port1_gen3_dtle" = "0x2"
124 register "sata_port_map" = "0x3f"
126 device pci 1f.3 on # SMBus
127 subsystemid 0x1849 0x8c22
129 device pci 1f.5 off end # SATA Controller (Legacy)
130 device pci 1f.6 off end # Thermal