soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / hatch / variants / kohaku / overridetree.cb
blob67f52384218d0bf3e5f1abf12befd7d23fe1243c
1 chip soc/intel/cannonlake
2 register "power_limits_config" = "{
3 .tdp_pl1_override = 8,
4 .tdp_pl2_override = 51,
5 }"
7 register "SerialIoDevMode" = "{
8 [PchSerialIoIndexI2C0] = PchSerialIoPci,
9 [PchSerialIoIndexI2C1] = PchSerialIoPci,
10 [PchSerialIoIndexI2C2] = PchSerialIoPci,
11 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
12 [PchSerialIoIndexI2C4] = PchSerialIoPci,
13 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
14 [PchSerialIoIndexSPI0] = PchSerialIoPci,
15 [PchSerialIoIndexSPI1] = PchSerialIoPci,
16 [PchSerialIoIndexSPI2] = PchSerialIoDisabled,
17 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
18 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
19 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
22 # No PCIe WiFi
23 register "PcieRpEnable[13]" = "0"
25 # Enable DMIC1
26 register "PchHdaAudioLinkDmic1" = "1"
28 register "usb2_ports[0]" = "USB2_PORT_LONG(OC2)" # Type-C Port 0
29 register "usb2_ports[1]" = "USB2_PORT_LONG(OC2)" # Type-C Port 1
30 register "usb2_ports[3]" = "USB2_PORT_LONG(OC_SKIP)" # SD CARD
31 register "usb2_ports[6]" = "USB2_PORT_LONG(OC_SKIP)" # Camera
32 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # CnVi BT
34 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 0
35 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 1
36 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # World facing camera
37 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD CARD
39 # Intel Common SoC Config
40 #+-------------------+---------------------------+
41 #| Field | Value |
42 #+-------------------+---------------------------+
43 #| I2C0 | Trackpad |
44 #| I2C1 | Touchscreen |
45 #| I2C2 | Digitizer |
46 #| I2C4 | Audio |
47 #+-------------------+---------------------------+
48 register "common_soc_config" = "{
49 .i2c[0] = {
50 .speed = I2C_SPEED_FAST,
51 .rise_time_ns = 135,
52 .fall_time_ns = 45,
54 .i2c[1] = {
55 .speed = I2C_SPEED_FAST,
56 .rise_time_ns = 60,
57 .fall_time_ns = 25,
59 .i2c[2] = {
60 .speed = I2C_SPEED_FAST,
61 .rise_time_ns = 95,
62 .fall_time_ns = 55,
64 .i2c[4] = {
65 .speed = I2C_SPEED_FAST,
66 .rise_time_ns = 104,
67 .fall_time_ns = 52,
69 .gspi[0] = {
70 .speed_mhz = 1,
71 .early_init = 1,
75 device domain 0 on
76 device ref igpu on
77 register "gfx" = "GMA_DEFAULT_PANEL(0)"
78 end
79 device ref xhci on
80 chip drivers/usb/acpi
81 device ref xhci_root_hub on
82 chip drivers/usb/acpi
83 device ref usb2_port3 off end
84 end
85 chip drivers/usb/acpi
86 register "desc" = ""Micro SD Card""
87 register "type" = "UPC_TYPE_INTERNAL"
88 device ref usb2_port4 on end
89 end
90 chip drivers/usb/acpi
91 device ref usb2_port5 off end
92 end
93 chip drivers/usb/acpi
94 device ref usb2_port6 off end
95 end
96 chip drivers/usb/acpi
97 device ref usb2_port8 off end
98 end
99 chip drivers/usb/acpi
100 device ref usb2_port9 off end
102 chip drivers/usb/acpi
103 register "desc" = ""Bluetooth""
104 register "type" = "UPC_TYPE_INTERNAL"
105 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C14)"
106 device ref usb2_port10 on end
108 chip drivers/usb/acpi
109 register "desc" = ""WF Camera""
110 register "type" = "UPC_TYPE_INTERNAL"
111 device ref usb3_port3 on end
113 chip drivers/usb/acpi
114 register "desc" = ""Micro SD card""
115 register "type" = "UPC_TYPE_INTERNAL"
116 device ref usb3_port4 on end
118 chip drivers/usb/acpi
119 device ref usb3_port5 off end
123 end # XHCI
124 device ref i2c0 on
125 chip drivers/i2c/hid
126 register "generic.hid" = ""SYNA0000""
127 register "generic.cid" = ""ACPI0C50""
128 register "generic.desc" = ""Synaptics Touchpad""
129 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)"
130 register "generic.detect" = "1"
131 register "generic.wake" = "GPE0_DW0_21"
132 register "hid_desc_reg_offset" = "0x20"
133 device i2c 0x20 on end
136 device ref i2c1 on
137 chip drivers/i2c/generic
138 register "hid" = "ACPI_DT_NAMESPACE_HID"
139 register "compat_string" = ""atmel,maxtouch""
140 register "desc" = ""Atmel Touchscreen""
141 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
142 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
143 register "reset_delay_ms" = "91" # 90.5 ms
144 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)"
145 register "enable_delay_ms" = "1" # 90 ns
146 register "has_power_resource" = "1"
147 register "detect" = "1"
148 device i2c 4b on end
151 chip drivers/i2c/generic
152 register "hid" = ""ELAN0001""
153 register "desc" = ""ELAN Touchscreen""
154 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
155 register "detect" = "1"
156 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)"
157 register "enable_delay_ms" = "10"
158 register "enable_off_delay_ms" = "100"
159 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
160 register "reset_delay_ms" = "20"
161 register "reset_off_delay_ms" = "2"
162 register "has_power_resource" = "1"
163 device i2c 10 on end
165 end # I2C #1
166 device ref i2c2 on
167 chip drivers/i2c/hid
168 register "generic.hid" = ""WCOM50C1""
169 register "generic.desc" = ""WCOM Digitizer""
170 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
171 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C15)"
172 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A19)"
173 register "generic.reset_delay_ms" = "100"
174 register "generic.enable_delay_ms" = "20"
175 register "generic.has_power_resource" = "1"
176 register "hid_desc_reg_offset" = "0x1"
177 device i2c 0x09 on end
179 chip drivers/generic/gpio_keys
180 register "name" = ""PENH""
181 # GPP_A16 is the IRQ source, and GPP_A8 is the wake source
182 register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_A16)"
183 register "key.wake_gpe" = "GPE0_DW0_08"
184 register "key.wakeup_route" = "WAKEUP_ROUTE_SCI"
185 register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
186 register "key.dev_name" = ""EJCT""
187 register "key.linux_code" = "SW_PEN_INSERTED"
188 register "key.linux_input_type" = "EV_SW"
189 register "key.label" = ""pen_eject""
190 device generic 0 on end
193 device ref i2c4 on
194 chip drivers/i2c/da7219
195 # TODO: these settings were copied from another board
196 # with the same chip. verify the settings
197 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)"
198 register "btn_cfg" = "50"
199 register "mic_det_thr" = "200"
200 register "jack_ins_deb" = "20"
201 register "jack_det_rate" = ""32ms_64ms""
202 register "jack_rem_deb" = "1"
203 register "a_d_btn_thr" = "0xa"
204 register "d_b_btn_thr" = "0x16"
205 register "b_c_btn_thr" = "0x21"
206 register "c_mic_btn_thr" = "0x3e"
207 register "btn_avg" = "4"
208 register "adc_1bit_rpt" = "1"
209 register "micbias_lvl" = "2600"
210 register "mic_amp_in_sel" = ""diff""
211 device i2c 0x1a on end
214 # No PCIe WiFi
215 device ref pcie_rp14 off end
216 device ref gspi1 on
217 chip drivers/spi/acpi
218 register "name" = ""CRFP""
219 register "hid" = "ACPI_DT_NAMESPACE_HID"
220 register "uid" = "1"
221 register "compat_string" = ""google,cros-ec-spi""
222 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)"
223 register "wake" = "GPE0_DW0_23"
224 device spi 1 hidden end
225 end # FPMCU
227 device ref hda on
228 chip drivers/generic/max98357a
229 register "hid" = ""MX98357A""
230 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)"
231 register "sdmode_delay" = "5"
232 device generic 0 on end
234 chip drivers/sof
235 register "spkr_tplg" = "max98357a"
236 register "jack_tplg" = "da7219"
237 register "mic_tplg" = "_2ch_pdm0"
238 device generic 0 on end