Debian Codegraph @

src/mainboard/asrock/h77pro4-m/devicetree.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 chip northbridge/intel/sandybridge
4 register "spd_addresses" = "{0x50, 0x51, 0x52, 0x53}"
5 device domain 0 on
6 device ref host_bridge on
7 subsystemid 0x1849 0x0100
8 end
9 device ref peg10 on
10 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthLong" "PCIE1" "SlotDataBusWidth16X"
11 end
12 device ref igd on
13 subsystemid 0x1849 0x0102
14 end
15 chip southbridge/intel/bd82x6x # Intel Series 7 Panther Point PCH
16 register "gen1_dec" = "0x000c0291"
17 register "gen2_dec" = "0x000c0241"
18 register "gen3_dec" = "0x000c0251"
19 register "sata_interface_speed_support" = "0x3"
20 register "sata_port_map" = "0x3f"
21 register "spi_lvscc" = "0x2005"
22 register "spi_uvscc" = "0x2005"
23 register "superspeed_capable_ports" = "0x0000000f"
24 register "xhci_switchable_ports" = "0x0000000f"
25 register "usb_port_config" = "{
26 { 1, 0, 0 },
27 { 1, 0, 0 },
28 { 1, 1, 1 },
29 { 1, 1, 1 },
30 { 1, 1, 2 },
31 { 1, 1, 2 },
32 { 1, 0, 3 },
33 { 1, 0, 3 },
34 { 1, 0, 4 },
35 { 1, 0, 4 },
36 { 1, 0, 6 },
37 { 1, 1, 5 },
38 { 1, 1, 5 },
39 { 1, 0, 6 }
40 }"
41 device ref xhci on
42 subsystemid 0x1849 0x1e31
43 end
44 device ref mei1 on
45 subsystemid 0x1849 0x1e3a
46 end
47 device ref mei2 off end
48 device ref me_ide_r off end
49 device ref me_kt off end
50 device ref gbe off end
51 device ref ehci2 on
52 subsystemid 0x1849 0x1e2d
53 end
54 device ref hda on
55 subsystemid 0x1849 0x8892
56 end
57 device ref pcie_rp1 on
58 subsystemid 0x1849 0x1e10
59 smbios_slot_desc "SlotTypePciExpressGen2X4" "SlotLengthLong" "PCIE4" "SlotDataBusWidth4X"
60 end
61 device ref pcie_rp2 off end
62 device ref pcie_rp3 off end
63 device ref pcie_rp4 off end
64 device ref pcie_rp5 on
65 subsystemid 0x1849 0x1e18
66 smbios_slot_desc "SlotTypePciExpressGen2X1" "SlotLengthShort" "PCIE2" "SlotDataBusWidth1X"
67 end
68 device ref pcie_rp6 on # RTL8111E GbE
69 subsystemid 0x1849 0x1e1a
70 device pci 00.0 on end # PCI 10ec:8168
71 end
72 device ref pcie_rp7 on
73 subsystemid 0x1849 0x1e16
74 smbios_slot_desc "SlotTypePciExpressGen2X1" "SlotLengthLong" "PCIE3" "SlotDataBusWidth1X"
75 end
76 device ref pcie_rp8 on # ASM1061 SATA Controller
77 subsystemid 0x1849 0x1e1e
78 end
79 device ref ehci1 on
80 subsystemid 0x1849 0x1e26
81 end
82 device ref pci_bridge off end
83 device ref lpc on
84 subsystemid 0x1849 0x1e4a
85 chip superio/nuvoton/nct6776
86 device pnp 2e.0 off end # Floppy
87 device pnp 2e.1 on # Parallel port
88 io 0x60 = 0x378
89 irq 0x70 = 5
90 drq 0x74 = 3
91 end
92 device pnp 2e.2 on # COM1
93 io 0x60 = 0x3f8
94 irq 0x70 = 4
95 end
96 device pnp 2e.3 off end # COM2, IR
97 device pnp 2e.5 on # Keyboard
98 io 0x60 = 0x60
99 io 0x62 = 0x64
100 irq 0x70 = 1
101 irq 0x72 = 12
102 end
103 device pnp 2e.6 off end # CIR
104 device pnp 2e.7 off end # GPIO8
105 device pnp 2e.107 off end # GPIO9
106 device pnp 2e.8 off end # WDT1
107 device pnp 2e.108 off end # GPIO0
108 device pnp 2e.208 off end # GPIOA
109 device pnp 2e.308 on # GPIO base
110 io 0x60 = 0x0
111 irq 0xf0 = 0x3e # + GPIO1 direction
112 irq 0xf1 = 0xde # + GPIO1 value
113 end
114 device pnp 2e.109 on end # GPIO1
115 device pnp 2e.209 on # GPIO2
116 irq 0xe0 = 0xff # + GPIO2 direction
117 irq 0xe1 = 0x0c # + GPIO2 value
118 end
119 device pnp 2e.309 on # GPIO3
120 irq 0xe4 = 0xf7 # + GPIO3 direction
121 irq 0xe5 = 0x08 # + GPIO3 value
122 end
123 device pnp 2e.409 off end # GPIO4
124 device pnp 2e.509 off end # GPIO5
125 device pnp 2e.609 off end # GPIO6
126 device pnp 2e.709 on end # GPIO7
127 device pnp 2e.a on # ACPI
128 irq 0xe4 = 0x10 # + enable 3VSBSW#
129 irq 0xf0 = 0x20 # + pin 70 = 3VSBSW
130 end
131 device pnp 2e.b on # HWM, front panel LED
132 irq 0x30 = 0xe1 # + Fan RPM sense pins
133 io 0x60 = 0x0290 # + HWM base address
134 end
135 device pnp 2e.d off end # VID
136 device pnp 2e.e off end # CIR WAKE-UP
137 device pnp 2e.f off end # GPIO Push-Pull or Open-drain
138 device pnp 2e.14 off end # SVID
139 device pnp 2e.16 off end # Deep Sleep
140 device pnp 2e.17 off end # GPIOA
141 end
142 end
143 device ref sata1 on
144 subsystemid 0x1849 0x1e02
145 end
146 device ref smbus on
147 subsystemid 0x1849 0x1e22
148 end
149 device ref sata2 off end
150 device ref thermal off end
151 end
152 end
153 end