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/accel/fsl,mma7455.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 BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/iio/accel/fsl,mma7455.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Freescale MMA7455 and MMA7456 three axis accelerometers
    8 
    9 maintainers:
   10   - Jonathan Cameron <jic23@kernel.org>
   11 
   12 description:
   13   Devices support both SPI and I2C interfaces.
   14 
   15 properties:
   16   compatible:
   17     enum:
   18       - fsl,mma7455
   19       - fsl,mma7456
   20   reg:
   21     maxItems: 1
   22 
   23   avdd-supply: true
   24   vddio-supply: true
   25 
   26   interrupts:
   27     minItems: 1
   28     maxItems: 2
   29 
   30   interrupt-names:
   31     description:
   32       Data ready is only available on INT1, but events can use either or
   33       both pins.  If not specified, first element assumed to correspond
   34       to INT1 and second (where present) to INT2.
   35     minItems: 1
   36     maxItems: 2
   37     items:
   38       enum:
   39         - "INT1"
   40         - "INT2"
   41 
   42   spi-max-frequency: true
   43 
   44 required:
   45   - compatible
   46   - reg
   47 
   48 additionalProperties: false
   49 
   50 examples:
   51   - |
   52     # include <dt-bindings/interrupt-controller/irq.h>
   53     i2c {
   54         #address-cells = <1>;
   55         #size-cells = <0>;
   56 
   57         accelerometer@18 {
   58             compatible = "fsl,mma7455";
   59             reg = <0x18>;
   60             vddio-supply = <&iovdd>;
   61             avdd-supply = <&avdd>;
   62             interrupts = <57 IRQ_TYPE_EDGE_FALLING>, <58 IRQ_TYPE_EDGE_FALLING>;
   63             interrupt-names = "INT2", "INT1";
   64         };
   65     };
   66   - |
   67     # include <dt-bindings/interrupt-controller/irq.h>
   68     spi {
   69         #address-cells = <1>;
   70         #size-cells = <0>;
   71         accelerometer@0 {
   72             compatible = "fsl,mma7456";
   73             reg = <0>;
   74             spi-max-frequency = <10000000>;
   75             vddio-supply = <&iovdd>;
   76             avdd-supply = <&avdd>;
   77             interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
   78             interrupt-names = "INT1";
   79         };
   80     };
   81 ...

Cache object: bf3ef669ea3e8bb8c259f639458a3a02


[ 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.