blob: e2f6370805005cad5920ba70b7d8bb62b7b3dbfd [file] [log] [blame]
<?xml version="1.0"?>
<root>
<include>
<name>common.xml</name>
</include>
<include>
<name>keyboard.xml</name>
</include>
<include>
<name>uart_common.xml</name>
</include>
<!-- Console GPIO interface -->
<map>
<name>onoff_vref_sel</name>
<doc>Determine VREF between pp3300, pp1800 and off.
Default is off</doc>
<params off="0" pp3300="1" pp1800="2"></params>
</map>
<map>
<name>usbpd_uart_map</name>
<doc>Enable alternate uart3 routing for PD</doc>
<params off="0" samus="1" glados="2"></params>
</map>
<control>
<name>uart1_en</name>
<alias>ec_uart_en</alias>
<doc>UART1_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="UART1_EN_L"
subtype="single" map="onoff_i" init="on"></params>
</control>
<control>
<name>servo_jtag_trst</name>
<doc>SERVO_JTAG_TRST_L</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TRST_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>spi1_buf_en</name>
<doc>SPI1_BUF_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="SPI1_BUF_EN_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>spi2_buf_en</name>
<doc>SPI2_BUF_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="SPI2_BUF_EN_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>uart2_en</name>
<alias>cpu_uart_en</alias>
<doc>UART2_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="UART2_EN_L"
subtype="single" map="onoff_i" init="on"></params>
</control>
<control>
<name>spi1_vref</name>
<doc>VREF applied to SPI1</doc>
<params interface="6" drv="ec3po_gpio" names="SPI1_VREF_33, SPI1_VREF_18"
subtype="multi" map="onoff_vref_sel" init="off"></params>
</control>
<control>
<name>spi2_vref</name>
<alias>fw_wp_vref</alias>
<doc>VREF applied to SPI2 (coreboot)</doc>
<params interface="6" drv="ec3po_gpio" names="SPI2_VREF_33, SPI2_VREF_18"
subtype="multi" map="onoff_vref_sel" init="off"></params>
</control>
<control>
<name>servo_jtag_trst_dir</name>
<doc>SERVO_JTAG_TRST_DIR</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TRST_DIR"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>servo_jtag_tdi_dir</name>
<doc>SERVO_JTAG_TDI_DIR</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TDI_DIR"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>gpio_expander_reset</name>
<doc>TCA6416_RESET_L</doc>
<params interface="6" drv="ec3po_gpio" name="TCA6416_RESET_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>uart3_on_spi1</name>
<doc>SPI1_MUX_SEL</doc>
<params interface="6" drv="ec3po_gpio" name="SPI1_MUX_SEL"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_TMS_DIR</name>
<doc>SERVO_JTAG_TMS_DIR</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TMS_DIR"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_TDO_SEL</name>
<doc>SERVO_JTAG_TDO_SEL</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TDO_SEL"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_TMS</name>
<doc>SERVO_JTAG_TMS</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TMS"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>UART3_TX_SERVO_JTAG_TCK</name>
<doc>UART3_TX_SERVO_JTAG_TCK</doc>
<params interface="6" drv="ec3po_gpio" name="UART3_TX_SERVO_JTAG_TCK"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>UART3_RX_JTAG_BUFFER_TO_SERVO_TDO</name>
<doc>UART3_RX_JTAG_BUFFER_TO_SERVO_TDO</doc>
<params interface="6" drv="ec3po_gpio" name="UART3_RX_JTAG_BUFFER_TO_SERVO_TDO"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_TDO_BUFFER_EN</name>
<doc>SERVO_JTAG_TDO_BUFFER_EN</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TDO_BUFFER_EN"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_TDI</name>
<doc>SERVO_JTAG_TDI</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_TDI"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>SERVO_JTAG_RTCK</name>
<doc>SERVO_JTAG_RTCK</doc>
<params interface="6" drv="ec3po_gpio" name="SERVO_JTAG_RTCK"
subtype="single" map="onoff" init="off"></params>
</control>
<control>
<name>JTAG_BUFOUT_EN_L</name>
<doc>JTAG_BUFOUT_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="JTAG_BUFOUT_EN_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<control>
<name>JTAG_BUFIN_EN_L</name>
<doc>JTAG_BUFIN_EN_L</doc>
<params interface="6" drv="ec3po_gpio" name="JTAG_BUFIN_EN_L"
subtype="single" map="onoff_i" init="off"></params>
</control>
<!-- GPIO on expander settings -->
<control>
<name>fw_wp_en</name>
<doc>Enables forwarding of write-protect gpio. Must assert this
and set fw_wp_vref prior to changing fw_wp.</doc>
<params interface="2" drv="tca6416" slv="0x20" port="0"
offset="0" map="onoff" init="off"></params>
</control>
<control>
<name>fw_wp</name>
<doc>Firmware write-protect GPIO</doc>
<!-- DUT_MFG_MODE read only -->
<params cmd="get" interface="2" drv="tca6416" slv="0x20"
port="0" offset="2" map="onoff_i"></params>
<!-- FTDI_MFG_MODE write only -->
<params cmd="set" interface="2" drv="tca6416" slv="0x20"
port="0" offset="1" map="onoff_i"></params>
</control>
<control>
<name>tp1</name>
<doc>Test point 1</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="0"
offset="3" map="onoff" init="off"></params>
</control>
<control>
<name>spi_hold</name>
<doc>spi_hold</doc>
<params interface="2" drv="tca6416" slv="0x20" port="0"
offset="4" map="onoff_i"></params>
</control>
<control>
<name>cold_reset</name>
<doc>cold_reset</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="0"
offset="5" map="onoff_i" init="off"></params>
</control>
<control>
<name>pwr_button</name>
<doc>Power button GPIO</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="0"
offset="6" map="press" init="release"></params>
</control>
<control>
<name>warm_reset</name>
<doc>warm_reset</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="0"
offset="7" map="onoff_i" init="off"></params>
</control>
<control>
<name>rec_mode</name>
<doc>Google recovery mode</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="0" map="onoff_i" init="off"></params>
</control>
<control>
<name>hpd</name>
<doc>hpd</doc>
<params interface="2" drv="tca6416" slv="0x20" port="1"
offset="2" map="onoff"></params>
</control>
<control>
<name>fw_up</name>
<alias>t20_rec,proc_hot,ec_boot_mode</alias>
<doc>Firmware update mode via USB</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="3" map="onoff_i" init="off"></params>
</control>
<control>
<name>lid_open</name>
<doc>lid open GPIO</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="4" map="yesno" init="yes"></params>
</control>
<control>
<name>dev_mode</name>
<alias>usbpd_boot_mode</alias>
<doc>dev_mode GPIO</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="5" map="onoff"></params>
</control>
<control>
<name>pch_disable</name>
<alias>usbpd_reset</alias>
<doc>DUT specific.</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="6" map="onoff_i" init="off"></params>
</control>
<control>
<name>tp2</name>
<doc>Test point 2</doc>
<params interface="2" drv="tca6416" slv="0x20" od="PU" port="1"
offset="7" map="onoff" init="off"></params>
</control>
<control>
<name>fw_wp_state</name>
<doc>Used to turn fw wp off and on</doc>
<params interface="servo" drv="fw_wp_servoflex" input_type="str"
fw_wp_vref="pp1800"/>
</control>
<!-- UART and CONSOLE settings -->
<control>
<name>uart3_pty</name>
<alias>raw_usbpd_uart_pty</alias>
<doc>Legacy (v1) uart console. USART4: PA0/PA1 - Servo UART3</doc>
<params cmd="get" subtype="pty" interface="1" drv="uart">
</params>
</control>
<control>
<name>uart3_parity</name>
<alias>usbpd_uart_parity</alias>
<doc>Parity for uart console</doc>
<params drv="uart" subtype="props" line_prop="parity"
interface="1" map="uart_parity"></params>
</control>
<control>
<name>uart3_baudrate</name>
<alias>usbpd_uart_baudrate</alias>
<doc>Baudrate for EC's uart console</doc>
<params drv="uart" subtype="props" line_prop="baudrate"
interface="1"></params>
</control>
<control>
<name>uart2_pty</name>
<alias>cpu_uart_pty</alias>
<doc>UART console. USART3: PB10/PB11 - Servo header UART2</doc>
<params cmd="get" subtype="pty" interface="8" drv="uart">
</params>
</control>
<control>
<name>uart2_parity</name>
<alias>cpu_uart_parity</alias>
<doc>Parity for uart console</doc>
<params drv="uart" subtype="props" line_prop="parity"
interface="8" map="uart_parity"></params>
</control>
<control>
<name>uart2_baudrate</name>
<alias>cpu_uart_baudrate</alias>
<doc>Baudrate for EC's uart console</doc>
<params drv="uart" subtype="props" line_prop="baudrate"
interface="8"></params>
</control>
<control>
<name>uart1_pty</name>
<alias>raw_ec_uart_pty</alias>
<doc>UART console. USART2: PA2/PA3 - Servo header UART1</doc>
<params cmd="get" subtype="pty" interface="7" drv="uart">
</params>
</control>
<control>
<name>uart1_parity</name>
<alias>ec_uart_parity</alias>
<doc>Parity for uart console</doc>
<params drv="uart" subtype="props" line_prop="parity"
interface="7" map="uart_parity"></params>
</control>
<control>
<name>uart1_baudrate</name>
<alias>ec_uart_baudrate</alias>
<doc>Baudrate for EC's uart console</doc>
<params drv="uart" subtype="props" line_prop="baudrate"
interface="7"></params>
</control>
<control>
<name>raw_servo_console_pty</name>
<doc>Servo's stm32 console.</doc>
<params cmd="get" subtype="pty" interface="3" drv="uart">
</params>
</control>
<control>
<name>servo_micro_version</name>
<doc>current fw version</doc>
<params cmd="get" subtype="ver" interface="6" drv="ec3po_servo_micro"
map="str" clobber_ok=""></params>
</control>
<control>
<name>servo_micro_version_compatible</name>
<doc>Is current version compatible</doc>
<params cmd="get" subtype="ver_valid" interface="6" drv="ec3po_servo_micro"
map="yesno" clobber_ok=""></params>
</control>
<!-- EC-3PO console interpreter linkup -->
<control>
<name>ec3po_servo_console</name>
<alias>servo_console_pty</alias>
<doc>Servo micro console provided via EC-3PO console interpreter.</doc>
<params cmd="get" subtype="pty" interface="6" drv="uart"></params>
</control>
<control>
<name>servo_ec3po_interp_connect</name>
<doc>State indicating if interpreter is listening to the servo console.</doc>
<params interface="6" drv="ec3po_driver" map="onoff" init="on"
subtype="interp_connect"></params>
</control>
<control>
<name>ec3po_ec_console</name>
<alias>ec_uart_pty</alias>
<doc>EC UART console provided via EC-3PO console interpreter.</doc>
<params cmd="get" subtype="pty" interface="10" drv="uart"></params>
</control>
<control>
<name>ec_ec3po_interp_connect</name>
<doc>State indicating if interpreter is listening to the EC UART.</doc>
<params interface="10" drv="ec3po_driver" map="onoff" init="on"
subtype="interp_connect"></params>
</control>
<control>
<name>ec3po_usbpd_console</name>
<alias>usbpd_uart_pty</alias>
<doc>USB PD UART console provided via EC-3PO console interpreter.</doc>
<params cmd="get" subtype="pty" interface="9" drv="uart"></params>
</control>
<control>
<name>usbpd_ec3po_interp_connect</name>
<doc>State indicating if interpreter is listening to the usb pd UART.</doc>
<params interface="9" drv="ec3po_driver" map="onoff" init="on"
subtype="interp_connect"></params>
</control>
<control>
<name>usbpd_uart_routing</name>
<doc>enable pd uart routing</doc>
<params interface="6" drv="ec3po_servo_micro"
subtype="usbpd_console" map="usbpd_uart_map" clobber_ok=""></params>
</control>
<control>
<name>jtag_buf_en</name>
<alias>fpmcu_uart_en,usbpd_uart_en</alias>
<doc>Dummy control. Controlled by usbpd_uart_routing instead.</doc>
<params interface="9" drv="na" subtype="not_applicable" map="onoff"
clobber_ok="" />
</control>
<control>
<name>jtag_vref_sel0</name>
<alias>jtag_vref_sel1</alias>
<doc>Dummy control. No way to change it.</doc>
<params interface="9" drv="na" subtype="not_applicable" input_type="str"
clobber_ok="" />
</control>
</root>