GNU Linux-libre 5.19-rc6-gnu
[releases.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       - 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
33 required:
34   - compatible
35   - reg
36   - interrupts
37
38 additionalProperties: false
39
40 examples:
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     };