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,bma220.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bosch BMA220 Trixial Acceleration Sensor
0008 
0009 maintainers:
0010   - Jonathan Cameron <Jonathan.Cameron@huawei.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - bosch,bma220
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   interrupts:
0021     maxItems: 1
0022 
0023   spi-max-frequency: true
0024 
0025   vdda-supply: true
0026   vddd-supply: true
0027   vddio-supply: true
0028 
0029 required:
0030   - compatible
0031   - reg
0032 
0033 additionalProperties: false
0034 
0035 examples:
0036   - |
0037     #include <dt-bindings/interrupt-controller/irq.h>
0038     spi0 {
0039         #address-cells = <1>;
0040         #size-cells = <0>;
0041 
0042         accelerometer@0 {
0043             compatible = "bosch,bma220";
0044             reg = <0>;
0045             spi-max-frequency = <2500000>;
0046             interrupt-parent = <&gpio0>;
0047             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0048         };
0049     };
0050 ...