mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / google / zork / variants / woomax / overridetree.cb
blobd0d47aae03077e1773b894c13701b755a0edcdfb
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 fw_config
4 field USB_DAUGHTERBOARD
5 option WOOMAX_DB_PICASSO 0
6 option WOOMAX_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" = "25000"
21 register "fast_ppt_limit_mW" = "30000"
22 register "slow_ppt_time_constant_s" = "5"
23 register "stapm_time_constant_s" = "200"
24 register "sustained_power_limit_mW" = "15000"
26 register "telemetry_vddcr_vdd_slope_mA" = "102586"
27 register "telemetry_vddcr_vdd_offset" = "0"
28 register "telemetry_vddcr_soc_slope_mA" = "24674"
29 register "telemetry_vddcr_soc_offset" = "0"
31 # End : OPN Performance Configuration
32 #USB 2.0 strength
33 register "usb_2_port_tune_params[0]" = "{
34 .com_pds_tune = 0x07,
35 .sq_rx_tune = 0x3,
36 .tx_fsls_tune = 0x3,
37 .tx_pre_emp_amp_tune = 0x03,
38 .tx_pre_emp_pulse_tune = 0x0,
39 .tx_rise_tune = 0x1,
40 .tx_vref_tune = 0xf,
41 .tx_hsxv_tune = 0x3,
42 .tx_res_tune = 0x01,
45 register "usb_2_port_tune_params[3]" = "{
46 .com_pds_tune = 0x07,
47 .sq_rx_tune = 0x3,
48 .tx_fsls_tune = 0x3,
49 .tx_pre_emp_amp_tune = 0x03,
50 .tx_pre_emp_pulse_tune = 0x0,
51 .tx_rise_tune = 0x1,
52 .tx_vref_tune = 0xf,
53 .tx_hsxv_tune = 0x3,
54 .tx_res_tune = 0x01,
57 # USB OC pin mapping
58 register "usb_port_overcurrent_pin[2]" = "USB_OC_NONE" # NC
60 # Enable I2C2 for trackpad, touchscreen, pen at 400kHz
61 register "i2c[2]" = "{
62 .speed = I2C_SPEED_FAST,
63 .rise_time_ns = 21, /* 0 to 2.31 (3.3 * .7) */
64 .fall_time_ns = 76, /* 2.31 to 0 */
67 # Enable I2C3 for H1 400kHz
68 register "i2c[3]" = "{
69 .speed = I2C_SPEED_FAST,
70 .rise_time_ns = 110, /* 0 to 1.26v (1.8 * .7) */
71 .fall_time_ns = 34, /* 1.26v to 0 */
72 .early_init = true,
75 register "emmc_config" = "{
76 .timing = SD_EMMC_EMMC_HS400,
77 .sdr104_hs400_driver_strength = SD_EMMC_DRIVE_STRENGTH_A,
78 .init_khz_preset = 400,
81 # See AMD 55570-B1 Table 13: PCI Device ID Assignments.
82 device domain 0 on
83 subsystemid 0x1022 0x1510 inherit
84 chip drivers/usb/acpi
85 device usb 2.2 off end
86 end
87 chip drivers/usb/acpi
88 device usb 3.2 off end
89 end
91 device ref lpc_bridge on
92 chip ec/google/chromeec
93 device ref cros_ec on
94 chip ec/google/chromeec/i2c_tunnel
95 device ref cros_ec_i2c_9 on
96 chip drivers/i2c/generic
97 device ref db_mst on
98 probe USB_DAUGHTERBOARD WOOMAX_DB_DALI
99 end
106 end # domain
108 device ref i2c_2 on
109 chip drivers/i2c/generic
110 register "hid" = ""ELAN0000""
111 register "desc" = ""ELAN Touchpad""
112 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
113 register "wake" = "GEVENT_22"
114 register "detect" = "1"
115 device i2c 15 on end
117 chip drivers/i2c/hid
118 register "generic.hid" = ""ELAN9008""
119 register "generic.desc" = ""ELAN Touchscreen""
120 register "generic.detect" = "1"
121 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
122 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_90)"
123 register "generic.enable_delay_ms" = "1"
124 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
125 register "generic.reset_delay_ms" = "50"
126 register "generic.reset_off_delay_ms" = "1"
127 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_144)"
128 register "generic.stop_off_delay_ms" = "1"
129 register "generic.has_power_resource" = "1"
130 register "hid_desc_reg_offset" = "0x01"
131 device i2c 10 on end
135 end # chip soc/amd/picasso