1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: NXP FXLS8962AF/FXLS8964AF Accelerometer driver 8 9maintainers: 10 - Sean Nyekjaer <[email protected]> 11 12description: | 13 NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports 14 SPI and I2C interface. 15 https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf 16 https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf 17 https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf 18 https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf 19 20properties: 21 compatible: 22 oneOf: 23 - enum: 24 - nxp,fxls8962af 25 - nxp,fxls8964af 26 - items: 27 - enum: 28 - nxp,fxls8967af 29 - nxp,fxls8974cf 30 - const: nxp,fxls8962af 31 32 reg: 33 maxItems: 1 34 35 vdd-supply: 36 description: phandle to the regulator that provides power to the accelerometer 37 38 interrupts: 39 maxItems: 1 40 41 interrupt-names: 42 enum: 43 - INT1 44 - INT2 45 46 drive-open-drain: 47 type: boolean 48 49 wakeup-source: 50 $ref: /schemas/types.yaml#/definitions/flag 51 description: 52 Enable wake on accelerometer event 53 54required: 55 - compatible 56 - reg 57 58allOf: 59 - $ref: /schemas/spi/spi-peripheral-props.yaml# 60 61unevaluatedProperties: false 62 63examples: 64 - | 65 #include <dt-bindings/interrupt-controller/irq.h> 66 i2c { 67 #address-cells = <1>; 68 #size-cells = <0>; 69 70 /* Example for a I2C device node */ 71 accelerometer@62 { 72 compatible = "nxp,fxls8962af"; 73 reg = <0x62>; 74 interrupt-parent = <&gpio0>; 75 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 76 interrupt-names = "INT1"; 77 wakeup-source; 78 }; 79 }; 80 - | 81 #include <dt-bindings/interrupt-controller/irq.h> 82 spi { 83 #address-cells = <1>; 84 #size-cells = <0>; 85 86 /* Example for a SPI device node */ 87 accelerometer@0 { 88 compatible = "nxp,fxls8962af"; 89 reg = <0>; 90 spi-max-frequency = <4000000>; 91 interrupt-parent = <&gpio0>; 92 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 93 interrupt-names = "INT1"; 94 }; 95 }; 96