Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3118567lqo; Tue, 14 May 2024 23:20:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuaFauoHzNmhyvfTo7/7w1P+eE5OUG/gaYngyohUArXKX4YhJxh+XuQ8CMZ+Gn3pWs3b7LlzTvp9hs0UsEa+dmtdAwGOW6qXTy+0FDNg== X-Google-Smtp-Source: AGHT+IGBq1HqooUQw8GR05zyDZ4clQiH38YovrMJlBnsRCB9HyyMQffiG9rZJ85p8TFHb1yNxwa+ X-Received: by 2002:a05:622a:2a0e:b0:43d:f860:f72 with SMTP id d75a77b69052e-43dfcc65320mr267323161cf.6.1715754009081; Tue, 14 May 2024 23:20:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715754009; cv=pass; d=google.com; s=arc-20160816; b=Us8AfosPaPX00t3TtW6RKW64U4KWLvlvhYOXpbYOOIgJTLPaWDtFJyd+E9ErbM7CNS PAl2P2kI+skw8wPDP8hIbFNYtxxK/O30oZMXYJtx/mONQezJgjPTB803rq05oNe/cas9 iKao+k3TbjylZWcSZOY08FVULiiBXR+kCd4c3cd1fsKqJc/7ro8TgKpfWqVWQwNTxrzC pq6zHOa9R6cc72jHF+a+XUdSHuFf4APfzGZm33VF0r5TmTi1LWXC0XAnnnYS8gURf/7c iowNJ0yAWDUTxNF0KSiggZhOAOxBs3+peIKY/0X+cUM5Woqc+OI6R3ePSS1Yiy+Q7gtz zBBA== 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=DXBk01eAYtbUsAxjAP5iGYBzxJrtGgpchSjyGGop1NU=; fh=1y5QYiuMPEy9ilH/Qvl2G1SYHoQisUgBe9Ax+cqFY5I=; b=AjsiHCifAJ8DPf5midGgD8OlxN6LoXDqwXHbQ5C/dkSMlEvPrhePaZdvRU7UraXeDW d3kU8frvGCmOlrHCzC6d1a0xBH/eSr04usH1AzAze26uYmlz0FoIIq+pz2qtD3qPr++C x7ZanHo+KkzLSYKz3ZsOZibQLUnUV8PtXx/us5joOaeFBBZRdvCfw+LLnzaVKDSvMvmz KE3GB2O0w1dc11pyIA2rHQJwqZ0rgb7dJsuBEvBs3kSsWsX2X/iWjbyGxQ8DKeB9qksI uABYpLEKK9jJ0H8FND7UL1D0xNv8dfmyJ4iDctRRKpjVqeJ0wz8tlo9eBPpk0/Qg5VfN 1WCg==; 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=bkpscqxp; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179514-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 d75a77b69052e-43e2c917addsi22440911cf.200.2024.05.14.23.20.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 23:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179514-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=bkpscqxp; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179514-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 CBB211C20DB6 for ; Wed, 15 May 2024 06:20:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 227533BBD6; Wed, 15 May 2024 06:20:04 +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="bkpscqxp" Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) (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 C06E13BB22 for ; Wed, 15 May 2024 06:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754003; cv=none; b=tWj7DW4Q95J/zlZPQbyDwflgN+r5uuvdjwTR0HvY/fp4mND9cHawzMsp6e8w1hcu+lxaiKnIm19maoHlr4+ApETu5QXmT9CuRbHFOAnfZE+7Th73QKD2v7Mn2hxHL8oDJvTio7f2moFpr1IE+IEAnK0Tln+yIdu8/Nsyzz03VXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754003; c=relaxed/simple; bh=UyrQgiGxpVTwgJtSrbHRBf9lE+OZP6cY2tzhDaA4YlM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RXYBeoBfFzYWtx1xvTSR07NoTCdaudjwOZUMm29paASTYUwPru7v8r8hZgJdZyIbsdCTWBBsts80jdpVTAW2zI9h7x+0qoWH+/T7S8vsmPeTnfYV00iFFulZkc4KXlPyUf1vi8gC38oO1KwejMoG8rrIgMLRAvNuZsxKYuESDs0= 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=bkpscqxp; arc=none smtp.client-ip=209.85.166.182 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-il1-f182.google.com with SMTP id e9e14a558f8ab-36c90b7f4a5so22487205ab.1 for ; Tue, 14 May 2024 23:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1715754000; x=1716358800; 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=DXBk01eAYtbUsAxjAP5iGYBzxJrtGgpchSjyGGop1NU=; b=bkpscqxpboI0T8i3xvZR8yiGwgMJq5IXEBKUfkc6jsgH2QQVDn7im6PXOqmyngrZme 8Bt8ZQ7yCgADITlNp5E9aAXPY30MFlv/wP8X5Ef8eJKuw6L7ciFuhZn9i3OBqAcWlEmc 2E8XdPuXfKvV8eouyH52hY/1aqpvJzYkuVm78idGZ8RQ58dvAtWWlKYP9urtSuzu+E8H 9YG8H8wtfQRGmEbyiuM5xHfG5Kiv11hYLyVCvLlAsxRohktKfpcnPrJb0Md7TiOzNL4E 5MlZxBcgPVxv6B3rl3dXFKecB1VdTs8teWzHZr+eLREVAeLceO395wiSrImmOjNe0K6W H9qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715754000; x=1716358800; 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=DXBk01eAYtbUsAxjAP5iGYBzxJrtGgpchSjyGGop1NU=; b=CCbZ5RHSeOre/5wR5fdD3ajFkPxEKAl2+pxgP37zwtaKCCPZUjNDIz5YRrodB4bNlJ OjbSO1iTPmKQn8wzGNDKmZpmR+05/1SJFH3fWiXdtfpwz3xlurhtFZgDQZ92orPtmddV K0nvLIWyf2P7bhtvDbLfNM+klvFzWOYTbP5lpXM3KDFgIK4cWfDYay3sYh1CtEGeToRw nADwiJCKMqh1hqCdQNS5TFlkQoNddYPGYnGW6NCzk9MIK6wdte1iKBh9tnxBvn4qVC7R FeHN/cQQLhATWjISfc+LDPJHudYfiFcbQiSAqWvMnUwEXAreabIAoOD9rP5JqMDGbVg8 clEg== X-Forwarded-Encrypted: i=1; AJvYcCVZmK96mt+w/xVMyYRj0u6CErRLgTsh6U5iK82NEBZbmCFvrkdT9k3VSBUmAyK+5UuBBQnM52c2rV8C8d9y6i66kjFg7xk5bQJWc6Lt X-Gm-Message-State: AOJu0YzjnM1hzGoRScKSgbdT4+dgUym7Ic0Fdc/mU7fJ6jHCnEODN3Ks FkwKirb1Rzcr9Tcq2+wGruvqzM9ORpixiqoGmlVEK7GfJuRTJ7c6VM8eCRRk1sn6jKFrBHLc4h8 GYzHEZIaMREwdp/hEH1IS/5la01Ot++auqGsiCA== X-Received: by 2002:a05:6e02:1a01:b0:36b:31d2:f148 with SMTP id e9e14a558f8ab-36cb7757227mr129234915ab.15.1715753999877; Tue, 14 May 2024 23:19:59 -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:49:48 +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 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. Thanks, Anup > --- > .../hwmon/sophgo,sg2042-hwmon-mcu.yaml | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/sophgo,sg2042= -hwmon-mcu.yaml > > 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.yam= l > @@ -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 > >