From 4ac737e1d9cdea25cb4d2208717133c69c4968d6 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Mon, 24 Jul 2017 17:30:23 +0800 Subject: MLK-16065-5 extcon: ptn5150: add PTN5150 Type-C CC logic chip Add NXP PTN5150 Type-C CC logic chip, this chip supplies CC flip function automatically, and the driver will notify extcon consumer (USB controller driver) attach and detach events. Signed-off-by: Peter Chen --- .../devicetree/bindings/extcon/extcon-ptn5150.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-ptn5150.txt (limited to 'Documentation/devicetree/bindings/extcon') diff --git a/Documentation/devicetree/bindings/extcon/extcon-ptn5150.txt b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.txt new file mode 100644 index 000000000000..1865132a0441 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.txt @@ -0,0 +1,28 @@ +PTN5150 Extcon device + +NXP PTN5150 is an i2c interface Type-C application chip, it can detect +CC flip, attach and detech, the user can get these events through +i2c registers by GPIO interrupt. + +Required properties: +- compatible: Should be "nxp,ptn5150" +- connect-gpios: gpio interrupt for attach and detach events. +- reg: i2c slave address + +Example: +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpi2c1>; + status = "okay"; + + typec_ptn5150: typec@3d { + compatible = "nxp,ptn5150"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ptn5150>; + reg = <0x3d>; + connect-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + }; +}; -- cgit v1.2.3