soc/mediatek/mt8196: Add PMIC MT6316 driver
[coreboot2.git] / src / mainboard / google / octopus / variants / bloog / overridetree.cb
bloba38ba8ec6520069f49bc94d8916ffc4236d1bd67
1 chip soc/intel/apollolake
3 # EMMC Tx CMD Delay
4 # Refer to EDS-Vol2-16.32.
5 # [14:8] steps of delay for DDR mode, each 125ps.
6 # [6:0] steps of delay for SDR mode, each 125ps.
7 register "emmc_tx_cmd_cntl" = "0x505"
9 # EMMC TX DATA Delay 1
10 # Refer to EDS-Vol2-16.33.
11 # [14:8] steps of delay for HS400, each 125ps.
12 # [6:0] steps of delay for SDR104/HS200, each 125ps.
13 register "emmc_tx_data_cntl1" = "0x0b0d"
15 # EMMC TX DATA Delay 2
16 # Refer to EDS-Vol2-16.34.
17 # [30:24] steps of delay for SDR50, each 125ps.
18 # [22:16] steps of delay for DDR50, each 125ps.
19 # [14:8] steps of delay for SDR25/HS50, each 125ps.
20 # [6:0] steps of delay for SDR12, each 125ps.
21 register "emmc_tx_data_cntl2" = "0x1c2a2a2a"
23 # EMMC RX CMD/DATA Delay 1
24 # Refer to EDS-Vol2-16.35.
25 # [30:24] steps of delay for SDR50, each 125ps.
26 # [22:16] steps of delay for DDR50, each 125ps.
27 # [14:8] steps of delay for SDR25/HS50, each 125ps.
28 # [6:0] steps of delay for SDR12, each 125ps.
29 register "emmc_rx_cmd_data_cntl1" = "0x00171a1a"
31 # EMMC RX CMD/DATA Delay 2
32 # Refer to EDS-Vol2-16.37.
33 # [17:16] stands for Rx Clock before Output Buffer
34 # [14:8] steps of delay for Auto Tuning Mode, each 125ps.
35 # [6:0] steps of delay for HS200, each 125ps.
36 register "emmc_rx_cmd_data_cntl2" = "0x10028"
38 # EMMC Rx Strobe Delay
39 # Refer to EDS-Vol2-16.36.
40 # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps.
41 # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps.
42 register "emmc_rx_strobe_cntl" = "0x0b0b"
44 # Intel Common SoC Config
45 #+-------------------+---------------------------+
46 #| Field | Value |
47 #+-------------------+---------------------------+
48 #| GSPI0 | cr50 TPM. Early init is |
49 #| | required to set up a BAR |
50 #| | for TPM communication |
51 #| | before memory is up |
52 #| I2C5 | Audio |
53 #| I2C6 | Trackpad |
54 #| I2C7 | Touchscreen |
55 #+-------------------+---------------------------+
57 register "tcc_offset" = "10"
59 register "common_soc_config" = "{
60 .gspi[0] = {
61 .speed_mhz = 1,
62 .early_init = 1,
64 .i2c[5] = {
65 .speed = I2C_SPEED_FAST,
66 .rise_time_ns = 104,
67 .fall_time_ns = 52,
69 .i2c[6] = {
70 .speed = I2C_SPEED_FAST,
71 .rise_time_ns = 66,
72 .fall_time_ns = 90,
73 .data_hold_time_ns = 350,
75 .i2c[7] = {
76 .speed = I2C_SPEED_FAST,
77 .rise_time_ns = 44,
78 .fall_time_ns = 90,
83 device domain 0 on
84 device pci 16.0 off end # - I2C 0
85 device pci 17.1 on
86 chip drivers/i2c/da7219
87 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)"
88 register "btn_cfg" = "50"
89 register "mic_det_thr" = "200"
90 register "jack_ins_deb" = "20"
91 register "jack_det_rate" = ""32ms_64ms""
92 register "jack_rem_deb" = "1"
93 register "a_d_btn_thr" = "0xa"
94 register "d_b_btn_thr" = "0x16"
95 register "b_c_btn_thr" = "0x21"
96 register "c_mic_btn_thr" = "0x3e"
97 register "btn_avg" = "4"
98 register "adc_1bit_rpt" = "1"
99 register "micbias_lvl" = "2600"
100 register "mic_amp_in_sel" = ""diff""
101 device i2c 1a on end
103 chip drivers/i2c/generic
104 register "hid" = ""10EC5682""
105 register "name" = ""RT58""
106 register "desc" = ""Realtek RT5682""
107 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)"
108 register "probed" = "1"
109 register "property_count" = "1"
110 # Set the jd_src to RT5668_JD1 for jack detection
111 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
112 register "property_list[0].name" = ""realtek,jd-src""
113 register "property_list[0].integer" = "1"
114 device i2c 1a on end
116 end # - I2C 5
117 device pci 17.2 on
118 chip drivers/i2c/generic
119 register "hid" = ""ELAN0000""
120 register "desc" = ""ELAN Touchpad""
121 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPIO_135_IRQ)"
122 register "wake" = "GPE0_DW3_27"
123 register "detect" = "1"
124 device i2c 15 on end
126 end # - I2C 6
127 device pci 17.3 on
128 chip drivers/i2c/generic
129 register "hid" = ""ELAN0001""
130 register "desc" = ""ELAN Touchscreen""
131 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)"
132 register "detect" = "1"
133 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)"
134 register "reset_delay_ms" = "20"
135 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)"
136 register "enable_delay_ms" = "1"
137 register "has_power_resource" = "1"
138 device i2c 10 on end
140 chip drivers/i2c/hid
141 register "generic.hid" = ""GDIX0000""
142 register "generic.desc" = ""Goodix Touchscreen""
143 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)"
144 register "generic.detect" = "1"
145 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)"
146 register "generic.reset_delay_ms" = "120"
147 register "generic.reset_off_delay_ms" = "3"
148 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)"
149 register "generic.has_power_resource" = "1"
150 register "generic.enable_delay_ms" = "10"
151 register "hid_desc_reg_offset" = "0x01"
152 device i2c 5d on end
154 chip drivers/i2c/hid
155 register "generic.hid" = ""GTCH7503""
156 register "generic.desc" = ""G2TOUCH Touchscreen""
157 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)"
158 register "generic.detect" = "1"
159 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)"
160 register "generic.reset_delay_ms" = "50"
161 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)"
162 register "generic.enable_delay_ms" = "1"
163 register "generic.has_power_resource" = "1"
164 register "hid_desc_reg_offset" = "0x01"
165 device i2c 40 on end
167 end # - I2C 7
170 # Disable compliance mode
171 register "disable_compliance_mode" = "1"