Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp13845lql; Tue, 7 May 2024 08:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAt2gT+89n7Ir4rGLJJlL5Vt8sn6gocoutsJ9M6GfamZkPTRCSO4x09748zOCx+ezcojYcaw8w8qKH9D8RiVBQXoNiJLOYI7ge1w3A/g== X-Google-Smtp-Source: AGHT+IEidRT2xTh9v+Y8wFui4hF+K+nb5eea0vowwGwgjv2X6FHieWETEt353/BFAQdIV3a440wv X-Received: by 2002:a05:6a00:1acc:b0:6ea:c5cc:f4d with SMTP id f12-20020a056a001acc00b006eac5cc0f4dmr13413533pfv.11.1715096003865; Tue, 07 May 2024 08:33:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715096003; cv=pass; d=google.com; s=arc-20160816; b=o+DSm3UJ0CDmhzCZfi4bx078YaMvt4/gFBKtu/fdcuyIJ3crBPR/OaAILfgZH/NMPr KAz6GoV1lFQFWnglrtjamD8UZtuxLtcbF4NgDdn4XQijQOD2N1Nn92bLVErzwgStpfMh nnCHOPOzL9xDsuzf/AF5qBDTpGf6ehqDvq2GwcUgvUsoJzyILgEiYLVoc0kscSD5FSf4 PXlyeaiYIJ/aA7ZqjmI2bqOWdNDiuDShk5t459uWgjWnt8kmXMQ2bUMIVUzQhATB4MNi YEYTeRETIxg9e93LTq4hurFklkxy1SdXwYjIZKZhJjUVmxqnTmxBgtovxGOtMKsm/0jj N70w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d8ENhySNhK/YH0p1yULmL4jDuhWKdYuxGqwDcrt9Jqs=; fh=F2dqt9qR2pdRpXD6OKf73q2xw1hkWeZDUylzjZvACJ8=; b=a8zZUmZMTVmIfuw5CPZ1i5kscG6J9OxGtFCQPtuEk91qAuRv0XFuLXuifh9CzH28NZ sISHc/Yybxvcbw2+EIPnKgH/ZjREh+LlRb+7Ai2+H3q6St5Wuzp2Sv1FDj9kcHkaXV1Z u2i3yyPpYa6jwYpk2gfzyLOJLyth0SFigU6VxPKIqPq7wGYS2oGzVJLtQEHaFIFbmiKx YC4uZhfFKLeSMnDQKZ+mPsrVnB1CrSzbiIeNR4sM2mNIMQba+J6uM/fbixr3woR/acC6 xxmjRc0dhBBZwtamk+QUm2Z6CnMH74fMvgvrN+Nhcbv/Au21Zx9lfGIzVi/wzZmQ633I 7WNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKhScJgr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171701-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h12-20020a056a00218c00b006f45dc43fd2si6659945pfi.270.2024.05.07.08.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171701-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKhScJgr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171701-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A156285D34 for ; Tue, 7 May 2024 15:33:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F09B16ABC6; Tue, 7 May 2024 15:33:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HKhScJgr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1BE521649C8; Tue, 7 May 2024 15:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715095994; cv=none; b=GRM4KkeUFMKUrgw0I71HbWGDuDCnyPryHn1K6QQjvHCpfS9mAu/JwyEr7JkNNW5LLaecvyvxfj7Skr5B7ja277Y8JVcYlS3AcIB8WaLE+QWdqQEx/YurAIu/wSkt3YLL/Jr6OAGHh1aqFjHLt/85jfhxmHOXFlUwwtzJxoTvo4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715095994; c=relaxed/simple; bh=Uuw8yqLX+zNb2V3s6736daoABfNqSC9H9+VYeozPtso=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M5kciwYiw8qyAjHh7O9SQcti06g2bbDmdKo3ob9NZtNrCsjWmFmX1cn1PupSQAaIqBIhiH8gmDmsCPaTnxLLzQNJdg6GwZBtZVh7tf+L9AejiJt+0sXWzI93reNXtW0u7MYDAW4SY3DDcm5eOVDv/ThUkqplF8poslGpF1bOhmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HKhScJgr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFABAC2BBFC; Tue, 7 May 2024 15:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715095993; bh=Uuw8yqLX+zNb2V3s6736daoABfNqSC9H9+VYeozPtso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HKhScJgrTiIWYZvifQK32YrfBrp/LH9y+F0KXy68fmKvrfE3fbmo4t7V3LrPAmUiQ 2Duvw/JI7QJX9gONxzmkbiDr0MezUwA6sIlnRl6T+GuKskZu17FPf1vTxvoz0lTSiS CWPEOwSQ3axTXCMmf0qqvRRJ3a858uEa6yxE5rIzOX8/kDcxVk6/UFCg1O2ZHPDBtU zK6I7yzqBaUTC5jCA0F4Am7yEy+qbv6qdPGaHM7utiWu3+2m7GyxfDD7eCefVMv34y wA/9vCbiWVLxLoFuwU4YIF+Md/1x3n6cuqDdhvwUTRuSIDQYOKA5PgWX8X2ilti0v+ evXHnC6DdCq/A== Date: Tue, 7 May 2024 16:33:08 +0100 From: Conor Dooley To: Inochi Amaoto Cc: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v5 1/2] dt-bindings: hwmon: Add Sophgo SG2042 external hardware monitor support Message-ID: <20240507-mantis-rotten-f4be1961b3f2@spud> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="g3PGoBcSoUn7NI8A" Content-Disposition: inline In-Reply-To: --g3PGoBcSoUn7NI8A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 05, 2024 at 09:18:52AM +0800, Inochi Amaoto wrote: > Due to the design, Sophgo SG2042 use an external MCU to provide > hardware information, thermal information and reset control. >=20 > Add bindings for this monitor device. >=20 > Signed-off-by: Inochi Amaoto Reviewed-by: Conor Dooley Cheers, Conor. > --- > .../hwmon/sophgo,sg2042-hwmon-mcu.yaml | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/sophgo,sg2042= -hwmon-mcu.yaml >=20 > diff --git a/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-= mcu.yaml b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.= yaml > new file mode 100644 > index 000000000000..f0667ac41d75 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml > @@ -0,0 +1,43 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/sophgo,sg2042-hwmon-mcu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo SG2042 onboard MCU support > + > +maintainers: > + - Inochi Amaoto > + > +properties: > + compatible: > + const: sophgo,sg2042-hwmon-mcu > + > + reg: > + maxItems: 1 > + > + "#thermal-sensor-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - "#thermal-sensor-cells" > + > +allOf: > + - $ref: /schemas/thermal/thermal-sensor.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + hwmon@17 { > + compatible =3D "sophgo,sg2042-hwmon-mcu"; > + reg =3D <0x17>; > + #thermal-sensor-cells =3D <1>; > + }; > + }; > -- > 2.45.0 >=20 --g3PGoBcSoUn7NI8A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjpJtAAKCRB4tDGHoIJi 0ojlAP4qRojNEmxLVCu8LiEozoXxSgRaOnYNdn9jUxygr7Q6ugD+LYcUcNRZ2116 IeAQnV4lJkh7RnQwP1vgqhqwkgq5SwA= =mbl/ -----END PGP SIGNATURE----- --g3PGoBcSoUn7NI8A--