0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/adi,adxl355.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Analog Devices ADXL355 3-Axis, Low noise MEMS Accelerometer
0008
0009 maintainers:
0010 - Puranjay Mohan <puranjay12@gmail.com>
0011
0012 description: |
0013 Analog Devices ADXL355 3-Axis, Low noise MEMS Accelerometer that supports
0014 both I2C & SPI interfaces
0015 https://www.analog.com/en/products/adxl355.html
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - adi,adxl355
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 minItems: 1
0027 maxItems: 3
0028 description: |
0029 Type for DRDY should be IRQ_TYPE_EDGE_RISING.
0030 Three configurable interrupt lines exist.
0031
0032 interrupt-names:
0033 description: Specify which interrupt line is in use.
0034 items:
0035 enum:
0036 - INT1
0037 - INT2
0038 - DRDY
0039 minItems: 1
0040 maxItems: 3
0041
0042 vdd-supply:
0043 description: Regulator that provides power to the sensor
0044
0045 vddio-supply:
0046 description: Regulator that provides power to the bus
0047
0048 spi-max-frequency: true
0049
0050 required:
0051 - compatible
0052 - reg
0053
0054 additionalProperties: false
0055
0056 examples:
0057 - |
0058 #include <dt-bindings/gpio/gpio.h>
0059 #include <dt-bindings/interrupt-controller/irq.h>
0060 i2c {
0061 #address-cells = <1>;
0062 #size-cells = <0>;
0063
0064 /* Example for a I2C device node */
0065 accelerometer@1d {
0066 compatible = "adi,adxl355";
0067 reg = <0x1d>;
0068 interrupt-parent = <&gpio>;
0069 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
0070 interrupt-names = "DRDY";
0071 };
0072 };
0073 - |
0074 #include <dt-bindings/gpio/gpio.h>
0075 #include <dt-bindings/interrupt-controller/irq.h>
0076 spi {
0077 #address-cells = <1>;
0078 #size-cells = <0>;
0079
0080 accelerometer@0 {
0081 compatible = "adi,adxl355";
0082 reg = <0>;
0083 spi-max-frequency = <1000000>;
0084 interrupt-parent = <&gpio>;
0085 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
0086 interrupt-names = "DRDY";
0087 };
0088 };