-
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.
bindings: pm8941-misc: Convert bindings to YAML
Convert bindings from txt to YAML. Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
- Loading branch information
Guru Das Srinagesh
authored and
Chanwoo Choi
committed
Apr 8, 2021
1 parent
e3f6032
commit dd6f5af
Showing
2 changed files
with
59 additions
and
41 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.
59 changes: 59 additions & 0 deletions
59
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,59 @@ | ||
# 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: | ||
maxItems: 1 | ||
|
||
interrupt-names: | ||
items: | ||
- const: usb_id | ||
|
||
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>; | ||
}; |