dt-bindings: hwmon: Move LM63 family to a dedicated binding

Move the National Semiconductor LM63, LM64, and LM96163 compatibles out
of trivial-devices.yaml and into a dedicated binding. Describe their
integrated fan control and preserve the optional interrupt used by the
ALERT output. Permit use as thermal cooling devices via #cooling-cells.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev>
Link: https://patch.msgid.link/20260914-ctl2301-v5-2-b44b81cd2c3c@linux.dev
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Troy Mitchell 2026-09-14 16:03:54 +08:00 committed by Guenter Roeck
parent f4ba4f8cc8
commit 2ebe47827e
2 changed files with 53 additions and 6 deletions

View File

@ -0,0 +1,53 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/national,lm63.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: LM63-compatible temperature sensors with integrated fan control
maintainers:
- Guenter Roeck <linux@roeck-us.net>
description: |
The LM63 family provides local and remote temperature monitoring together
with fan speed monitoring and PWM fan control. Supported devices include
the National Semiconductor LM63, LM64 and LM96163.
allOf:
- $ref: hwmon-common.yaml#
properties:
compatible:
enum:
- national,lm63
- national,lm64
- national,lm96163
reg:
maxItems: 1
interrupts:
maxItems: 1
"#cooling-cells":
const: 2
required:
- compatible
- reg
unevaluatedProperties: false
examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@4c {
compatible = "national,lm63";
reg = <0x4c>;
#cooling-cells = <2>;
};
};

View File

@ -368,16 +368,10 @@ properties:
- mps,mpq82d00
# Murata D1U74T-W power supply unit
- murata,d1u74t
# Temperature sensor with integrated fan control
- national,lm63
# Temperature sensor with integrated fan control
- national,lm64
# Temperature sensor
- national,lm95235
# Temperature sensor
- national,lm95245
# Temperature sensor with integrated fan control
- national,lm96163
# Serial Interface ACPI-Compatible Microprocessor System Hardware Monitor
- national,lm80
# Serial Interface ACPI-Compatible Microprocessor System Hardware Monitor