Allegro MicroSystems ALS31300 3-D Linear Hall Effect sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/allegromicro,als31300.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^magnetometer@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "allegromicro,als31300-500", "allegromicro,als31300-1000", "allegromicro,als31300-2000"

reg — not listed as required here #

Maximum number of items (maxItems): 1

vcc-supply — not listed as required here #

5.5V supply

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  magnetometer@61 {
    compatible = "allegromicro,als31300-500";
    reg = <0x61>;
    vcc-supply = <&hall_vcc>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 18: Factory configured at 500 Gauss input range

Line 19: Factory configured at 1000 Gauss input range

Line 20: Factory configured at 2000 Gauss input range

Edit this page