Path: blob/main/sys/contrib/device-tree/Bindings/iio/accel/nxp,fxls8962af.yaml
48523 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP FXLS8962AF/FXLS8964AF Accelerometer driver78maintainers:9- Sean Nyekjaer <sean@geanix.com>1011description: |12NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports13SPI and I2C interface.14https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf15https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf1617properties:18compatible:19enum:20- nxp,fxls8962af21- nxp,fxls8964af2223reg:24maxItems: 12526vdd-supply:27description: phandle to the regulator that provides power to the accelerometer2829interrupts:30maxItems: 13132interrupt-names:33enum:34- INT135- INT23637drive-open-drain:38type: boolean3940required:41- compatible42- reg4344allOf:45- $ref: /schemas/spi/spi-peripheral-props.yaml#4647unevaluatedProperties: false4849examples:50- |51#include <dt-bindings/interrupt-controller/irq.h>52i2c {53#address-cells = <1>;54#size-cells = <0>;5556/* Example for a I2C device node */57accelerometer@62 {58compatible = "nxp,fxls8962af";59reg = <0x62>;60interrupt-parent = <&gpio0>;61interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;62interrupt-names = "INT1";63};64};65- |66#include <dt-bindings/interrupt-controller/irq.h>67spi {68#address-cells = <1>;69#size-cells = <0>;7071/* Example for a SPI device node */72accelerometer@0 {73compatible = "nxp,fxls8962af";74reg = <0>;75spi-max-frequency = <4000000>;76interrupt-parent = <&gpio0>;77interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;78interrupt-names = "INT1";79};80};818283