Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: connector: add optional properties for Type-B

Add id-gpios, vbus-gpios, vbus-supply and pinctrl properties for
usb-b-connector

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/1567070558-29417-3-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chunfeng Yun and committed by
Greg Kroah-Hartman
6b68240d 451d15a1

+14
+14
Documentation/devicetree/bindings/connector/usb-connector.txt
··· 17 17 - self-powered: Set this property if the usb device that has its own power 18 18 source. 19 19 20 + Optional properties for usb-b-connector: 21 + - id-gpios: an input gpio for USB ID pin. 22 + - vbus-gpios: an input gpio for USB VBUS pin, used to detect presence of 23 + VBUS 5V. 24 + see gpio/gpio.txt. 25 + - vbus-supply: a phandle to the regulator for USB VBUS if needed when host 26 + mode or dual role mode is supported. 27 + Particularly, if use an output GPIO to control a VBUS regulator, should 28 + model it as a regulator. 29 + see regulator/fixed-regulator.yaml 30 + - pinctrl-names : a pinctrl state named "default" is optional 31 + - pinctrl-0 : pin control group 32 + see pinctrl/pinctrl-bindings.txt 33 + 20 34 Optional properties for usb-c-connector: 21 35 - power-role: should be one of "source", "sink" or "dual"(DRP) if typec 22 36 connector has power support.