fcs,fsa880.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. title: Fairchild Semiconductor FSA880, FSA9480 and compatibles
  7. maintainers:
  8. - Linus Walleij <linusw@kernel.org>
  9. description:
  10. The FSA880 and FSA9480 are USB port accessory detectors and switches.
  11. The switch is fully controlled using I2C and enables USB data, stereo
  12. and mono audio, video, microphone, and UART data to use a common
  13. connector port. Compatible switches exist from other manufacturers.
  14. properties:
  15. compatible:
  16. enum:
  17. - fcs,fsa880
  18. - fcs,fsa9480
  19. - ti,tsu6111
  20. reg:
  21. maxItems: 1
  22. description: The I2C address for an FSA880 compatible device is
  23. usually 0x25.
  24. interrupts:
  25. maxItems: 1
  26. required:
  27. - compatible
  28. - reg
  29. - interrupts
  30. additionalProperties: false
  31. examples:
  32. - |
  33. #include <dt-bindings/interrupt-controller/irq.h>
  34. i2c {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. usb-switch@25 {
  38. compatible = "fcs,fsa880";
  39. reg = <0x25>;
  40. interrupt-parent = <&gpio>;
  41. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  42. };
  43. };