mb/starlabs/starlite_adl: Configure GPIO interrupt for Virtual Button
[coreboot2.git] / src / mainboard / google / dedede / variants / waddledoo / overridetree.cb
blob82b74ce8aafe3fb8874eabda39ec989e0a116071
1 chip soc/intel/jasperlake
3 # USB Port Configuration
4 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
6 # Intel Common SoC Config
7 #+-------------------+---------------------------+
8 #| Field | Value |
9 #+-------------------+---------------------------+
10 #| GSPI0 | cr50 TPM. Early init is |
11 #| | required to set up a BAR |
12 #| | for TPM communication |
13 #| | before memory is up |
14 #| I2C0 | Trackpad |
15 #| I2C1 | Digitizer |
16 #| I2C2 | Touchscreen |
17 #| I2C3 | Camera |
18 #| I2C4 | Audio |
19 #+-------------------+---------------------------+
20 register "common_soc_config" = "{
21 .gspi[0] = {
22 .speed_mhz = 1,
23 .early_init = 1,
25 .i2c[0] = {
26 .speed = I2C_SPEED_FAST,
27 .rise_time_ns = 270,
28 .fall_time_ns = 270,
29 .data_hold_time_ns = 350,
31 .i2c[1] = {
32 .speed = I2C_SPEED_FAST,
34 .i2c[2] = {
35 .speed = I2C_SPEED_FAST,
36 .rise_time_ns = 200,
37 .fall_time_ns = 200,
39 .i2c[3] = {
40 .speed = I2C_SPEED_FAST,
42 .i2c[4] = {
43 .speed = I2C_SPEED_FAST,
44 .speed_config[0] = {
45 .speed = I2C_SPEED_FAST,
46 .scl_lcnt = 200,
47 .scl_hcnt = 120,
48 .sda_hold = 36,
52 device domain 0 on
53 device pci 05.0 on # IPU - MIPI Camera
54 chip drivers/intel/mipi_camera
55 register "acpi_uid" = "0x50000"
56 register "acpi_name" = ""IPU0""
57 register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
59 register "cio2_num_ports" = "2"
60 register "cio2_lanes_used" = "{1,4}"
61 register "cio2_lane_endpoint[0]" = ""^I2C3.CAM0""
62 register "cio2_lane_endpoint[1]" = ""^I2C3.CAM1""
63 register "cio2_prt[0]" = "0"
64 register "cio2_prt[1]" = "2"
65 device generic 0 on end
66 end
67 end
68 device pci 14.0 on
69 chip drivers/usb/acpi
70 device usb 0.0 on
71 chip drivers/usb/acpi
72 register "desc" = ""Discrete Bluetooth""
73 register "type" = "UPC_TYPE_INTERNAL"
74 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H19)"
75 device usb 2.4 on end
76 end
77 chip drivers/usb/acpi
78 register "desc" = ""Camera""
79 register "type" = "UPC_TYPE_INTERNAL"
80 device usb 2.5 on end
81 end
82 chip drivers/usb/acpi
83 register "desc" = ""Integrated Bluetooth""
84 register "type" = "UPC_TYPE_INTERNAL"
85 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H19)"
86 device usb 2.7 on end
87 end
88 end
89 end
90 end # USB xHCI
91 device pci 15.0 on
92 chip drivers/i2c/generic
93 register "hid" = ""ELAN0000""
94 register "desc" = ""ELAN Touchpad""
95 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
96 register "wake" = "GPE0_DW0_03"
97 register "detect" = "1"
98 device i2c 15 on end
99 end
100 end #I2C 0
101 device pci 15.2 on
102 chip drivers/i2c/hid
103 register "generic.hid" = ""SIS6496""
104 register "generic.desc" = ""SIS Touchscreen""
105 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
106 register "generic.detect" = "1"
107 register "generic.reset_gpio" =
108 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
109 register "generic.stop_gpio" =
110 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
111 register "generic.stop_delay_ms" = "100"
112 register "generic.enable_gpio" =
113 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
114 register "generic.enable_delay_ms" = "7"
115 register "generic.has_power_resource" = "1"
116 register "hid_desc_reg_offset" = "0x00"
117 device i2c 5c on end
119 chip drivers/i2c/hid
120 register "generic.hid" = ""ELAN9050""
121 register "generic.desc" = ""ELAN Touchscreen""
122 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
123 register "generic.detect" = "1"
124 register "generic.reset_gpio" =
125 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
126 register "generic.reset_delay_ms" = "20"
127 register "generic.reset_off_delay_ms" = "2"
128 register "generic.stop_gpio" =
129 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
130 register "generic.stop_delay_ms" = "280"
131 register "generic.stop_off_delay_ms" = "2"
132 register "generic.enable_gpio" =
133 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
134 register "generic.enable_delay_ms" = "1"
135 register "generic.has_power_resource" = "1"
136 register "hid_desc_reg_offset" = "0x01"
137 device i2c 10 on end
139 end # I2C 2
140 device pci 15.3 on #I2C #3 CAM0 CAM1 and VCM0
141 chip drivers/intel/mipi_camera
142 register "acpi_hid" = ""OVTI8856""
143 register "acpi_uid" = "0"
144 register "acpi_name" = ""CAM1""
145 register "chip_name" = ""Ov 8856 Camera""
146 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
148 register "ssdb.lanes_used" = "4"
149 register "ssdb.link_used" = "1"
150 register "ssdb.vcm_type" = "0x0C"
151 register "vcm_name" = ""VCM0""
152 register "num_freq_entries" = "2"
153 register "link_freq[0]" = "360000000"
154 register "link_freq[1]" = "180000000"
155 register "remote_name" = ""IPU0""
157 register "has_power_resource" = "1"
158 #Controls
159 register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1
160 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
162 register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8
163 register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2
164 register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset
166 #_ON
167 register "on_seq.ops_cnt" = "5"
168 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
169 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
170 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
171 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
172 register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
174 #_OFF
175 register "off_seq.ops_cnt" = "4"
176 register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
177 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
178 register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
179 register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
181 device i2c 10 on end
183 chip drivers/intel/mipi_camera
184 register "acpi_uid" = "2"
185 register "acpi_name" = ""VCM0""
186 register "chip_name" = ""DW9768 VCM""
187 register "device_type" = "INTEL_ACPI_CAMERA_VCM"
189 register "pr0" = ""\\_SB.PCI0.I2C3.CAM1.PRIC""
190 register "vcm_compat" = ""dongwoon,dw9768""
192 device i2c 0C on end
194 chip drivers/intel/mipi_camera
195 register "acpi_uid" = "1"
196 register "acpi_name" = ""NVM0""
197 register "chip_name" = ""AT24 EEPROM""
198 register "device_type" = "INTEL_ACPI_CAMERA_NVM"
200 register "pr0" = ""\\_SB.PCI0.I2C3.CAM1.PRIC""
201 register "nvm_compat" = ""atmel,24c1024""
203 register "nvm_size" = "0x2800"
204 register "nvm_pagesize" = "0x01"
205 register "nvm_readonly" = "0x01"
206 register "nvm_width" = "0x0E"
208 device i2c 58 on end
210 chip drivers/intel/mipi_camera
211 register "acpi_hid" = ""OVTI9734""
212 register "acpi_uid" = "0"
213 register "acpi_name" = ""CAM0""
214 register "chip_name" = ""Ov 9734 Camera""
215 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
216 register "has_power_resource" = "1"
218 register "ssdb.lanes_used" = "1"
219 register "num_freq_entries" = "1"
220 register "link_freq[0]" = "180000000"
221 register "remote_name" = ""IPU0""
223 #Controls
224 register "clk_panel.clks[0].clknum" = "0" #IMGCLKOUT_0
225 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
227 register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8
228 register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2
229 register "gpio_panel.gpio[2].gpio_num" = "GPP_D15" #reset
231 #_ON
232 register "on_seq.ops_cnt" = "5"
233 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
234 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
235 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
236 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
237 register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
239 #_OFF
240 register "off_seq.ops_cnt" = "4"
241 register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
242 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
243 register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
244 register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
246 device i2c 36 on end
249 device pci 1c.7 on
250 chip drivers/wifi/generic
251 register "wake" = "GPE0_DW2_03"
252 device pci 00.0 on end
254 end # PCI Express Root Port 8 - WLAN
255 device pci 19.0 on
256 chip drivers/i2c/da7219
257 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
258 register "btn_cfg" = "50"
259 register "mic_det_thr" = "200"
260 register "jack_ins_deb" = "20"
261 register "jack_det_rate" = ""32ms_64ms""
262 register "jack_rem_deb" = "1"
263 register "a_d_btn_thr" = "0xa"
264 register "d_b_btn_thr" = "0x16"
265 register "b_c_btn_thr" = "0x21"
266 register "c_mic_btn_thr" = "0x3e"
267 register "btn_avg" = "4"
268 register "adc_1bit_rpt" = "1"
269 register "micbias_lvl" = "2600"
270 register "mic_amp_in_sel" = ""diff""
271 device i2c 1a on end
273 end #I2C 4
274 device pci 1f.3 on
275 chip drivers/generic/max98357a
276 register "hid" = ""MX98360A""
277 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
278 device generic 0 on end
280 end # Intel HDA