1 chip soc
/intel
/cannonlake
2 register
"power_limits_config" = "{
4 .tdp_pl2_override = 51,
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,
23 register
"PcieRpEnable[13]" = "0"
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 #
+-------------------+---------------------------+
42 #
+-------------------+---------------------------+
44 #| I2C1 | Touchscreen |
47 #
+-------------------+---------------------------+
48 register
"common_soc_config" = "{
50 .speed = I2C_SPEED_FAST,
55 .speed = I2C_SPEED_FAST,
60 .speed = I2C_SPEED_FAST,
65 .speed = I2C_SPEED_FAST,
77 register
"gfx" = "GMA_DEFAULT_PANEL(0)"
81 device ref xhci_root_hub on
83 device ref usb2_port3 off
end
86 register
"desc" = ""Micro SD Card
""
87 register
"type" = "UPC_TYPE_INTERNAL"
88 device ref usb2_port4 on
end
91 device ref usb2_port5 off
end
94 device ref usb2_port6 off
end
97 device ref usb2_port8 off
end
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
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
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"
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"
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
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
215 device ref pcie_rp14 off
end
217 chip drivers
/spi
/acpi
218 register
"name" = ""CRFP
""
219 register
"hid" = "ACPI_DT_NAMESPACE_HID"
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
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
235 register
"spkr_tplg" = "max98357a"
236 register
"jack_tplg" = "da7219"
237 register
"mic_tplg" = "_2ch_pdm0"
238 device generic
0 on
end