From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B70B53C3F64 for ; Thu, 16 Jul 2026 21:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784236916; cv=none; b=lcK5UVeIRNEerESNuttxVKtPeFEUEdcsrow6NUJ0GgVhCr8TL4+KzM7ePaur7oTm4bcvtjD8YhXZS7xpEyxD8GEGrUuDvbsgY+YOCsGmAGpCsrxZDhmqTH2+dKkJylNNeC8aLBzQgrBps7CSlLJNwRH/E1dGBU7i9KavrLnheSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784236916; c=relaxed/simple; bh=Xkbry7Ckhih7oUQ+rnPYJWu/qW8xoRySqajhom5hWR4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aJpWwvvv5nJ9ODxgS4Ygek9OEYTwLiBUb3HywAqvJ+aRvLL8xjiUISgliTChUR1rSIZQxtirZdh9O8/kXUp68dRqclOfhLZIJuwoVeb0e6O3qQRr+/sLAHyQle4jMeUnV8OeiAcUlKi/grSy7W+1ap2rOo5PYMKRE7Rkh/AKfgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eIUaTvrp; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eIUaTvrp" Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-8111c0c7561so98962247b3.3 for ; Thu, 16 Jul 2026 14:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784236914; x=1784841714; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NKYB741Vi9+5Td+ttBpzIWdLFHulzs+nfBDpWAYF04A=; b=eIUaTvrpcY6ZsEO2DIqCkIFRm60i6qylpdQUZP9j5N4DWz2xofU6x5/A9Ret2r3atA DXSmQlDaDAc7hltffggEA5jWumM/f37WY/sLwZHVNxHajL7OsY51570UGGDcMc1pyzq9 dctUojG5eN74/qTcwT8VawkNCHY+A3YmfiLs7fWyHD8UpFt0KgBOcNDqiMsOeVhDRZ0f +r2+uLghhSvMcWzmai7e3W+pKiCn/pfOR2dCrmWUZhBKnagp7EtLlox/WL8tvVVP8i2I huKWkyOq+UfMN7C3gdE5tTcnLKaTTTpKlYK9tPn4g7LkASq2+RBMggpkGLrMPlk5XHrq UpAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784236914; x=1784841714; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NKYB741Vi9+5Td+ttBpzIWdLFHulzs+nfBDpWAYF04A=; b=CGHGVdxNkeMEKatZ8lQXVk+Xcf6IB5H4rmsMesz4pA7/GEiDNwcxGZ0tjet8SA8Kxx dCqi1ptNHe/ngX5NYLWLNQkdr51cQu1GY3f1QQliAwN3MwxwBcT6kG+ozldPkVQoi9ng YOO5p8iN5zn5TZE9vM7wjJYM9DVAljr5vzDHg/IcFqdt9VeoU6e98qBo7XOZC7JeYOqG MOPigmPemuVfk1k2MwkfEb2zNT6zTsQmdS9/Itm3jGNdWtLUrSXro6MthFxsv0n68SoQ Pnbx45TKBKRP38i0qy3NXOkT5Po3L2DYHSbKeF4o3QyteK84jr0k7m57MHIRdfbVfvgr YyYA== X-Forwarded-Encrypted: i=1; AHgh+RpWkIKLiNmjqtQvj6pe97M6vi8h9DOsIFE4m/C1M+vVR6a+gQrUokhmPR6V3/Z/L/bf1FaVZvSvc221D2k=@vger.kernel.org X-Gm-Message-State: AOJu0YwmyBMY3hpX7zHr9DqANlb060yagj3GMM2RkqJ1EgULJJ9L8BhQ agmear71cfIOkzWOkj56shaszZH1lNT2lPp8bUYvnzGJtXe0GvJb6ZSi X-Gm-Gg: AfdE7cku9p1FVvnAhoduBhVCboOQ19PYv6XtenGpMkunhGEja5+Rk63aVNhhhurHiFo aBZJnYIY+KRPKcdIc1MHU4DoK752umlUOeZZLmoCZjngJhKPWAQ6ii1ydZf9DEwO4DQ8JIOGuBD d7v6flix8oUiqGPu3fjCCZJQTf/r5e9Cw74MqH//dbL4IV4iOw1QaKBkE7yNUv24WrdrMqwUIEp 4/TyJQ6zUdKeR97n4yTB2qvnJAdh+pOSmVlr4YTV1DsHjd3SyrNZrTFyPpulgwIExZDeGIKplls /mfNlxlPajtCuXigON+6t+V1xyDp9lc3X1jwRg/d8gn7CZSsPfO3JQ0IGay4wQLYSWqy51ELrLb f+sE7R69p6tG1Kd9CPZkL/XE/m/45xZrJNg8E2IsEs1wIhJhoi6VudN7oZ9w+Abtvd3AZIumWMx BfAufI2dwf49ZpGjCEqk8xrG9+6m8= X-Received: by 2002:a05:690c:9b0b:b0:81c:ef47:2dd0 with SMTP id 00721157ae682-81ec00c8b00mr90286367b3.49.1784236913517; Thu, 16 Jul 2026 14:21:53 -0700 (PDT) Received: from tresc054937.tre-sc.gov.br ([187.94.103.218]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81eee7fde39sm5026477b3.36.2026.07.16.14.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 14:21:52 -0700 (PDT) From: Luiz Angelo Daros de Luca Date: Thu, 16 Jul 2026 18:21:38 -0300 Subject: [PATCH 1/4] dt-bindings: hwmon: add binding for adi,adt7470 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260716-adt7470_thermalzone-v1-1-cc55ef35edde@gmail.com> References: <20260716-adt7470_thermalzone-v1-0-cc55ef35edde@gmail.com> In-Reply-To: <20260716-adt7470_thermalzone-v1-0-cc55ef35edde@gmail.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , de Luca Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.15.2 The Analog Devices ADT7470 is a temperature monitor and PWM fan controller. It supports up to 10 external temperature sensors and up to 4 PWM fan outputs. Add the YAML device tree binding documentation for it. This includes support for the thermal framework by defining the "#cooling-cells" and "#thermal-sensor-cells" properties. Signed-off-by: Luiz Angelo Daros de Luca --- .../devicetree/bindings/hwmon/adi,adt7470.yaml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/adi,adt7470.yaml b/Documentation/devicetree/bindings/hwmon/adi,adt7470.yaml new file mode 100644 index 000000000000..e0c0fdadd1cf --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adi,adt7470.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/adi,adt7470.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADT7470 hwmon sensor + +maintainers: + - Luiz Angelo Daros de Luca + +description: | + The ADT7470 is a temperature monitor and multiple PWM outputs. + It supports monitoring up to 10 external temperature sensors and controlling + up to four fans. + +properties: + compatible: + const: adi,adt7470 + + reg: + maxItems: 1 + + "#cooling-cells": + const: 2 + description: | + Cooling device exposing the 4 PWM channels. + + "#thermal-sensor-cells": + const: 1 + description: | + Number of cells required to uniquely identify the temperature sensors. + Valid index values are 0 to 9, corresponding to temp1 through temp10. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hwmon@2f { + compatible = "adi,adt7470"; + reg = <0x2f>; + #cooling-cells = <2>; + #thermal-sensor-cells = <1>; + }; + }; -- 2.55.0