Jonathan Cameron 2bb6f3e8d8 dt-bindings:iio:magnetometer:honeywell,hmc5843: txt to yaml format conversion
Mostly a straight conversion, but the txt file had an oddity.
It documented a gpios property for what appeared to be in interrupt line.
There are mainline dts that have this as interrupts, so I've converted
it to that.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Link: https://lore.kernel.org/r/20201031184854.745828-27-jic23@kernel.org
2020-11-22 17:58:57 +00:00

44 lines
754 B
YAML

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/honeywell,hmc5843.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Honeywell HMC5843 magnetometer sensor
maintainers:
- Neil Brown <neilb@suse.de>
properties:
compatible:
enum:
- honeywell,hmc5843
- honeywell,hmc5883
- honeywell,hmc5883l
- honeywell,hmc5983
reg:
maxItems: 1
interrupts:
maxItems: 1
additionalProperties: false
required:
- compatible
- reg
examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
magnetometer@1e {
compatible = "honeywell,hmc5843";
reg = <0x1e>;
};
};
...