Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1855100lqa; Tue, 30 Apr 2024 00:47:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk7PGgxv8NqELxq5F8x4im7cgm6PmHM6lzET9cOmj2E8dZfo9X7/f2Gj5+RqPh6SgLGrchFNiytrlNDJANv7+o6rV+xt+vQD6U5atoYA== X-Google-Smtp-Source: AGHT+IFHn/F2ApdsMCGZ4npxHkTisLtKOfwD/rG9tFGNWFZlJfg9jMXF/Na4n66ACS8QQSMxwU1M X-Received: by 2002:a05:6358:52d1:b0:18d:f1bc:904a with SMTP id z17-20020a05635852d100b0018df1bc904amr1427140rwz.9.1714463260240; Tue, 30 Apr 2024 00:47:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714463260; cv=pass; d=google.com; s=arc-20160816; b=y/x59S+sHoPX6kgT6/4fsJIGiOF0x8oaA/pIq2xuvpE1PtJ4uwyBR74028HnJrxqD3 RJy9S2rqGnsK8o7j0n/2mwcLkimXavOuydRjoUdsdA9dYNhT2HQOIN2YVR6smwtBLc3Q ea1GS/zmSZYPowJ7zl3xgV3iWABPyuEiJEy9RSpgLr6zOljsf5qfx4WWjvVmcOHxBq9a 1BaXrQF/xt2B7DJSaKyU6wQA1it29mk34JUo9Pnshvixs1MItt0DaT+rxjKH8BNnlAnx fox7l19GB2op9Si20zkdcErN5t1EvQ7Y8H8s3mNMjVPlosNnwIlsGChI+rIk3+f1tJav pYdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=utLSKciTHbn5FLeuVtzdFMJGAjPHuPCtmSJOT1T7gfk=; fh=85j8eYzugUX7uFautT2Iai2orDDo7gKPKIrLaf7N70s=; b=x0YKO8QteGNOxRZ1MfhskUWNlFSaYeM+VnR8B8Tk+Qe4YbOR3R4WNoU0Svan8kigX1 jtxOi0Sx8pztoLjSzf9/lK3mHgImVeQSur3GcQuKJPaj4N0oAasJKXN5ng7CzX0A+D+K kWoUkpBKf2h9wibtchBFX8iu9HaYcG4fwfqU15IiFImBOHSvC5KuBKuQqmaaqx7hZ7oJ w2g7RfZay70HyAfa8o4sm4HTRkUjr2qggfbAYjap8MwC8WgydrJF2nXGxx2DoalAOBiX X1zYDnSvhvK+y2vepqyblTyA9B553cfTDLbGbUNUW+2yVN9YPzMwEADffKGmZ7ZJDEyZ 2AFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lmMlvQwV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h5-20020a655185000000b005fc8d3e6851si16998569pgq.846.2024.04.30.00.47.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lmMlvQwV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163492-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B838B21D80 for ; Tue, 30 Apr 2024 07:47:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16BF73B295; Tue, 30 Apr 2024 07:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lmMlvQwV" 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 1D0BB3BBE3; Tue, 30 Apr 2024 07:47:23 +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=1714463244; cv=none; b=LaQ7rOsILH99W0sxyTRwT5iWJUcDrg6Lz0sFwDH3PPVXStYEkOMG3EfNfMA1+KxYMOQewTDZ2UdXj+ODU2IHU6iIsB0bm9SoHxFF8tIeLY3F03dXF1KkzVAfLBlX8/NVxifG1oe2ZYr5A/OVbsrY+/f+onNhO8Z5ylbuKxJU7Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463244; c=relaxed/simple; bh=W1sgp1Kny+KPNJGW+TrFDyeFPETjWXqP9cbph8sBSOo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W5/kmPl54n2yhxm6/2eh1yAj40jy83ROw0jJ62Snbu+6szTcnEQ7JXGi8ewwb+2lQVToNkGxH+6k75mW2LH7vFOSQiJt/Kf95mRI8eXxvvwjtGpW95UpHAy36oWRTkcZ+E4K743ps3Wfzh/D2bQw7mnYQJ7IBx9xGaMlQzf83gE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lmMlvQwV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DBD7C2BBFC; Tue, 30 Apr 2024 07:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714463243; bh=W1sgp1Kny+KPNJGW+TrFDyeFPETjWXqP9cbph8sBSOo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lmMlvQwVXfdPGcVETz5RhbXSIGrkn2xl0EQw5Lvwz1msSMReviSp8uUIhzRP5SdXp x3M8Ip98+lq7ej/RaBpiCQI5t1gpnF3AnZfNyqqGOstLaVKZe9imQtwUUu6v+ILvjy PWS8cYBKic8uipwshMtbluIY3SzhVvz6Fo+Wb22gWWO0bhR7fW/sf6NOXhEFQn+voA zi9X9hXX2I/daYzXpynpmh8rnlFalzNB4pXbbDv0chjqlwxgQNs8OuHGAttRh+tlZe Phs/kNyBa/m4u4UT362lcVCernH9/LSqLYqbN3RDfuHyLHLHYfh+tbtGNnKW32NtO0 f6gjW+snMccHw== Message-ID: <97886e14-f07f-4175-8e8d-2d70c2daa907@kernel.org> Date: Tue, 30 Apr 2024 09:47:16 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] dt-bindings: hwmon: Add Sophgo SG2042 external hardware monitor support To: Inochi Amaoto , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyD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-8 Content-Transfer-Encoding: 7bit On 29/04/2024 14:03, 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 > --- > .../hwmon/sophgo,sg2042-hwmon-mcu.yaml | 40 +++++++++++++++++++ > 1 file changed, 40 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..64a8403aaab8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml > @@ -0,0 +1,40 @@ > +# 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 This looks like thermal sensor, so you miss ref to thermal-sensor.yaml in top-level. Just like other sensors. > + > +required: > + - compatible > + - reg > + - "#thermal-sensor-cells" > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + syscon@17 { Are you sure this is syscon? Title says mcu, compatible says hwmon... Best regards, Krzysztof