Skip to content

Commit

Permalink
bindings: pm8941-misc: Convert bindings to YAML
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 41 deletions.
41 changes: 0 additions & 41 deletions Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt

This file was deleted.

59 changes: 59 additions & 0 deletions Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml
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>;
};

0 comments on commit dd6f5af

Please sign in to comment.