1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO-based SBU mux
10 - Bjorn Andersson <andersson@kernel.org>
13 In USB Type-C applications the SBU lines needs to be connected, disconnected
14 and swapped depending on the altmode and orientation. This binding describes
15 a family of hardware solutions which switches between these modes using GPIO
28 description: Switch enable GPIO
31 description: Orientation select
34 description: power supply
37 description: Flag the port as possible handle of altmode switching
41 description: Flag the port as possible handler of orientation switching
45 $ref: /schemas/graph.yaml#/properties/port
47 A port node to link the SBU mux to a TypeC controller for the purpose of
48 handling altmode muxing and orientation switching.
57 additionalProperties: false
61 #include <dt-bindings/gpio/gpio.h>
65 compatible = "usb-c-connector";
73 tcpm_hs_out: endpoint {
74 remote-endpoint = <&usb_hs_phy_in>;
80 tcpm_ss_out: endpoint {
81 remote-endpoint = <&usb_ss_phy_in>;
87 tcpm_sbu_out: endpoint {
88 remote-endpoint = <&sbu_mux_in>;
96 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
98 enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
99 select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
105 sbu_mux_in: endpoint {
106 remote-endpoint = <&tcpm_sbu_out>;