The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/iio/proximity/parallax-ping.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/iio/proximity/parallax-ping.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Parallax PING))) and LaserPING range finder
    8 
    9 maintainers:
   10   - Andreas Klinger <ak@it-klinger.de>
   11 
   12 description: |
   13   Bit-banging driver using one GPIO:
   14   - ping-gpios is raised by the driver to start measurement
   15   - direction of ping-gpio is then switched into input with an interrupt
   16     for receiving distance value as PWM signal
   17 
   18   Specifications about the devices can be found at:
   19   http://parallax.com/sites/default/files/downloads/28041-LaserPING-2m-Rangefinder-Guide.pdf
   20   http://parallax.com/sites/default/files/downloads/28015-PING-Documentation-v1.6.pdf
   21 
   22 properties:
   23   compatible:
   24     enum:
   25       - parallax,ping
   26       - parallax,laserping
   27 
   28   ping-gpios:
   29     description:
   30       Definition of the GPIO for the triggering and echo (output and input)
   31       This GPIO is set for about 5 us by the driver to tell the device it
   32       should initiate the measurement cycle. Afterwards the GPIO is switched
   33       to input direction with an interrupt. The device sets it and the
   34       length of the input signal corresponds to the measured distance.
   35       It needs to be an GPIO which is able to deliver an interrupt because
   36       the time between two interrupts is measured in the driver.
   37       See Documentation/devicetree/bindings/gpio/gpio.txt for information
   38       on how to specify a consumer gpio.
   39     maxItems: 1
   40 
   41 required:
   42   - compatible
   43   - ping-gpios
   44 
   45 additionalProperties: false
   46 
   47 examples:
   48   - |
   49     #include <dt-bindings/gpio/gpio.h>
   50     proximity {
   51         compatible = "parallax,laserping";
   52         ping-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
   53     };

Cache object: 707cf75cff2c9b688d074a2914998e02


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.