18c2ecf20Sopenharmony_ciDevice-Tree Bindings for a PPS Signal on GPIO 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThese properties describe a PPS (pulse-per-second) signal connected to 48c2ecf20Sopenharmony_cia GPIO pin. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRequired properties: 78c2ecf20Sopenharmony_ci- compatible: should be "pps-gpio" 88c2ecf20Sopenharmony_ci- gpios: one PPS GPIO in the format described by ../gpio/gpio.txt 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciAdditional required properties for the PPS ECHO functionality: 118c2ecf20Sopenharmony_ci- echo-gpios: one PPS ECHO GPIO in the format described by ../gpio/gpio.txt 128c2ecf20Sopenharmony_ci- echo-active-ms: duration in ms of the active portion of the echo pulse 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciOptional properties: 158c2ecf20Sopenharmony_ci- assert-falling-edge: when present, assert is indicated by a falling edge 168c2ecf20Sopenharmony_ci (instead of by a rising edge) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciExample: 198c2ecf20Sopenharmony_ci pps { 208c2ecf20Sopenharmony_ci pinctrl-names = "default"; 218c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_pps>; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; 248c2ecf20Sopenharmony_ci assert-falling-edge; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; 278c2ecf20Sopenharmony_ci echo-active-ms = <100>; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci compatible = "pps-gpio"; 308c2ecf20Sopenharmony_ci }; 31