pps-gpio.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/pps/pps-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: PPS Signal via GPIO
  7. maintainers:
  8. - Fabio Estevam <festevam@gmail.com>
  9. properties:
  10. compatible:
  11. const: pps-gpio
  12. gpios:
  13. description: The GPIO that provides the PPS signal.
  14. maxItems: 1
  15. echo-gpios:
  16. description: The GPIO that provides the PPS ECHO signal.
  17. maxItems: 1
  18. echo-active-ms:
  19. description: Duration in ms of the active portion of the echo pulse.
  20. assert-falling-edge:
  21. description: Indicates a falling edge assert, when present. Rising edge if absent.
  22. type: boolean
  23. required:
  24. - compatible
  25. - gpios
  26. additionalProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/gpio/gpio.h>
  30. pps {
  31. compatible = "pps-gpio";
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&pinctrl_pps>;
  34. gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
  35. assert-falling-edge;
  36. echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
  37. echo-active-ms = <100>;
  38. };