mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
Generally at most 1 blank line is the standard style for DT schema files. Remove the few cases with more than 1 so that the yamllint check for this can be enabled. Acked-by: Lee Jones <lee@kernel.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> # remoteproc Acked-by: Georgi Djakov <djakov@kernel.org> Acked-by: Vinod Koul <vkoul@kernel.org> Acked-by: Andi Shyti <andi.shyti@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Uwe Kleine-König <ukleinek@kernel.org> # for allwinner,sun4i-a10-pwm.yaml Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> # mtd Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> # For PCI controller bindings Link: https://patch.msgid.link/20251023143957.2899600-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
241 lines
5.3 KiB
YAML
241 lines
5.3 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/hwmon/national,lm90.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: LM90 series thermometer
|
|
|
|
maintainers:
|
|
- Jean Delvare <jdelvare@suse.com>
|
|
- Guenter Roeck <linux@roeck-us.net>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- adi,adm1032
|
|
- adi,adt7461
|
|
- adi,adt7461a
|
|
- adi,adt7481
|
|
- dallas,max6646
|
|
- dallas,max6647
|
|
- dallas,max6649
|
|
- dallas,max6654
|
|
- dallas,max6657
|
|
- dallas,max6658
|
|
- dallas,max6659
|
|
- dallas,max6680
|
|
- dallas,max6681
|
|
- dallas,max6695
|
|
- dallas,max6696
|
|
- gmt,g781
|
|
- national,lm86
|
|
- national,lm89
|
|
- national,lm90
|
|
- national,lm99
|
|
- nuvoton,nct7716
|
|
- nuvoton,nct7717
|
|
- nuvoton,nct7718
|
|
- nxp,sa56004
|
|
- onnn,nct72
|
|
- onnn,nct214
|
|
- onnn,nct218
|
|
- onnn,nct1008
|
|
- ti,tmp451
|
|
- ti,tmp461
|
|
- winbond,w83l771
|
|
|
|
interrupts:
|
|
items:
|
|
- description: |
|
|
Single interrupt specifier which describes the LM90 "-ALERT" pin
|
|
output.
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
"#thermal-sensor-cells":
|
|
const: 1
|
|
|
|
'#address-cells':
|
|
const: 1
|
|
|
|
'#size-cells':
|
|
const: 0
|
|
|
|
vcc-supply:
|
|
description: phandle to the regulator that provides the +VCC supply
|
|
|
|
ti,extended-range-enable:
|
|
description: Set to enable extended range temperature.
|
|
type: boolean
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
patternProperties:
|
|
"^channel@([0-2])$":
|
|
type: object
|
|
description: Represents channels of the device and their specific configuration.
|
|
|
|
properties:
|
|
reg:
|
|
description: The channel number. 0 is local channel, 1-2 are remote channels.
|
|
items:
|
|
minimum: 0
|
|
maximum: 2
|
|
|
|
label:
|
|
description: A descriptive name for this channel, like "ambient" or "psu".
|
|
|
|
temperature-offset-millicelsius:
|
|
description: Temperature offset to be added to or subtracted from remote temperature measurements.
|
|
|
|
required:
|
|
- reg
|
|
|
|
additionalProperties: false
|
|
|
|
allOf:
|
|
- if:
|
|
not:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- adi,adt7461
|
|
- adi,adt7461a
|
|
- adi,adt7481
|
|
- ti,tmp451
|
|
- ti,tmp461
|
|
then:
|
|
properties:
|
|
ti,extended-range-enable: false
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- dallas,max6646
|
|
- dallas,max6647
|
|
- dallas,max6649
|
|
- dallas,max6654
|
|
- dallas,max6657
|
|
- dallas,max6658
|
|
- dallas,max6659
|
|
- dallas,max6695
|
|
- dallas,max6696
|
|
- nuvoton,nct7716
|
|
- nuvoton,nct7717
|
|
then:
|
|
patternProperties:
|
|
"^channel@([0-2])$":
|
|
properties:
|
|
temperature-offset-millicelsius: false
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- adi,adt7461
|
|
- adi,adt7461a
|
|
- adi,adt7481
|
|
- onnn,nct72
|
|
- onnn,nct214
|
|
- onnn,nct218
|
|
- onnn,nct1008
|
|
then:
|
|
patternProperties:
|
|
"^channel@([0-2])$":
|
|
properties:
|
|
temperature-offset-millicelsius:
|
|
maximum: 127750
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- adi,adm1032
|
|
- dallas,max6680
|
|
- dallas,max6681
|
|
- gmt,g781
|
|
- national,lm86
|
|
- national,lm89
|
|
- national,lm90
|
|
- national,lm99
|
|
- nuvoton,nct7718
|
|
- nxp,sa56004
|
|
- winbond,w83l771
|
|
then:
|
|
patternProperties:
|
|
"^channel@([0-2])$":
|
|
properties:
|
|
temperature-offset-millicelsius:
|
|
maximum: 127875
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,tmp451
|
|
- ti,tmp461
|
|
then:
|
|
patternProperties:
|
|
"^channel@([0-2])$":
|
|
properties:
|
|
temperature-offset-millicelsius:
|
|
maximum: 127937
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
sensor@4c {
|
|
compatible = "onnn,nct1008";
|
|
reg = <0x4c>;
|
|
vcc-supply = <&palmas_ldo6_reg>;
|
|
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
};
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
sensor@4c {
|
|
compatible = "adi,adt7481";
|
|
reg = <0x4c>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
channel@0 {
|
|
reg = <0x0>;
|
|
label = "local";
|
|
};
|
|
|
|
channel@1 {
|
|
reg = <0x1>;
|
|
label = "front";
|
|
temperature-offset-millicelsius = <4000>;
|
|
};
|
|
|
|
channel@2 {
|
|
reg = <0x2>;
|
|
label = "back";
|
|
temperature-offset-millicelsius = <750>;
|
|
};
|
|
};
|
|
};
|