Commit 93f99887 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Merge tag 'extcon-next-for-5.11' of...

Merge tag 'extcon-next-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-next

Chanwoo writes:

Update for extcon-next v5.11

1. Add new TI TUSB320 USB-C extcon driver
- The extcon-usbc-tusb320.c driver for the TI TUSB320 USB Type-C device
support the USB Type C connector detection.

2. Rewrite binding document in yaml for extcon-fsa9480.c
and add new compatible name of TI TSU6111 device.

3. Fix moalias string of extcon-max77693.c to fix the automated module
loading when this driver is compiled as a module.

* tag 'extcon-next-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon:
  extcon: max77693: Fix modalias string
  extcon: fsa9480: Support TI TSU6111 variant
  extcon: fsa9480: Rewrite bindings in YAML and extend
  dt-bindings: extcon: add binding for TUSB320
  extcon: Add driver for TI TUSB320
parents 428bb001 e1efdb60
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
FAIRCHILD SEMICONDUCTOR FSA9480 MICROUSB SWITCH

The FSA9480 is a USB port accessory detector and switch. The FSA9480 is fully
controlled using I2C and enables USB data, stereo and mono audio, video,
microphone, and UART data to use a common connector port.

Required properties:
 - compatible : Must be one of
   "fcs,fsa9480"
   "fcs,fsa880"
 - reg : Specifies i2c slave address. Must be 0x25.
 - interrupts : Should contain one entry specifying interrupt signal of
   interrupt parent to which interrupt pin of the chip is connected.

 Example:
	musb@25 {
		compatible = "fcs,fsa9480";
		reg = <0x25>;
		interrupt-parent = <&gph2>;
		interrupts = <7 0>;
	};
+41 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/extcon/extcon-usbc-tusb320.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI TUSB320 USB Type-C CC Logic controller

maintainers:
  - Michael Auchter <michael.auchter@ni.com>

properties:
  compatible:
    const: ti,tusb320

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

examples:
  - |
    i2c0 {
        #address-cells = <1>;
        #size-cells = <0>;
        tusb320@61 {
            compatible = "ti,tusb320";
            reg = <0x61>;
            interrupt-parent = <&gpio>;
            interrupts = <27 1>;
        };
    };
...
+52 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/extcon/fcs,fsa880.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Fairchild Semiconductor FSA880, FSA9480 and compatibles

maintainers:
  - Linus Walleij <linus.walleij@linaro.org>

description:
  The FSA880 and FSA9480 are USB port accessory detectors and switches.
  The switch is fully controlled using I2C and enables USB data, stereo
  and mono audio, video, microphone, and UART data to use a common
  connector port. Compatible switches exist from other manufacturers.

properties:
  compatible:
    enum:
      - fcs,fsa880
      - fcs,fsa9480
      - ti,tsu6111

  reg:
    maxItems: 1
    description: The I2C address for an FSA880 compatible device is
      usually 0x25.

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        usb-switch@25 {
            compatible = "fcs,fsa880";
            reg = <0x25>;
            interrupt-parent = <&gpio>;
            interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
        };
    };
+8 −0
Original line number Diff line number Diff line
@@ -186,4 +186,12 @@ config EXTCON_USBC_CROS_EC
	  Say Y here to enable USB Type C cable detection extcon support when
	  using Chrome OS EC based USB Type-C ports.

config EXTCON_USBC_TUSB320
	tristate "TI TUSB320 USB-C extcon support"
	depends on I2C
	select REGMAP_I2C
	help
	  Say Y here to enable support for USB Type C cable detection extcon
	  support using a TUSB320.

endif
+1 −0
Original line number Diff line number Diff line
@@ -25,3 +25,4 @@ obj-$(CONFIG_EXTCON_RT8973A) += extcon-rt8973a.o
obj-$(CONFIG_EXTCON_SM5502)	+= extcon-sm5502.o
obj-$(CONFIG_EXTCON_USB_GPIO)	+= extcon-usb-gpio.o
obj-$(CONFIG_EXTCON_USBC_CROS_EC) += extcon-usbc-cros-ec.o
obj-$(CONFIG_EXTCON_USBC_TUSB320) += extcon-usbc-tusb320.o
Loading