mb/lenovo: Add SMBIOS type 9 for ExpressCard
[coreboot.git] / src / mainboard / lenovo / t520 / variants / w520 / devicetree.cb
blobceca46ea841f41239cb9e8c65adbad3a0d7fe85a
1 chip northbridge/intel/sandybridge
2 # IGD Displays
3 register "gfx.ndid" = "3"
4 register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"
6 # Enable DisplayPort Hotplug with 6ms pulse
7 register "gpu_dp_d_hotplug" = "0x06"
9 # Enable Panel as LVDS and configure power delays
10 register "gpu_panel_port_select" = "0" # LVDS
11 register "gpu_panel_power_cycle_delay" = "5"
12 register "gpu_panel_power_up_delay" = "300" # T1+T2: 30ms
13 register "gpu_panel_power_down_delay" = "300" # T5+T6: 30ms
14 register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms
15 register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms
16 register "gfx.use_spread_spectrum_clock" = "1"
17 register "gfx.link_frequency_270_mhz" = "1"
18 register "gpu_cpu_backlight" = "0x1155"
19 register "gpu_pch_backlight" = "0x06100610"
21 device cpu_cluster 0 on
22 chip cpu/intel/model_206ax
23 # Magic APIC ID to locate this chip
24 device lapic 0x0 on end
25 device lapic 0xacac off end
27 register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
28 register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
29 register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
31 register "c1_battery" = "1" # ACPI(C1) = MWAIT(C1)
32 register "c2_battery" = "3" # ACPI(C2) = MWAIT(C3)
33 register "c3_battery" = "5" # ACPI(C3) = MWAIT(C7)
34 end
35 end
37 register "pci_mmio_size" = "2048"
39 device domain 0 on
40 device pci 00.0 on end # host bridge
41 device pci 01.0 on end # NVIDIA Corporation GF119M [NVS 4200M]
42 device pci 02.0 on end # vga controller
44 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
45 # GPI routing
46 # 0 No effect (default)
47 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
48 # 2 SCI (if corresponding GPIO_EN bit is also set)
49 register "alt_gp_smi_en" = "0x0000"
50 register "gpi1_routing" = "2"
51 register "gpi13_routing" = "2"
53 # Enable SATA ports 0 (HDD bay) & 1 (ODD bay) & 2 (mSATA) & 3 (eSATA) & 4 (dock)
54 register "sata_port_map" = "0x1f"
55 # Set max SATA speed to 6.0 Gb/s
56 register "sata_interface_speed_support" = "0x3"
58 register "gen1_dec" = "0x7c1601"
59 register "gen2_dec" = "0x0c15e1"
60 register "gen4_dec" = "0x0c06a1"
62 # Enable zero-based linear PCIe root port functions
63 register "pcie_port_coalesce" = "1"
65 register "c2_latency" = "101" # c2 not supported
66 register "p_cnt_throttling_supported" = "1"
68 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
70 register "spi_uvscc" = "0x2005"
71 register "spi_lvscc" = "0x2005"
73 device pci 16.0 on end # Management Engine Interface 1
74 device pci 16.1 off end
75 device pci 16.2 off end
76 device pci 16.3 off end
77 device pci 19.0 on end # Intel Gigabit Ethernet
78 device pci 1a.0 on end # USB2 EHCI #2
79 device pci 1b.0 on end # High Definition Audio
80 device pci 1c.0 off end # PCIe Port #1
81 device pci 1c.1 on end # PCIe Port #2 Integrated Wireless LAN
82 device pci 1c.2 off end # PCIe Port #3
83 device pci 1c.3 on
84 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
85 end # PCIe Port #4 Express Card
86 device pci 1c.4 on end # PCIe Port #5 MMC/SDXC + IEEE1394
87 device pci 1c.5 off end # PCIe Port #6 Intel Ethernet PHY
88 device pci 1c.6 on end # PCIe Port #7 USB 3.0 only W520
89 device pci 1c.7 off end # PCIe Port #8
90 device pci 1d.0 on end # USB2 EHCI #1
91 device pci 1f.0 on #LPC bridge
92 chip ec/lenovo/pmh7
93 device pnp ff.1 on # dummy
94 end
95 register "backlight_enable" = "0x01"
96 register "dock_event_enable" = "0x01"
97 end
99 chip drivers/pc80/tpm
100 device pnp 0c31.0 on 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
111 register "config0" = "0xa7"
112 register "config1" = "0x09"
113 register "config2" = "0xa0"
114 register "config3" = "0xc2"
116 register "beepmask0" = "0x00"
117 register "beepmask1" = "0x86"
118 register "has_power_management_beeps" = "0"
119 register "event2_enable" = "0xff"
120 register "event3_enable" = "0xff"
121 register "event4_enable" = "0xd0"
122 register "event5_enable" = "0xfc"
123 register "event6_enable" = "0x00"
124 register "event7_enable" = "0x01"
125 register "event8_enable" = "0x7b"
126 register "event9_enable" = "0xff"
127 register "eventa_enable" = "0x01"
128 register "eventb_enable" = "0x00"
129 register "eventc_enable" = "0xff"
130 register "eventd_enable" = "0xff"
131 register "evente_enable" = "0x0d"
133 register "has_bdc_detection" = "1"
134 register "bdc_gpio_num" = "54"
135 register "bdc_gpio_lvl" = "0"
137 chip drivers/lenovo/hybrid_graphics
138 device pnp ff.f on end # dummy
140 register "detect_gpio" = "21"
142 register "has_panel_hybrid_gpio" = "1"
143 register "panel_hybrid_gpio" = "52"
144 register "panel_integrated_lvl" = "1"
146 register "has_backlight_gpio" = "0"
147 register "has_dgpu_power_gpio" = "0"
149 register "has_thinker1" = "1"
151 end # LPC bridge
152 device pci 1f.2 on end # SATA Controller 1
153 device pci 1f.3 on # SMBUS controller
154 # eeprom, 8 virtual devices, same chip
155 chip drivers/i2c/at24rf08c
156 device i2c 54 on end
157 device i2c 55 on end
158 device i2c 56 on end
159 device i2c 57 on end
160 device i2c 5c on end
161 device i2c 5d on end
162 device i2c 5e on end
163 device i2c 5f on end
165 end # SMBus