| 
     1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: NXP FXLS8962AF/FXLS8964AF Accelerometer driver
    8 
    9 maintainers:
   10   - Sean Nyekjaer <sean@geanix.com>
   11 
   12 description: |
   13   NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports
   14   SPI and I2C interface.
   15     https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf
   16     https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf
   17 
   18 properties:
   19   compatible:
   20     enum:
   21       - nxp,fxls8962af
   22       - nxp,fxls8964af
   23 
   24   reg:
   25     maxItems: 1
   26 
   27   vdd-supply:
   28     description: phandle to the regulator that provides power to the accelerometer
   29 
   30   spi-max-frequency: true
   31 
   32   interrupts:
   33     maxItems: 1
   34 
   35   interrupt-names:
   36     enum:
   37       - INT1
   38       - INT2
   39 
   40   drive-open-drain:
   41     type: boolean
   42 
   43 required:
   44   - compatible
   45   - reg
   46 
   47 additionalProperties: false
   48 
   49 examples:
   50   - |
   51     #include <dt-bindings/interrupt-controller/irq.h>
   52     i2c0 {
   53         #address-cells = <1>;
   54         #size-cells = <0>;
   55 
   56         /* Example for a I2C device node */
   57         accelerometer@62 {
   58             compatible = "nxp,fxls8962af";
   59             reg = <0x62>;
   60             interrupt-parent = <&gpio0>;
   61             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
   62             interrupt-names = "INT1";
   63         };
   64     };
   65   - |
   66     #include <dt-bindings/interrupt-controller/irq.h>
   67     spi0 {
   68         #address-cells = <1>;
   69         #size-cells = <0>;
   70 
   71         /* Example for a SPI device node */
   72         accelerometer@0 {
   73             compatible = "nxp,fxls8962af";
   74             reg = <0>;
   75             spi-max-frequency = <4000000>;
   76             interrupt-parent = <&gpio0>;
   77             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
   78             interrupt-names = "INT1";
   79         };
   80     };
Cache object: e0aba2538c6e78fa67fe59e946fdf8c2 
 
 |