3e0ce52615
The LM90-like sensors usually need VCC supply, however this can be hard-wired to the board main supply (like in SiFive HiFive Unmatched RISC-V board). Original bindings made VCC supply as required but in practice several other boards skipped it. Make it optional. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210920181913.338772-2-krzysztof.kozlowski@canonical.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
79 lines
1.6 KiB
YAML
79 lines
1.6 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
|
|
- dallas,max6646
|
|
- dallas,max6647
|
|
- dallas,max6649
|
|
- dallas,max6657
|
|
- dallas,max6658
|
|
- dallas,max6659
|
|
- dallas,max6680
|
|
- dallas,max6681
|
|
- dallas,max6695
|
|
- dallas,max6696
|
|
- gmt,g781
|
|
- national,lm86
|
|
- national,lm89
|
|
- national,lm90
|
|
- national,lm99
|
|
- nxp,sa56004
|
|
- onnn,nct1008
|
|
- ti,tmp451
|
|
- winbond,w83l771
|
|
|
|
|
|
interrupts:
|
|
items:
|
|
- description: |
|
|
Single interrupt specifier which describes the LM90 "-ALERT" pin
|
|
output.
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
"#thermal-sensor-cells":
|
|
const: 1
|
|
|
|
vcc-supply:
|
|
description: phandle to the regulator that provides the +VCC supply
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/tegra-gpio.h>
|
|
#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>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
};
|