Path: blob/master/Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml
29539 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/interrupt-controller/irq.h>61i2c {62#address-cells = <1>;63#size-cells = <0>;6465/* Example for a I2C device node */66accelerometer@1d {67compatible = "adi,adxl355";68reg = <0x1d>;69interrupt-parent = <&gpio>;70interrupts = <25 IRQ_TYPE_EDGE_RISING>;71interrupt-names = "DRDY";72};73};74- |75#include <dt-bindings/interrupt-controller/irq.h>76spi {77#address-cells = <1>;78#size-cells = <0>;7980accelerometer@0 {81compatible = "adi,adxl355";82reg = <0>;83spi-max-frequency = <1000000>;84interrupt-parent = <&gpio>;85interrupts = <25 IRQ_TYPE_EDGE_RISING>;86interrupt-names = "DRDY";87};88};899091