Debian Codegraph @

src/mainboard/system76/whl-u/devicetree.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/cannonlake
4 # Lock Down
5 register "common_soc_config" = "{
6 .i2c[0] = {
7 .speed = I2C_SPEED_FAST,
8 .rise_time_ns = 80,
9 .fall_time_ns = 110,
10 },
11 }"
12
13 # CPU (soc/intel/cannonlake/cpu.c)
14 # Power limit
15 register "power_limits_config" = "{
16 .tdp_pl1_override = 20,
17 .tdp_pl2_override = 30,
18 }"
19
20 # Enable Enhanced Intel SpeedStep
21 register "eist_enable" = "true"
22
23 # FSP Memory (soc/intel/cannonlake/romstage/fsp_params.c)
24 register "SaGv" = "SaGv_Enabled"
25 register "enable_c6dram" = "1"
26
27 # FSP Silicon (soc/intel/cannonlake/fsp_params.c)
28 # Serial I/O
29 register "SerialIoDevMode" = "{
30 [PchSerialIoIndexI2C0] = PchSerialIoPci,
31 [PchSerialIoIndexUART2] = PchSerialIoPci,
32 }"
33
34 # Misc
35 register "AcousticNoiseMitigation" = "1"
36
37 # Power
38 register "PchPmSlpS3MinAssert" = "3" # 50ms
39 register "PchPmSlpS4MinAssert" = "1" # 1s
40 register "PchPmSlpSusMinAssert" = "2" # 500ms
41 register "PchPmSlpAMinAssert" = "4" # 2s
42
43 # Thermal
44 register "tcc_offset" = "12"
45
46 # Serial IRQ Continuous
47 register "serirq_mode" = "SERIRQ_CONTINUOUS"
48
49 # PM Util (soc/intel/cannonlake/pmutil.c)
50 # GPE configuration
51 # Note that GPE events called out in ASL code rely on this
52 # route. i.e. If this route changes then the affected GPE
53 # offset bits also need to be changed.
54 register "gpe0_dw0" = "PMC_GPP_C"
55 register "gpe0_dw1" = "PMC_GPP_D"
56 register "gpe0_dw2" = "PMC_GPP_E"
57
58 # Actual device tree
59 device domain 0 on
60 device ref igpu on
61 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
62 end
63 device ref dptf on end
64 device ref thermal on end
65 device ref xhci on
66 register "usb2_ports" = "{
67 [0] = USB2_PORT_MID(OC_SKIP), /* USB-A */
68 [1] = USB2_PORT_MID(OC_SKIP), /* 3G / LTE */
69 [2] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C */
70 [3] = USB2_PORT_MID(OC_SKIP), /* USB-A */
71 [6] = USB2_PORT_MAX(OC_SKIP), /* Camera */
72 [9] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */
73 }"
74 register "usb3_ports" = "{
75 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-A */
76 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* 4G on galp3-c, NC on darp5 */
77 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C */
78 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-A */
79 [4] = USB3_PORT_EMPTY, /* Used by TBT */
80 [5] = USB3_PORT_EMPTY, /* Used by TBT */
81 }"
82 end
83 device ref cnvi_wifi on
84 chip drivers/wifi/generic
85 register "wake" = "PME_B0_EN_BIT"
86 device generic 0 on end
87 end
88 end
89 device ref i2c0 on end
90 device ref sata on
91 register "SataPortsEnable" = "{
92 [0] = 1,
93 [2] = 1,
94 }"
95 end
96 device ref uart2 on end
97 device ref pcie_rp1 on end
98 device ref pcie_rp5 on
99 # PCI Express Root port #5 x4, Clock 4 (TBT)
100 register "PcieRpLtrEnable[4]" = "true"
101 register "PcieRpHotPlug[4]" = "1"
102 register "PcieClkSrcUsage[4]" = "4"
103 register "PcieClkSrcClkReq[4]" = "4"
104 end
105 device ref pcie_rp9 on
106 # PCI Express Root port #9 x1, Clock 3 (LAN)
107 register "PcieRpLtrEnable[8]" = "true"
108 register "PcieClkSrcUsage[3]" = "8"
109 register "PcieClkSrcClkReq[3]" = "3"
110 end
111 device ref pcie_rp10 on
112 # PCI Express Root port #10 x1, Clock 2 (WLAN)
113 register "PcieRpLtrEnable[9]" = "false"
114 register "PcieClkSrcUsage[2]" = "9"
115 register "PcieClkSrcClkReq[2]" = "2"
116 smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" "M.2/E 2230" "SlotDataBusWidth1X"
117 end
118 device ref pcie_rp13 on
119 # PCI Express Root port #13 x4, Clock 5 (NVMe)
120 register "PcieRpLtrEnable[12]" = "true"
121 register "PcieClkSrcUsage[5]" = "12"
122 register "PcieClkSrcClkReq[5]" = "5"
123 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
124 end
125 device ref lpc_espi on
126 register "gen1_dec" = "0x000c0081"
127 register "gen2_dec" = "0x00040069"
128 register "gen3_dec" = "0x00fc0e01"
129 register "gen4_dec" = "0x00fc0f01"
130 chip drivers/pc80/tpm
131 device pnp 0c31.0 on end
132 end
133 end
134 device ref hda on
135 register "PchHdaAudioLinkHda" = "1"
136 register "PchHdaAudioLinkDmic0" = "1"
137 register "PchHdaAudioLinkDmic1" = "1"
138 end
139 device ref smbus on end
140 end
141 end