Debian Codegraph @

src/mainboard/lenovo/m900_tiny/devicetree.cb

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/skylake
4 # Enable deep Sx states
5 register "deep_s5_enable_ac" = "true"
6 register "deep_s5_enable_dc" = "true"
7 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN"
8
9 register "eist_enable" = "true"
10
11 # GPE configuration
12 # Note that GPE events called out in ASL code rely on this
13 # route. i.e. If this route changes then the affected GPE
14 # offset bits also need to be changed.
15 register "gpe0_dw0" = "GPP_G"
16 register "gpe0_dw1" = "GPP_D"
17 register "gpe0_dw2" = "GPP_E"
18
19 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
20 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
21 register "PmConfigSlpS3MinAssert" = "0x02"
22
23 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
24 register "PmConfigSlpS4MinAssert" = "0x04"
25
26 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
27 register "PmConfigSlpSusMinAssert" = "0x03"
28
29 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
30 register "PmConfigSlpAMinAssert" = "0x03"
31
32 # PL2 override 65W
33 register "power_limits_config" = "{
34 .tdp_pl2_override = 65,
35 }"
36
37 register "SerialIoDevMode" = "{
38 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, // LPSS UART
39 }"
40
41 # VR Settings Configuration for 4 Domains
42 #+----------------+-------+-------+-------+-------+
43 #| Domain/Setting | SA | IA | GTUS | GTS |
44 #+----------------+-------+-------+-------+-------+
45 #| Psi1Threshold | 20A | 20A | 20A | 20A |
46 #| Psi2Threshold | 4A | 5A | 5A | 5A |
47 #| Psi3Threshold | 1A | 1A | 1A | 1A |
48 #| Psi3Enable | 1 | 1 | 1 | 1 |
49 #| Psi4Enable | 1 | 1 | 1 | 1 |
50 #| ImonSlope | 0 | 0 | 0 | 0 |
51 #| ImonOffset | 0 | 0 | 0 | 0 |
52 #| IccMax | 11A | 66A | 48A | 48A |
53 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
54 #| AcLoadline | 3.9 | 2.1 | 3.1 | 3.1 |
55 #| DcLoadline | 3.9 | 2.1 | 3.1 | 3.1 |
56 #+----------------+-------+-------+-------+-------+
57 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
58 .vr_config_enable = 1,
59 .psi1threshold = VR_CFG_AMP(20),
60 .psi2threshold = VR_CFG_AMP(4),
61 .psi3threshold = VR_CFG_AMP(1),
62 .psi3enable = 1,
63 .psi4enable = 1,
64 .imon_slope = 0x0,
65 .imon_offset = 0x0,
66 .icc_max = VR_CFG_AMP(11),
67 .voltage_limit = 1520,
68 .ac_loadline = 390,
69 .dc_loadline = 390,
70 }"
71
72 register "domain_vr_config[VR_IA_CORE]" = "{
73 .vr_config_enable = 1,
74 .psi1threshold = VR_CFG_AMP(20),
75 .psi2threshold = VR_CFG_AMP(5),
76 .psi3threshold = VR_CFG_AMP(1),
77 .psi3enable = 1,
78 .psi4enable = 1,
79 .imon_slope = 0x0,
80 .imon_offset = 0x0,
81 .icc_max = VR_CFG_AMP(66),
82 .voltage_limit = 1520,
83 .ac_loadline = 210,
84 .dc_loadline = 210,
85 }"
86
87 register "domain_vr_config[VR_GT_UNSLICED]" = "{
88 .vr_config_enable = 1,
89 .psi1threshold = VR_CFG_AMP(20),
90 .psi2threshold = VR_CFG_AMP(5),
91 .psi3threshold = VR_CFG_AMP(1),
92 .psi3enable = 1,
93 .psi4enable = 1,
94 .imon_slope = 0x0,
95 .imon_offset = 0x0,
96 .icc_max = VR_CFG_AMP(48),
97 .voltage_limit = 1520,
98 .ac_loadline = 310,
99 .dc_loadline = 310,
100 }"
101
102 register "domain_vr_config[VR_GT_SLICED]" = "{
103 .vr_config_enable = 1,
104 .psi1threshold = VR_CFG_AMP(20),
105 .psi2threshold = VR_CFG_AMP(5),
106 .psi3threshold = VR_CFG_AMP(1),
107 .psi3enable = 1,
108 .psi4enable = 1,
109 .imon_slope = 0x0,
110 .imon_offset = 0x0,
111 .icc_max = VR_CFG_AMP(48),
112 .voltage_limit = 1520,
113 .ac_loadline = 310,
114 .dc_loadline = 310,
115 }"
116
117 # Send an extra VR mailbox command for the PS4 exit issue
118 register "SendVrMbxCmd" = "2"
119
120 device domain 0 on
121 subsystemid 0x17aa 0x30d0 inherit
122 device ref igpu on
123 register "PrimaryDisplay" = "Display_iGFX"
124 end
125 device ref sa_thermal on end
126 device ref gmm on end
127 device ref south_xhci on
128 register "usb2_ports" = "{
129 [0] = USB2_PORT_MID(OC0), // Front Port 1
130 [1] = USB2_PORT_MID(OC0), // Front Port 2
131 [2] = USB2_PORT_MID(OC1), // Rear Port 3
132 [3] = USB2_PORT_MID(OC2), // Rear Port 4
133 [4] = USB2_PORT_MID(OC3), // Rear Port 5
134 [5] = USB2_PORT_MID(OC4), // Rear Port 6
135 [6] = USB2_PORT_MID(OC1), // Internal header
136 [8] = USB2_PORT_SHORT(OC_SKIP), // M.2 2230
137 }"
138 register "usb3_ports" = "{
139 [0] = USB3_PORT_DEFAULT(OC0), // Front Port 1
140 [1] = USB3_PORT_DEFAULT(OC0), // Front Port 2
141 [2] = USB3_PORT_DEFAULT(OC3), // Rear Port 3
142 [3] = USB3_PORT_DEFAULT(OC3), // Rear Port 4
143 [4] = USB3_PORT_DEFAULT(OC1), // Rear Port 5
144 [5] = USB3_PORT_DEFAULT(OC1), // Rear Port 6
145 }"
146 end
147 device ref thermal on end
148 device ref heci1 on end
149 device ref sata on
150 register "SataSalpSupport" = "1"
151 register "SataPortsEnable" = "{
152 [0] = 1,
153 [1] = 1,
154 [2] = 1,
155 [3] = 1,
156 [4] = 1,
157 }"
158 register "SataPortsHotPlug" = "{
159 [0] = 1,
160 [1] = 1,
161 }"
162 end
163 device ref pcie_rp17 on # M.2 2280 / 2242 - SSD
164 register "PcieRpAdvancedErrorReporting[16]" = "1"
165 register "PcieRpLtrEnable[16]" = "true"
166 register "PcieRpClkSrcNumber[16]" = "7"
167 register "PcieRpHotPlug[16]" = "1"
168 end
169 device ref pcie_rp7 on # M.2 2230 - WLAN
170 register "PcieRpAdvancedErrorReporting[6]" = "1"
171 register "PcieRpLtrEnable[6]" = "true"
172 register "PcieRpClkSrcNumber[6]" = "1"
173 register "PcieRpHotPlug[6]" = "1"
174 chip drivers/wifi/generic
175 register "wake" = "GPE0_PCI_EXP"
176 device generic 0 on end
177 end
178 end
179 device ref lpc_espi on
180 # Set LPC Serial IRQ mode
181 register "serirq_mode" = "SERIRQ_CONTINUOUS"
182 chip superio/nuvoton/nct6687d
183 device pnp 2e.1 off end # Parallel port
184 device pnp 2e.2 on # COM1 - optional module
185 io 0x60 = 0x3f8
186 irq 0x70 = 3
187 end
188 device pnp 2e.3 off end # COM2, IR
189 device pnp 2e.5 off end # Keyboard
190 device pnp 2e.6 off end # CIR
191 device pnp 2e.7 off end # GPIO0-7
192 device pnp 2e.8 off end # P80 UART
193 device pnp 2e.9 off end # GPIO8-9, GPIO1-8 AF
194 device pnp 2e.a on # ACPI
195 io 0x60 = 0xa10
196 end
197 device pnp 2e.b on # EC
198 io 0x60 = 0xa20
199 end
200 device pnp 2e.c off end # RTC
201 device pnp 2e.d off end # Deep Sleep
202 device pnp 2e.e on # TACH/PWM assignment
203 irq 0xe4 = 0x10
204 irq 0xe5 = 0x09
205 end
206 device pnp 2e.f off end # Function register
207 end
208 chip drivers/pc80/tpm
209 device pnp 0c31.0 on end
210 end
211 end
212 device ref hda on end
213 device ref smbus on end
214 device ref gbe on end
215 end
216 end