Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
52844 views
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 Triaxial 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-cpha: true
24
spi-cpol: true
25
26
vdda-supply: true
27
vddd-supply: true
28
vddio-supply: true
29
30
required:
31
- compatible
32
- reg
33
34
allOf:
35
- $ref: /schemas/spi/spi-peripheral-props.yaml#
36
37
unevaluatedProperties: false
38
39
examples:
40
- |
41
#include <dt-bindings/interrupt-controller/irq.h>
42
spi {
43
#address-cells = <1>;
44
#size-cells = <0>;
45
46
accelerometer@0 {
47
compatible = "bosch,bma220";
48
reg = <0>;
49
spi-max-frequency = <2500000>;
50
spi-cpol;
51
spi-cpha;
52
interrupt-parent = <&gpio0>;
53
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
54
};
55
};
56
...
57
58