xref: /openbmc/linux/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml (revision 6bfb56e93bcef41859c2d5ab234ffd80b691be35)
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
7title: SM5502/SM5504 MUIC (Micro-USB Interface Controller) device
8
9maintainers:
10  - Chanwoo Choi <cw00.choi@samsung.com>
11
12description:
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
18properties:
19  compatible:
20    enum:
21      - siliconmitus,sm5502-muic
22      - siliconmitus,sm5504-muic
23      - siliconmitus,sm5703-muic
24
25  reg:
26    maxItems: 1
27    description: I2C slave address of the device. Usually 0x25 for SM5502
28      and SM5703, 0x14 for SM5504.
29
30  interrupts:
31    maxItems: 1
32
33required:
34  - compatible
35  - reg
36  - interrupts
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/interrupt-controller/irq.h>
43    i2c {
44        #address-cells = <1>;
45        #size-cells = <0>;
46
47        extcon@25 {
48                compatible = "siliconmitus,sm5502-muic";
49                reg = <0x25>;
50                interrupt-parent = <&msmgpio>;
51                interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
52        };
53    };
54