Debian Codegraph @

src/mainboard/system76/gaze15/devicetree.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/cannonlake
4 register "common_soc_config" = "{
5 // Touchpad I2C bus
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 = 45,
17 .tdp_pl2_override = 90,
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 "enable_c6dram" = "1"
25
26 # FSP Silicon (soc/intel/cannonlake/fsp_params.c)
27 # Misc
28 register "AcousticNoiseMitigation" = "1"
29
30 # Power
31 register "PchPmSlpS3MinAssert" = "3" # 50ms
32 register "PchPmSlpS4MinAssert" = "1" # 1s
33 register "PchPmSlpSusMinAssert" = "4" # 4s
34 register "PchPmSlpAMinAssert" = "4" # 2s
35
36 # Thermal
37 register "tcc_offset" = "8"
38
39 # Serial IRQ Continuous
40 register "serirq_mode" = "SERIRQ_CONTINUOUS"
41
42 # PM Util (soc/intel/cannonlake/pmutil.c)
43 # GPE configuration
44 # Note that GPE events called out in ASL code rely on this
45 # route. i.e. If this route changes then the affected GPE
46 # offset bits also need to be changed.
47 register "gpe0_dw0" = "PMC_GPP_K"
48 register "gpe0_dw1" = "PMC_GPP_G"
49 register "gpe0_dw2" = "PMC_GPP_E"
50
51 # Actual device tree
52 device domain 0 on
53 device ref peg0 on
54 # PCI Express Graphics #0 x16, Clock 8 (NVIDIA GPU)
55 register "PcieClkSrcUsage[8]" = "0x40"
56 register "PcieClkSrcClkReq[8]" = "8"
57 end
58 device ref igpu on
59 register "gfx" = "GMA_DEFAULT_PANEL(0)"
60 end
61 device ref dptf on end
62 device ref thermal on end
63 device ref xhci on
64 register "usb2_ports" = "{
65 [0] = USB2_PORT_MID(OC_SKIP), /* USB 3 Right */
66 [1] = USB2_PORT_MID(OC_SKIP), /* USB 3 Left */
67 [2] = USB2_PORT_TYPE_C(OC_SKIP), /* Type-C */
68 [5] = USB2_PORT_MID(OC_SKIP), /* USB 2 Left */
69 [7] = USB2_PORT_MID(OC_SKIP), /* Camera */
70 [9] = USB2_PORT_MID(OC_SKIP), /* Fingerprint */
71 [13] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */
72 }"
73 register "usb3_ports" = "{
74 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Right */
75 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3 Left */
76 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C */
77 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-C */
78 }"
79 end
80 device ref shared_sram on end
81 device ref cnvi_wifi on
82 chip drivers/wifi/generic
83 register "wake" = "GPE0_PME_B0"
84 device generic 0 on end
85 end
86 end
87 device ref i2c1 on end
88 device ref sata on
89 register "SataPortsEnable" = "{
90 [1] = 1, /* SSD (SATA1A) */
91 [4] = 1, /* HDD (SATA4) */
92 }"
93 end
94 device ref uart2 on end
95 device ref pcie_rp21 on
96 # PCI Express root port #21 x4, Clock 11 (SSD2)
97 register "PcieRpLtrEnable[20]" = "true"
98 register "PcieClkSrcUsage[11]" = "20"
99 register "PcieClkSrcClkReq[11]" = "11"
100 register "PcieRpSlotImplemented[20]" = "true"
101 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD2)" "SlotDataBusWidth4X"
102 end
103 device ref pcie_rp9 on
104 # PCI Express root port #9 x4, Clock 10 (SSD)
105 register "PcieRpLtrEnable[8]" = "true"
106 register "PcieClkSrcUsage[10]" = "8"
107 register "PcieClkSrcClkReq[10]" = "10"
108 register "PcieRpSlotImplemented[8]" = "true"
109 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280 (J_SSD1)" "SlotDataBusWidth4X"
110 end
111 device ref pcie_rp14 on
112 # PCI Express root port #14 x1, Clock 6 (WLAN)
113 register "PcieRpLtrEnable[13]" = "true"
114 register "PcieClkSrcUsage[6]" = "13"
115 register "PcieClkSrcClkReq[6]" = "6"
116 register "PcieRpSlotImplemented[13]" = "true"
117 smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" "M.2/E 2230 (J_WLAN1)" "SlotDataBusWidth1X"
118 end
119 device ref pcie_rp15 on
120 # PCI Express root port #15 x1, Clock 5 (LAN)
121 register "PcieRpLtrEnable[14]" = "true"
122 register "PcieClkSrcUsage[5]" = "14"
123 register "PcieClkSrcClkReq[5]" = "5"
124 register "PcieRpSlotImplemented[14]" = "true"
125 end
126 device ref lpc_espi on
127 register "gen1_dec" = "0x00040069"
128 register "gen2_dec" = "0x00fc0e01"
129 register "gen3_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