Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/kionix,kxsd9.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Kionix KXSD9 Accelerometer
0008 
0009 maintainers:
0010   - Jonathan Cameron <jic23@kernel.org>
0011 
0012 description: |
0013   3 axis 12 bit accelerometer with +-8G range on all axes. Also has a
0014   12 bit auxiliary ADC channel. Interface is either SPI or I2C.
0015 
0016 properties:
0017   compatible:
0018     const: kionix,kxsd9
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   vdd-supply: true
0024   iovdd-supply: true
0025 
0026   interrupts:
0027     maxItems: 1
0028 
0029   mount-matrix:
0030     description: an optional 3x3 mounting rotation matrix.
0031 
0032   spi-max-frequency: true
0033 
0034 required:
0035   - compatible
0036   - reg
0037 
0038 additionalProperties: false
0039 
0040 examples:
0041   - |
0042     # include <dt-bindings/interrupt-controller/irq.h>
0043     i2c {
0044         #address-cells = <1>;
0045         #size-cells = <0>;
0046 
0047         accel@18 {
0048             compatible = "kionix,kxsd9";
0049             reg = <0x18>;
0050             iovdd-supply = <&iovdd>;
0051             vdd-supply = <&vdd>;
0052             interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
0053             mount-matrix = "-0.984807753012208", "0",  "-0.173648177666930",
0054                            "0",                  "-1", "0",
0055                            "-0.173648177666930", "0",  "0.984807753012208";
0056         };
0057     };
0058   - |
0059     # include <dt-bindings/interrupt-controller/irq.h>
0060     spi {
0061         #address-cells = <1>;
0062         #size-cells = <0>;
0063         accel@0 {
0064             compatible = "kionix,kxsd9";
0065             reg = <0>;
0066             spi-max-frequency = <10000000>;
0067         };
0068     };
0069 ...