mb/google/hatch/var/jinlon: Replace hardcoded address with device type
[coreboot.git] / src / mainboard / google / hatch / variants / jinlon / overridetree.cb
blob88753deff57c7cde14a7eb3acbd3d18b658ac410
1 chip soc/intel/cannonlake
2 register "power_limits_config" = "{
3 .tdp_pl1_override = 15,
4 .tdp_pl2_override = 51,
5 }"
7 register "SerialIoDevMode" = "{
8 [PchSerialIoIndexI2C0] = PchSerialIoPci,
9 [PchSerialIoIndexI2C1] = PchSerialIoPci,
10 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
11 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
12 [PchSerialIoIndexI2C4] = PchSerialIoPci,
13 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
14 [PchSerialIoIndexSPI0] = PchSerialIoPci,
15 [PchSerialIoIndexSPI1] = PchSerialIoPci,
16 [PchSerialIoIndexSPI2] = PchSerialIoDisabled,
17 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
18 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
19 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
22 # VR Slew rate setting
23 register "AcousticNoiseMitigation" = "1"
24 register "SlowSlewRateForIa" = "2"
25 register "SlowSlewRateForGt" = "2"
26 register "FastPkgCRampDisableIa" = "1"
27 register "FastPkgCRampDisableGt" = "1"
28 register "FastPkgCRampDisableSa" = "1"
30 # Intel Common SoC Config
31 #+-------------------+---------------------------+
32 #| Field | Value |
33 #+-------------------+---------------------------+
34 #| GSPI0 | cr50 TPM. Early init is |
35 #| | required to set up a BAR |
36 #| | for TPM communication |
37 #| | before memory is up |
38 #| GSPI1 | FP MCU |
39 #| I2C0 | Touchpad |
40 #| I2C1 | Touch screen |
41 #| I2C4 | Audio |
42 #+-------------------+---------------------------+
43 register "common_soc_config" = "{
44 .gspi[0] = {
45 .speed_mhz = 1,
46 .early_init = 1,
48 .i2c[0] = {
49 .speed = I2C_SPEED_FAST,
50 .rise_time_ns = 30,
51 .fall_time_ns = 15,
53 .i2c[1] = {
54 .speed = I2C_SPEED_FAST,
55 .rise_time_ns = 20,
56 .fall_time_ns = 25,
58 .i2c[4] = {
59 .speed = I2C_SPEED_FAST,
60 .rise_time_ns = 40,
61 .fall_time_ns = 60,
65 # GPIO for SD card detect
66 register "sdcard_cd_gpio" = "vSD3_CD_B"
68 # Enable eMMC HS400
69 register "ScsEmmcHs400Enabled" = "1"
71 device domain 0 on
72 device ref igpu on
73 chip drivers/gfx/generic
74 register "device_count" = "1"
75 register "device[0].name" = ""LCD0""
76 # Use ChromeOS privacy screen HID
77 register "device[0].hid" = ""GOOG0010""
78 # Internal panel on the first port of the graphics chip
79 register "device[0].type" = "panel"
80 register "device[0].privacy.enabled" = "1"
81 register "device[0].privacy.gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E0)"
82 device generic 0 alias eps on end
83 end
84 chip drivers/gfx/generic
85 register "device_count" = "1"
86 register "device[0].name" = ""LCD0""
87 # Internal panel on the first port of the graphics chip
88 register "device[0].type" = "panel"
89 device generic 1 alias no_eps on end
90 end
91 end
92 device ref xhci on
93 chip drivers/usb/acpi
94 device ref xhci_root_hub on
95 chip drivers/usb/acpi
96 # The Linux Kernel does not allow an inverted BOTH_EDGE irq
97 # So we need to use GpioIO() instead of GpioInt()
98 # https://www.kernel.org/doc/Documentation/acpi/gpio-properties.txt
99 register "privacy_gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D4)"
100 device ref usb2_port7 on end
105 device ref sdxc on end
106 device ref i2c0 on
107 chip drivers/i2c/generic
108 register "hid" = ""ELAN0000""
109 register "desc" = ""ELAN Touchpad""
110 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)"
111 register "wake" = "GPE0_DW0_21"
112 register "detect" = "1"
113 device i2c 15 on end
116 device ref i2c1 on
117 chip drivers/i2c/hid
118 register "generic.hid" = ""GTCH7503""
119 register "generic.desc" = ""G2TOUCH Touchscreen""
120 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
121 register "generic.detect" = "1"
122 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
123 register "generic.reset_delay_ms" = "50"
124 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)"
125 register "generic.enable_delay_ms" = "1"
126 register "generic.has_power_resource" = "1"
127 register "hid_desc_reg_offset" = "0x01"
128 device i2c 40 on end
130 chip drivers/i2c/generic
131 register "hid" = ""ELAN0001""
132 register "desc" = ""ELAN Touchscreen""
133 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
134 register "detect" = "1"
135 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
136 register "reset_delay_ms" = "100"
137 register "reset_off_delay_ms" = "5"
138 register "has_power_resource" = "1"
139 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)"
140 register "enable_delay_ms" = "10"
141 register "enable_off_delay_ms" = "1"
142 device i2c 10 on end
144 chip drivers/i2c/hid
145 register "generic.hid" = ""GDIX0000""
146 register "generic.desc" = ""Goodix Touchscreen""
147 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
148 register "generic.detect" = "1"
149 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
150 register "generic.reset_delay_ms" = "120"
151 register "generic.reset_off_delay_ms" = "3"
152 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)"
153 register "generic.enable_delay_ms" = "10"
154 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)"
155 register "generic.stop_off_delay_ms" = "20"
156 register "generic.has_power_resource" = "1"
157 register "hid_desc_reg_offset" = "0x01"
158 device i2c 5d on end
160 chip drivers/i2c/hid
161 register "generic.hid" = ""ELAN2513""
162 register "generic.desc" = ""ELAN Touchscreen""
163 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)"
164 register "generic.detect" = "1"
165 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)"
166 register "generic.reset_delay_ms" = "20"
167 register "generic.reset_off_delay_ms" = "2"
168 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)"
169 register "generic.enable_delay_ms" = "10"
170 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)"
171 register "generic.stop_delay_ms" = "130"
172 register "generic.has_power_resource" = "1"
173 register "hid_desc_reg_offset" = "0x01"
174 device i2c 15 on end
176 end # I2C #1
177 device ref i2c4 on
178 chip drivers/i2c/generic
179 register "hid" = ""10EC5682""
180 register "name" = ""RT58""
181 register "desc" = ""Realtek RT5682""
182 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)"
183 register "property_count" = "1"
184 # Set the jd_src to RT5668_JD1 for jack detection
185 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
186 register "property_list[0].name" = ""realtek,jd-src""
187 register "property_list[0].integer" = "1"
188 device i2c 1a on end
191 device ref emmc on end
192 device ref gspi1 on
193 chip drivers/spi/acpi
194 register "name" = ""CRFP""
195 register "hid" = "ACPI_DT_NAMESPACE_HID"
196 register "uid" = "1"
197 register "compat_string" = ""google,cros-ec-spi""
198 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)"
199 register "wake" = "GPE0_DW0_23"
200 device spi 1 hidden end
201 end # FPMCU
203 device ref hda on
204 chip drivers/generic/max98357a
205 register "hid" = ""MX98357A""
206 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)"
207 register "sdmode_delay" = "5"
208 device generic 0 on end
210 chip drivers/sof
211 register "spkr_tplg" = "max98357a"
212 register "jack_tplg" = "rt5682"
213 register "mic_tplg" = "_2ch_pdm0"
214 device generic 0 on end