brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · 457a709 Raw
121 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Bosch BMA255 and Similar Accelerometers8 9maintainers:10  - Linus Walleij <linus.walleij@linaro.org>11  - Stephan Gerhold <stephan@gerhold.net>12 13description:14  3 axis accelerometers with varying range and I2C or SPI15  4-wire interface.16 17properties:18  compatible:19    enum:20      # bmc150-accel driver in Linux21      - bosch,bma22222      - bosch,bma222e23      - bosch,bma250e24      - bosch,bma25325      - bosch,bma25426      - bosch,bma25527      - bosch,bma28028      - bosch,bmc150_accel29      - bosch,bmc156_accel30      - bosch,bmi055_accel31 32      # bma180 driver in Linux33      - bosch,bma02334      - bosch,bma15035      - bosch,bma18036      - bosch,bma25037      - bosch,smb38038 39  reg:40    maxItems: 141 42  vdd-supply: true43  vddio-supply: true44 45  interrupts:46    minItems: 147    maxItems: 248    description: |49      Without interrupt-names, the first interrupt listed must be the one50      connected to the INT1 pin, the second (optional) interrupt listed must be51      the one connected to the INT2 pin (if available). The type should be52      IRQ_TYPE_EDGE_RISING.53 54      BMC156 does not have an INT1 pin, therefore the first interrupt pin is55      always treated as INT2.56 57  interrupt-names:58    minItems: 159    maxItems: 260    items:61      enum:62        - INT163        - INT264 65  mount-matrix:66    description: an optional 3x3 mounting rotation matrix.67 68  spi-max-frequency:69    maximum: 1000000070 71required:72  - compatible73  - reg74 75allOf:76  - $ref: /schemas/spi/spi-peripheral-props.yaml#77 78unevaluatedProperties: false79 80examples:81  - |82    #include <dt-bindings/interrupt-controller/irq.h>83    i2c {84        #address-cells = <1>;85        #size-cells = <0>;86        accelerometer@8 {87            compatible = "bosch,bma222";88            reg = <0x08>;89            vddio-supply = <&vddio>;90            vdd-supply = <&vdd>;91            interrupts = <57 IRQ_TYPE_EDGE_RISING>;92            interrupt-names = "INT1";93        };94    };95  - |96    #include <dt-bindings/interrupt-controller/irq.h>97    i2c {98        #address-cells = <1>;99        #size-cells = <0>;100        accelerometer@10 {101            compatible = "bosch,bmc156_accel";102            reg = <0x10>;103            vddio-supply = <&vddio>;104            vdd-supply = <&vdd>;105            interrupts = <116 IRQ_TYPE_EDGE_RISING>;106            interrupt-names = "INT2";107        };108    };109  - |110    # include <dt-bindings/interrupt-controller/irq.h>111    spi {112        #address-cells = <1>;113        #size-cells = <0>;114        accel@0 {115            compatible = "bosch,bma222";116            reg = <0>;117            spi-max-frequency = <10000000>;118        };119    };120...121