22 Jun, 2019
1 commit
-
This patch adds extcon driver for Fairchild Semiconductor FSA9480
microUSB switch.Signed-off-by: Tomasz Figa
Signed-off-by: Jonathan Bakker
Signed-off-by: Paweł Chmiel
Signed-off-by: Chanwoo Choi
05 Apr, 2019
1 commit
-
On Intel Merrifield the Basin Cove PMIC provides a feature to detect
the USB connection type. This driver utilizes the feature in order
to support the USB dual role detection.Signed-off-by: Andy Shevchenko
Signed-off-by: Chanwoo Choi
11 Feb, 2019
1 commit
-
PTN5150 is a small thin low power CC (Configurationn Channel)
Logic chip supporting the USB Type-C connector application with
CC control logic detection and indication functions.Signed-off-by: Vijai Kumar K
[cw00.choi: Fix bulid dependency and clean-up code]
Signed-off-by: Chanwoo Choi
02 Nov, 2017
1 commit
-
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.By default all files without license information are under the default
license of the kernel, which is GPL version 2.Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if
Reviewed-by: Philippe Ombredanne
Reviewed-by: Thomas Gleixner
Signed-off-by: Greg Kroah-Hartman
17 Jul, 2017
1 commit
-
This is the driver for the USB Type C cable detection mechanism
built into the ChromeOS Embedded Controller on systems that
have USB Type-C ports.At present, this allows for the presence of display out, but in
future, it may also be used to notify host and device type cables
and the presence of power.Signed-off-by: Benson Leung
Signed-off-by: Enric Balletbo i Serra
Acked-by: Chanwoo Choi
Acked-by: Lee Jones
Signed-off-by: Chanwoo Choi
06 Apr, 2017
1 commit
-
Add a driver for charger detection / control on the Intel Cherrytrail
Whiskey Cove PMIC.Signed-off-by: Hans de Goede
Signed-off-by: Chanwoo Choi
09 Jan, 2017
1 commit
-
Add an extcon driver for USB OTG ports controlled by an Intel INT3496
ACPI device (e.g. Baytrail, Cherrytrail devices).Signed-off-by: David Cohen
[hdgoede@redhat.com: Port to current kernel, cleanup, submit upstream]
[hdgoede@redhat.com: Add Documentation/extcon/intel-int3496.txt]
Signed-off-by: Hans de Goede
Signed-off-by: Chanwoo Choi
13 Sep, 2016
1 commit
-
Some Qualcomm PMICs have a misc device that performs USB id pin
detection via an interrupt. When the interrupt triggers, we
should read the interrupt line to see if it has gone high or low.
If the interrupt is low then the ID pin is grounded, and if the
interrupt is high then the ID pin is being held high.Cc: Roger Quadros
Signed-off-by: Stephen Boyd
[cw00.choi: Edited the driver description and added the author information]
Signed-off-by: Chanwoo Choi
30 Jun, 2016
1 commit
-
Splitting the resource-managed functions into a separate module
means that the extcon core now fails to build because the internal
"extcon_dev_allocate" symbol is not exported:ERROR: extcon_dev_allocate [drivers/extcon/devres.ko] undefined!
My guess is that the intention was not to have two separate
modules (which could be fixed by adding an export, plus the
normal MODULE_AUTHOR/MODULE_LICENSE/... fields), but have two
source files in the same module.This fixes the Makefile accordingly, making the name of the
module extcon_core.ko, which is created from building both
extcon.c and devres.c.Fixes: b225d00f3ad2 ("extcon: Split out the resource-managed functions from extcon core")
Signed-off-by: Arnd Bergmann
Signed-off-by: Chanwoo Choi
27 Jun, 2016
1 commit
-
This patch split out the resource-managed related functions
from extcon core driver.Signed-off-by: Chanwoo Choi
21 Dec, 2015
1 commit
-
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: Sergei Shtylyov
Acked-by: Chanwoo Choi
Acked-by: Rob Herring
[cw00.choi: Add the GPIOLIB dependency]
Signed-off-by: Chanwoo Choi
19 May, 2015
1 commit
-
This patch adds the extcon support for AXP288 PMIC which
has the BC1.2 charger detection capability. Additionally
it also adds the USB mux switching support b/w SOC and PMIC
based on GPIO control.Signed-off-by: Ramakrishna Pallala
Acked-by: Lee Jones
[cw00.choi: Modify the log message to keep the consistent log message pattern]
Signed-off-by: Chanwoo Choi
07 Mar, 2015
1 commit
-
This patch renames the extcon core driver from extcon-class.c
to extcon.c because '-class' postfix is not necessary.Signed-off-by: Chanwoo Choi
24 Feb, 2015
2 commits
-
This patch adds MAX77843 extcon driver to support for MUIC(Micro
USB Interface Controller) device by using EXTCON subsystem to handle
various external connectors.Signed-off-by: Jaewon Kim
Signed-off-by: Chanwoo Choi -
This driver observes the USB ID pin connected over a GPIO and
updates the USB cable extcon states accordingly.The existing GPIO extcon driver is not suitable for this purpose
as it needs to be taught to understand USB cable states and it
can't handle more than one cable per instance.For the USB case we need to handle 2 cable states.
1) USB (attach/detach)
2) USB-HOST (attach/detach)This driver can be easily updated in the future to handle VBUS
events in case it happens to be available on GPIO for any platform.Signed-off-by: Roger Quadros
Reviewed-by: Felipe Balbi
Acked-by: Felipe Balbi
Signed-off-by: Chanwoo Choi
22 Sep, 2014
1 commit
-
This patch add support for Richtek RT8973A which is Micro USB Switch OVP
and i2c interface. The RT8973A is a USB port accessory detector and switch
that is optimized to protect low voltage system from abnormal high input
voltage (up to 28V) and supports high speed USB operation. Also, RT8973A
support 'auto-configuration' mode. If auto-configuration mode is enabled,
RT8973A would control internal h/w patch for USB D-/D+ switching.Signed-off-by: Chanwoo Choi
Signed-off-by: Seung-Woo Kim
Acked-by: Kyungmin Park
23 Jul, 2014
1 commit
-
This patch add new SM5502 MUIC(Micro-USB Interface Controller) device by using
EXTCON subsystem. The extcon-sm5502 driver is capable of identifying the type
of the external power source and attached accessory. An external power sources,
such as Deticated Charger or a standard USB port, are able to charge the battery
in the smart phone via the connector.Signed-off-by: Chanwoo Choi
16 Jun, 2014
1 commit
-
This patch reorder the sequence of extcon device diver alphabetically
to imporbe readability.Signed-off-by: Chanwoo Choi
19 Mar, 2014
1 commit
-
This patch move simply OF helper function to extcon core and change function
name as following:
- of_extcon_get_extcon_dev() -> extcon_get_edev_by_phandle()Signed-off-by: Chanwoo Choi
Acked-by: Felipe Balbi
07 Jan, 2014
1 commit
-
This patch supports Maxim MAX14577 MUIC(Micro USB Interface Controller)
device by using EXTCON subsystem to handle various external connectors.
The max14577 device uses regmap method for i2c communication and
supports irq domain.Signed-off-by: Chanwoo Choi
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Kyungmin Park
05 Aug, 2013
1 commit
-
Added an API of_extcon_get_extcon_dev() to be used by drivers to get
extcon device in the case of dt boot (this can be used instead of
extcon_get_extcon_dev()).Signed-off-by: Kishon Vijay Abraham I
Signed-off-by: Chanwoo Choi
Signed-off-by: Myungjoo Ham
18 Jun, 2013
1 commit
-
This is the driver for the USB comparator built into the palmas chip. It
handles the various USB OTG events that can be generated by cable
insertion/removal.Signed-off-by: Graeme Gregory
Signed-off-by: Moiz Sonasath
Signed-off-by: Ruchika Kharwar
Signed-off-by: Kishon Vijay Abraham I
Signed-off-by: George Cherian
[kishon@ti.com: adapted palmas usb driver to use the extcon framework]
Signed-off-by: Sebastien Guiriec
Signed-off-by: Chanwoo Choi
Signed-off-by: Myungjoo Ham
Signed-off-by: Greg Kroah-Hartman
06 Sep, 2012
1 commit
-
External connector devices that decides connection information based on
ADC values may use adc-jack device driver. The user simply needs to
provide a table of adc range and connection states. Then, extcon
framework will automatically notify others.Changes in V1:
added Lars-Peter Clausen suggested changes:
Using macros to get rid of boiler plate code such as devm_kzalloc
and module_platform_driver.Other changes suggested are related to
coding guidelines.Changes in V2:
Removed some unnecessary checks and changed the way we are un-regitering
extcon and freeing the irq while removing.Changes in V3:
Renamed the files to comply with extcon naming.Changes in V4:
Added the cancel_work_sync during removing of driver.Changes in V5:
Added the dependency of IIO in Kconfig.Changes in V6:
Some nitpicks related to naming.Changes in this version:
V6 patch version patch broke the build:
ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!Fixed it in this version.
Acked-by: Jonathan Cameron
Reviewed-by: Lars-Peter Clausen
Signed-off-by: anish kumar
Signed-off-by: MyungJoo Ham
Signed-off-by: Greg Kroah-Hartman
17 Aug, 2012
3 commits
-
Replaced '_' with '-' in the extcon file names, which has been bogging
since new drivers have been using the standard naming.Signed-off-by: MyungJoo Ham
Signed-off-by: Greg Kroah-Hartman -
This reverts commit 980d7929816236476967218645c30acc022042eb as it
breaks the build with the error:
ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!Cc: Lars-Peter Clausen
Cc: anish kumar
Cc: MyungJoo Ham
Signed-off-by: Greg Kroah-Hartman -
External connector devices that decides connection information based on
ADC values may use adc-jack device driver. The user simply needs to
provide a table of adc range and connection states. Then, extcon
framework will automatically notify others.Changes in V1:
added Lars-Peter Clausen suggested changes:
Using macros to get rid of boiler plate code such as devm_kzalloc
and module_platform_driver.Other changes suggested are related to
coding guidelines.Changes in V2:
Removed some unnecessary checks and changed the way we are un-regitering
extcon and freeing the irq while removing.Changes in V3:
Renamed the files to comply with extcon naming.Changes in V4:
Added the cancel_work_sync during removing of driver.Changes in V5:
Added the dependency of IIO in Kconfig.Changes in V6:
Some nitpicks related to naming.Reviewed-by: Lars-Peter Clausen
Signed-off-by: anish kumar
Signed-off-by: MyungJoo Ham
Signed-off-by: Greg Kroah-Hartman
18 Jul, 2012
1 commit
-
This patch support Maxim MAX77693 MUIC device by using EXTCON Subsystem
to handle various external connector. The extcon-max77693 use regmap
method for i2c communication and support irq domain instead of previous
method of irq base.Signed-off-by: Chanwoo Choi
Signed-off-by: Myungjoo Ham
Signed-off-by: Kyungmin Park
Signed-off-by: Greg Kroah-Hartman
27 Jun, 2012
1 commit
-
Most Wolfson Arizona class audio hub CODECs include a flexible ultra low
power accessory detection subsystem. This driver exposes initial support
for this subsystem via the Extcon framework, implementing support for
ultra low power detection of headphone and headset with the ability to
detect the polarity of a headset.The functionality of the devices is much richer and more flexible than
the current driver, future patches will extend the features of the
driver to more fully exploit this.Signed-off-by: Mark Brown
Signed-off-by: Greg Kroah-Hartman
10 May, 2012
1 commit
-
This patch add extcon-max8997 driver to support the muic feature
of Maxim max8997 by using Extcon framework.The extcon-max8997 driver is implemented based on 'drivers/misc/
max8997-muic.c' and then use Extcon interface instead of callback
function in struct max8997_muic_platform_data to notify cable state
of notifee which want to know always newly cable state when external
connector(e.g., USB, TA, JIG) is attached or detached.v1
- Use Extcon interface to notify cable state of notifee instead of
callback function when external connector is attached or detached.
- Bug fix of getting platform_data for irq_base value.Signed-off-by: Chanwoo Choi
Signed-off-by: Myungjoo Ham
Signed-off-by: Kyungmin Park
Signed-off-by: Greg Kroah-Hartman
21 Apr, 2012
2 commits
-
The generic GPIO extcon driver (an external connector device based on
GPIO control) and imported from Android kernel.switch: switch class and GPIO drivers. (splitted)
Author: Mike Lockwoodswitch: gpio: Don't call request_irq with interrupts disabled
Author: Arve Hjønnevågswitch_gpio: Add missing #include
Author: Mike LockwoodSigned-off-by: MyungJoo Ham
Signed-off-by: Kyungmin Park
Reviewed-by: Mark Brown--
Changed from v7:
- Style updates mentioned by Stephen Boyd and Mark Brown
Changed from v5:
- Splitted at v5 from the main extcon patch.
- Added debounce time for irq handlers.
- Use request_any_context_irq instead of request_irq
- User needs to specify irq flags for GPIO interrupts (was fixed to
IRQF_TRIGGER_LOW before)
- Use module_platform_driver().
Signed-off-by: Greg Kroah-Hartman -
External connector class (extcon) is based on and an extension of
Android kernel's switch class located at linux/drivers/switch/.This patch provides the before-extension switch class moved to the
location where the extcon will be located (linux/drivers/extcon/) and
updates to handle class properly.The before-extension class, switch class of Android kernel, commits
imported are:switch: switch class and GPIO drivers. (splitted)
Author: Mike Lockwoodswitch: Use device_create instead of device_create_drvdata.
Author: Arve HjønnevågIn this patch, upon the commits of Android kernel, we have added:
- Relocated and renamed for extcon.
- Comments, module name, and author information are updated
- Code clean for successing patches
- Bugfix: enabling write access without write functions
- Class/device/sysfs create/remove handling
- Added comments about uevents
- Format changes for extcon_dev_register() to have a parent dev.Signed-off-by: MyungJoo Ham
Signed-off-by: Kyungmin Park
Reviewed-by: Mark Brown--
Changes from v7
- Compiler error fixed when it is compiled as a module.
- Removed out-of-date Kconfig entryChanges from v6
- Updated comment/strings
- Revised "Android-compatible" mode.
* Automatically activated if CONFIG_ANDROID && !CONFIG_ANDROID_SWITCH
* Creates /sys/class/switch/*, which is a copy of /sys/class/extcon/*Changes from v5
- Split the patch
- Style fixes
- "Android-compatible" mode is enabled by Kconfig option.Changes from v2
- Updated name_show
- Sysfs entries are handled by class itself.
- Updated the method to add/remove devices for the class
- Comments on uevent send
- Able to become a module
- Compatible with Android platformChanges from RFC
- Renamed to extcon (external connector) from multistate switch
- Added a seperated directory (drivers/extcon)
- Added kerneldoc comments
- Removed unused variables from extcon_gpio.c
- Added ABI Documentation.
Signed-off-by: Greg Kroah-Hartman