Path: blob/master/Documentation/devicetree/bindings/iio/accel/fsl,mma7455.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/fsl,mma7455.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale MMA7455 and MMA7456 three axis accelerometers78maintainers:9- Jonathan Cameron <jic23@kernel.org>1011description:12Devices support both SPI and I2C interfaces.1314properties:15compatible:16enum:17- fsl,mma745518- fsl,mma745619reg:20maxItems: 12122avdd-supply: true23vddio-supply: true2425interrupts:26minItems: 127maxItems: 22829interrupt-names:30description:31Data ready is only available on INT1, but events can use either or32both pins. If not specified, first element assumed to correspond33to INT1 and second (where present) to INT2.34minItems: 135maxItems: 236items:37enum:38- INT139- INT24041required:42- compatible43- reg4445allOf:46- $ref: /schemas/spi/spi-peripheral-props.yaml#4748unevaluatedProperties: false4950examples:51- |52# include <dt-bindings/interrupt-controller/irq.h>53i2c {54#address-cells = <1>;55#size-cells = <0>;5657accelerometer@18 {58compatible = "fsl,mma7455";59reg = <0x18>;60vddio-supply = <&iovdd>;61avdd-supply = <&avdd>;62interrupts = <57 IRQ_TYPE_EDGE_FALLING>, <58 IRQ_TYPE_EDGE_FALLING>;63interrupt-names = "INT2", "INT1";64};65};66- |67# include <dt-bindings/interrupt-controller/irq.h>68spi {69#address-cells = <1>;70#size-cells = <0>;71accelerometer@0 {72compatible = "fsl,mma7456";73reg = <0>;74spi-max-frequency = <10000000>;75vddio-supply = <&iovdd>;76avdd-supply = <&avdd>;77interrupts = <57 IRQ_TYPE_EDGE_FALLING>;78interrupt-names = "INT1";79};80};81...828384