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  connector:
31    $ref: /schemas/connector/usb-connector.yaml#
32    unevaluatedProperties: false
33
34  interrupts:
35    maxItems: 1
36
37required:
38  - compatible
39  - reg
40  - interrupts
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/interrupt-controller/irq.h>
47    i2c {
48        #address-cells = <1>;
49        #size-cells = <0>;
50
51        extcon@25 {
52                compatible = "siliconmitus,sm5502-muic";
53                reg = <0x25>;
54                interrupt-parent = <&msmgpio>;
55                interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
56        };
57    };
58