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/nxp,fxls8962af.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: NXP FXLS8962AF/FXLS8964AF Accelerometer driver
0008
0009 maintainers:
0010 - Sean Nyekjaer <sean@geanix.com>
0011
0012 description: |
0013 NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports
0014 SPI and I2C interface.
0015 https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf
0016 https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - nxp,fxls8962af
0022 - nxp,fxls8964af
0023
0024 reg:
0025 maxItems: 1
0026
0027 vdd-supply:
0028 description: phandle to the regulator that provides power to the accelerometer
0029
0030 spi-max-frequency: true
0031
0032 interrupts:
0033 maxItems: 1
0034
0035 interrupt-names:
0036 enum:
0037 - INT1
0038 - INT2
0039
0040 drive-open-drain:
0041 type: boolean
0042
0043 required:
0044 - compatible
0045 - reg
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 #include <dt-bindings/interrupt-controller/irq.h>
0052 i2c0 {
0053 #address-cells = <1>;
0054 #size-cells = <0>;
0055
0056 /* Example for a I2C device node */
0057 accelerometer@62 {
0058 compatible = "nxp,fxls8962af";
0059 reg = <0x62>;
0060 interrupt-parent = <&gpio0>;
0061 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0062 interrupt-names = "INT1";
0063 };
0064 };
0065 - |
0066 #include <dt-bindings/interrupt-controller/irq.h>
0067 spi0 {
0068 #address-cells = <1>;
0069 #size-cells = <0>;
0070
0071 /* Example for a SPI device node */
0072 accelerometer@0 {
0073 compatible = "nxp,fxls8962af";
0074 reg = <0>;
0075 spi-max-frequency = <4000000>;
0076 interrupt-parent = <&gpio0>;
0077 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0078 interrupt-names = "INT1";
0079 };
0080 };