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 spi-max-frequency: true 24 25 vdda-supply: true 26 vddd-supply: true 27 vddio-supply: true 28 29required: 30 - compatible 31 - reg 32 33additionalProperties: false 34 35examples: 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... 51