1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/kionix,kxsd9.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Kionix KXSD9 Accelerometer 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Jonathan Cameron <jic23@kernel.org> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: | 13c66ec88fSEmmanuel Vadot 3 axis 12 bit accelerometer with +-8G range on all axes. Also has a 14c66ec88fSEmmanuel Vadot 12 bit auxiliary ADC channel. Interface is either SPI or I2C. 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadotproperties: 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot const: kionix,kxsd9 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot reg: 21c66ec88fSEmmanuel Vadot maxItems: 1 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot vdd-supply: true 24c66ec88fSEmmanuel Vadot iovdd-supply: true 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot interrupts: 27c66ec88fSEmmanuel Vadot maxItems: 1 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot mount-matrix: 30c66ec88fSEmmanuel Vadot description: an optional 3x3 mounting rotation matrix. 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadotrequired: 33c66ec88fSEmmanuel Vadot - compatible 34c66ec88fSEmmanuel Vadot - reg 35c66ec88fSEmmanuel Vadot 36*7ef62cebSEmmanuel VadotallOf: 37*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 38*7ef62cebSEmmanuel Vadot 39*7ef62cebSEmmanuel VadotunevaluatedProperties: false 406be33864SEmmanuel Vadot 41c66ec88fSEmmanuel Vadotexamples: 42c66ec88fSEmmanuel Vadot - | 43c66ec88fSEmmanuel Vadot # include <dt-bindings/interrupt-controller/irq.h> 44c66ec88fSEmmanuel Vadot i2c { 45c66ec88fSEmmanuel Vadot #address-cells = <1>; 46c66ec88fSEmmanuel Vadot #size-cells = <0>; 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot accel@18 { 49c66ec88fSEmmanuel Vadot compatible = "kionix,kxsd9"; 50c66ec88fSEmmanuel Vadot reg = <0x18>; 51c66ec88fSEmmanuel Vadot iovdd-supply = <&iovdd>; 52c66ec88fSEmmanuel Vadot vdd-supply = <&vdd>; 53c66ec88fSEmmanuel Vadot interrupts = <57 IRQ_TYPE_EDGE_FALLING>; 54c66ec88fSEmmanuel Vadot mount-matrix = "-0.984807753012208", "0", "-0.173648177666930", 55c66ec88fSEmmanuel Vadot "0", "-1", "0", 56c66ec88fSEmmanuel Vadot "-0.173648177666930", "0", "0.984807753012208"; 57c66ec88fSEmmanuel Vadot }; 58c66ec88fSEmmanuel Vadot }; 59c66ec88fSEmmanuel Vadot - | 60c66ec88fSEmmanuel Vadot # include <dt-bindings/interrupt-controller/irq.h> 61c66ec88fSEmmanuel Vadot spi { 62c66ec88fSEmmanuel Vadot #address-cells = <1>; 63c66ec88fSEmmanuel Vadot #size-cells = <0>; 64c66ec88fSEmmanuel Vadot accel@0 { 65c66ec88fSEmmanuel Vadot compatible = "kionix,kxsd9"; 66c66ec88fSEmmanuel Vadot reg = <0>; 67c66ec88fSEmmanuel Vadot spi-max-frequency = <10000000>; 68c66ec88fSEmmanuel Vadot }; 69c66ec88fSEmmanuel Vadot }; 70c66ec88fSEmmanuel Vadot... 71