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 Trixial 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 vdda-supply: true 24 vddd-supply: true 25 vddio-supply: true 26 27required: 28 - compatible 29 - reg 30 31allOf: 32 - $ref: /schemas/spi/spi-peripheral-props.yaml# 33 34unevaluatedProperties: false 35 36examples: 37 - | 38 #include <dt-bindings/interrupt-controller/irq.h> 39 spi { 40 #address-cells = <1>; 41 #size-cells = <0>; 42 43 accelerometer@0 { 44 compatible = "bosch,bma220"; 45 reg = <0>; 46 spi-max-frequency = <2500000>; 47 interrupt-parent = <&gpio0>; 48 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 49 }; 50 }; 51... 52