blob: 348f6554b08510075043554d61d26e3bbe2d1903 [file] [log] [blame]
<?xml version="1.0"?>
<root>
<include>
<name>common.xml</name>
</include>
<include>
<name>servo_v4_inas.xml</name>
</include>
<map>
<name>onoff_pwrsrc_sel</name>
<doc>Source DUT Type-C power from input Type-C or host USB.
Default is typec</doc>
<params host="0" typec="1"></params>
</map>
<map>
<name>onoff_sbu_uart_sel</name>
<doc>Select between CCD or UART on SBU. Default is CCD</doc>
<params ccd="0" uart="1"></params>
</map>
<map>
<name>onoff_fastboot_duthub_sel</name>
<doc>Select between DUT as host or device. Default is
host</doc>
<params device="0" host="1"></params>
</map>
<map>
<name>onoff_dut_host_sel</name>
<doc>Select between DUT and host. Default is host</doc>
<params host="0" dut="1"></params>
</map>
<map>
<name>onoff_sd_usb_sel</name>
<doc>Select between sd and usb. Default is sd</doc>
<params usb="0" sd="1"></params>
</map>
<map>
<name>onoff_uservo_fastboot_sel</name>
<doc>Select between uservo and fastboot passthrough. Default is
uservo</doc>
<params uservo="0" fastboot="1"></params>
</map>
<!-- GPIO on chip settings -->
<control>
<name>dut_charge_enable</name>
<doc>GPIO_DUT_CHG_EN</doc>
<params interface="1" drv="gpio" offset="0" map="onoff"
init="off"></params>
</control>
<control>
<name>dut_charge_source</name>
<doc>GPIO_HOST_OR_CHG_CTL</doc>
<params interface="1" drv="gpio" offset="1"
map="onoff_pwrsrc_sel" init="typec"></params>
</control>
<control>
<name>dp_hpd</name>
<doc>DP_HPD: Displayport hotplug detect</doc>
<params interface="1" drv="gpio" offset="2" map="onoff"
init="off"></params>
</control>
<control>
<name>sbu_uart_sel</name>
<doc>SBU_UART_SEL: Select between CCD or UART on SBU</doc>
<params interface="1" drv="gpio" offset="3"
map="onoff_sbu_uart_sel" init="ccd"></params>
</control>
<control>
<name>host_hub_reset</name>
<doc>HOST_USB_HUB_RESET_L</doc>
<params interface="1" drv="gpio" offset="4" map="onoff_i"
init="off"></params>
</control>
<control>
<name>fastboot_duthub_mux_sel</name>
<alias>dut_is_host_or_device</alias>
<doc>FASTBOOT_DUTHUB_MUX_SEL: Select DUT USB routed as device
to host, or as host to duthub</doc>
<params interface="1" drv="gpio" offset="5"
map="onoff_fastboot_duthub_sel" init="host"></params>
</control>
<control>
<name>sbu_mux_enable</name>
<doc>SBU_MUX_EN: enable DUT's SBU routing</doc>
<params interface="1" drv="gpio" offset="6" map="onoff"
init="off"></params>
</control>
<control>
<name>dut_usb_mux_enable</name>
<doc>FASTBOOT_DUTHUB_MUX_EN_L: enable DUT's USB interface</doc>
<params interface="1" drv="gpio" offset="7" map="onoff_i"
init="on"></params>
</control>
<control>
<name>dut_hub_usb_reset</name>
<doc>DUT_HUB_USB_RESET_L: reset dut's usb hub</doc>
<params interface="1" drv="gpio" offset="8" map="onoff_i"
init="off"></params>
</control>
<control>
<name>at_hwb</name>
<doc>ATMEL_HWB_L: enable DFU programming of atmega</doc>
<params interface="1" drv="gpio" offset="9" map="onoff_i"
init="off"></params>
</control>
<control>
<name>at_rst</name>
<doc>ATMEL_RESET_L: reset atmega</doc>
<params interface="1" drv="gpio" offset="10" map="onoff_i"
init="on"></params>
</control>
<control>
<name>sd_mux_sel</name>
<doc>EMMC_MUX_SEL</doc>
<params interface="1" drv="gpio" offset="11"
map="onoff_dut_host_sel" init="host"></params>
</control>
<control>
<name>cmux_en</name>
<doc>CMUX_EN: enable DUT USB3/Displayport mux.</doc>
<params interface="1" drv="gpio" offset="12" map="onoff"
init="on"></params>
</control>
<control>
<name>sd_en</name>
<doc>EMMC_MUX_EN_L: enable sd mux connection</doc>
<params interface="1" drv="gpio" offset="13" map="onoff_i"
init="off"></params>
</control>
<control>
<name>sd_pwr_en</name>
<doc>EMMC_PWR_EN</doc>
<params interface="1" drv="gpio" offset="14" map="onoff"
init="off"></params>
</control>
<control>
<name>uservo_pwr_fault</name>
<doc>USERVO_FAULT_L</doc>
<params interface="1" drv="gpio" offset="15" map="onoff_i">
</params>
</control>
<control>
<name>usb3_pwr_fault</name>
<doc>USB_FAULT_L</doc>
<params interface="1" drv="gpio" offset="16" map="onoff_i">
</params>
</control>
<control>
<name>DUT_CC2_RPUSB</name>
<doc>DUT_CC2_RPUSB</doc>
<params interface="1" drv="gpio" offset="17" map="onoff">
</params>
</control>
<control>
<name>DUT_CC2_RD</name>
<doc>DUT_CC2_RD</doc>
<params interface="1" drv="gpio" offset="18" map="onoff">
</params>
</control>
<control>
<name>DUT_CC2_RA</name>
<doc>DUT_CC2_RA</doc>
<params interface="1" drv="gpio" offset="19" map="onoff">
</params>
</control>
<control>
<name>tp17</name>
<doc>testpoint 17</doc>
<params interface="1" drv="gpio" offset="20" map="onoff">
</params>
</control>
<control>
<name>DUT_CC1_PR3A0</name>
<doc>DUT_CC1_PR3A0</doc>
<params interface="1" drv="gpio" offset="21" map="onoff">
</params>
</control>
<control>
<name>DUT_CC1_RP1A5</name>
<doc>DUT_CC1_RP1A5</doc>
<params interface="1" drv="gpio" offset="22" map="onoff">
</params>
</control>
<control>
<name>DUT_CC1_RPUSB</name>
<doc>DUT_CC1_RPUSB</doc>
<params interface="1" drv="gpio" offset="23" map="onoff">
</params>
</control>
<control>
<name>DUT_CC1_RD</name>
<doc>DUT_CC1_RD</doc>
<params interface="1" drv="gpio" offset="24" map="onoff">
</params>
</control>
<control>
<name>DUT_CC1_RA</name>
<doc>DUT_CC1_RA</doc>
<params interface="1" drv="gpio" offset="25" map="onoff">
</params>
</control>
<control>
<name>DUT_CC2_PR3A0</name>
<doc>DUT_CC2_PR3A0</doc>
<params interface="1" drv="gpio" offset="26" map="onoff">
</params>
</control>
<control>
<name>DUT_CC2_RP1A5</name>
<doc>DUT_CC2_RP1A5</doc>
<params interface="1" drv="gpio" offset="27" map="onoff">
</params>
</control>
<!-- GPIO on expander settings -->
<control>
<name>sbu_flip_sel</name>
<doc>SBU_FLIP_SEL: Flip SBU lines based on cable
rotation.</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="0" map="onoff" init="off"></params>
</control>
<control>
<name>usb3_mux_sel</name>
<doc>USB3.0_TYPEA_MUX_SEL</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="1" map="onoff_dut_host_sel" init="host"></params>
</control>
<control>
<name>usb3_mux_en</name>
<doc>USB3.0_TYPEA_MUX_EN_L</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="2" map="onoff_i" init="on"></params>
</control>
<control>
<name>usb3_pwr_en</name>
<doc>USB3.0_TYPE_A_PWR_EN</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="3" map="onoff" init="on"></params>
</control>
<control>
<name>host_sd_usb_mux_sel</name>
<doc>TYPEA_EMMC_MUX_SEL</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="4" map="onoff_sd_usb_sel" init="usb"></params>
</control>
<control>
<name>uservo_pwr_en</name>
<doc>USERVO_POWER_EN</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="5" map="onoff" init="on"></params>
</control>
<control>
<name>uservo_fastboot_mux_sel</name>
<doc>USERVO_FASTBOOT_MUX_SEL</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="6" map="onoff_uservo_fastboot_sel" init="uservo">
</params>
</control>
<control>
<name>host_sd_usb_mux_en</name>
<doc>TYPEA_EMMC_MUX_EN_L</doc>
<params interface="3" drv="sx1505" slv="0x20" port="0"
offset="7" map="onoff_i" init="on"></params>
</control>
<!-- UART and CONSOLE settings -->
<control>
<name>raw_servo_v4_console_pty</name>
<doc>Servo V4's stm32 console.</doc>
<params cmd="get" subtype="pty" interface="2" drv="uart">
</params>
</control>
<control>
<name>dut_pty</name>
<doc>UART routed to DUT's SBU lines.</doc>
<params cmd="get" subtype="pty" interface="4" drv="uart">
</params>
</control>
<control>
<name>atmega_pty</name>
<doc>UART routed to atmega mcu for keyboard emulator.</doc>
<params cmd="get" subtype="pty" interface="5" drv="uart">
</params>
</control>
<!-- EC-3PO console interpreter linkup -->
<control>
<name>ec3po_servo_v4_console</name>
<alias>servo_v4_console_pty</alias>
<doc>Servo v4 console provided via EC-3PO console
interpreter.</doc>
<params cmd="get" subtype="pty" interface="6" drv="uart">
</params>
</control>
<control>
<name>servo_v4_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>
</root>