PPS Signal via GPIO
Schema identifier ($id): "http://devicetree.org/schemas/pps/pps-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pps-gpio"
gpios — required here #
The GPIO that provides the PPS signal.
Maximum number of items (maxItems): 1
echo-gpios — not listed as required here #
The GPIO that provides the PPS ECHO signal.
Maximum number of items (maxItems): 1
echo-active-ms — not listed as required here #
Duration in ms of the active portion of the echo pulse.
assert-falling-edge — not listed as required here #
Indicates a falling edge assert, when present. Rising edge if absent.
Value type (type): "boolean"
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
pps {
compatible = "pps-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pps>;
gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
assert-falling-edge;
echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
echo-active-ms = <100>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)