Documentation: Fix wrong link to commit message guidelines
[coreboot2.git] / src / mainboard / starlabs / starbook / variants / cml / devicetree.cb
blob9593054e422d64fd43579f1a63cc051f57e55cfc
1 chip soc/intel/cannonlake
2 # FSP UPDs
3 register "eist_enable" = "true"
4 register "enable_c6dram" = "1"
5 register "SaGv" = "SaGv_Enabled"
7 # Graphics
8 # IGD Displays
9 register "panel_cfg" = "{
10 .up_delay_ms = 0, // T3
11 .backlight_on_delay_ms = 0, // T7
12 .backlight_off_delay_ms = 0, // T9
13 .down_delay_ms = 0, // T10
14 .cycle_delay_ms = 500, // T12
15 .backlight_pwm_hz = 200, // PWM
18 # Serial I/O
19 register "SerialIoDevMode" = "{
20 [PchSerialIoIndexI2C0] = PchSerialIoPci,
21 [PchSerialIoIndexI2C4] = PchSerialIoSkipInit,
22 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
25 register "common_soc_config" = "{
26 .i2c[0] = {
27 .speed = I2C_SPEED_FAST,
31 # Power
32 register "PchPmSlpS3MinAssert" = "2" # 50ms
33 register "PchPmSlpS4MinAssert" = "3" # 1s
34 register "PchPmSlpSusMinAssert" = "3" # 500ms
35 register "PchPmSlpAMinAssert" = "3" # 2s
37 # PCIe Clock
38 register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED"
39 register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED"
40 register "PcieClkSrcClkReq[3]" = "PCIE_CLK_NOTUSED"
41 register "PcieClkSrcClkReq[4]" = "PCIE_CLK_NOTUSED"
42 register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED"
44 # Actual device tree.
45 device domain 0 on
46 device ref igpu on
47 register "gfx" = "GMA_DEFAULT_PANEL(0)"
48 end
49 device ref xhci on
50 # Motherboard USB 3.0 Type-C
51 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
52 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
54 # Motherboard USB 3.0 Type-A
55 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
56 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
58 # Daughterboard SD Card
59 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)"
61 # Daughterboard USB 3.0 Type-A
62 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
63 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)"
65 # Webcam
66 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
68 # Internal Bluetooth
69 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)"
71 chip drivers/usb/acpi
72 device ref xhci_root_hub on
73 chip drivers/usb/acpi
74 register "desc" = ""USB Type-C""
75 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
76 register "group" = "ACPI_PLD_GROUP(0, 0)"
77 device ref usb2_port1 on end
78 end
79 chip drivers/usb/acpi
80 register "desc" = ""USB Type-C""
81 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
82 register "group" = "ACPI_PLD_GROUP(0, 0)"
83 device ref usb3_port1 on end
84 end
85 chip drivers/usb/acpi
86 register "desc" = ""Left USB Type-A""
87 register "type" = "UPC_TYPE_USB3_A"
88 register "group" = "ACPI_PLD_GROUP(0, 1)"
89 device ref usb2_port2 on end
90 end
91 chip drivers/usb/acpi
92 register "desc" = ""Left USB Type-A""
93 register "type" = "UPC_TYPE_USB3_A"
94 register "group" = "ACPI_PLD_GROUP(0, 1)"
95 device ref usb3_port2 on end
96 end
97 chip drivers/usb/acpi
98 register "desc" = ""Right USB Type-A""
99 register "type" = "UPC_TYPE_USB3_A"
100 register "group" = "ACPI_PLD_GROUP(0, 2)"
101 device ref usb2_port6 on end
103 chip drivers/usb/acpi
104 register "desc" = ""Right USB Type-A""
105 register "type" = "UPC_TYPE_USB3_A"
106 register "group" = "ACPI_PLD_GROUP(0, 2)"
107 device ref usb3_port3 on end
109 chip drivers/usb/acpi
110 register "desc" = ""Internal Webcam""
111 register "type" = "UPC_TYPE_INTERNAL"
112 register "group" = "ACPI_PLD_GROUP(0, 3)"
113 device ref usb2_port7 on end
115 chip drivers/usb/acpi
116 register "desc" = ""MicroSD Card Reader""
117 register "type" = "UPC_TYPE_INTERNAL"
118 register "group" = "ACPI_PLD_GROUP(0, 4)"
119 device ref usb2_port4 on end
121 chip drivers/usb/acpi
122 register "desc" = ""Internal Bluetooth""
123 register "type" = "UPC_TYPE_INTERNAL"
124 register "group" = "ACPI_PLD_GROUP(0, 5)"
125 register "is_intel_bluetooth" = "1"
126 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(CNV_BTEN)"
127 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B4)"
128 device ref usb2_port10 on end
133 device ref shared_sram on end
134 device ref cnvi_wifi on
135 chip drivers/wifi/generic
136 register "add_acpi_dma_property" = "true"
137 register "enable_cnvi_ddr_rfim" = "true"
138 device generic 0 on end
141 device ref i2c0 on
142 chip drivers/i2c/hid
143 register "generic.hid" = ""STAR0001""
144 register "generic.desc" = ""Touchpad""
145 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)"
146 register "generic.detect" = "1"
147 register "hid_desc_reg_offset" = "0x20"
148 device i2c 2c on end
151 device ref sata on
152 register "SataSalpSupport" = "1"
153 # Port 1
154 register "SataPortsEnable[1]" = "1"
155 register "SataPortsDevSlp[1]" = "1"
157 device ref i2c4 on end
158 device ref uart2 on end
159 device ref pcie_rp9 on # SSD x4
160 register "PcieRpSlotImplemented[8]" = "1"
161 register "PcieRpEnable[8]" = "1"
162 register "PcieRpLtrEnable[8]" = "1"
163 register "PcieClkSrcUsage[1]" = "0x08"
164 register "PcieClkSrcClkReq[1]" = "1"
165 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
167 device ref lpc_espi on
168 register "gen1_dec" = "0x000c0681"
169 register "gen2_dec" = "0x000c1641"
170 register "gen3_dec" = "0x00fc0201"
171 register "gen4_dec" = "0x000c0081"
173 chip ec/starlabs/merlin
174 # Port pair 4Eh/4Fh
175 device pnp 4e.00 on end # IO Interface
176 device pnp 4e.01 off end # Com 1
177 device pnp 4e.02 off end # Com 2
178 device pnp 4e.04 off end # System Wake-Up
179 device pnp 4e.05 off end # PS/2 Mouse
180 device pnp 4e.06 on # PS/2 Keyboard
181 io 0x60 = 0x0060
182 io 0x62 = 0x0064
183 irq 0x70 = 1
185 device pnp 4e.0a off end # Consumer IR
186 device pnp 4e.0f off end # Shared Memory/Flash Interface
187 device pnp 4e.10 off end # RTC-like Timer
188 device pnp 4e.11 off end # Power Management Channel 1
189 device pnp 4e.12 off end # Power Management Channel 2
190 device pnp 4e.13 off end # Serial Peripheral Interface
191 device pnp 4e.14 off end # Platform EC Interface
192 device pnp 4e.17 off end # Power Management Channel 3
193 device pnp 4e.18 off end # Power Management Channel 4
194 device pnp 4e.19 off end # Power Management Channel 5
197 device ref hda on
198 subsystemid 0x10ec 0x1200
199 register "PchHdaAudioLinkHda" = "1"
201 device ref smbus on end
202 chip drivers/crb
203 device mmio 0xfed40000 on end