xref: /openbmc/linux/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml (revision 496cc140279b4517a23f4534e468ec9c66283f4b)
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
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
32required:
33  - compatible
34  - reg
35  - interrupts
36
37additionalProperties: false
38
39examples:
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    };
53