blob: fdeb167e462068bc3ab0b2b00e89b9c0b7c1e870 [file] [log] [blame]
<root>
<include>
<name>servoflex_v2_r0_p50.xml</name>
</include>
<include>
<name>x86_ec_common.xml</name>
</include>
<!-- ******** Controls ******** -->
<!-- Override from definition in servo_v2_r0.xml for prog of MCU -->
<control>
<name>power_state</name>
<doc>Used to turn the DUT off and on</doc>
<params drv="cros_ec_pd_softrec_power" clobber_ok="patch"
reset_recovery="0.6" shutdown_delay="11.0"
boot_to_rec_screen_delay="5.0" />
</control>
<control>
<name>fw_wp_state</name>
<doc>Used to turn fw wp off and on</doc>
<params clobber_ok="patch" fw_wp_vref="pp3300" />
</control>
<control>
<name>dev_mode</name>
<alias>usbpd_boot_mode</alias>
<params clobber_ok="patch" od="PU" map="onoff_i"></params>
</control>
<!-- TODO(tbroch) Implement dev mode via EC uart. -->
<control>
<name>pch_disable</name>
<alias>usbpd_reset</alias>
<params clobber_ok="patch"></params>
</control>
<!-- UART 4, which is re-purposed atop the JTAG interface -->
<!-- Need to enable jtag vref to get jtag_buf_en buffers on -->
<control>
<name>jtag_vref_sel0</name>
<doc>usbpd_uart_vref_sel0</doc>
<params clobber_ok="patch"></params>
</control>
<control>
<name>jtag_vref_sel1</name>
<doc>usbpd_uart_vref_sel1</doc>
<params clobber_ok="patch"></params>
</control>
<control>
<name>uart4_pty</name>
<alias>raw_usbpd_uart_pty</alias>
<doc>Psuedo-terminal (pty) thats connected to USB PD MCU's uart
console</doc>
<params cmd="get" subtype="pty" interface="1" drv="uart"
clobber_ok="full"></params>
</control>
<!-- EC-3PO console interpreter for USB PD -->
<control>
<name>ec3po_usbpd_uart_pty</name>
<alias>usbpd_uart_pty</alias>
<doc>USBPD UART console provided via EC-3PO console
interpreter.</doc>
<params cmd="get" subtype="pty" interface="9" drv="uart" clobber_ok="full">
</params>
</control>
<control>
<name>usbpd_ec3po_interp_connect</name>
<doc>State indicating if interpreter is listening to the EC
UART.</doc>
<params interface="9" drv="ec3po_driver" map="onoff" init="on"
subtype="interp_connect" clobber_ok="full"></params>
</control>
<control>
<name>uart4_baudrate</name>
<alias>usbpd_uart_baudrate</alias>
<doc>Baudrate for CPU's uart console</doc>
<params drv="uart" subtype="props" line_prop="baudrate"
clobber_ok="full" interface="1"></params>
</control>
<control>
<name>uart4_parity</name>
<alias>usbpd_uart_parity</alias>
<doc>Parity for CPU's uart console</doc>
<params drv="uart" subtype="props" line_prop="parity"
clobber_ok="full" interface="1" map="uart_parity"></params>
</control>
<control>
<name>uart4_sbits</name>
<alias>usbpd_uart_sbits</alias>
<doc>Number of stop bits for CPU's uart console</doc>
<params drv="uart" subtype="props" line_prop="sbits"
clobber_ok="full" interface="1" map="uart_sbits"></params>
</control>
<control>
<name>uart4_bits</name>
<alias>usbpd_uart_bits</alias>
<doc>Number of data bits for CPU's uart console</doc>
<params drv="uart" subtype="props" line_prop="bits" clobber_ok="full"
interface="1" map="uart_bits"></params>
</control>
<!-- USB PD UART Automation Controls -->
<control>
<name>usbpd_uart_cmd</name>
<doc>Set to send command to USBPD UART. Get to obtain the matched
results with the regular expression of usbpd_uart_regexp.</doc>
<params subtype="uart_cmd" interface="9" drv="uart"
input_type="str"></params>
</control>
<control>
<name>usbpd_uart_multicmd</name>
<doc>Set to send multiple commands to USB PD UART.</doc>
<params interface="9" drv="na" cmd="get"></params>
<params subtype="uart_multicmd" interface="9" drv="uart"
input_type="str" cmd="set"></params>
</control>
<control>
<name>usbpd_uart_regexp</name>
<doc>List of regular expressions to match the response of
usbpd_uart_cmd.</doc>
<params subtype="uart_regexp" interface="9" drv="uart"
input_type="str"></params>
</control>
<control>
<name>usbpd_uart_timeout</name>
<doc>Timeout value for a response after issuing a command on
usbpd_uart_cmd.</doc>
<params subtype="uart_timeout" interface="9" drv="uart"
input_type="float"></params>
</control>
<control>
<name>usbpd_uart_capture</name>
<doc>Enables capture of USB PD console via
usbpd_uart_stream</doc>
<params subtype="uart_capture" interface="9" drv="uart"
map="onoff"></params>
</control>
<control>
<name>usbpd_uart_stream</name>
<doc>USB PD console stream captured while usbpd_uart_capture is
set to 'on'</doc>
<params cmd="get" subtype="uart_stream" interface="9" drv="uart">
</params>
</control>
<!-- Overrides for jtag buffers on servo V2 & flex above -->
<control>
<name>jtag_buf_en</name>
<alias>usbpd_uart_en</alias>
<doc>Enabled JTAG buffer on servo ... re-purposed to uart4.</doc>
<params clobber_ok="patch" init="on"></params>
</control>
<control>
<name>jtag_buf_on_flex_en</name>
<alias>uart4_on_flex_en,usbpd_uart_on_flex_en</alias>
<doc>Enables JTAG buffer on servo flex ... repurposed to
uart4.</doc>
<params interface="2" drv="pca95xx"
subtype="gpio" child="0x26" offset="3" map="onoff_i" init="on"
clobber_ok="patch"></params>
</control>
<control>
<name>ec_chip</name>
<doc>EC chip name (read-only)</doc>
<params clobber_ok="full" cmd="get" subtype="chip" interface="servo"
drv="cros_chip" chip="mec1322" />
</control>
<control>
<name>usbpd_chip</name>
<doc>USB PD chip name (read-only)</doc>
<params clobber_ok="full" cmd="get" subtype="chip" interface="servo"
drv="cros_chip" chip="stm32" />
</control>
<control>
<name>cpu_fw_spi</name>
<params clobber_ok="full" interface="servo" drv="macro" map="onoff"
set_value_1="spi2_vref:pp3300 spi2_buf_en:on spi2_buf_on_flex_en:on
spi_hold:off usbpd_reset:on"
set_value_0="spi2_vref:off spi2_buf_en:off spi2_buf_on_flex_en:off
spi_hold:off usbpd_reset:off"
/>
</control>
</root>
OSZAR »