Debian Codegraph @

src/mainboard/lenovo/x60/devicetree.cb

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 chip northbridge/intel/i945
4 # IGD Displays
5 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
6
7 register "gpu_hotplug" = "0x00000220"
8 register "gpu_lvds_use_spread_spectrum_clock" = "true"
9 register "pwm_freq" = "180"
10 register "gpu_panel_power_up_delay" = "250"
11 register "gpu_panel_power_backlight_on_delay" = "2380"
12 register "gpu_panel_power_down_delay" = "250"
13 register "gpu_panel_power_backlight_off_delay" = "2380"
14 register "gpu_panel_power_cycle_delay" = "2"
15
16 device cpu_cluster 0 on ops i945_cpu_bus_ops end # APIC cluster
17
18 register "pci_mmio_size" = "768"
19
20 device domain 0 on
21 ops i945_pci_domain_ops
22 device pci 00.0 on # Host bridge
23 subsystemid 0x17aa 0x2017
24 end
25 device pci 02.0 on # VGA controller
26 subsystemid 0x17aa 0x201a
27 end
28 device pci 02.1 on # display controller
29 subsystemid 0x17aa 0x201a
30 end
31 chip southbridge/intel/i82801gx
32 register "pirqa_routing" = "0x0b"
33 register "pirqb_routing" = "0x0b"
34 register "pirqc_routing" = "0x0b"
35 register "pirqd_routing" = "0x0b"
36 register "pirqe_routing" = "0x0b"
37 register "pirqf_routing" = "0x0b"
38 register "pirqg_routing" = "0x0b"
39 register "pirqh_routing" = "0x0b"
40
41 # GPI routing
42 # 0 No effect (default)
43 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
44 # 2 SCI (if corresponding GPIO_EN bit is also set)
45 register "gpi13_routing" = "2"
46 register "gpi12_routing" = "1"
47 register "gpi8_routing" = "2"
48
49 register "sata_ports_implemented" = "0x01"
50
51 register "gpe0_en" = "0x11000006"
52 register "alt_gp_smi_en" = "0x1000"
53
54 register "c4onc3_enable" = "true"
55
56 register "c3_latency" = "0x23"
57 register "docking_supported" = "true"
58 register "p_cnt_throttling_supported" = "true"
59
60 register "gen1_dec" = "0x007c1601"
61 register "gen2_dec" = "0x000c15e1"
62 register "gen3_dec" = "0x001c1681"
63
64 device pci 1b.0 on # Audio Controller
65 subsystemid 0x17aa 0x2010
66 end
67 device pci 1c.0 on end # Ethernet
68 device pci 1c.1 on end # Atheros WLAN
69 device pci 1c.2 on end # PCIe port 3
70 device pci 1c.3 on end # PCIe port 4
71 device pci 1c.4 off end # PCIe port 5
72 device pci 1c.5 off end # PCIe port 6
73
74 device pci 1d.0 on # USB UHCI
75 subsystemid 0x17aa 0x200a
76 end
77 device pci 1d.1 on # USB UHCI
78 subsystemid 0x17aa 0x200a
79 end
80 device pci 1d.2 on # USB UHCI
81 subsystemid 0x17aa 0x200a
82 end
83 device pci 1d.3 on # USB UHCI
84 subsystemid 0x17aa 0x200a
85 end
86 device pci 1d.7 on # USB2 EHCI
87 subsystemid 0x17aa 0x200b
88 end
89 device pci 1e.0 on # PCI Bridge
90 chip southbridge/ricoh/rl5c476
91 device pci 0.0 on end
92 end
93 end
94 device pci 1e.2 off end # AC'97 Audio
95 device pci 1e.3 off end # AC'97 Modem
96 device pci 1f.0 on # PCI-LPC bridge
97 subsystemid 0x17aa 0x2009
98 chip ec/lenovo/pmh7
99 device pnp ff.1 on end # dummy
100 register "backlight_enable" = "true"
101 register "dock_event_enable" = "true"
102 end
103 chip ec/lenovo/h8
104 device pnp ff.2 on # dummy
105 io 0x60 = 0x62
106 io 0x62 = 0x66
107 io 0x64 = 0x1600
108 io 0x66 = 0x1604
109 end
110
111 register "config0" = "0xa6"
112 register "config1" = "0x05"
113 register "config2" = "0xa0"
114 register "config3" = "0x01"
115
116 register "beepmask0" = "0xfe"
117 register "beepmask1" = "0x96"
118 register "has_power_management_beeps" = "1"
119
120 register "event2_enable" = "0xff"
121 register "event3_enable" = "0xff"
122 register "event4_enable" = "0xf4"
123 register "event5_enable" = "0x3c"
124 register "event6_enable" = "0x80"
125 register "event7_enable" = "0x01"
126 register "event8_enable" = "0x01"
127 register "event9_enable" = "0xff"
128 register "eventa_enable" = "0xff"
129 register "eventb_enable" = "0xff"
130 register "eventc_enable" = "0xff"
131 register "eventd_enable" = "0xff"
132
133 register "bdc_gpio_num" = "7"
134 register "bdc_gpio_lvl" = "0"
135 end
136 chip superio/nsc/pc87382
137 device pnp 164e.2 on # IR
138 io 0x60 = 0x2f8
139 end
140
141 device pnp 164e.3 on # Digitizer
142 io 0x60 = 0x200
143 irq 0x29 = 0xb0
144 irq 0x70 = 0x5
145 irq 0xf0 = 0x82
146 end
147
148 device pnp 164e.7 on # GPIO
149 io 0x60 = 0x1680
150 end
151
152 device pnp 164e.19 on # DLPC
153 io 0x60 = 0x164c
154 end
155 end
156
157 chip superio/nsc/pc87392
158 device pnp 2e.0 off end #FDC
159
160 device pnp 2e.1 on # Parallel Port
161 io 0x60 = 0x3bc
162 irq 0x70 = 7
163 end
164
165 device pnp 2e.2 off # Serial Port / IR
166 io 0x60 = 0x2f8
167 irq 0x70 = 4
168 end
169
170 device pnp 2e.3 on # Serial Port
171 io 0x60 = 0x3f8
172 irq 0x70 = 4
173 end
174
175 device pnp 2e.7 on # GPIO
176 io 0x60 = 0x1620
177 end
178
179 device pnp 2e.a off end # WDT
180 end
181 end
182 device pci 1f.1 on # IDE
183 subsystemid 0x17aa 0x200c
184 end
185 device pci 1f.2 on # SATA
186 subsystemid 0x17aa 0x200d
187 end
188 device pci 1f.3 on # SMBUS
189 subsystemid 0x17aa 0x200f
190 chip drivers/i2c/ck505
191 register "mask" = "{ 0xff, 0xff, 0xff,
192 0xff, 0xff, 0xff, 0xff, 0xff,
193 0xff, 0xff, 0xff, 0xff }"
194 register "regs" = "{ 0x2e, 0xf7, 0x3c,
195 0x20, 0x01, 0x00, 0x1b, 0x01,
196 0x54, 0xff, 0xff, 0x07 }"
197 device i2c 69 on end
198 end
199 # eeprom, 8 virtual devices, same chip
200 chip drivers/i2c/at24rf08c
201 device i2c 54 on end
202 device i2c 55 on end
203 device i2c 56 on end
204 device i2c 57 on end
205 device i2c 5c on end
206 device i2c 5d on end
207 device i2c 5e on end
208 device i2c 5f on end
209 end
210 end
211 end
212 end
213 end