linux-brain/Documentation/devicetree/bindings/usb/typec-switch-gpio.txt
Li Jun 7f41c62a20 MLK-23216-9 dt-bindings: usb: add "nxp,cbtl04gp" for typec switch
Adds compatible string for "nxp,cbtl04gp", which is also super speed
mux switch for type-c orientation, controlled by one GPIO.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-01-15 15:26:00 +08:00

32 lines
754 B
Plaintext

Typec orientation switch via a GPIO
-----------------------------------
Required properties:
- compatible: should be set one of following:
- "nxp,ptn36043" or "nxp,cbtl04gp" for NXP Type-C SuperSpeed
active switch.
- gpios: the GPIO used to switch the super speed active channel,
GPIO_ACTIVE_HIGH: GPIO state high for cc1;
GPIO_ACTIVE_LOW: GPIO state low for cc1.
- orientation-switch: must be present.
Required sub-node:
- port: specify the remote endpoint of typec switch consumer.
Example:
ptn36043 {
compatible = "nxp,ptn36043";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ss_sel>;
gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
orientation-switch;
port {
usb3_data_ss: endpoint {
remote-endpoint = <&typec_con_ss>;
};
};
};