Path: blob/master/Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml
26309 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/adi,adxl355.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices ADXL355 and ADXL359 3-Axis, Low noise MEMS Accelerometers78maintainers:9- Puranjay Mohan <puranjay12@gmail.com>1011description: |12Analog Devices ADXL355 and ADXL359 3-Axis, Low noise MEMS Accelerometers that13support both I2C & SPI interfaces14https://www.analog.com/en/products/adxl355.html15https://www.analog.com/en/products/adxl359.html1617properties:18compatible:19enum:20- adi,adxl35521- adi,adxl3592223reg:24maxItems: 12526interrupts:27minItems: 128maxItems: 329description: |30Type for DRDY should be IRQ_TYPE_EDGE_RISING.31Three configurable interrupt lines exist.3233interrupt-names:34description: Specify which interrupt line is in use.35items:36enum:37- INT138- INT239- DRDY40minItems: 141maxItems: 34243vdd-supply:44description: Regulator that provides power to the sensor4546vddio-supply:47description: Regulator that provides power to the bus4849required:50- compatible51- reg5253allOf:54- $ref: /schemas/spi/spi-peripheral-props.yaml#5556unevaluatedProperties: false5758examples:59- |60#include <dt-bindings/gpio/gpio.h>61#include <dt-bindings/interrupt-controller/irq.h>62i2c {63#address-cells = <1>;64#size-cells = <0>;6566/* Example for a I2C device node */67accelerometer@1d {68compatible = "adi,adxl355";69reg = <0x1d>;70interrupt-parent = <&gpio>;71interrupts = <25 IRQ_TYPE_EDGE_RISING>;72interrupt-names = "DRDY";73};74};75- |76#include <dt-bindings/gpio/gpio.h>77#include <dt-bindings/interrupt-controller/irq.h>78spi {79#address-cells = <1>;80#size-cells = <0>;8182accelerometer@0 {83compatible = "adi,adxl355";84reg = <0>;85spi-max-frequency = <1000000>;86interrupt-parent = <&gpio>;87interrupts = <25 IRQ_TYPE_EDGE_RISING>;88interrupt-names = "DRDY";89};90};919293