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/bosch,bma220.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Bosch BMA220 Trixial Acceleration Sensor
8
9 maintainers:
10 - Jonathan Cameron <Jonathan.Cameron@huawei.com>
11
12 properties:
13 compatible:
14 enum:
15 - bosch,bma220
16
17 reg:
18 maxItems: 1
19
20 interrupts:
21 maxItems: 1
22
23 spi-max-frequency: true
24
25 vdda-supply: true
26 vddd-supply: true
27 vddio-supply: true
28
29 required:
30 - compatible
31 - reg
32
33 additionalProperties: false
34
35 examples:
36 - |
37 #include <dt-bindings/interrupt-controller/irq.h>
38 spi0 {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 accelerometer@0 {
43 compatible = "bosch,bma220";
44 reg = <0>;
45 spi-max-frequency = <2500000>;
46 interrupt-parent = <&gpio0>;
47 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
48 };
49 };
50 ...
Cache object: 9bd789c4898255d6e279c5ec5744b267
|