Merge commit '81fd23e2b3ccf71c807e671444e8accaba98ca53' of https://git.pengutronix...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / extcon / siliconmitus,sm5502-muic.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/extcon/siliconmitus,sm5502-muic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: SM5502/SM5504 MUIC (Micro-USB Interface Controller) device
8
9 maintainers:
10   - Chanwoo Choi <cw00.choi@samsung.com>
11
12 description:
13   The Silicon Mitus SM5502 is a MUIC (Micro-USB Interface Controller) device
14   which can detect the state of external accessory when external accessory is
15   attached or detached and button is pressed or released. It is interfaced to
16   the host controller using an I2C interface.
17
18 properties:
19   compatible:
20     enum:
21       - siliconmitus,sm5502-muic
22       - siliconmitus,sm5504-muic
23
24   reg:
25     maxItems: 1
26     description: I2C slave address of the device. Usually 0x25 for SM5502,
27       0x14 for SM5504.
28
29   interrupts:
30     maxItems: 1
31
32 required:
33   - compatible
34   - reg
35   - interrupts
36
37 additionalProperties: false
38
39 examples:
40   - |
41     #include <dt-bindings/interrupt-controller/irq.h>
42     i2c {
43         #address-cells = <1>;
44         #size-cells = <0>;
45
46         extcon@25 {
47                 compatible = "siliconmitus,sm5502-muic";
48                 reg = <0x25>;
49                 interrupt-parent = <&msmgpio>;
50                 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
51         };
52     };