Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/iio/magnetometer/pni,rm3100.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: PNI RM3100 3-axis magnetometer sensor |
| 8 | |
| 9 | maintainers: |
| 10 | - Song Qiang <songqiang1304521@gmail.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | const: pni,rm3100 |
| 15 | |
| 16 | reg: |
| 17 | maxItems: 1 |
| 18 | |
| 19 | interrupts: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | additionalProperties: false |
| 23 | |
| 24 | required: |
| 25 | - compatible |
| 26 | - reg |
| 27 | |
| 28 | examples: |
| 29 | - | |
| 30 | #include <dt-bindings/interrupt-controller/irq.h> |
| 31 | i2c { |
| 32 | #address-cells = <1>; |
| 33 | #size-cells = <0>; |
| 34 | |
| 35 | magnetometer@20 { |
| 36 | compatible = "pni,rm3100"; |
| 37 | reg = <0x20>; |
| 38 | interrupt-parent = <&gpio0>; |
| 39 | interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; |
| 40 | }; |
| 41 | }; |
| 42 | ... |