mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / dedede / variants / galtic / overridetree.cb
blob51d5a7a1698b239182d1c2ec9129690c20175dd0
1 fw_config
2 field TOUCHSCREEN_SOURCE 39 40
3 option TOUCHSCREEN_UNPROVISIONED 0
4 option TOUCHSCREEN_ELAN1001 1
5 option TOUCHSCREEN_ELAN9008 2
6 end
7 field AUDIO_CODEC_SOURCE 41 43
8 option AUDIO_CODEC_UNPROVISIONED 0
9 option AUDIO_CODEC_ALC5682 1
10 option AUDIO_CODEC_ALC5682I_VS 2
11 end
12 end
14 chip soc/intel/jasperlake
16 # Intel Common SoC Config
17 #+-------------------+---------------------------+
18 #| Field | Value |
19 #+-------------------+---------------------------+
20 #| GSPI0 | cr50 TPM. Early init is |
21 #| | required to set up a BAR |
22 #| | for TPM communication |
23 #| | before memory is up |
24 #| I2C0 | Trackpad |
25 #| I2C2 | Touchscreen |
26 #| I2C4 | Audio |
27 #+-------------------+---------------------------+
28 register "common_soc_config" = "{
29 .gspi[0] = {
30 .speed_mhz = 1,
31 .early_init = 1,
33 .i2c[0] = {
34 .speed = I2C_SPEED_FAST,
35 .speed_config[0] = {
36 .speed = I2C_SPEED_FAST,
37 .scl_lcnt = 190,
38 .scl_hcnt = 100,
39 .sda_hold = 40,
42 .i2c[2] = {
43 .speed = I2C_SPEED_FAST,
44 .speed_config[0] = {
45 .speed = I2C_SPEED_FAST,
46 .scl_lcnt = 190,
47 .scl_hcnt = 100,
48 .sda_hold = 40,
51 .i2c[4] = {
52 .speed = I2C_SPEED_FAST,
53 .speed_config[0] = {
54 .speed = I2C_SPEED_FAST,
55 .scl_lcnt = 190,
56 .scl_hcnt = 100,
57 .sda_hold = 40,
62 register "SerialIoI2cMode" = "{
63 [PchSerialIoIndexI2C0] = PchSerialIoPci,
64 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
65 [PchSerialIoIndexI2C2] = PchSerialIoPci,
66 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
67 [PchSerialIoIndexI2C4] = PchSerialIoPci,
70 # USB Port Configuration
71 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
73 register "tcc_offset" = "8" # TCC of 97C
75 device domain 0 on
76 device pci 04.0 on
77 # Default DPTF Policy for all Dedede boards if not overridden
78 chip drivers/intel/dptf
79 ## Passive Policy
80 register "policies.passive" = "{
81 [0] = DPTF_PASSIVE(CPU, CPU, 67, 1000),
82 [1] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_0, 62, 1000),
83 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 58, 1000),
84 [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 40, 1000)
87 ## Critical Policy
88 register "policies.critical" = "{
89 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
90 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 98, SHUTDOWN),
91 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN),
92 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 80, SHUTDOWN)
95 ## Power Limits Control
96 register "controls.power_limits" = "{
97 .pl1 = {
98 .min_power = 6000,
99 .max_power = 6000,
100 .time_window_min = 1 * MSECS_PER_SEC,
101 .time_window_max = 1 * MSECS_PER_SEC,
102 .granularity = 200,
104 .pl2 = {
105 .min_power = 20000,
106 .max_power = 20000,
107 .time_window_min = 1 * MSECS_PER_SEC,
108 .time_window_max = 1 * MSECS_PER_SEC,
109 .granularity = 1000,
113 register "options.tsr[0].desc" = ""Charger""
114 register "options.tsr[1].desc" = ""Vcore""
115 register "options.tsr[2].desc" = ""Ambient""
117 ## Charger Performance Control (Control, mA)
118 register "controls.charger_perf" = "{
119 [0] = { 32, 2048 },
120 [1] = { 28, 1792 },
121 [2] = { 24, 1536 },
122 [3] = { 20, 1280 }
125 device generic 0 on end
127 end # SA Thermal device
128 device pci 14.0 on
129 chip drivers/usb/acpi
130 device usb 0.0 on
131 chip drivers/usb/acpi
132 register "desc" = ""Camera""
133 register "type" = "UPC_TYPE_INTERNAL"
134 device usb 2.5 on end
138 end # USB xHCI
140 device pci 15.0 on
141 chip drivers/i2c/generic
142 register "hid" = ""ELAN0000""
143 register "desc" = ""ELAN Touchpad""
144 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
145 register "wake" = "GPE0_DW0_03"
146 register "detect" = "1"
147 device i2c 15 on end
149 chip drivers/i2c/hid
150 register "generic.hid" = ""ELAN2702""
151 register "generic.desc" = ""ELAN Touchpad""
152 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
153 register "generic.wake" = "GPE0_DW0_03"
154 register "generic.detect" = "1"
155 register "hid_desc_reg_offset" = "0x01"
156 device i2c 15 on end
159 device pci 15.2 on
160 chip drivers/i2c/generic
161 register "hid" = ""ELAN0001""
162 register "desc" = ""ELAN Touchscreen""
163 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
164 register "detect" = "1"
165 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
166 register "reset_delay_ms" = "20"
167 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
168 register "enable_delay_ms" = "1"
169 register "has_power_resource" = "1"
170 device i2c 10 on
171 probe TOUCHSCREEN_SOURCE TOUCHSCREEN_ELAN1001
172 probe TOUCHSCREEN_SOURCE TOUCHSCREEN_UNPROVISIONED
175 chip drivers/i2c/hid
176 register "generic.hid" = ""ELAN9008""
177 register "generic.desc" = ""ELAN Touchscreen""
178 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
179 register "generic.detect" = "1"
180 register "generic.reset_gpio" =
181 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
182 register "generic.enable_gpio" =
183 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
184 register "generic.enable_delay_ms" = "7"
185 register "generic.reset_delay_ms" = "70"
186 register "generic.has_power_resource" = "1"
187 register "hid_desc_reg_offset" = "0x01"
188 device i2c 10 on
189 probe TOUCHSCREEN_SOURCE TOUCHSCREEN_ELAN9008
192 end # I2C 2
193 device pci 19.0 on
194 chip drivers/i2c/generic
195 register "hid" = ""10EC5682""
196 register "name" = ""RT58""
197 register "desc" = ""Realtek RT5682""
198 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
199 register "property_count" = "1"
200 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
201 register "property_list[0].name" = ""realtek,jd-src""
202 register "property_list[0].integer" = "1"
203 device i2c 1a on
204 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
205 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
208 chip drivers/i2c/generic
209 register "hid" = ""RTL5682""
210 register "name" = ""RT58""
211 register "desc" = ""Realtek RT5682""
212 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
213 register "property_count" = "1"
214 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
215 register "property_list[0].name" = ""realtek,jd-src""
216 register "property_list[0].integer" = "1"
217 device i2c 1a on
218 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
221 chip drivers/i2c/generic
222 register "hid" = ""10EC1015""
223 register "desc" = ""Realtek SPK AMP L""
224 register "uid" = "0"
225 device i2c 28 on
226 probe AUDIO_AMP RT1015_I2C
227 probe AUDIO_AMP UNPROVISIONED
230 chip drivers/i2c/generic
231 register "hid" = ""10EC1015""
232 register "desc" = ""Realtek SPK AMP R""
233 register "uid" = "1"
234 device i2c 29 on
235 probe AUDIO_AMP RT1015_I2C
236 probe AUDIO_AMP UNPROVISIONED
240 device pci 1f.3 on
241 chip drivers/generic/alc1015
242 register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
243 device generic 0 on
244 probe AUDIO_AMP RT1015P_AUTO
247 end # Intel HDA