~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder
  8 
  9 maintainers:
 10   - Andreas Klinger <ak@it-klinger.de>
 11 
 12 description: |
 13   Bit-banging driver using two GPIOs:
 14   - trigger-gpio is raised by the driver to start sending out an ultrasonic
 15     burst
 16   - echo-gpio is held high by the sensor after sending ultrasonic burst
 17     until it is received once again
 18 
 19   Specifications about the devices can be found at:
 20   https://www.robot-electronics.co.uk/htm/srf04tech.htm
 21 
 22   https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
 23 
 24 properties:
 25   compatible:
 26     enum:
 27       - devantech,srf04
 28       - maxbotix,mb1000
 29       - maxbotix,mb1010
 30       - maxbotix,mb1020
 31       - maxbotix,mb1030
 32       - maxbotix,mb1040
 33 
 34   trig-gpios:
 35     description:
 36       Definition of the GPIO for the triggering (output)
 37       This GPIO is set for about 10 us by the driver to tell the device it
 38       should initiate the measurement cycle.
 39       See Documentation/devicetree/bindings/gpio/gpio.txt for information
 40       on how to specify a consumer gpio.
 41     maxItems: 1
 42 
 43   echo-gpios:
 44     description:
 45       Definition of the GPIO for the echo (input)
 46       This GPIO is set by the device as soon as an ultrasonic burst is sent
 47       out and reset when the first echo is received.
 48       Thus this GPIO is set while the ultrasonic waves are doing one round
 49       trip.
 50       It needs to be an GPIO which is able to deliver an interrupt because
 51       the time between two interrupts is measured in the driver.
 52     maxItems: 1
 53 
 54   power-gpios:
 55     description:
 56       Definition of the GPIO for power management of connected peripheral
 57       (output).
 58       This GPIO can be used by the external hardware for power management.
 59       When the device gets suspended it's switched off and when it resumes
 60       it's switched on again. After some period of inactivity the driver
 61       get suspended automatically (autosuspend feature).
 62     maxItems: 1
 63 
 64   startup-time-ms:
 65     description:
 66       This is the startup time the device needs after a resume to be up and
 67       running.
 68     minimum: 0
 69     maximum: 1000
 70     default: 100
 71 
 72 required:
 73   - compatible
 74   - trig-gpios
 75   - echo-gpios
 76 
 77 additionalProperties: false
 78 
 79 examples:
 80   - |
 81     #include <dt-bindings/gpio/gpio.h>
 82     proximity {
 83         compatible = "devantech,srf04";
 84         trig-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
 85         echo-gpios = <&gpio2  6 GPIO_ACTIVE_HIGH>;
 86     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php