Debian Codegraph @

src/mainboard/asrock/g41c-gs/variants/g41c-gs-r2/devicetree.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
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 0x1849 0x2e30
10 end
11 device pci 1.0 on end # PEG
12
13 device pci 2.0 on # Integrated graphics controller
14 subsystemid 0x1849 0x2e32
15 end
16 device pci 3.0 off end # ME
17 device pci 3.1 off end # ME
18 chip southbridge/intel/i82801gx # Southbridge
19 register "pirqa_routing" = "0x0b"
20 register "pirqb_routing" = "0x0b"
21 register "pirqc_routing" = "0x0b"
22 register "pirqd_routing" = "0x0b"
23 register "pirqe_routing" = "0x80"
24 register "pirqf_routing" = "0x80"
25 register "pirqg_routing" = "0x80"
26 register "pirqh_routing" = "0x0b"
27 # GPI routing
28 # 0 No effect (default)
29 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
30 # 2 SCI (if corresponding GPIO_EN bit is also set)
31 register "gpi13_routing" = "2"
32
33 register "ide_enable_primary" = "true"
34 register "sata_ports_implemented" = "0x3"
35 register "gpe0_en" = "0x440"
36
37 register "gen1_dec" = "0x000c0291" # Superio HWM
38
39 device pci 1b.0 on # Audio
40 subsystemid 0x1849 0x3662
41 end
42 device pci 1c.0 on end # PCIe 1
43 device pci 1c.1 on end # PCIe 2
44 device pci 1c.2 off end # PCIe 3
45 device pci 1c.3 off end # PCIe 4
46 device pci 1d.0 on # USB
47 subsystemid 0x1849 0x27c8
48 end
49 device pci 1d.1 on # USB
50 subsystemid 0x1849 0x27c9
51 end
52 device pci 1d.2 on # USB
53 subsystemid 0x1849 0x27ca
54 end
55 device pci 1d.3 on # USB
56 subsystemid 0x1849 0x27cb
57 end
58 device pci 1d.7 on # USB
59 subsystemid 0x1849 0x27cc
60 end
61 device pci 1e.0 on end # PCI bridge
62 device pci 1e.2 off end # AC'97 Audio
63 device pci 1e.3 off end # AC'97 Modem
64 device pci 1f.0 on # ISA bridge
65 subsystemid 0x1849 0x27b8
66 chip superio/nuvoton/nct6776
67 device pnp 2e.0 off end # Floppy
68 device pnp 2e.1 on # Parallel port
69 # global
70 irq 0x1c = 0x80
71 irq 0x27 = 0x80
72 irq 0x2a = 0x60
73 # parallel port
74 io 0x60 = 0x378
75 irq 0x70 = 7
76 drq 0x74 = 3
77 end
78 device pnp 2e.2 on # COM1
79 io 0x60 = 0x3f8
80 irq 0x70 = 4
81 end
82 device pnp 2e.3 off end # COM2, IR
83 device pnp 2e.5 on # Keyboard
84 io 0x60 = 0x60
85 io 0x62 = 0x64
86 irq 0x70 = 1
87 end
88 device pnp 2e.6 on # CIR
89 io 0x60 = 0x230
90 irq 0x70 = 3
91 end
92 device pnp 2e.7 off end # GPIO6-9
93 device pnp 2e.8 off end # WDT1, GPIO0, GPIO1, GPIOA
94 device pnp 2e.9 off end # GPIO2-5
95 device pnp 2e.a on # ACPI
96 irq 0xe0 = 0x03
97 irq 0xe4 = 0x10 # Power dram during s3
98 irq 0xe6 = 0x4c
99 irq 0xe9 = 0x02
100 irq 0xf0 = 0x20
101 end
102 device pnp 2e.b on # HWM, front panel LED
103 io 0x60 = 0x290
104 io 0x62 = 0x200
105 irq 0x70 = 0
106 end
107 device pnp 2e.d on end # VID
108 device pnp 2e.e on # CIR WAKE-UP
109 io 0x60 = 0x240
110 irq 0x70 = 0
111 end
112 device pnp 2e.f on end # GPIO Push-Pull or Open-drain
113 device pnp 2e.14 on end # SVID
114 device pnp 2e.16 on end # Deep Sleep
115 device pnp 2e.17 on end # GPIOA
116 end
117 end
118 device pci 1f.1 on # PATA/IDE
119 subsystemid 0x1849 0x27df
120 end
121 device pci 1f.2 on # SATA
122 subsystemid 0x1849 0x27c0
123 end
124 device pci 1f.3 on # SMbus
125 subsystemid 0x1849 0x27da
126 chip drivers/i2c/ck505 # W83115RG-965
127 # set SATA to fixed 100Mhz refclk
128 register "mask" = "{ 0x02 }"
129 register "regs" = "{ 0x02 }"
130 device i2c 69 on end
131 end
132 end
133 end
134 end
135 end