mb/lenovo: Add SMBIOS type 9 for ExpressCard
[coreboot.git] / src / mainboard / lenovo / t420s / devicetree.cb
blobd1e3f754994a7283b4bacdf19ff7a3c171db492b
1 chip northbridge/intel/sandybridge
2 register "gfx.ndid" = "3"
3 register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"
5 # Enable DisplayPort Hotplug with 6ms pulse
6 register "gpu_dp_d_hotplug" = "0x06"
8 # Enable Panel as LVDS and configure power delays
9 register "gpu_panel_port_select" = "0" # LVDS
10 register "gpu_panel_power_cycle_delay" = "1"
11 register "gpu_panel_power_up_delay" = "300" # T1+T2: 30ms
12 register "gpu_panel_power_down_delay" = "300" # T5+T6: 30ms
13 register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms
14 register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms
15 register "gfx.use_spread_spectrum_clock" = "1"
16 register "gfx.link_frequency_270_mhz" = "1"
17 register "gpu_cpu_backlight" = "0x1155"
18 register "gpu_pch_backlight" = "0x06100610"
20 device cpu_cluster 0 on
21 chip cpu/intel/model_206ax
22 # Magic APIC ID to locate this chip
23 device lapic 0x0 on end
24 device lapic 0xacac off end
26 register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
27 register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
28 register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
30 register "c1_battery" = "1" # ACPI(C1) = MWAIT(C1)
31 register "c2_battery" = "3" # ACPI(C2) = MWAIT(C3)
32 register "c3_battery" = "5" # ACPI(C3) = MWAIT(C7)
33 end
34 end
36 register "pci_mmio_size" = "2048"
38 device domain 0 on
39 device pci 00.0 on
40 subsystemid 0x17aa 0x21d2
41 end # host bridge
42 device pci 01.0 on end # NVIDIA Corporation GF119M [NVS 4200M]
43 device pci 02.0 on
44 subsystemid 0x17aa 0x21d3
45 end # Integrated Graphics Controller
47 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
48 # GPI routing
49 # 0 No effect (default)
50 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
51 # 2 SCI (if corresponding GPIO_EN bit is also set)
52 register "alt_gp_smi_en" = "0x0000"
53 register "gpi1_routing" = "2"
54 register "gpi13_routing" = "2"
56 # Enable SATA ports 0 (HDD bay) & 1 (ODD bay) & 2 (mSATA) & 4 (dock)
57 register "sata_port_map" = "0x17"
58 # Set max SATA speed to 6.0 Gb/s
59 register "sata_interface_speed_support" = "0x3"
61 register "gen1_dec" = "0x7c1601"
62 register "gen2_dec" = "0x0c15e1"
63 register "gen4_dec" = "0x0c06a1"
65 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
67 # Enable zero-based linear PCIe root port functions
68 register "pcie_port_coalesce" = "1"
70 register "c2_latency" = "101" # c2 not supported
71 register "p_cnt_throttling_supported" = "1"
73 register "spi_uvscc" = "0x2005"
74 register "spi_lvscc" = "0x2005"
76 device pci 16.0 off end # Management Engine Interface 1
77 device pci 16.1 off end # Management Engine Interface 2
78 device pci 16.2 off end # Management Engine IDE-R
79 device pci 16.3 off end # Management Engine KT
80 device pci 19.0 on
81 subsystemid 0x17aa 0x21ce
82 end # Intel Gigabit Ethernet
83 device pci 1a.0 on
84 subsystemid 0x17aa 0x21d2
85 end # USB Enhanced Host Controller #2
86 device pci 1b.0 on
87 subsystemid 0x17aa 0x21d2
88 end # High Definition Audio Controller
89 device pci 1c.0 off end # PCIe Port #1
90 device pci 1c.1 on
91 subsystemid 0x17aa 0x21d2
92 end # PCIe Port #2 Integrated Wireless LAN
93 device pci 1c.2 off end # PCIe Port #3
94 device pci 1c.3 on
95 subsystemid 0x17aa 0x21d2
96 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
97 end # PCIe Port #4 ExpressCard
98 device pci 1c.4 off end # PCIe Port #5
99 device pci 1c.5 off end # PCIe Port #6 Intel Gigabit Ethernet PHY (not PCIe)
100 device pci 1c.6 on
101 subsystemid 0x17aa 0x21d2
102 end # PCIe Port #7 NEC Corporation uPD720200A USB 3.0 Host Controller
103 device pci 1c.7 off end # PCIe Port #8
104 device pci 1d.0 on
105 subsystemid 0x17aa 0x21d2
106 end # USB Enhanced Host Controller #1
107 device pci 1e.0 off end # PCI bridge
108 device pci 1f.0 on
109 subsystemid 0x17aa 0x21d2
110 chip ec/lenovo/pmh7
111 device pnp ff.1 on # dummy
113 register "backlight_enable" = "0x01"
114 register "dock_event_enable" = "0x01"
117 chip drivers/pc80/tpm
118 device pnp 0c31.0 on end
121 chip ec/lenovo/h8
122 device pnp ff.2 on # dummy
123 io 0x60 = 0x62
124 io 0x62 = 0x66
125 io 0x64 = 0x1600
126 io 0x66 = 0x1604
129 register "config0" = "0xa7"
130 register "config1" = "0x01"
131 register "config2" = "0xa0"
132 register "config3" = "0xe2"
134 register "has_keyboard_backlight" = "0"
136 register "beepmask0" = "0x02"
137 register "beepmask1" = "0x86"
138 register "has_power_management_beeps" = "1"
139 register "event2_enable" = "0xff"
140 register "event3_enable" = "0xff"
141 register "event4_enable" = "0xf0"
142 register "event5_enable" = "0x3c"
143 register "event6_enable" = "0x00"
144 register "event7_enable" = "0xa1"
145 register "event8_enable" = "0x7b"
146 register "event9_enable" = "0xff"
147 register "eventa_enable" = "0x00"
148 register "eventb_enable" = "0x00"
149 register "eventc_enable" = "0xff"
150 register "eventd_enable" = "0xff"
151 register "evente_enable" = "0x0d"
153 register "has_bdc_detection" = "1"
154 register "bdc_gpio_num" = "54"
155 register "bdc_gpio_lvl" = "0"
157 chip drivers/lenovo/hybrid_graphics
158 device pnp ff.f on end # dummy
160 register "detect_gpio" = "21"
162 register "has_panel_hybrid_gpio" = "1"
163 register "panel_hybrid_gpio" = "52"
164 register "panel_integrated_lvl" = "1"
166 register "has_backlight_gpio" = "0"
167 register "has_dgpu_power_gpio" = "0"
169 register "has_thinker1" = "1"
171 end # LPC Controller
172 device pci 1f.2 on
173 subsystemid 0x17aa 0x21d2
174 end # 6 port SATA AHCI Controller
175 device pci 1f.3 on
176 subsystemid 0x17aa 0x21d2
177 # eeprom, 8 virtual devices, same chip
178 chip drivers/i2c/at24rf08c
179 device i2c 54 on end
180 device i2c 55 on end
181 device i2c 56 on end
182 device i2c 57 on end
183 device i2c 5c on end
184 device i2c 5d on end
185 device i2c 5e on end
186 device i2c 5f on end
188 end # SMBus Controller
189 device pci 1f.5 off end # SATA Controller 2
190 device pci 1f.6 on
191 subsystemid 0x17aa 0x21d2
192 end # Thermal