Debian Codegraph @

src/mainboard/lenovo/m920q/devicetree.cb

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/cannonlake
4 register "power_limits_config" = "{
5 .tdp_pl2_override = 65,
6 }"
7
8 # Unmap unused CLKREQ lines, otherwise CLKSRC #0 won't work
9 register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED"
10 register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED"
11 register "PcieClkSrcClkReq[7]" = "PCIE_CLK_NOTUSED"
12 register "PcieClkSrcClkReq[8]" = "PCIE_CLK_NOTUSED"
13 register "PcieClkSrcClkReq[9]" = "PCIE_CLK_NOTUSED"
14 register "PcieClkSrcClkReq[11]" = "PCIE_CLK_NOTUSED"
15 register "PcieClkSrcClkReq[12]" = "PCIE_CLK_NOTUSED"
16 register "PcieClkSrcClkReq[13]" = "PCIE_CLK_NOTUSED"
17 register "PcieClkSrcClkReq[14]" = "PCIE_CLK_NOTUSED"
18 register "PcieClkSrcClkReq[15]" = "PCIE_CLK_NOTUSED"
19
20 device domain 0 on
21 subsystemid 0x17aa 0x3136 inherit
22 # Slot JP3
23 device ref peg0 on
24 register "PcieClkSrcUsage[0]" = "0x40"
25 register "PcieClkSrcClkReq[0]" = "0"
26 end
27 device ref igpu on end
28 device ref dptf on end
29 device ref thermal on end
30 device ref xhci on
31 register "usb2_ports" = "{
32 [0] = USB2_PORT_MID(OC0), // Internal USB header
33 [1] = USB2_PORT_TYPE_C(OC1), // Front port (charger)
34 [3] = USB2_PORT_TYPE_C(OC2), // Front Type C port
35 [4] = USB2_PORT_MID(OC4), // Rear USB 3.1 port 1
36 [5] = USB2_PORT_MID(OC6), // Rear USB 3.1 port 2
37 [6] = USB2_PORT_MID(OC3), // Rear USB 3.0 port 1
38 [7] = USB2_PORT_MID(OC5), // Rear USB 3.0 port 2
39 [13] = USB2_PORT_SHORT(OC_SKIP), // M.2 2230
40 }"
41
42 register "usb3_ports" = "{
43 [0] = USB3_PORT_DEFAULT(OC1), // Front port (charger)
44 [1] = USB3_PORT_DEFAULT(OC2), // Front Type C port
45 [2] = USB3_PORT_DEFAULT(OC4), // Rear USB 3.1 port 1
46 [3] = USB3_PORT_DEFAULT(OC6), // Rear USB 3.2 port 2
47 [4] = USB3_PORT_DEFAULT(OC3), // Rear USB 3.0 port 1
48 [5] = USB3_PORT_DEFAULT(OC5), // Rear USB 3.0 port 2
49 [6] = USB3_PORT_DEFAULT(OC0), // Internal USB header
50 }"
51 end
52 device ref shared_sram on end
53 device ref cnvi_wifi on
54 chip drivers/wifi/generic
55 register "wake" = "PME_B0_EN_BIT"
56 device generic 0 on end
57 end
58 end
59 device ref heci1 on end
60 device ref heci3 on end
61 device ref sata on
62 register "SataSalpSupport" = "1"
63 register "SataPortsEnable" = "{
64 [0] = 1, // on-board SATA1
65 [4] = 1, // M.2 SATA on M920x
66 }"
67 end
68
69 device ref pcie_rp6 on # WLAN
70 register "PcieRpSlotImplemented[5]" = "true"
71 register "PcieClkSrcUsage[3]" = "5"
72 register "PcieClkSrcClkReq[3]" = "3"
73 end
74
75 device ref pcie_rp9 on # PCIe x4
76 register "PcieRpSlotImplemented[8]" = "true"
77 register "PcieClkSrcUsage[2]" = "8"
78 register "PcieClkSrcClkReq[2]" = "2"
79 end
80
81 device ref pcie_rp17 on # M.2 SSD #2
82 register "PcieRpSlotImplemented[16]" = "true"
83 register "PcieClkSrcUsage[10]" = "16"
84 register "PcieClkSrcClkReq[10]" = "10"
85 end
86
87 device ref pcie_rp21 on # M.2 SSD #1
88 register "PcieRpSlotImplemented[20]" = "true"
89 register "PcieClkSrcUsage[4]" = "20"
90 register "PcieClkSrcClkReq[4]" = "4"
91 end
92
93 device ref lpc_espi on
94 chip superio/nuvoton/nct6687d
95 device pnp 2e.1 off end # Parallel port
96 device pnp 2e.2 off end # UARTA (USB debug port?)
97 device pnp 2e.3 on # UARTB - COM1 header - optional sub-board
98 io 0x60 = 0x3f8
99 irq 0x70 = 4
100 irq 0xf0 = 0
101 irq 0xf1 = 0
102 end
103 device pnp 2e.5 off end # Keyboard
104 device pnp 2e.6 off end # CIR
105 device pnp 2e.7 off end # GPIO0-7
106 device pnp 2e.8 off end # P80 UART
107 device pnp 2e.9 off end # GPIO8-9, GPIO1-8 AF
108 device pnp 2e.a on # ACPI
109 io 0x60 = 0x00
110 irq 0x70 = 0x40
111 end
112 device pnp 2e.b on # EC
113 io 0x60 = 0xa20
114 irq 0x70 = 0
115 end
116 device pnp 2e.c off end # RTC
117 device pnp 2e.d off end # Deep Sleep
118 device pnp 2e.e on # TACH/PWM assignment
119 irq 0xe4 = 0x10
120 irq 0xe5 = 0x09
121 end
122 device pnp 2e.f off end # Function register
123 end
124 chip drivers/pc80/tpm
125 device pnp 0c31.0 on end
126 end
127 end
128 device ref hda on
129 register "PchHdaAudioLinkHda" = "1"
130 end
131 device ref smbus on end
132 device ref fast_spi on end
133 device ref gbe on
134 register "PcieClkSrcUsage[6]" = "PCIE_CLK_LAN"
135 register "PcieClkSrcClkReq[6]" = "6"
136 end
137 end
138 end