mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / zork / variants / berknip / overridetree.cb
blob00ab7064d529d254e6c4c6976818c108686eacaa
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 fw_config
4 field USB_DAUGHTERBOARD
5 option BERKNIP_DB_PICASSO 0
6 option BERKNIP_DB_DALI 1
7 end
8 end
10 chip soc/amd/picasso
12 # Start : OPN Performance Configuration
13 # See devhub #55593 Chapter 3.2 for documentation
14 # For the below fields, 0 indicates use SOC default
16 # System config index
17 register "system_config" = "2"
19 # Set STAPM confiuration. All of these fields must be set >0 to take affect
20 register "slow_ppt_limit_mW" = "20000"
21 register "fast_ppt_limit_mW" = "24000"
22 register "slow_ppt_time_constant_s" = "5"
23 register "stapm_time_constant_s" = "200"
24 register "sustained_power_limit_mW" = "12000"
25 register "thermctl_limit_degreeC" = "90"
27 register "telemetry_vddcr_vdd_slope_mA" = "65599"
28 register "telemetry_vddcr_vdd_offset" = "0"
29 register "telemetry_vddcr_soc_slope_mA" = "29788"
30 register "telemetry_vddcr_soc_offset" = "0"
32 # End : OPN Performance Configuration
33 # USB 2.0 strength
34 register "usb_2_port_tune_params[0]" = "{
35 .com_pds_tune = 0x07,
36 .sq_rx_tune = 0x3,
37 .tx_fsls_tune = 0x3,
38 .tx_pre_emp_amp_tune = 0x03,
39 .tx_pre_emp_pulse_tune = 0x0,
40 .tx_rise_tune = 0x1,
41 .tx_vref_tune = 0xf,
42 .tx_hsxv_tune = 0x3,
43 .tx_res_tune = 0x01,
46 register "usb_2_port_tune_params[1]" = "{
47 .com_pds_tune = 0x07,
48 .sq_rx_tune = 0x3,
49 .tx_fsls_tune = 0x3,
50 .tx_pre_emp_amp_tune = 0x03,
51 .tx_pre_emp_pulse_tune = 0x0,
52 .tx_rise_tune = 0x1,
53 .tx_vref_tune = 0xf,
54 .tx_hsxv_tune = 0x3,
55 .tx_res_tune = 0x01,
58 register "usb_2_port_tune_params[2]" = "{
59 .com_pds_tune = 0x07,
60 .sq_rx_tune = 0x3,
61 .tx_fsls_tune = 0x3,
62 .tx_pre_emp_amp_tune = 0x03,
63 .tx_pre_emp_pulse_tune = 0x0,
64 .tx_rise_tune = 0x1,
65 .tx_vref_tune = 0xf,
66 .tx_hsxv_tune = 0x3,
67 .tx_res_tune = 0x01,
70 register "usb_2_port_tune_params[3]" = "{
71 .com_pds_tune = 0x07,
72 .sq_rx_tune = 0x3,
73 .tx_fsls_tune = 0x3,
74 .tx_pre_emp_amp_tune = 0x03,
75 .tx_pre_emp_pulse_tune = 0x0,
76 .tx_rise_tune = 0x1,
77 .tx_vref_tune = 0xf,
78 .tx_hsxv_tune = 0x3,
79 .tx_res_tune = 0x01,
82 # Enable I2C2 for trackpad, touchscreen, pen at 400kHz
83 register "i2c[2]" = "{
84 .speed = I2C_SPEED_FAST,
85 .rise_time_ns = 3,
86 .fall_time_ns = 2,
87 .data_hold_time_ns = 400,
90 # Enable I2C3 for H1 400kHz
91 register "i2c[3]" = "{
92 .speed = I2C_SPEED_FAST,
93 .rise_time_ns = 16,
94 .fall_time_ns = 8,
95 .early_init = true,
98 register "emmc_config" = "{
99 .timing = SD_EMMC_EMMC_HS400,
100 .sdr104_hs400_driver_strength = SD_EMMC_DRIVE_STRENGTH_A,
101 .init_khz_preset = 400,
104 # See AMD 55570-B1 Table 13: PCI Device ID Assignments.
105 device domain 0 on
106 subsystemid 0x1022 0x1510 inherit
108 device ref lpc_bridge on
109 chip ec/google/chromeec
110 device ref cros_ec on
111 chip ec/google/chromeec/i2c_tunnel
112 device ref cros_ec_i2c_9 on
113 chip drivers/i2c/generic
114 device ref db_mst on
115 probe USB_DAUGHTERBOARD BERKNIP_DB_DALI
123 end # domain
125 device ref i2c_2 on
126 chip drivers/i2c/generic
127 register "hid" = ""ELAN0000""
128 register "desc" = ""ELAN Touchpad""
129 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
130 register "wake" = "GEVENT_22"
131 register "detect" = "1"
132 device i2c 15 on end
134 chip drivers/i2c/hid
135 register "generic.hid" = ""SYNA0000""
136 register "generic.cid" = ""ACPI0C50""
137 register "generic.desc" = ""Synaptics Touchpad""
138 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
139 register "generic.wake" = "GEVENT_22"
140 register "generic.detect" = "1"
141 register "hid_desc_reg_offset" = "0x20"
142 device i2c 2c on end
144 chip drivers/i2c/generic
145 register "hid" = ""RAYD0001""
146 register "desc" = ""Raydium Touchscreen""
147 register "detect" = "1"
148 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_12)"
149 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_90)"
150 register "enable_delay_ms" = "1"
151 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
152 # 32ms: Rise time of the reset line
153 # 20ms: Firmware ready time
154 register "reset_delay_ms" = "32 + 20"
155 register "has_power_resource" = "1"
156 device i2c 39 on end
158 chip drivers/i2c/generic
159 register "hid" = ""ELAN0001""
160 register "desc" = ""ELAN Touchscreen""
161 register "detect" = "1"
162 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_12)"
163 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_90)"
164 register "enable_delay_ms" = "1"
165 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
166 register "reset_delay_ms" = "20"
167 register "has_power_resource" = "1"
168 device i2c 10 on end
170 chip drivers/i2c/hid
171 register "generic.hid" = ""GTCH7503""
172 register "generic.desc" = ""G2TOUCH Touchscreen""
173 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
174 register "generic.detect" = "1"
175 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_90)"
176 register "generic.enable_delay_ms" = "1"
177 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
178 register "generic.reset_delay_ms" = "50"
179 register "generic.has_power_resource" = "1"
180 register "hid_desc_reg_offset" = "0x01"
181 device i2c 40 on end
185 device ref uart_1 on
186 chip drivers/uart/acpi
187 register "name" = ""CRFP""
188 register "desc" = ""Fingerprint Reader""
189 register "hid" = "ACPI_DT_NAMESPACE_HID"
190 register "compat_string" = ""google,cros-ec-uart""
191 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_6)"
192 register "wake" = "GEVENT_10"
193 register "uart" = "ACPI_UART_RAW_DEVICE(3000000, 64)"
194 device generic 0 on end
198 end # chip soc/amd/picasso