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/magnetometer/pni,rm3100.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: PNI RM3100 3-axis magnetometer sensor
0008 
0009 maintainers:
0010   - Song Qiang <songqiang1304521@gmail.com>
0011 
0012 properties:
0013   compatible:
0014     const: pni,rm3100
0015 
0016   reg:
0017     maxItems: 1
0018 
0019   interrupts:
0020     maxItems: 1
0021 
0022 additionalProperties: false
0023 
0024 required:
0025   - compatible
0026   - reg
0027 
0028 examples:
0029   - |
0030     #include <dt-bindings/interrupt-controller/irq.h>
0031     i2c {
0032         #address-cells = <1>;
0033         #size-cells = <0>;
0034 
0035         magnetometer@20 {
0036             compatible = "pni,rm3100";
0037             reg = <0x20>;
0038             interrupt-parent = <&gpio0>;
0039             interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
0040         };
0041     };
0042 ...