From nobody Mon Jun 8 07:24:44 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 86C1F44CF22 for ; Wed, 3 Jun 2026 11:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780485062; cv=none; b=BRH8MUNww/JnsVUIfKx+xsDTOwOaD3BYyF6cNKxjjVuAaWcDZ/eSsk6vTaZrVNDPVU3iUedpoxfL3PPeE2h502g8TulT6nmrl4HVU2tDTjVY9brXDtv52cBVzu9UsEF7fnD2yKOT6R5oAUVlsTierfgEY+zoKirJ4a6vN00Kagk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780485062; c=relaxed/simple; bh=HCG9adi2ZLMuFGes1YkvDXdIMeL9tAXI44u4K5umM8Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HCaL7FFxCNnACYy2dBWhYjbbwd9H41b2utOh/52MM0xMmZy3+GXXsMuFEUviTkYcHFUR5hFX37hulXj7Ep4RMVdNz81HM176u83ajTuFroFSBN7vPL6QWa118+AlxwNb8R6rvFoPBkLL0laPWj9cogyV0DNTQGxJ4zoJNpotA20= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=h6ptMwcD; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="h6ptMwcD" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 3E064C62218; Wed, 3 Jun 2026 11:11:02 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 66AB85FFA8; Wed, 3 Jun 2026 11:10:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9531310888CCD; Wed, 3 Jun 2026 13:10:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780485058; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=3XIg8GjehCWlUB8DMtiP7SFXCt7H+sLK6r9MYuiNWyg=; b=h6ptMwcDvpoaEvyPupv3tSGfKPRa9WC8sBbK7pFWDlDyOY11ZLlGIDS+ltJB1ttLq4yysr LYm5wmf+60mALRSpiRHcayS92Vasx6VaJQZ1KRSg7BV3VuZUTGOgJQNtX3yhb+HSnKriQq XDHOd9sn5FEv6+bBUpeDzZ3mbnPGlzkyRNejq98XAvSU8jEZncUGqeGAR84Rfmp8q3E1d1 GAe7TqiSrRQSwuLvAKTNDszGxz9xOvoQRUQsx61mX5x86vlRwG9ylhZbVMgpKpCorhXTQX F0o3r66W63rsKBWEzGSI0eVEeF8zo8LvEliB1ONRC5Vl3P8Cz/nxJk3F0tBzXw== From: Romain Gantois Date: Wed, 03 Jun 2026 13:10:49 +0200 Subject: [PATCH 1/2] dt-binding: hwmon: Add binding for ADT7462 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: quoted-printable Message-Id: <20260603-adt7462-bindings-v1-1-301304bcf774@bootlin.com> References: <20260603-adt7462-bindings-v1-0-301304bcf774@bootlin.com> In-Reply-To: <20260603-adt7462-bindings-v1-0-301304bcf774@bootlin.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kory Maincent Cc: Thomas Petazzoni , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Gantois X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 From: Kory Maincent Add the ADT7462 hwmon Controller device tree bindings documentation. Signed-off-by: Kory Maincent [rgantois: modified SPDX license header] [rgantois: minor corrections in device description] Signed-off-by: Romain Gantois --- .../devicetree/bindings/hwmon/adt7462.yaml | 53 ++++++++++++++++++= ++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/adt7462.yaml b/Documen= tation/devicetree/bindings/hwmon/adt7462.yaml new file mode 100644 index 0000000000000..745a371affd65 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adt7462.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/adt7462.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADT7462 hwmon sensor + +maintainers: + - Kory Maincent + +description: | + The ADT7462 is a temperature and voltage monitor and a PWM fan controlle= r. + + It can monitor temperature in up to three remote locations, as well as + its ambient temperature. + There are up to four PWM outputs to control fans. + The ADT7462 supports high frequency PWM for 4-wire fans and low frequency + PWM for 2-wire and 3-wire fans. Up to eight TACH inputs can be used to + measure the speed of 3-wire and 4-wire fans. There are up to 13 voltage + monitoring inputs, ranging from 12 V to 0.9 V. + + Datasheet: + https://www.onsemi.com/pdf/datasheet/adt7462-d.pdf + + Description taken from onsemiconductors specification sheets, with minor + rephrasing. + +properties: + compatible: + enum: + - adi,adt7462 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + hwmon@5c { + compatible =3D "adi,adt7462"; + reg =3D <0x5c>; + }; + }; --=20 2.54.0 From nobody Mon Jun 8 07:24:44 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 A91A53B8BD8 for ; Wed, 3 Jun 2026 11:11:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780485068; cv=none; b=ZpLeh+LBAhCkZxafOwX1P1Bgpl1tzydg4QOpJbC/5zpAtpx3xVs1ZSh86vFpqXbdkLCBb/7J8BoyNbSPmAE2H70sTmoUAiKBgWCE4/tsK46P/nxT3BMxf9dZFNyYsxte4XmZU8DLIIabUJ6uXqat+x1TzsovP5bqD4YuLF/3bkI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780485068; c=relaxed/simple; bh=WcNNAU1CzyMhLQPUzeNOT5YaIzTDhHnYSoCbUL6lcwo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SLaGrMZ/nFskwfodVMeqgGZ08vWK/hVBHcXygmvTB08E/7RDrjEuaee/d2fvNYSxT0NWdVShy7NO01B/9HNG3zCiJxP2kTsDKwFhsuUfHQ+82GCdlOl8TgtQx9Q/cUoVYoqQLQGyngHN1xOmoMMstSUqIV9VOkGf49JLSVniMxY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=BuQm/JuQ; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BuQm/JuQ" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 54B6B4E42DFC; Wed, 3 Jun 2026 11:11:00 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 246635FFA8; Wed, 3 Jun 2026 11:11:00 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C600B10888CCF; Wed, 3 Jun 2026 13:10:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780485059; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=vpmnkRxwaFT80g54LLIDsA4yY78yN17CLdroSULW1gc=; b=BuQm/JuQurOaZbLp8umCk4vqfPARaLPvYmGVr2qwWpk1cO+igAviTmpN9Mr0qlTmCsXSKv VxjhCs97yaB3uEJuWIADBbri7nMJV1CCrNHQScxwmTGTHDhPrl9MVzbor6+S2td+WRcE5P VIHsccMydyS36+rCGJ4x5CWakHkA3bil9gs+B/f9vtcRTbVLqj4wNDKUFQD1rvMgd2MiUp RIAidtr0BQ8uiUOQk0/9ax7iGu7zvii7ZPV4+5K2uDLpTsgCMXPKNEuNWhkr/AQlcyEZA7 f1AKf+8JaiP1UwWq7mB2Rd1RogYWvVT8rvdlvNCIDXT3hEBAC+d1uoSYhyfCrQ== From: Romain Gantois Date: Wed, 03 Jun 2026 13:10:50 +0200 Subject: [PATCH 2/2] hwmon: (adt7462) Add of_match_table to support devicetree 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: quoted-printable Message-Id: <20260603-adt7462-bindings-v1-2-301304bcf774@bootlin.com> References: <20260603-adt7462-bindings-v1-0-301304bcf774@bootlin.com> In-Reply-To: <20260603-adt7462-bindings-v1-0-301304bcf774@bootlin.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kory Maincent Cc: Thomas Petazzoni , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Gantois X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 From: Kory Maincent Add of_match_table to add support of devicetree probing. Signed-off-by: Kory Maincent Signed-off-by: Romain Gantois --- drivers/hwmon/adt7462.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c index 174dfee47f7a7..ef6e5252dc0a4 100644 --- a/drivers/hwmon/adt7462.c +++ b/drivers/hwmon/adt7462.c @@ -1814,10 +1814,17 @@ static const struct i2c_device_id adt7462_id[] =3D { }; MODULE_DEVICE_TABLE(i2c, adt7462_id); =20 +static const struct of_device_id __maybe_unused adt7462_of_match[] =3D { + { .compatible =3D "adi,adt7462" }, + { }, +}; +MODULE_DEVICE_TABLE(of, adt7462_of_match); + static struct i2c_driver adt7462_driver =3D { .class =3D I2C_CLASS_HWMON, .driver =3D { .name =3D "adt7462", + .of_match_table =3D of_match_ptr(adt7462_of_match), }, .probe =3D adt7462_probe, .id_table =3D adt7462_id, --=20 2.54.0