soc/mediatek/mt8196: Initialize SSPM
[coreboot2.git] / src / mainboard / google / dedede / variants / cappy2 / overridetree.cb
blobc01da38369b9dfcf3d9c35be76116ba44b405846
1 fw_config
2 field AUDIO_CODEC_SOURCE 41 43
3 option AUDIO_CODEC_UNPROVISIONED 0
4 option AUDIO_CODEC_ALC5682 1
5 option AUDIO_CODEC_CS42l42 2
6 option AUDIO_CODEC_ALC5682I_VS 3
7 end
8 end
10 chip soc/intel/jasperlake
12 # Intel Common SoC Config
13 #+-------------------+---------------------------+
14 #| Field | Value |
15 #+-------------------+---------------------------+
16 #| I2C0 | Trackpad |
17 #| I2C1 | Digitizer |
18 #| I2C2 | Touchscreen |
19 #| I2C3 | Camera |
20 #| I2C4 | Audio |
21 #+-------------------+---------------------------+
22 register "common_soc_config" = "{
23 .i2c[0] = {
24 .speed = I2C_SPEED_FAST,
25 .rise_time_ns = 255,
26 .fall_time_ns = 14,
28 .i2c[1] = {
29 .speed = I2C_SPEED_FAST,
31 .i2c[2] = {
32 .speed = I2C_SPEED_FAST,
34 .i2c[3] = {
35 .speed = I2C_SPEED_FAST,
37 .i2c[4] = {
38 .speed = I2C_SPEED_FAST,
39 .rise_time_ns = 105,
40 .fall_time_ns = 4,
44 register "disable_external_bypass_vr" = "1" # Does not support external vnn power rail
45 register "tcc_offset" = "10" # TCC of 95C
47 # USB Port Configuration
48 register "usb2_ports[0]" = "{
49 .enable = 1,
50 .ocpin = OC_SKIP,
51 .tx_bias = USB2_BIAS_0MV,
52 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON,
53 .pre_emp_bias = USB2_BIAS_28P15MV,
54 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
55 }" # Type-C
56 register "usb2_ports[2]" = "{
57 .enable = 1,
58 .ocpin = OC_SKIP,
59 .tx_bias = USB2_BIAS_0MV,
60 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON,
61 .pre_emp_bias = USB2_BIAS_28P15MV,
62 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
63 }" # Type-A
64 register "usb2_ports[5]" = "{
65 .enable = 1,
66 .ocpin = OC_SKIP,
67 .tx_bias = USB2_BIAS_0MV,
68 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON,
69 .pre_emp_bias = USB2_BIAS_28P15MV,
70 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
71 }" # Camera
73 device domain 0 on
74 device pci 04.0 on
75 chip drivers/intel/dptf
76 ## Passive Policy
77 register "policies.passive" = "{
78 [0] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 52, 5000),
79 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 52, 5000),
80 [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 50, 5000),}"
81 ## Critical Policy
82 register "policies.critical" = "{
83 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
84 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 90, SHUTDOWN),
85 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 90, SHUTDOWN),
86 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 90, SHUTDOWN),}"
87 register "controls.power_limits.pl1" = "{
88 .min_power = 3500,
89 .max_power = 6000,
90 .time_window_min = 28 * MSECS_PER_SEC,
91 .time_window_max = 28 * MSECS_PER_SEC,
92 .granularity = 250,}"
93 register "controls.power_limits.pl2" = "{
94 .min_power = 20000,
95 .max_power = 20000,
96 .time_window_min = 28 * MSECS_PER_SEC,
97 .time_window_max = 32 * MSECS_PER_SEC,
98 .granularity = 1000,}"
99 ## Charger Performance Control (Control, mA)
100 register "controls.charger_perf" = "{
101 [0] = { 255, 3000 },
102 [1] = { 32, 2000 },
103 [2] = { 24, 1500 },
104 [3] = { 16, 1000 },
105 [4] = { 8, 500 }
107 device generic 0 on end
109 end # SA Thermal device
110 device pci 14.0 on
111 chip drivers/usb/acpi
112 device usb 0.0 on
113 chip drivers/usb/acpi
114 register "desc" = ""UFCamera""
115 register "type" = "UPC_TYPE_INTERNAL"
116 register "has_power_resource" = "1"
117 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D15)"
118 register "enable_delay_ms" = "20"
119 device usb 2.5 on end
123 end # USB xHCI
124 device pci 15.0 on
125 chip drivers/i2c/hid
126 register "generic.hid" = ""SYNA0A00""
127 register "generic.desc" = ""SYNA Touchpad""
128 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
129 register "generic.wake" = "GPE0_DW0_03"
130 register "generic.detect" = "1"
131 register "hid_desc_reg_offset" = "0x20"
132 device i2c 2c on end
134 chip drivers/i2c/hid
135 register "generic.hid" = ""GXTP7288""
136 register "generic.desc" = ""GXTP Touchpad""
137 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
138 register "generic.wake" = "GPE0_DW0_03"
139 register "generic.detect" = "1"
140 register "hid_desc_reg_offset" = "0x01"
141 device i2c 14 on end
143 chip drivers/i2c/hid
144 register "generic.hid" = ""SPPT2600""
145 register "generic.desc" = ""SPPT Touchpad""
146 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
147 register "generic.wake" = "GPE0_DW0_03"
148 register "generic.detect" = "1"
149 register "hid_desc_reg_offset" = "0x20"
150 device i2c 2a on end
152 chip drivers/i2c/hid
153 register "generic.hid" = ""PIXA2635""
154 register "generic.desc" = ""PIXA Touchpad""
155 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
156 register "generic.wake" = "GPE0_DW0_03"
157 register "generic.detect" = "1"
158 register "hid_desc_reg_offset" = "0x20"
159 device i2c 2d on end
161 chip drivers/i2c/generic
162 register "hid" = ""ELAN0000""
163 register "desc" = ""ELAN Touchpad""
164 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
165 register "wake" = "GPE0_DW0_03"
166 register "detect" = "1"
167 device i2c 15 on end
169 end #I2C 0
170 device pci 19.0 on
171 chip drivers/i2c/generic
172 register "hid" = ""10EC5682""
173 register "name" = ""RT58""
174 register "desc" = ""Realtek RT5682""
175 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
176 register "property_count" = "1"
177 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
178 register "property_list[0].name" = ""realtek,jd-src""
179 register "property_list[0].integer" = "1"
180 device i2c 1a on
181 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
182 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
185 chip drivers/i2c/generic
186 register "hid" = ""RTL5682""
187 register "name" = ""RT58""
188 register "desc" = ""Realtek RT5682""
189 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
190 register "property_count" = "1"
191 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
192 register "property_list[0].name" = ""realtek,jd-src""
193 register "property_list[0].integer" = "1"
194 device i2c 1a on
195 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
198 chip drivers/i2c/cs42l42
199 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
200 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H16)"
201 register "ts_inv" = "true"
202 register "ts_dbnc_rise" = "RISE_DEB_1000_MS"
203 register "ts_dbnc_fall" = "FALL_DEB_0_MS"
204 register "btn_det_init_dbnce" = "100"
205 register "btn_det_event_dbnce" = "10"
206 register "bias_lvls[0]" = "15"
207 register "bias_lvls[1]" = "8"
208 register "bias_lvls[2]" = "4"
209 register "bias_lvls[3]" = "1"
210 register "hs_bias_ramp_rate" = "HSBIAS_RAMP_SLOW"
211 register "hs_bias_sense_disable" = "true"
212 device i2c 48 on
213 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_CS42l42
216 end #I2C 4
217 device pci 1f.0 on
218 chip drivers/pc80/tpm
219 device pnp 0c31.0 on end # Discrete TPM
220 end # chip drivers/pc80/tpm
221 end # PCH eSPI
222 device pci 1f.3 on
223 chip drivers/generic/alc1015
224 register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
225 device generic 0 on
226 probe AUDIO_AMP UNPROVISIONED
229 chip drivers/generic/max98357a
230 register "hid" = ""MX98360A""
231 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
232 device generic 0 on
233 probe AUDIO_AMP MAX98360
236 end # Intel HDA