159ab522dSStephan Gerhold# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 259ab522dSStephan Gerhold%YAML 1.2 359ab522dSStephan Gerhold--- 459ab522dSStephan Gerhold$id: http://devicetree.org/schemas/extcon/siliconmitus,sm5502-muic.yaml# 559ab522dSStephan Gerhold$schema: http://devicetree.org/meta-schemas/core.yaml# 659ab522dSStephan Gerhold 785b8326eSStephan Gerholdtitle: SM5502/SM5504 MUIC (Micro-USB Interface Controller) device 859ab522dSStephan Gerhold 959ab522dSStephan Gerholdmaintainers: 1059ab522dSStephan Gerhold - Chanwoo Choi <cw00.choi@samsung.com> 1159ab522dSStephan Gerhold 1259ab522dSStephan Gerholddescription: 1359ab522dSStephan Gerhold The Silicon Mitus SM5502 is a MUIC (Micro-USB Interface Controller) device 1459ab522dSStephan Gerhold which can detect the state of external accessory when external accessory is 1559ab522dSStephan Gerhold attached or detached and button is pressed or released. It is interfaced to 1659ab522dSStephan Gerhold the host controller using an I2C interface. 1759ab522dSStephan Gerhold 1859ab522dSStephan Gerholdproperties: 1959ab522dSStephan Gerhold compatible: 2059ab522dSStephan Gerhold enum: 2159ab522dSStephan Gerhold - siliconmitus,sm5502-muic 2285b8326eSStephan Gerhold - siliconmitus,sm5504-muic 239869ba6dSMarkuss Broks - siliconmitus,sm5703-muic 2459ab522dSStephan Gerhold 2559ab522dSStephan Gerhold reg: 2659ab522dSStephan Gerhold maxItems: 1 279869ba6dSMarkuss Broks description: I2C slave address of the device. Usually 0x25 for SM5502 289869ba6dSMarkuss Broks and SM5703, 0x14 for SM5504. 2959ab522dSStephan Gerhold 30*a635f91cSKrzysztof Kozlowski connector: 31*a635f91cSKrzysztof Kozlowski $ref: /schemas/connector/usb-connector.yaml# 32*a635f91cSKrzysztof Kozlowski unevaluatedProperties: false 33*a635f91cSKrzysztof Kozlowski 3459ab522dSStephan Gerhold interrupts: 3559ab522dSStephan Gerhold maxItems: 1 3659ab522dSStephan Gerhold 3759ab522dSStephan Gerholdrequired: 3859ab522dSStephan Gerhold - compatible 3959ab522dSStephan Gerhold - reg 4059ab522dSStephan Gerhold - interrupts 4159ab522dSStephan Gerhold 4259ab522dSStephan GerholdadditionalProperties: false 4359ab522dSStephan Gerhold 4459ab522dSStephan Gerholdexamples: 4559ab522dSStephan Gerhold - | 4659ab522dSStephan Gerhold #include <dt-bindings/interrupt-controller/irq.h> 4759ab522dSStephan Gerhold i2c { 4859ab522dSStephan Gerhold #address-cells = <1>; 4959ab522dSStephan Gerhold #size-cells = <0>; 5059ab522dSStephan Gerhold 5159ab522dSStephan Gerhold extcon@25 { 5259ab522dSStephan Gerhold compatible = "siliconmitus,sm5502-muic"; 5359ab522dSStephan Gerhold reg = <0x25>; 5459ab522dSStephan Gerhold interrupt-parent = <&msmgpio>; 5559ab522dSStephan Gerhold interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 5659ab522dSStephan Gerhold }; 5759ab522dSStephan Gerhold }; 58