mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / dedede / variants / lalala / overridetree.cb
blob7b849b2509c001fe225856bd125e2870adaf85b7
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 #| I2C0 | Trackpad |
11 #| I2C1 | TBD |
12 #| I2C2 | Touchscreen |
13 #| I2C3 | Camera |
14 #| I2C4 | Audio |
15 #| I2C5 | TBD |
16 #+-------------------+---------------------------+
17 register "common_soc_config" = "{
18 .i2c[0] = {
19 .speed = I2C_SPEED_FAST,
20 .speed_config[0] = {
21 .speed = I2C_SPEED_FAST,
22 .scl_lcnt = 190,
23 .scl_hcnt = 100,
24 .sda_hold = 40,
27 .i2c[1] = {
28 .speed = I2C_SPEED_FAST,
30 .i2c[2] = {
31 .speed = I2C_SPEED_FAST,
32 .speed_config[0] = {
33 .speed = I2C_SPEED_FAST,
34 .scl_lcnt = 190,
35 .scl_hcnt = 100,
36 .sda_hold = 40,
39 .i2c[3] = {
40 .speed = I2C_SPEED_FAST,
41 .speed_config[0] = {
42 .speed = I2C_SPEED_FAST,
43 .scl_lcnt = 190,
44 .scl_hcnt = 100,
45 .sda_hold = 40,
48 .i2c[4] = {
49 .speed = I2C_SPEED_FAST,
50 .speed_config[0] = {
51 .speed = I2C_SPEED_FAST,
52 .scl_lcnt = 190,
53 .scl_hcnt = 100,
54 .sda_hold = 40,
59 # Power limit config
60 register "power_limits_config[JSL_N4500_6W_CORE]" = "{
61 .tdp_pl1_override = 7,
62 .tdp_pl2_override = 12,
65 register "power_limits_config[JSL_N6000_6W_CORE]" = "{
66 .tdp_pl1_override = 7,
67 .tdp_pl2_override = 12,
70 register "power_limits_config[JSL_N5100_6W_CORE]" = "{
71 .tdp_pl1_override = 7,
72 .tdp_pl2_override = 12,
75 register "tcc_offset" = "15" # TCC of 90C
77 # Enable Acoustic noise mitigation and set slew rate to 1/8
78 # Rest of the parameters are 0 by default.
79 register "AcousticNoiseMitigation" = "1"
80 register "SlowSlewRate" = "SlewRateFastBy8"
81 register "FastPkgCRampDisable" = "1"
83 device domain 0 on
84 device pci 04.0 on
85 chip drivers/intel/dptf
86 register "options.tsr[0].desc" = ""Memory""
87 register "options.tsr[1].desc" = ""Ambient""
89 register "policies.passive" = "{
90 [0] = DPTF_PASSIVE(CPU, CPU, 90, 5000),
91 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 70, 6000),
92 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 60, 5000)}"
93 register "policies.critical" = "{
94 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
95 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN),
96 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN)}"
97 register "controls.power_limits.pl1" = "{
98 .min_power = 3000,
99 .max_power = 7000,
100 .time_window_min = 1 * MSECS_PER_SEC,
101 .time_window_max = 1 * MSECS_PER_SEC,
102 .granularity = 200,}"
103 register "controls.power_limits.pl2" = "{
104 .min_power = 12000,
105 .max_power = 12000,
106 .time_window_min = 1 * MSECS_PER_SEC,
107 .time_window_max = 1 * MSECS_PER_SEC,
108 .granularity = 1000,}"
110 ## Charger Performance Control (Control, mA)
111 register "controls.charger_perf[0]" = "{ 255, 3000 }"
112 register "controls.charger_perf[1]" = "{ 24, 1500 }"
113 register "controls.charger_perf[2]" = "{ 16, 1000 }"
114 register "controls.charger_perf[3]" = "{ 8, 500 }"
116 device generic 0 on end
118 end # SA Thermal device
119 device pci 05.0 on # IPU - MIPI Camera
120 chip drivers/intel/mipi_camera
121 register "acpi_uid" = "0x50000"
122 register "acpi_name" = ""IPU0""
123 register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
125 register "cio2_num_ports" = "1"
126 register "cio2_lanes_used" = "{2}"
127 register "cio2_lane_endpoint[0]" = ""^I2C3.CAM0""
128 register "cio2_prt[0]" = "2"
129 device generic 0 on end
132 device pci 14.0 on
133 chip drivers/usb/acpi
134 device usb 0.0 on
135 chip drivers/usb/acpi
136 register "desc" = ""Camera""
137 register "type" = "UPC_TYPE_INTERNAL"
138 device usb 2.5 on end
142 end # USB xHCI
143 device pci 15.0 on
144 chip drivers/i2c/hid
145 register "generic.hid" = ""SYNA0000""
146 register "generic.cid" = ""ACPI0C50""
147 register "generic.desc" = ""Synaptics Touchpad""
148 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
149 register "generic.wake" = "GPE0_DW0_03"
150 register "generic.detect" = "1"
151 register "hid_desc_reg_offset" = "0x20"
152 device i2c 0x2c on end
154 chip drivers/i2c/generic
155 register "hid" = ""ELAN0000""
156 register "desc" = ""ELAN Touchpad""
157 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
158 register "wake" = "GPE0_DW0_03"
159 register "detect" = "1"
160 device i2c 15 on end
162 end # I2C 0
163 device pci 15.2 on
164 chip drivers/i2c/hid
165 register "generic.hid" = ""ELAN6915""
166 register "generic.desc" = ""ELAN Touchscreen""
167 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
168 register "generic.detect" = "1"
169 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
170 register "generic.reset_delay_ms" = "20"
171 register "generic.reset_off_delay_ms" = "2"
172 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
173 register "generic.stop_delay_ms" = "280"
174 register "generic.stop_off_delay_ms" = "2"
175 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
176 register "generic.enable_delay_ms" = "1"
177 register "generic.has_power_resource" = "1"
178 register "hid_desc_reg_offset" = "0x01"
179 device i2c 15 on end
181 chip drivers/i2c/generic
182 register "hid" = ""ELAN0001""
183 register "desc" = ""ELAN Touchscreen""
184 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
185 register "detect" = "1"
186 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
187 register "reset_delay_ms" = "20"
188 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
189 register "enable_delay_ms" = "1"
190 register "has_power_resource" = "1"
191 device i2c 10 on end
193 chip drivers/i2c/generic
194 register "hid" = ""RAYD0001""
195 register "desc" = ""Raydium Touchscreen""
196 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
197 register "detect" = "1"
198 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
199 register "reset_delay_ms" = "100"
200 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
201 register "enable_delay_ms" = "50"
202 register "has_power_resource" = "1"
203 device i2c 39 on end
205 end # I2C 2
206 device pci 15.3 on # I2C 3
207 chip drivers/intel/mipi_camera
208 register "acpi_hid" = ""OVTI5675""
209 register "acpi_uid" = "0"
210 register "acpi_name" = ""CAM0""
211 register "chip_name" = ""Ov 5675 Camera""
212 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
214 register "ssdb.lanes_used" = "2"
215 register "ssdb.link_used" = "1"
216 register "ssdb.vcm_type" = "0x0C"
217 register "vcm_name" = ""VCM0""
218 register "num_freq_entries" = "1"
219 register "link_freq[0]" = "DEFAULT_LINK_FREQ"
220 register "remote_name" = ""IPU0""
222 register "has_power_resource" = "1"
223 #Controls
224 register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1
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_D12" #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
248 chip drivers/intel/mipi_camera
249 register "acpi_uid" = "3"
250 register "acpi_name" = ""VCM0""
251 register "chip_name" = ""DW AF DAC""
252 register "device_type" = "INTEL_ACPI_CAMERA_VCM"
254 register "pr0" = ""\\_SB.PCI0.I2C3.CAM0.PRIC""
255 register "vcm_compat" = ""dongwoon,dw9714""
257 device i2c 0C on end
260 chip drivers/intel/mipi_camera
261 register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
262 register "acpi_uid" = "1"
263 register "acpi_name" = ""NVM0""
264 register "chip_name" = ""GT24C08""
265 register "device_type" = "INTEL_ACPI_CAMERA_NVM"
267 register "pr0" = ""\\_SB.PCI0.I2C3.CAM0.PRIC""
269 register "nvm_size" = "0x2000"
270 register "nvm_pagesize" = "1"
271 register "nvm_readonly" = "1"
272 register "nvm_width" = "0x10"
273 register "nvm_compat" = ""atmel,24c08""
275 device i2c 50 on end
278 device pci 19.0 on
279 chip drivers/i2c/generic
280 register "hid" = ""10EC5682""
281 register "name" = ""RT58""
282 register "desc" = ""Realtek RT5682""
283 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
284 register "property_count" = "1"
285 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
286 register "property_list[0].name" = ""realtek,jd-src""
287 register "property_list[0].integer" = "1"
288 device i2c 1a on end
290 chip drivers/i2c/generic
291 register "hid" = ""10EC1015""
292 register "desc" = ""Realtek SPK AMP L""
293 register "uid" = "0"
294 device i2c 28 on end
296 chip drivers/i2c/generic
297 register "hid" = ""10EC1015""
298 register "desc" = ""Realtek SPK AMP R""
299 register "uid" = "1"
300 device i2c 29 on end
303 device pci 1f.0 on
304 chip drivers/pc80/tpm
305 device pnp 0c31.0 on end # Discrete TPM
306 end # chip drivers/pc80/tpm
307 end # PCH eSPI
308 device pci 1e.2 off end # GSPI 0
309 device pci 1f.3 on end # Intel HDA
310 device pci 1c.7 on
311 chip drivers/wifi/generic
312 register "wake" = "GPE0_DW2_03"
313 device pci 00.0 on end
315 end # PCI Express Root Port 8 - WLAN