From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (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 AD62A38F249 for ; Fri, 17 Jul 2026 20:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784321977; cv=none; b=jo/bcSpefyHIF7h8Hum9wfbBHf0HjQtKbMd/cdqBoCBDGsRedJve4kvxhbyRYqYzB2hG4aZ3MtRaSIw/DJwcF7xZmAf23hs3zZOLOY1t7f52u81fibbPcyDxVbGRp99ZPODRaUoJztNZheiEFl6/sFTI+DrKr0ZBDx4lY95KPMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784321977; c=relaxed/simple; bh=xeMJkUp+9bHx+elzCT+IwDbJFiAPwzNnM2mZU7LP9TQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hu4262wKWW4f0dvff+mZBvYSaSfVIeJYDsrTm+y0Zm9ry5WdcexqKXMBohkIFw/13aCYUIotZdHBGTTdM7+Sh3VY5hTg2gEHEqYl654GGTANmw3TYv3Q792nNM2VoctfTpDKnO+Y+pG4JC3VO5FdVvIU7MjpBcAHI0WnkcOXovw= 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=FC5/LyEC; arc=none smtp.client-ip=209.85.128.173 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="FC5/LyEC" Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-80e2cfe6918so41175887b3.0 for ; Fri, 17 Jul 2026 13:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784321975; x=1784926775; 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=Wb5kISc8J94n8IdvHv41Cz+DWVxzSUvjB7qt5LTjR6g=; b=FC5/LyECWcoenTWRifsw5+V138Cq0DF33CDN226tfBQNkmYdd2NqQDztzgWZ9Jz0zb fNsHB9NGb6ZDgzCatEKaWB/cfGSCqVSjOfiNQZ8lOUJDERcHxCAXydDGBjo03bP8bn2I eI2PUliFgpFlcn7FPSZJwrmZb2XRUsf5lyTPaZjSgwzpMieF0CC3IeUn63l5gV2T+u5X wAZmbVi4tA+PRAzJg4ik+mmuX1A+h/5uptVY152jvVAacY2i1I5b60a3bRrjMHd4fXbb nS87JLGB+w9dTuoubSilQ9CEVkfrte5iSZFgtKJBz8wP8reUpOrBTWjWTQ7YS/3YucTz wq8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784321975; x=1784926775; 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=Wb5kISc8J94n8IdvHv41Cz+DWVxzSUvjB7qt5LTjR6g=; b=dodKuOWSiBL7cbMAE3JwO8fsna18RvPzmso6E5JaISZIZyg4k6xS0oI0s1vcjP1tRu 4mg8YZi0TQckIcn52yKK3wvdAUDYA5jlKhtv7lTVKF/pcEmMrc6+zJeURqSG3I8MMER6 JtRFFB7FRXjjnniV+PXyjo9KCSiHBWbC+2nLFNujsZec/rtJmo6LJ+eZ705pcy2Y6rZ+ 83p4W24EDt4m7bQqUTwVa+IojI1/nwzqiUZ/D6JmoQmFNmI6Of5C7tl98E/zTdBJGipo VNMq+TayeiS5jmiexd08Ozduk+KkIUSjX6bU9bhvbxbZ2onJ16mk+pWMwxzYLCYp6Fdz psRg== X-Forwarded-Encrypted: i=1; AHgh+RqEYrN9qNeJ8uUj1X0bDOF4aNVpDpGxM25wtTTsx4uuykbweVmwV4+h8+k6n9dTBfPfy5IjyVt00BeZtWQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyZgS2kor9KInWdo9EekxwPJAtiBV1DVw/6a1z5wstviyuL4BLJ eej1vFZJfo04zluehzq3dvnyejW2hMrMb2LiTSrhBai8MR82zWasBRjTM+Fpe5GJ X-Gm-Gg: AfdE7clu/ehM2YBUbiks/61FxRK4OnjM6PBbii47bFR+G+5VvNZyAIK1VoIGfYptY9L OVH9G/A8YwOd6n569+obzpDdDcslRVkuGdlZ0HKfsJ7KYAK2RBreAf/tLxO7020/Hn9zPXlvrIx e1wuLzhNhktmrE4ffTx40wEqtm++vGBDvakajFUSNvMnaHdov4a65jh12kNknwXaXJEJNmeiUmf 1SyhPP3bJIWv9NztZ9KzbKCekBovjNpW+EQv3/qel2hVTvbdPi7fk5Mbr/GbLc1XKPqbxiH7odY 80d5vnIF3cQfOZuZGXkurplBUxf7jeg1PW6/ec1SLdvHFIAfUxY75A3OtrTF2S4NM9l31rLDC0v SsXoO9wtb92HRzsXgYwWLIQqtoHlh0A5V9LEyAZ/bXRbl4ABkISK9uLanGn8uNq/drBgyGW+22h 1mC6QNqOSBBH0dZTBU X-Received: by 2002:a05:690c:7204:b0:81d:7bfc:40b5 with SMTP id 00721157ae682-81ef25e17f4mr14846097b3.42.1784321974593; Fri, 17 Jul 2026 13:59:34 -0700 (PDT) Received: from tresc054937.tre-sc.gov.br ([187.94.103.218]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81ef3e6656dsm20013647b3.0.2026.07.17.13.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 13:59:33 -0700 (PDT) From: Luiz Angelo Daros de Luca Date: Fri, 17 Jul 2026 17:59:14 -0300 Subject: [PATCH v2 1/6] 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: <20260717-adt7470_thermalzone-v2-1-a55147958fad@gmail.com> References: <20260717-adt7470_thermalzone-v2-0-a55147958fad@gmail.com> In-Reply-To: <20260717-adt7470_thermalzone-v2-0-a55147958fad@gmail.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chris Packham , Andrew Morton , "Darrick J. Wong" , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luiz Angelo Daros de Luca , linux-pwm@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 "#thermal-sensor-cells" property, and support for the PWM subsystem by defining the "#pwm-cells" property. Signed-off-by: Luiz Angelo Daros de Luca --- .../devicetree/bindings/hwmon/adi,adt7470.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 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..14bb6359c91f --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adi,adt7470.yaml @@ -0,0 +1,62 @@ +# 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 + + "#pwm-cells": + const: 2 + description: | + Number of cells in a PWM specifier. + - The first cell is the PWM channel (0 to 3). + - The second cell is the PWM period in nanoseconds. + + "#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>; + + adt7470: hwmon@2f { + compatible = "adi,adt7470"; + reg = <0x2f>; + #pwm-cells = <2>; + #thermal-sensor-cells = <1>; + }; + }; + + fan0 { + compatible = "pwm-fan"; + /* Connects to PWM channel 0 with a 50000 ns (20 kHz) period */ + pwms = <&adt7470 0 50000>; + cooling-levels = <0 100 150 255>; + }; -- 2.55.0