Debian Codegraph @

src/mainboard/libretrend/lt1000/devicetree.cb

raw
1 chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable_ac" = "false"
5 register "deep_s3_enable_dc" = "false"
6 register "deep_s5_enable_ac" = "true"
7 register "deep_s5_enable_dc" = "true"
8 register "deep_sx_config" = "DSX_EN_WAKE_PIN"
9
10 register "eist_enable" = "true"
11
12 # Set the Thermal Control Circuit (TCC) activation value to 95C
13 # even though FSP integration guide says to set it to 100C for SKL-U
14 # (offset at 0), because when the TCC activates at 100C, the CPU
15 # will have already shut itself down from overheating protection.
16 register "tcc_offset" = "5" # TCC of 95C
17
18 # GPE configuration
19 # Note that GPE events called out in ASL code rely on this
20 # route. i.e. If this route changes then the affected GPE
21 # offset bits also need to be changed.
22 register "gpe0_dw0" = "GPP_C"
23 register "gpe0_dw1" = "GPP_D"
24 register "gpe0_dw2" = "GPP_E"
25
26 # Disable DPTF
27 register "dptf_enable" = "false"
28
29 # FSP Configuration
30 register "DspEnable" = "true"
31 register "IoBufferOwnership" = "0"
32 register "SkipExtGfxScan" = "1"
33 register "SaGv" = "SaGv_Enabled"
34 register "PmConfigSlpS3MinAssert" = "2" # 50ms
35 register "PmConfigSlpS4MinAssert" = "1" # 1s
36 register "PmConfigSlpSusMinAssert" = "3" # 500ms
37 register "PmConfigSlpAMinAssert" = "3" # 2s
38
39 # VR Settings Configuration for 4 Domains
40 #+----------------+-------+-------+-------------+-------+
41 #| Domain/Setting | SA | IA | GT-Unsliced | GT |
42 #+----------------+-------+-------+-------------+-------+
43 #| Psi1Threshold | 20A | 20A | 20A | 20A |
44 #| Psi2Threshold | 4A | 5A | 5A | 5A |
45 #| Psi3Threshold | 1A | 1A | 1A | 1A |
46 #| Psi3Enable | 1 | 1 | 1 | 1 |
47 #| Psi4Enable | 1 | 1 | 1 | 1 |
48 #| ImonSlope | 0 | 0 | 0 | 0 |
49 #| ImonOffset | 0 | 0 | 0 | 0 |
50 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
51 #+----------------+-------+-------+-------------+-------+
52 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
53 .vr_config_enable = 1,
54 .psi1threshold = VR_CFG_AMP(20),
55 .psi2threshold = VR_CFG_AMP(4),
56 .psi3threshold = VR_CFG_AMP(1),
57 .psi3enable = 1,
58 .psi4enable = 1,
59 .imon_slope = 0x0,
60 .imon_offset = 0x0,
61 .voltage_limit = 1520,
62 }"
63
64 register "domain_vr_config[VR_IA_CORE]" = "{
65 .vr_config_enable = 1,
66 .psi1threshold = VR_CFG_AMP(20),
67 .psi2threshold = VR_CFG_AMP(5),
68 .psi3threshold = VR_CFG_AMP(1),
69 .psi3enable = 1,
70 .psi4enable = 1,
71 .imon_slope = 0x0,
72 .imon_offset = 0x0,
73 .voltage_limit = 1520,
74 }"
75
76 register "domain_vr_config[VR_GT_UNSLICED]" = "{
77 .vr_config_enable = 1,
78 .psi1threshold = VR_CFG_AMP(20),
79 .psi2threshold = VR_CFG_AMP(5),
80 .psi3threshold = VR_CFG_AMP(1),
81 .psi3enable = 1,
82 .psi4enable = 1,
83 .imon_slope = 0x0,
84 .imon_offset = 0x0,
85 .voltage_limit = 1520,
86 }"
87
88 register "domain_vr_config[VR_GT_SLICED]" = "{
89 .vr_config_enable = 1,
90 .psi1threshold = VR_CFG_AMP(20),
91 .psi2threshold = VR_CFG_AMP(5),
92 .psi3threshold = VR_CFG_AMP(1),
93 .psi3enable = 1,
94 .psi4enable = 1,
95 .imon_slope = 0x0,
96 .imon_offset = 0x0,
97 .voltage_limit = 1520,
98 }"
99
100 register "PcieRpClkSrcNumber[0]" = "0"
101
102 # PL2 override 25W
103 register "power_limits_config" = "{
104 .tdp_pl2_override = 25,
105 }"
106
107 # Send an extra VR mailbox command for the PS4 exit issue
108 register "SendVrMbxCmd" = "2"
109
110 device domain 0 on
111 device ref igpu on end
112 device ref sa_thermal on end
113 device ref south_xhci on
114 register "usb2_ports" = "{
115 [0] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
116 [1] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
117 [2] = USB2_PORT_MID(OC_SKIP), /* WiFi */
118 [3] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
119 [4] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
120 [5] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
121 [6] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
122 [7] = USB2_PORT_MID(OC_SKIP), /* GL850G for F_USB1 and F_USB2 headers */
123 }"
124
125 register "usb3_ports" = "{
126 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
127 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
128 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
129 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
130 }"
131 end
132 device ref south_xdci on end
133 device ref thermal on end
134 device ref heci1 on end
135 device ref sata on
136 register "SataPortsEnable" = "{
137 [0] = 1,
138 [1] = 1,
139 [2] = 1,
140 }"
141 register "SataSpeedLimit" = "2"
142 end
143 device ref pcie_rp3 on end
144 device ref pcie_rp4 on
145 register "PcieRpClkSrcNumber[3]" = "1"
146 end
147 device ref pcie_rp5 on
148 register "PcieRpClkSrcNumber[4]" = "2"
149 smbios_slot_desc "SlotTypePciExpressMini52pinWithoutBSKO"
150 "SlotLengthOther" "MPCIE_WIFI1" "SlotDataBusWidth1X"
151 end
152 device ref pcie_rp6 on end
153 device ref pcie_rp9 on
154 register "PcieRpClkSrcNumber[8]" = "3"
155 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
156 "SSD_M.2 2242/2280" "SlotDataBusWidth4X"
157 end
158 device ref pcie_rp10 on
159 register "PcieRpClkSrcNumber[9]" = "3"
160 end
161 device ref pcie_rp11 on
162 register "PcieRpClkSrcNumber[10]" = "3"
163 end
164 device ref pcie_rp12 on
165 register "PcieRpClkSrcNumber[11]" = "3"
166 end
167 device ref lpc_espi on
168 register "serirq_mode" = "SERIRQ_CONTINUOUS"
169
170 register "gen1_dec" = "0x007c0a01" # EC 0xa00-0xa7f
171 register "gen2_dec" = "0x000c03e1" # COM3 port 0x3e0 - 0x3ef
172 register "gen3_dec" = "0x00fc02e1" # COM2/4/5/6 ports 0x2e0 - 0x2ff
173 chip drivers/pc80/tpm
174 device pnp 0c31.0 on end
175 end
176 chip superio/ite/it8786e
177 register "TMPIN1.mode" = "THERMAL_PECI"
178 register "TMPIN1.offset" = "100"
179 register "TMPIN1.min" = "128"
180 register "TMPIN2.mode" = "THERMAL_RESISTOR"
181 register "TMPIN2.min" = "128"
182 register "TMPIN3.mode" = "THERMAL_MODE_DISABLED"
183 register "ec.vin_mask" = "VIN_ALL"
184 # FAN1 is CPU fan (on board)
185 register "FAN1.mode" = "FAN_SMART_AUTOMATIC"
186 register "FAN1.smart.tmpin" = " 1"
187 register "FAN1.smart.tmp_off" = "35"
188 register "FAN1.smart.tmp_start" = "60"
189 register "FAN1.smart.tmp_full" = "85"
190 register "FAN1.smart.tmp_delta" = " 2"
191 register "FAN1.smart.pwm_start" = "20"
192 register "FAN1.smart.slope" = "24"
193 # FAN2 is system fan (4 pin connector populated)
194 #register "FAN2.mode" = "FAN_MODE_OFF"
195 # FAN3 PWM is used for LVDS backlight control
196 #register "FAN3.mode" = "FAN_MODE_OFF"
197
198 device pnp 2e.1 on # COM 1
199 io 0x60 = 0x3f8
200 irq 0x70 = 4
201 end
202 device pnp 2e.2 on # COM 2
203 io 0x60 = 0x2f8
204 irq 0x70 = 3
205 end
206 device pnp 2e.3 on # Printer Port
207 io 0x60 = 0x378
208 io 0x62 = 0x778
209 irq 0x70 = 5
210 drq 0x74 = 3
211 end
212 device pnp 2e.4 on # Environment Controller
213 io 0x60 = 0xa40
214 io 0x62 = 0xa30
215 irq 0x70 = 9
216 end
217 device pnp 2e.5 on # Keyboard
218 io 0x60 = 0x60
219 io 0x62 = 0x64
220 irq 0x70 = 1
221 end
222 device pnp 2e.6 on # Mouse
223 irq 0x70 = 12
224 end
225 device pnp 2e.7 off # GPIO
226 end
227 device pnp 2e.8 on # COM 3
228 io 0x60 = 0x3e8
229 irq 0x70 = 3
230 end
231 device pnp 2e.9 on # COM 4
232 io 0x60 = 0x2e8
233 irq 0x70 = 4
234 end
235 device pnp 2e.a off end # CIR
236 device pnp 2e.b on # COM 5
237 io 0x60 = 0x2f0
238 irq 0x70 = 3
239 end
240 device pnp 2e.c on # COM 6
241 io 0x60 = 0x2e0
242 irq 0x70 = 4
243 end
244 end
245 end
246 device ref hda on end
247 device ref smbus on end
248 device ref fast_spi on end
249 end
250 end