Skip to content

Commit 958bb5a

Browse files
refractionwarechanwoochoi
authored andcommitted
dt-bindings: extcon: rt8973a: Convert DT bindings to YAML
Convert the device tree bindings for Richtek RT8973A MUIC to the YAML format. No functional changes. Signed-off-by: Artur Weber <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/
1 parent 531f47f commit 958bb5a

File tree

2 files changed

+49
-23
lines changed

2 files changed

+49
-23
lines changed

Documentation/devicetree/bindings/extcon/extcon-rt8973a.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/extcon/richtek,rt8973a-muic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Richtek RT8973A MUIC
8+
9+
maintainers:
10+
- Chanwoo Choi <[email protected]>
11+
12+
description:
13+
The Richtek RT8973A is Micro USB Switch with OVP and I2C interface. The RT8973A
14+
is a USB port accessory detector and switch that is optimized to protect low
15+
voltage system from abnormal high input voltage (up to 28V) and supports high
16+
speed USB operation. Also, RT8973A support 'auto-configuration' mode.
17+
If auto-configuration mode is enabled, RT8973A would control internal h/w patch
18+
for USB D-/D+ switching.
19+
20+
properties:
21+
compatible:
22+
const: richtek,rt8973a-muic
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/interrupt-controller/irq.h>
40+
i2c {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
usb-switch@14 {
44+
compatible = "richtek,rt8973a-muic";
45+
reg = <0x14>;
46+
interrupt-parent = <&gpio>;
47+
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
48+
};
49+
};

0 commit comments

Comments
 (0)