-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'extcon-next-for-5.13' of git://git.kernel.org/pub/scm/linu…
…x/kernel/git/chanwoo/extcon into char-misc-next Chanwoo writes: Update extcon next for v5.13 Detailed description for this pull request: 1. Update extcon provider driver - Add the support of charging interrupt to detect charger connector for extcon-max8997.c - Detect OTG when USB_ID pin is connected to ground for extcon-sm5502.c - Add the support for VBUS detection for extcon-qcom-spmi-misc.c and replace qcom,pm8941-misc binding document with yaml style. * tag 'extcon-next-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon: extcon: qcom-spmi: Add support for VBUS detection bindings: pm8941-misc: Add support for VBUS detection bindings: pm8941-misc: Convert bindings to YAML extcon: sm5502: Detect OTG when USB_ID is connected to ground extcon: max8997: Add CHGINS and CHGRM interrupt handling
- Loading branch information
Showing
5 changed files
with
166 additions
and
62 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt
This file was deleted.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device | ||
|
||
maintainers: | ||
- Guru Das Srinagesh <gurus@codeaurora.org> | ||
|
||
description: | | ||
Some Qualcomm PMICs have a "misc" module that can be used to detect when | ||
the USB ID pin has been pulled low or high. | ||
properties: | ||
compatible: | ||
items: | ||
- const: qcom,pm8941-misc | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
minItems: 1 | ||
maxItems: 2 | ||
|
||
interrupt-names: | ||
minItems: 1 | ||
items: | ||
- const: usb_id | ||
- const: usb_vbus | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- interrupt-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
pmic { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
interrupt-controller; | ||
#interrupt-cells = <4>; | ||
usb_id: misc@900 { | ||
compatible = "qcom,pm8941-misc"; | ||
reg = <0x900>; | ||
interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>; | ||
interrupt-names = "usb_id"; | ||
}; | ||
}; | ||
usb-controller { | ||
extcon = <&usb_id>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters