5be478f9c2
Another round of wack-a-mole. The json-schema default is additional unknown properties are allowed, but for DT all properties should be defined. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Stephen Boyd <sboyd@kernel.org> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Baolin Wang <baolin.wang7@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-By: Vinod Koul <vkoul@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for iio Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Mark Brown <broonie@kernel.org> Reviewd-by: Corey Minyard <cminyard@mvista.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Sebastian Reichel <sre@kernel.org> Link: https://lore.kernel.org/r/20201002234143.3570746-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
85 lines
2.3 KiB
YAML
85 lines
2.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/hwmon/adt7475.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: ADT7475 hwmon sensor
|
|
|
|
maintainers:
|
|
- Jean Delvare <jdelvare@suse.com>
|
|
|
|
description: |
|
|
The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple
|
|
PWN fan controllers.
|
|
|
|
They support monitoring and controlling up to four fans (the ADT7490 can only
|
|
control up to three). They support reading a single on chip temperature
|
|
sensor and two off chip temperature sensors (the ADT7490 additionally
|
|
supports measuring up to three current external temperature sensors with
|
|
series resistance cancellation (SRC)).
|
|
|
|
Datasheets:
|
|
https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF
|
|
https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF
|
|
https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF
|
|
https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF
|
|
|
|
Description taken from onsemiconductors specification sheets, with minor
|
|
rephrasing.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- adi,adt7473
|
|
- adi,adt7475
|
|
- adi,adt7476
|
|
- adi,adt7490
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
patternProperties:
|
|
"^adi,bypass-attenuator-in[0-4]$":
|
|
description: |
|
|
Configures bypassing the individual voltage input attenuator. If
|
|
set to 1 the attenuator is bypassed if set to 0 the attenuator is
|
|
not bypassed. If the property is absent then the attenuator
|
|
retains it's configuration from the bios/bootloader.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [0, 1]
|
|
|
|
"^adi,pwm-active-state$":
|
|
description: |
|
|
Integer array, represents the active state of the pwm outputs If set to 0
|
|
the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
|
|
uses a logic high output for 100% duty cycle.
|
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
|
minItems: 3
|
|
maxItems: 3
|
|
items:
|
|
enum: [0, 1]
|
|
default: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
hwmon@2e {
|
|
compatible = "adi,adt7476";
|
|
reg = <0x2e>;
|
|
adi,bypass-attenuator-in0 = <1>;
|
|
adi,bypass-attenuator-in1 = <0>;
|
|
adi,pwm-active-state = <1 0 1>;
|
|
};
|
|
};
|
|
|