1. 11 Jul, 2018 1 commit
  2. 23 Oct, 2017 1 commit
    • Chanwoo Choi's avatar
      extcon: Split out extcon header file for consumer and provider device · 176aa360
      Chanwoo Choi authored
      The extcon has two type of extcon devices as following.
      - 'extcon provider deivce' adds new extcon device and detect the
         state/properties of external connector. Also, it notifies the
         state/properties to the extcon consumer device.
      - 'extcon consumer device' gets the change state/properties
         from extcon provider device.
      Prior to that, include/linux/extcon.h contains all exported API for
      both provider and consumer device driver. To clarify the meaning of
      header file and to remove the wrong use-case on consumer device,
      this patch separates into extcon.h and extcon-provider.h.
      
      [Description for include/linux/{extcon.h|extcon-provider.h}]
      - extcon.h includes the extcon API and data structure for extcon consumer
        device driver. This header file contains the following APIs:
        : Register/unregister the notifier to catch the change of extcon device
        : Get the extcon device instance
        : Get the extcon device name
        : Get the state of each external connector
        : Get the property value of each external connector
        : Get the property capability of each external connector
      
      - extcon-provider.h includes the extcon API and data structure for extcon
        provider device driver. This header file contains the following APIs:
        : Include 'include/linux/extcon.h'
        : Allocate the memory for extcon device instance
        : Register/unregister extcon device
        : Set the state of each external connector
        : Set the property value of each external connector
        : Set the property capability of each external connector
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      Acked-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Acked-by: Chen-Yu Tsai's avatarChen-Yu Tsai <wens@csie.org>
      Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
      Acked-by: default avatarLee Jones <lee.jones@linaro.org>
      Acked-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
      Acked-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Acked-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      176aa360
  3. 13 Sep, 2016 1 commit
  4. 21 Dec, 2015 1 commit
    • Sergei Shtylyov's avatar
      extcon: add Maxim MAX3355 driver · 08a0a4f9
      Sergei Shtylyov authored
      Maxim Integrated MAX3355E chip integrates a charge pump and comparators to
      enable a system with an integrated USB OTG dual-role transceiver to
      function as an USB OTG dual-role device. In addition to sensing/controlling
      Vbus, the chip also passes thru the ID signal from the USB OTG connector.
      On some Renesas boards, this signal is just fed into the SoC thru a GPIO
      pin -- there's no real OTG controller, only host and gadget USB controllers
      sharing the same USB bus; however, we'd like to allow host or gadget
      drivers to be loaded depending on the cable type, hence the need for the
      MAX3355 extcon driver. The Vbus status signals are also wired to GPIOs
      (however, we aren't currently interested in them), the OFFVBUS# signal is
      controlled by the host controllers, there's also the SHDN# signal wired to
      a GPIO, it should be driven high for the normal operation.
      Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      Acked-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      [cw00.choi: Add the GPIOLIB dependency]
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      08a0a4f9