extcon-ptn5150.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: PTN5150 CC (Configuration Channel) Logic device
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. PTN5150 is a small thin low power CC logic chip supporting the USB Type-C
  11. connector application with CC control logic detection and indication
  12. functions. It is interfaced to the host controller using an I2C interface.
  13. properties:
  14. compatible:
  15. const: nxp,ptn5150
  16. int-gpios:
  17. maxItems: 1
  18. deprecated: true
  19. description:
  20. GPIO pin (input) connected to the PTN5150's INTB pin.
  21. Use "interrupts" instead.
  22. interrupts:
  23. maxItems: 1
  24. reg:
  25. maxItems: 1
  26. vbus-gpios:
  27. maxItems: 1
  28. description:
  29. GPIO pin (output) used to control VBUS. If skipped, no such control
  30. takes place.
  31. port:
  32. $ref: /schemas/graph.yaml#/properties/port
  33. description:
  34. A port node to link the usb controller for the dual role switch.
  35. required:
  36. - compatible
  37. - interrupts
  38. - reg
  39. additionalProperties: false
  40. examples:
  41. - |
  42. #include <dt-bindings/gpio/gpio.h>
  43. #include <dt-bindings/interrupt-controller/irq.h>
  44. i2c {
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. ptn5150@1d {
  48. compatible = "nxp,ptn5150";
  49. reg = <0x1d>;
  50. interrupt-parent = <&msmgpio>;
  51. interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
  52. vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>;
  53. port {
  54. endpoint {
  55. remote-endpoint = <&usb1_drd_sw>;
  56. };
  57. };
  58. };
  59. };