From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BDED3F65E7 for ; Wed, 5 Aug 2026 09:12:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785921140; cv=none; b=YoPjL6S/bUA4cTFMzsbihloo9qHKEGz6tT4MyXUp3MzfMnf0TajnyazWtzXCIFikS8yEixsoZIt2A5eGL6cssOtCR+W//lkM1G3tXMoCaKDhiSJL7K+Cz8bKfe4KsWFWENBK1OSRscOJI4ai0PyUEPzUNSDEDxAA782scBgnexk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785921140; c=relaxed/simple; bh=h66UPDPeq+8SOvsZ43XgQtxGhVgtvhOir6wqRjV7WNo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc: In-Reply-To:References; b=ov+MylwvSTn8UoWg6mJZR4+crpUqiVUPH5nZjtDeMBzslJ/lpRtwVUXFAOzc+jtQmMJD+C0R2R4CBiEYLY6smZser581WSvIraiw9Lp8XFp7rIilBdlNWt9XIdpBvu7INSYMtmbJ2MEWyXA22n3QddSeLNOUzDZVi0B4pCi5Q3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=kbc/jtXm; arc=none smtp.client-ip=95.215.58.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="kbc/jtXm" X-Mailbox-Line: From troy.mitchell@linux.dev Wed Aug 5 02:03:29 2026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785921136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G+eLp8JoAcY18XlukudBlKohBC6kmbzaMQpheqGUCy0=; b=kbc/jtXmsOdMN40duYfR2NlYVPVt2NoCKYS9iVo1vS3NaDkjpluMNE3j7GEvhr5iVWuc47 WbyxdubwTpLnbOsjt3z+h/wzQHlk4zOec72h4kXYSJIpNDpy9rE6Skdq82qhLjVzvqhd9o bLWaOrfoT36hwrhUK1cn/DqsvhSQeGQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Troy Mitchell Date: Wed, 05 Aug 2026 02:00:52 -0700 Subject: [PATCH v3 2/6] dt-bindings: hwmon: Move LM63 family to a dedicated binding Precedence: bulk X-Mailing-List: spacemit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260805-ctl2301-v3-2-b86c75d1c552@linux.dev> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guenter Roeck , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Jonathan Corbet , Shuah Khan Cc: Troy Mitchell , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-doc@vger.kernel.org X-Developer-Signature: v=1; a=openpgp-sha256; l=3063; i=troy.mitchell@linux.dev; h=from:subject:message-id; bh=h66UPDPeq+8SOvsZ43XgQtxGhVgtvhOir6wqRjV7WNo=; b=owGbwMvMwCU2g/N9w09jE33G02pJDFlFv48q63R871W9ILZk0cnFQZ6P4hW8MxMuzQy5oMwt/ UXy5hXTjlIWBjEuBlkxRZbuBzzbCnyibAsECn1h5rAygQxh4OIUgIn8tWH4w/13ie3xJub0NRJ8 wZau+WkzXPiObZn1NYphW/zWUxV3HjIyrDmp5MfQLfVN8vxruUVyu0PKhM21NH0Ofpd6HtnpK9/ MBwA= X-Developer-Key: i=troy.mitchell@linux.dev; a=openpgp; fpr=3FE5535CF1B0E658E57DB59BAE1C2FBEA7DB42E1 In-Reply-To: <20260805-ctl2301-v3-0-fd4b8ffb5b0d@linux.dev> References: <20260805-ctl2301-v3-0-fd4b8ffb5b0d@linux.dev> X-Migadu-Flow: FLOW_OUT 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. Signed-off-by: Troy Mitchell --- .../devicetree/bindings/hwmon/national,lm63.yaml | 53 ++++++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 6 --- 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/national,lm63.yaml b/Documentation/devicetree/bindings/hwmon/national,lm63.yaml new file mode 100644 index 000000000000..f2e0993cfbef --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/national,lm63.yaml @@ -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 + +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>; + }; + }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 435c4baab436..aa62d245464c 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -364,16 +364,10 @@ properties: - mps,mp9945 # 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 -- 2.55.0