gnss-common.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gnss/gnss-common.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common Properties for Global Navigation Satellite Systems (GNSS)
  7. receiver devices
  8. maintainers:
  9. - Johan Hovold <johan@kernel.org>
  10. description: |
  11. This document defines device tree properties common to Global Navigation
  12. Satellite System receivers.
  13. properties:
  14. $nodename:
  15. pattern: "^gnss(@.*)?$"
  16. lna-supply:
  17. description: A separate regulator supplying power for the Low Noise
  18. Amplifier (LNA). This is an amplifier connected between the GNSS
  19. device and the receiver antenna.
  20. enable-gpios:
  21. description: A GPIO line that will enable the GNSS receiver when
  22. asserted. If this line is active low, the GPIO phandle should
  23. consequently be tagged with the GPIO_ACTIVE_LOW flag so the operating
  24. system can rely on asserting the line to enable the GNSS device.
  25. maxItems: 1
  26. timepulse-gpios:
  27. description: When a timepulse is provided to the GNSS device using a
  28. GPIO line, this is used.
  29. maxItems: 1
  30. additionalProperties: true
  31. examples:
  32. - |
  33. #include <dt-bindings/gpio/gpio.h>
  34. serial {
  35. gnss {
  36. compatible = "u-blox,neo-8";
  37. vcc-supply = <&gnss_reg>;
  38. timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  39. current-speed = <4800>;
  40. };
  41. };