brintos

brintos / linux-shallow public Read only

0
0
Text · 987 B · ec643de Raw
52 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---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 Sensor8 9maintainers:10  - Jonathan Cameron <Jonathan.Cameron@huawei.com>11 12properties:13  compatible:14    enum:15      - bosch,bma22016 17  reg:18    maxItems: 119 20  interrupts:21    maxItems: 122 23  vdda-supply: true24  vddd-supply: true25  vddio-supply: true26 27required:28  - compatible29  - reg30 31allOf:32  - $ref: /schemas/spi/spi-peripheral-props.yaml#33 34unevaluatedProperties: false35 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