Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3118932lqo; Tue, 14 May 2024 23:21:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVva280tjHtKJconb5tzCzWe/m+BrAab0Xrkv3WUbHxXwRrplbPMAwBtRTLUpLpZM11A/0rmzuRB6eK8JBbUHZ3V85UbR7GIE6ZlfQ1sg== X-Google-Smtp-Source: AGHT+IGQEYC1Y2SQAbfWZHgeZWf/9a+MYG74QDLV6521Zz+X/5A05ZkDgZdMlayIX5Osf0GHp6Db X-Received: by 2002:a05:6214:4989:b0:6a0:c242:16d0 with SMTP id 6a1803df08f44-6a1679a99e3mr247379806d6.31.1715754093076; Tue, 14 May 2024 23:21:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715754093; cv=pass; d=google.com; s=arc-20160816; b=Yupzmcp+E08dbZuQ6rD27RDS/C+rx816xH3J7MUGOPrTZxbM4iBQrgmxl8VXFltoe8 TlABgofwdjGuNS/aD/OuTr1MXsegb/ivzMJGrnjxhhkp3ywNzo0YtsCM0pBpfPWHgoft 9SkVzvY99YjMbzHsYN2Fh2MbDDfoPP9NafRlb918oOkUIHyUQ0+5PWOxhsh5qtnmQwgf 5xNCNy37Q9O0+ftFzOGxRTAxsOSDiOW9FfWBi5iPsPMxTP3J4/M950cUrTYgMa7rVCJt nXXro+Rzfe1esFhbrskqz1wngHFcWm4YjWfuDbqkxUB7QfrY/ur4xEndDR9JGeWeudOj fT5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=pewL15YSqYyntUzZ2YESL84hcx8HG85YGqfAIHHWdj8=; fh=resr4X8DUpCdiZ2vcv4+fJfBUK+weQLqqDa2RJE/jnI=; b=djrqMH5Oj7YBd8tkueLYUlHVZL0egARGpO537fzdcPW81osD9LgC3CXBZptX/rijnS WWwcWZ6kQd42pWOAbeGJ9vdXCQgvYsEBrSCAEvqY4V2sAEo9Lx+g2EzWNFIa64FmiO2r s/OsG8wuhKzIJDrEG9eBbiW+H4b9JQEOmaQlXNR3CNMSNqP+iUdUyk4aE32urMxHSO7k 3qEgU/scDEgJEAN06TYkW1OGuFMRTwbweuILw7gKGBtFJV8n7CK+WTktYg8a3Ync4eio qiIfobGcuZ9bch5ahEGq8efPYgzSC3lN42gxpj0el0ilLQVo5RoJFj7WMRA/ZxFgBOI4 q49A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b="Ao+R/+i6"; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179517-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2fd96esi134763866d6.535.2024.05.14.23.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 23:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b="Ao+R/+i6"; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179517-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B3E961C2196B for ; Wed, 15 May 2024 06:21:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 624683BBD9; Wed, 15 May 2024 06:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b="Ao+R/+i6" Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 2CD8F3C488 for ; Wed, 15 May 2024 06:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754086; cv=none; b=G0mABWUUv71+6UFsfDy0jaxgHu3uYDylJpEIIPZ7oOxPfdU44woPCmOyqOnPuHATgNXU27nyB0vRua0oD3HirQjQUtWkBvHZ3FrJOXMQVUOiYJ7C5YaN31OWT2/VJl2AwR+iC7gBNdbSRJynxLQGxmWYNmxZJhzcNp6TdCLl3Qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754086; c=relaxed/simple; bh=kcQJvLCc1/I2+fl8rDk29nGaXS9kvZzyvViOdGCrMAk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e0EZCbZZ/iENHvj9n67feHwzTfJp0QYjIYNpxoB5Hb7GlZs/3UROtx0+WnXYBEz23mhfXdtuzbY72Gul9TMKjeTeSaTpSOVUUKlRymVrvRz9TJFTNsi1U1/C/LT0FgA+0UQZ1hS27aJAs78p9MfH06cwYMhpTpnLZuaecBgHAIo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org; spf=none smtp.mailfrom=brainfault.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b=Ao+R/+i6; arc=none smtp.client-ip=209.85.166.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=brainfault.org Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-7e1b887c488so158339039f.0 for ; Tue, 14 May 2024 23:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1715754084; x=1716358884; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pewL15YSqYyntUzZ2YESL84hcx8HG85YGqfAIHHWdj8=; b=Ao+R/+i6Qa7XP5HRhcm4D1cueKOHXeIy9I4EoO6b5srOFqlnJt5PQQypmSL6jqJ/BS h2dJYYjDahqeUaOpqE66CVN/adaH7oLwU4M+Re6ESrrikxu/UasMYxrd8n04E+gc6ECY TecwGoyeY4KSWcD1WygOmFAZnRqByaDmJHO1ycSf0Fibpk8GktwRf9QiO84LjIrCyNMD pZZInTy7peah/wJQh9uMlW3mc+nsA1p+cPldMFuX1A5MpL0kyQytc6mN5O9LmExdFd/K 4QqvfTRuydVL0i9JR1OHzkwRlfqUbizFdF0/6ptnJJY8BnANfh3oAlPyIXIXUjeBKz7m Yl6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715754084; x=1716358884; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pewL15YSqYyntUzZ2YESL84hcx8HG85YGqfAIHHWdj8=; b=fy2oC4kYB+ps1xjlby/J8QqQ/C8DQFnWUjgtHxILkVlDOf60Kqm7OF7+DXgu0DIW2b io7wCvZECfIll5TsFuGrQm8niNiRdBDtY1iDhLF4A6OZl/yLIpEDtPvCEjVBYfN8XrmZ zqKJp1rFi0sxNGBHhP83zci2zuaFEZJDo8FDF4tbc90fULKhV4e9aMUmqoaZfjkq62k2 jdBH9StGWs3hciv+fbCc03I4KDrYX92sLSjG3jA9RDpnpqgpRNEGSCzkJ5BEBQdZDveQ JZ7Ga95Gjgj3gtdNJ+Kh8mLKpkYjVmOSJw5bsnJGnh2kzHqQjKLSthMNXtGIyNJCL2Qy 1+GA== X-Forwarded-Encrypted: i=1; AJvYcCWQJqxoy20rJeYh6Vgobext8bsTGn+ahgRUnv/uFXjhuAKqidtr1kDAjsEiB8cz7WAXcsUHddj4w1uPv2q+a2CLhv/KhKf2bZoO1H13 X-Gm-Message-State: AOJu0YzOauh+N+AzXdG8aTsluC7SC46L75IlMyGlChyhEumCA9DO+ewC bSrpZs4Zi46b9UXeTjk0lxrfwkj1QMFfBWNWBALmwne+JJmR4ZU8LuorGxaKW9TuIJi18RSFRZg 6/yaXPSwDcuDtCljo6FQM8Jd8Od/Ga335xx8T8g== X-Received: by 2002:a05:6e02:b49:b0:36b:aae:613 with SMTP id e9e14a558f8ab-36cc1319624mr127252835ab.10.1715754084373; Tue, 14 May 2024 23:21:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Anup Patel Date: Wed, 15 May 2024 11:51:12 +0530 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: hwmon: Add Sophgo SG2042 external hardware monitor support 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2024 at 11:49=E2=80=AFAM Anup Patel w= rote: > > On Sun, May 5, 2024 at 6:48=E2=80=AFAM Inochi Amaoto wrote: > > > > Due to the design, Sophgo SG2042 use an external MCU to provide > > hardware information, thermal information and reset control. > > > > Add bindings for this monitor device. > > > > Signed-off-by: Inochi Amaoto > > LGTM. > > Reviewed-by: Anup Patel > > Applied this patch to the riscv/opensbi repo. Sorry, for the noise. Please ignore. Regards, Anup > > Thanks, > Anup > > > --- > > .../hwmon/sophgo,sg2042-hwmon-mcu.yaml | 43 +++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/hwmon/sophgo,sg20= 42-hwmon-mcu.yaml > > > > diff --git a/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmo= n-mcu.yaml b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mc= u.yaml > > new file mode 100644 > > index 000000000000..f0667ac41d75 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.y= aml > > @@ -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 > > > >