xref: /freebsd/sys/contrib/device-tree/Bindings/extcon/fcs,fsa880.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/extcon/fcs,fsa880.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Fairchild Semiconductor FSA880, FSA9480 and compatibles
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotdescription:
13*5def4c47SEmmanuel Vadot  The FSA880 and FSA9480 are USB port accessory detectors and switches.
14*5def4c47SEmmanuel Vadot  The switch is fully controlled using I2C and enables USB data, stereo
15*5def4c47SEmmanuel Vadot  and mono audio, video, microphone, and UART data to use a common
16*5def4c47SEmmanuel Vadot  connector port. Compatible switches exist from other manufacturers.
17*5def4c47SEmmanuel Vadot
18*5def4c47SEmmanuel Vadotproperties:
19*5def4c47SEmmanuel Vadot  compatible:
20*5def4c47SEmmanuel Vadot    enum:
21*5def4c47SEmmanuel Vadot      - fcs,fsa880
22*5def4c47SEmmanuel Vadot      - fcs,fsa9480
23*5def4c47SEmmanuel Vadot      - ti,tsu6111
24*5def4c47SEmmanuel Vadot
25*5def4c47SEmmanuel Vadot  reg:
26*5def4c47SEmmanuel Vadot    maxItems: 1
27*5def4c47SEmmanuel Vadot    description: The I2C address for an FSA880 compatible device is
28*5def4c47SEmmanuel Vadot      usually 0x25.
29*5def4c47SEmmanuel Vadot
30*5def4c47SEmmanuel Vadot  interrupts:
31*5def4c47SEmmanuel Vadot    maxItems: 1
32*5def4c47SEmmanuel Vadot
33*5def4c47SEmmanuel Vadotrequired:
34*5def4c47SEmmanuel Vadot  - compatible
35*5def4c47SEmmanuel Vadot  - reg
36*5def4c47SEmmanuel Vadot  - interrupts
37*5def4c47SEmmanuel Vadot
38*5def4c47SEmmanuel VadotadditionalProperties: false
39*5def4c47SEmmanuel Vadot
40*5def4c47SEmmanuel Vadotexamples:
41*5def4c47SEmmanuel Vadot  - |
42*5def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
43*5def4c47SEmmanuel Vadot    i2c {
44*5def4c47SEmmanuel Vadot        #address-cells = <1>;
45*5def4c47SEmmanuel Vadot        #size-cells = <0>;
46*5def4c47SEmmanuel Vadot        usb-switch@25 {
47*5def4c47SEmmanuel Vadot            compatible = "fcs,fsa880";
48*5def4c47SEmmanuel Vadot            reg = <0x25>;
49*5def4c47SEmmanuel Vadot            interrupt-parent = <&gpio>;
50*5def4c47SEmmanuel Vadot            interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
51*5def4c47SEmmanuel Vadot        };
52*5def4c47SEmmanuel Vadot    };
53