mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / intel / dg41wv / devicetree.cb
blob49d6f8bd2d26dea57efe5eeaa2476f9702493bf7
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 chip 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 subsystemid 0x1458 0x5000 inherit
8 device pci 0.0 on # Host Bridge
9 subsystemid 0x8086 0x5756
10 end
11 device pci 1.0 on end # PEG
12 device pci 2.0 on # Integrated graphics controller
13 subsystemid 0x8086 0x5756
14 end
15 chip southbridge/intel/i82801gx # Southbridge
16 register "pirqa_routing" = "0x0b"
17 register "pirqb_routing" = "0x0b"
18 register "pirqc_routing" = "0x0b"
19 register "pirqd_routing" = "0x0b"
20 register "pirqe_routing" = "0x80"
21 register "pirqf_routing" = "0x80"
22 register "pirqg_routing" = "0x80"
23 register "pirqh_routing" = "0x0b"
24 # GPI routing
25 # 0 No effect (default)
26 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
27 # 2 SCI (if corresponding GPIO_EN bit is also set)
28 register "gpi0_routing" = "2"
29 register "gpi1_routing" = "2"
30 register "gpi2_routing" = "2"
31 register "gpi3_routing" = "2"
32 register "gpi4_routing" = "2"
33 register "gpi5_routing" = "2"
34 register "gpi6_routing" = "2"
35 register "gpi7_routing" = "2"
36 register "gpi8_routing" = "2"
37 register "gpi9_routing" = "2"
38 register "gpi10_routing" = "2"
39 register "gpi11_routing" = "2"
40 register "gpi12_routing" = "2"
41 register "gpi13_routing" = "2"
42 register "gpi14_routing" = "2"
43 register "gpi15_routing" = "2"
45 register "ide_enable_primary" = "true"
46 register "gpe0_en" = "0x440"
48 register "gen1_dec" = "0x00fc0a01" # HWM
50 device pci 1b.0 on # Audio
51 subsystemid 0x8086 0x5756
52 end
53 device pci 1c.0 on end # PCIe 1
54 device pci 1c.1 on # PCIe 2: NIC
55 device pci 00.0 on
56 subsystemid 0x8086 0x5756
57 end
58 end
59 device pci 1c.2 off end # PCIe 3
60 device pci 1c.3 off end # PCIe 4
61 device pci 1d.0 on # USB
62 subsystemid 0x8086 0x5756
63 end
64 device pci 1d.1 on # USB
65 subsystemid 0x8086 0x5756
66 end
67 device pci 1d.2 on # USB
68 subsystemid 0x8086 0x5756
69 end
70 device pci 1d.3 on # USB
71 subsystemid 0x8086 0x5756
72 end
73 device pci 1d.7 on # USB
74 subsystemid 0x8086 0x5756
75 end
76 device pci 1e.0 on end # PCI bridge
77 device pci 1e.2 off end # AC'97 Audio Controller
78 device pci 1e.3 off end # AC'97 Modem Controller
79 device pci 1f.0 on # ISA bridge
80 subsystemid 0x8086 0x5756
81 chip superio/winbond/w83627dhg
82 device pnp 2e.0 on # Floppy
83 # global
84 irq 0x2c = 0x13
85 #floppy
86 io 0x60 = 0x3f0
87 irq 0x70 = 0x06
88 drq 0x74 = 0x02
89 end
90 device pnp 2e.1 on # Parallel port
91 # parallel port
92 io 0x60 = 0x378
93 irq 0x70 = 5
94 drq 0x74 = 3
95 end
96 device pnp 2e.2 on # COM1
97 io 0x60 = 0x3f8
98 irq 0x70 = 4
99 end
100 device pnp 2e.3 on # COM2, IR
101 io 0x60 = 0x2f8
102 irq 0x70 = 3
104 device pnp 2e.5 on # Keyboard, mouse
105 io 0x60 = 0x60
106 io 0x62 = 0x64
107 irq 0x70 = 1
108 irq 0x72 = 12
110 device pnp 2e.6 off end # SPI
111 device pnp 2e.7 on end # GPIO6 (all input)
112 device pnp 2e.8 off end # WDT0#, PLED
113 device pnp 2e.9 off end # GPIO2
114 device pnp 2e.109 off end # GPIO3
115 device pnp 2e.209 off end # GPIO4
116 device pnp 2e.309 on # GPIO5
117 irq 0xe0 = 0xdf
118 irq 0xf3 = 0x09 # RSVD SUSLED settings
120 device pnp 2e.a on # ACPI
121 irq 0xe0 = 0x10
122 irq 0xe1 = 0x0e
123 irq 0xe4 = 0x10 # Power dram during s3
124 irq 0xe6 = 0x8c
126 device pnp 2e.b on # HWM, front panel LED
127 io 0x60 = 0xa00
128 irq 0x70 = 0
130 device pnp 2e.c on # PECI, SST
131 irq 0xe0 = 0x11
132 irq 0xe1 = 0x59
136 device pci 1f.1 off end # PATA/IDE
137 device pci 1f.2 on # SATA
138 subsystemid 0x8086 0x5756
140 device pci 1f.3 on # SMbus
141 subsystemid 0x8086 0x5756
142 chip drivers/i2c/ck505
143 register "mask" = "{ 0xff, 0xff, 0xff,
144 0xff, 0xff, 0xff, 0xff, 0xff,
145 0xff, 0xff, 0xff, 0xff, 0xff,
146 0xff, 0xff, 0xff, 0xff, 0xff,
147 0xff, 0xff, 0xff }"
148 register "regs" = "{ 0x41, 0x99, 0xff,
149 0xff, 0xff, 0x00, 0x00, 0x06,
150 0x03, 0x65, 0x83, 0x80, 0x15,
151 0xc0, 0x09, 0x00, 0x00, 0x00,
152 0x06, 0x00, 0xea }"
153 device i2c 69 on end