Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/bosch,bma400.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bosch BMA400 triaxial acceleration sensor
0008 
0009 maintainers:
0010   - Dan Robertson <dan@dlrobertson.com>
0011 
0012 description: |
0013   Acceleration and temperature iio sensors with an i2c interface
0014 
0015   Specifications about the sensor can be found at:
0016     https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMA400-DS000.pdf
0017 
0018 properties:
0019   compatible:
0020     enum:
0021       - bosch,bma400
0022 
0023   reg:
0024     maxItems: 1
0025 
0026   vdd-supply:
0027     description: phandle to the regulator that provides power to the accelerometer
0028 
0029   vddio-supply:
0030     description: phandle to the regulator that provides power to the sensor's IO
0031 
0032   interrupts:
0033     maxItems: 1
0034 
0035 required:
0036   - compatible
0037   - reg
0038 
0039 additionalProperties: false
0040 
0041 examples:
0042   - |
0043     #include <dt-bindings/gpio/gpio.h>
0044     #include <dt-bindings/interrupt-controller/irq.h>
0045     i2c {
0046       #address-cells = <1>;
0047       #size-cells = <0>;
0048       accelerometer@14 {
0049         compatible = "bosch,bma400";
0050         reg = <0x14>;
0051         vdd-supply = <&vdd>;
0052         vddio-supply = <&vddio>;
0053         interrupt-parent = <&gpio0>;
0054         interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0055       };
0056     };