mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / dedede / variants / madoo / overridetree.cb
blob437c60a5cd43f7ef87e0da21bbb2748ea2371a22
1 chip soc/intel/jasperlake
3 # USB Port Configuration
4 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
6 register "SerialIoI2cMode" = "{
7 [PchSerialIoIndexI2C0] = PchSerialIoPci,
8 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
9 [PchSerialIoIndexI2C2] = PchSerialIoPci,
10 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
11 [PchSerialIoIndexI2C4] = PchSerialIoPci,
12 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
15 # Intel Common SoC Config
16 #+-------------------+---------------------------+
17 #| Field | Value |
18 #+-------------------+---------------------------+
19 #| GSPI0 | cr50 TPM. Early init is |
20 #| | required to set up a BAR |
21 #| | for TPM communication |
22 #| | before memory is up |
23 #| I2C0 | Trackpad |
24 #| I2C1 | |
25 #| I2C2 | Touchscreen |
26 #| I2C3 | |
27 #| I2C4 | Audio |
28 #+-------------------+---------------------------+
29 register "common_soc_config" = "{
30 .gspi[0] = {
31 .speed_mhz = 1,
32 .early_init = 1,
34 .i2c[0] = {
35 .speed = I2C_SPEED_FAST,
36 .rise_time_ns = 270,
37 .fall_time_ns = 270,
38 .data_hold_time_ns = 350,
40 .i2c[2] = {
41 .speed = I2C_SPEED_FAST,
42 .speed = I2C_SPEED_FAST,
43 .rise_time_ns = 200,
44 .fall_time_ns = 200,
46 .i2c[4] = {
47 .speed = I2C_SPEED_FAST,
48 .speed_config[0] = {
49 .speed = I2C_SPEED_FAST,
50 .scl_lcnt = 190,
51 .scl_hcnt = 100,
52 .sda_hold = 40,
57 register "tcc_offset" = "10" # TCC of 95C
59 # Enable Acoustic noise mitigation and set slew rate to 1/8
60 # Rest of the parameters are 0 by default.
61 register "AcousticNoiseMitigation" = "1"
62 register "SlowSlewRate" = "2"
64 device domain 0 on
65 device pci 04.0 on
66 chip drivers/intel/dptf
67 register "policies.passive" = "{
68 [0] = DPTF_PASSIVE(CPU, CPU, 65, 1000),
69 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 60000),
70 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 55, 15000)}"
71 register "policies.critical" = "{
72 [0] = DPTF_CRITICAL(CPU, 100, SHUTDOWN),
73 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 90, SHUTDOWN),
74 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN)}"
75 register "controls.power_limits.pl1" = "{
76 .min_power = 4800,
77 .max_power = 6000,
78 .time_window_min = 1 * MSECS_PER_SEC,
79 .time_window_max = 1 * MSECS_PER_SEC,
80 .granularity = 200,}"
81 register "controls.power_limits.pl2" = "{
82 .min_power = 20000,
83 .max_power = 20000,
84 .time_window_min = 1 * MSECS_PER_SEC,
85 .time_window_max = 1 * MSECS_PER_SEC,
86 .granularity = 1000,}"
87 device generic 0 on end
88 end
89 end # SA Thermal device
90 device pci 14.0 on
91 chip drivers/usb/acpi
92 device usb 0.0 on
93 chip drivers/usb/acpi
94 device usb 2.2 off end
95 end
96 chip drivers/usb/acpi
97 register "desc" = ""Camera""
98 register "type" = "UPC_TYPE_INTERNAL"
99 device usb 2.5 on end
101 chip drivers/usb/acpi
102 device usb 3.2 off end
106 end # USB xHCI
107 device pci 15.0 on
108 chip drivers/i2c/generic
109 register "hid" = ""ELAN0000""
110 register "desc" = ""ELAN Touchpad""
111 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
112 register "wake" = "GPE0_DW0_03"
113 register "detect" = "1"
114 device i2c 15 on end
116 end #I2C 0
117 device pci 15.1 off end # I2C 1
118 device pci 15.2 on
119 chip drivers/i2c/hid
120 register "generic.hid" = ""GDIX0000""
121 register "generic.desc" = ""Goodix 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" = "180"
127 register "generic.reset_off_delay_ms" = "2"
128 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
129 register "generic.enable_delay_ms" = "12"
130 register "generic.has_power_resource" = "1"
131 register "hid_desc_reg_offset" = "0x01"
132 device i2c 0x5d on end
134 end # I2C 2
135 device pci 15.3 off end # I2C 3
136 device pci 1c.7 on
137 chip drivers/wifi/generic
138 register "wake" = "GPE0_DW2_03"
139 device pci 00.0 on end
141 end # PCI Express Root Port 8 - WLAN
142 device pci 19.0 on
143 chip drivers/i2c/generic
144 register "hid" = ""10EC5682""
145 register "name" = ""RT58""
146 register "desc" = ""Headset Codec""
147 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
148 # Set the jd_src to RT5668_JD1 for jack detection
149 register "property_count" = "1"
150 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
151 register "property_list[0].name" = ""realtek,jd-src""
152 register "property_list[0].integer" = "1"
153 device i2c 1a on end
155 end #I2C 4
156 device pci 1f.3 on
157 chip drivers/generic/max98357a
158 register "hid" = ""MX98360A""
159 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
160 device generic 0 on end
162 end # Intel HDA