mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / lenovo / t430 / devicetree.cb
blobf0f7975117c42780060e7f5e8ac15b1887b3e14d
1 chip northbridge/intel/sandybridge
2 register "gfx" = "GMA_STATIC_DISPLAYS(1)"
4 # Enable DisplayPort Hotplug with 6ms pulse
5 register "gpu_dp_d_hotplug" = "0x06"
7 # Enable Panel as LVDS and configure power delays
8 register "gpu_panel_port_select" = "PANEL_PORT_LVDS"
9 register "gpu_panel_power_cycle_delay" = "6" # T7: 500ms
10 register "gpu_panel_power_up_delay" = "100" # T1+T2: 10ms
11 register "gpu_panel_power_down_delay" = "100" # T5+T6: 10ms
12 register "gpu_panel_power_backlight_on_delay" = "2100" # T3: 210ms
13 register "gpu_panel_power_backlight_off_delay" = "2100" # T4: 210ms
14 register "gpu_cpu_backlight" = "0x1155"
15 register "gpu_pch_backlight" = "0x11551155"
17 register "spd_addresses" = "{0x50, 0, 0x51, 0}"
19 device domain 0 on
20 subsystemid 0x17aa 0x21f3 inherit
22 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
23 register "docking_supported" = "1"
24 register "gen1_dec" = "0x000c15e1"
25 register "gen2_dec" = "0x007c1601"
26 register "gen3_dec" = "0x000c06a1"
27 register "gpi13_routing" = "2"
28 register "gpi1_routing" = "2"
29 register "pcie_hotplug_map" = "{ 0, 0, 1, 0, 0, 0, 0, 0 }"
30 register "pcie_port_coalesce" = "true"
31 register "sata_interface_speed_support" = "0x3"
32 register "sata_port_map" = "0x17"
34 # Do not enable xHCI Port 4 since WWAN USB is EHCI-only
35 register "superspeed_capable_ports" = "0x7"
36 register "xhci_switchable_ports" = "0x7"
37 register "xhci_overcurrent_mapping" = "0x04000201"
38 register "usb_port_config" = "{
39 { 1, 1, 0 },
40 { 1, 1, 1 },
41 { 1, 2, 3 },
42 { 1, 1, -1 },
43 { 1, 1, 2 },
44 { 1, 0, -1 },
45 { 0, 0, -1 },
46 { 1, 2, -1 },
47 { 1, 0, -1 },
48 { 1, 1, 5 },
49 { 1, 0, -1 },
50 { 1, 0, -1 },
51 { 1, 3, -1 },
52 { 1, 1, -1 }
55 # device specific SPI configuration
56 register "spi_uvscc" = "0x2005"
57 register "spi_lvscc" = "0x2005"
59 device ref xhci on end # USB 3.0 Controller
60 device ref mei1 on end # Management Engine Interface 1
61 device ref mei2 off end # Management Engine Interface 2
62 device ref me_ide_r off end # Management Engine IDE-R
63 device ref me_kt off end # Management Engine KT
64 device ref gbe on end # Intel Gigabit Ethernet
65 device ref ehci2 on end # USB2 EHCI #2
66 device ref hda on end # High Definition Audio controller
67 device ref pcie_rp1 on # PCIe Port #1
68 chip drivers/ricoh/rce822 # Ricoh cardreader
69 register "disable_mask" = "0x87"
70 register "sdwppol" = "1"
71 device pci 00.0 on end # Ricoh SD card reader
72 end
73 end
74 device ref pcie_rp2 on end # PCIe Port #2
75 device ref pcie_rp3 on # PCIe Port #3
76 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
77 end
78 device ref pcie_rp4 off end # PCIe Port #4
79 device ref pcie_rp5 off end # PCIe Port #5
80 device ref pcie_rp6 off end # PCIe Port #6
81 device ref pcie_rp7 off end # PCIe Port #7
82 device ref pcie_rp8 off end # PCIe Port #8
83 device ref ehci1 on end # USB2 EHCI #1
84 device ref pci_bridge off end # PCI bridge
85 device ref lpc on # LPC bridge PCI-LPC bridge
86 chip ec/lenovo/pmh7
87 register "backlight_enable" = "true"
88 register "dock_event_enable" = "true"
89 device pnp ff.1 on end # dummy
90 end
91 chip ec/lenovo/h8
92 device pnp ff.2 on # dummy
93 io 0x60 = 0x62
94 io 0x62 = 0x66
95 io 0x64 = 0x1600
96 io 0x66 = 0x1604
97 end
98 register "config0" = "0xa7"
99 register "config1" = "0x01"
100 register "config2" = "0xa0"
101 register "config3" = "0xe2"
103 register "has_keyboard_backlight" = "0"
105 register "beepmask0" = "0x02"
106 register "beepmask1" = "0x86"
107 register "has_power_management_beeps" = "1"
108 register "event2_enable" = "0xff"
109 register "event3_enable" = "0xff"
110 register "event4_enable" = "0xf0"
111 register "event5_enable" = "0x3c"
112 register "event6_enable" = "0x00"
113 register "event7_enable" = "0xa1"
114 register "event8_enable" = "0x7b"
115 register "event9_enable" = "0xff"
116 register "eventa_enable" = "0x00"
117 register "eventb_enable" = "0x00"
118 register "eventc_enable" = "0xff"
119 register "eventd_enable" = "0xff"
120 register "evente_enable" = "0x0d"
122 register "has_bdc_detection" = "1"
123 register "bdc_gpio_num" = "54"
124 register "bdc_gpio_lvl" = "0"
126 register "has_wwan_detection" = "1"
127 register "wwan_gpio_num" = "70"
128 register "wwan_gpio_lvl" = "0"
130 chip drivers/lenovo/hybrid_graphics
131 device pnp ff.f on end # dummy
133 register "detect_gpio" = "21"
135 register "has_panel_hybrid_gpio" = "1"
136 register "panel_hybrid_gpio" = "52"
137 register "panel_integrated_lvl" = "1"
139 register "has_backlight_gpio" = "0"
140 register "has_dgpu_power_gpio" = "0"
142 register "has_thinker1" = "1"
144 chip drivers/pc80/tpm
145 device pnp 0c31.0 on end
148 device ref sata1 on end # SATA Controller 1
149 device ref smbus on # SMBus
150 chip drivers/i2c/at24rf08c # eeprom, 8 virtual devices, same chip
151 device i2c 54 on end
152 device i2c 55 on end
153 device i2c 56 on end
154 device i2c 57 on end
155 device i2c 5c on end
156 device i2c 5d on end
157 device i2c 5e on end
158 device i2c 5f on end
161 device ref sata2 off end # SATA Controller 2
162 device ref thermal off end # Thermal
164 device ref host_bridge on end # Host bridge Host bridge
165 device ref peg10 on end # PCIe Bridge for discrete graphics
166 device ref igd on end # Internal graphics VGA controller
167 device ref dev4 off end # Signal processing controller