isp1704.yaml 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Copyright (C) 2021 Sebastian Reichel
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/power/supply/isp1704.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: NXP ISP1704 USB Charger Detection
  8. maintainers:
  9. - Sebastian Reichel <sre@kernel.org>
  10. allOf:
  11. - $ref: power-supply.yaml#
  12. properties:
  13. compatible:
  14. const: nxp,isp1704
  15. nxp,enable-gpio:
  16. maxItems: 1
  17. description: GPIO connected to the chip's enable pin
  18. usb-phy:
  19. $ref: /schemas/types.yaml#/definitions/phandle
  20. description: USB PHY the ISP1704 is connected to
  21. required:
  22. - compatible
  23. - nxp,enable-gpio
  24. - usb-phy
  25. additionalProperties: false
  26. examples:
  27. - |
  28. #include <dt-bindings/gpio/gpio.h>
  29. charger-detect {
  30. compatible = "nxp,isp1704";
  31. nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
  32. usb-phy = <&usb2_phy>;
  33. };