Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/extcon/fcs,fsa880.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Fairchild Semiconductor FSA880, FSA9480 and compatibles |
| 8 | |
| 9 | maintainers: |
| 10 | - Linus Walleij <linus.walleij@linaro.org> |
| 11 | |
| 12 | description: |
| 13 | The FSA880 and FSA9480 are USB port accessory detectors and switches. |
| 14 | The switch is fully controlled using I2C and enables USB data, stereo |
| 15 | and mono audio, video, microphone, and UART data to use a common |
| 16 | connector port. Compatible switches exist from other manufacturers. |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | enum: |
| 21 | - fcs,fsa880 |
| 22 | - fcs,fsa9480 |
| 23 | - ti,tsu6111 |
| 24 | |
| 25 | reg: |
| 26 | maxItems: 1 |
| 27 | description: The I2C address for an FSA880 compatible device is |
| 28 | usually 0x25. |
| 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 | usb-switch@25 { |
| 47 | compatible = "fcs,fsa880"; |
| 48 | reg = <0x25>; |
| 49 | interrupt-parent = <&gpio>; |
| 50 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; |
| 51 | }; |
| 52 | }; |