FILE
bosch,bma220.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
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 7title: Bosch BMA220 Triaxial Acceleration Sensor 8 9maintainers: 10 - Jonathan Cameron <Jonathan.Cameron@huawei.com> 11 12properties: 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 30required: 31 - compatible 32 - reg 33 34allOf: 35 - $ref: /schemas/spi/spi-peripheral-props.yaml# 36 37unevaluatedProperties: false 38 39examples: 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...
~/
Read-only file preview.