Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp797241lqp; Sat, 13 Apr 2024 23:03:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqTL8BIbK3tjP/lMcoBJKs1Fufy/mQJpnT2l9deKFHKINERO4NuVctq2j854b8ypip+GHMIUCSZtmK8+IcqxThjOWXkRBCgHcpUsFWZA== X-Google-Smtp-Source: AGHT+IEXcGKpXA23rVhpiltUQhmW0w712T+MlBgErAWnKAYp+zuplmPF/SXC8z3VggGoP8tT1qeh X-Received: by 2002:a05:6a00:178f:b0:6ea:f05d:d2ec with SMTP id s15-20020a056a00178f00b006eaf05dd2ecmr8892022pfg.2.1713074636768; Sat, 13 Apr 2024 23:03:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713074636; cv=pass; d=google.com; s=arc-20160816; b=P7NCjTaDD0PsIO+DI3AjpNM8n6igX/Hi0Jsc1R9bBNPEHgVyogmKHa55M2JmdUQBNB JRvRyo+UXq30ttR/rCwkRIg4/ibbXKMG4SFpkFIhfF0ZEpHvm4rF/9hiiZLBlNFaOfQR 4pRLfLvyEtMEtWI5hzB7IWV7cF6JEi61TwRaURNBnDodZ9TfEIt2arZtSGIBxBDmMbGZ 69A7LqxvuVnaAhOmz/oIawtihocxRD1+jriRbummPhWqYn+QVmHqv+bnH+Cj5zUwDlhk FMpeeRjHT2LG53W3tO8QYS3VdmrK5B03vwp0i3D23ULhNebnMvb8RIiB5crk6O9xglZb 4y/g== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=EzRBRhOqf4kIlrFDlNYOpKwdTyggV73pXH8/XozFkxw=; fh=EBvDP1iswaNI53ZaY6WgIOsMkyhhaFivRhcs2gRjE24=; b=uTMIn4ClEvCd5ngrRdKerJ2dwFcGb3iG/hqFFJmykatYCgGjPCxkqzcAghGRvYtWUP qTYsvWFmQUcsNfBiXaZCqbXI7XrggAzloEdS7JxBDrmTJnK9eOk1robg9Qmm9Sh9irP4 YMBEt1tmsuWeykoN+z4BQihCyZbdd/eRt+I1mOXuos5P3WIjYh1wD60xiOYqlid3a1gg smcJziTDB8lagY9LKGwfCeSkpdKW2lQemZZS8YCEbocepQTORoD6eFQiesIF/QV1wLj9 uGGwF2soUm75UtJpAFdZo0rUYx0Y1R0Fq6KmJmDaXhkKuQkJs7JagiEzA12HWuJgS8Vb YgkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SVPr+EYU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p13-20020aa79e8d000000b006ecf7f19df2si5986936pfq.187.2024.04.13.23.03.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 23:03:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SVPr+EYU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 A6577B21327 for ; Sun, 14 Apr 2024 06:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D8F21C68C; Sun, 14 Apr 2024 06:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SVPr+EYU" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 A8960171A4 for ; Sun, 14 Apr 2024 06:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713074622; cv=none; b=pSq0HoIlAdr95soU+e0qzYD2IpD7+q9mxWazAMYGOr2cEgs6Ar7lL0P9lyOone5fOzG3VQpdYWfUDIfFKPS/sS2uhsNeEHVhXpzOXJpmgqGL5DNSyMgzMJQ3e0rnXuO0898V9624UDaTmWrlLfqRJ/KvEekio53uDRp/e45gluE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713074622; c=relaxed/simple; bh=63FZTmyc1t7y7aVYwheuDBz8DDayrp+mjwiukQLuVv4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UBuvD9Dg5j6/GHLzzLFp13CSEX942Mh/VtNzD3ZXIh7Wwomuh3ikgZVWUnqhjUkgylC0oyvi8+u2iv6WOfq/u3DBOfxWFyFE8tTBRcc/Rp2dMSoA6oBXGP3XT1uQ7wNBu9xOZctjq5bGMiigb85TirVg5ZfcHh2FGt3z2xJCuEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SVPr+EYU; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a46a7208eedso304917666b.0 for ; Sat, 13 Apr 2024 23:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713074619; x=1713679419; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=EzRBRhOqf4kIlrFDlNYOpKwdTyggV73pXH8/XozFkxw=; b=SVPr+EYUx++2x9QI8Zw3MzGK2h7t+prJ1i9im4TzrSjogi3YldIo4Mno/xKPiFyF/4 hyw0np1elXYFbOldGyftoAlvM2LCAzu9TfUqPcJLN3flP/IMju1Z0HGCt/R9zLeA6zF2 f5wmbhDysFjMYseXf3H2naLflsk1K6VzJyhFR7KCKIcfqZojUWBQhk+WEffOT7waFy/K ZgUIaokbAwjd3Bvf82aB7uM7qL/jY72xvkiJE8R3e4edcN+XLKxgN6gKkAUITv7+1oX/ ulPiwZA4PqzB3bn74WtJ705fu7rOcwMG1s+rKi1rGi5norjKuE9nncL9u7ryR783OXiA Q7qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713074619; x=1713679419; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EzRBRhOqf4kIlrFDlNYOpKwdTyggV73pXH8/XozFkxw=; b=rhIjUhsEqAbiPSFhox5OkTTxoYCNp36s778JqFIMEpOTGGXJbUKayhy6cU2XZDastU anhTfe+Jh5V/na5EOKJBHBrR9nPqOj+2MfxMloWv9UeKcb9+60gOVji6gqCkIh/XN22I xeQMTDYaRwBdCYHOzZC1jNDUX2zQSZwfBmAJPOK/Y/G3SOfVzFe46iuHWJDBTnahyUQt Ng04PN2Hq171CevXv7gOvyLWbBZ06ArVa675ABVJfhTiCN5ilUp4PXKHxhat2cNa6zW9 XAhBCuCmyJPMGDNzxydWqDqTeJNUcKvXenfOwlJRUHs+xnRSmMf3HmAVbCG0UgTPy7Ms FY+Q== X-Forwarded-Encrypted: i=1; AJvYcCVj2ot2uS91Eg0ZD/k22NNzyls2vRU8bRvrQWdeMUNl1wGUo2EX03uQV5ZLYoUqcqlywbU9uDDzww1fbctiC3zVqa6SrMKyb8ovLUuO X-Gm-Message-State: AOJu0Yxec3uA+/myNES02lO90ux617veniQyifwy4iFCi0YVncdGeNmT IB1yTjv+56v6wDuVigXgw0pJwJWhgvOmWUcwtKBzQ0S74Gm1e53d+C8g3X52e2c= X-Received: by 2002:a17:907:720c:b0:a52:5798:971c with SMTP id dr12-20020a170907720c00b00a525798971cmr1039294ejc.8.1713074618228; Sat, 13 Apr 2024 23:03:38 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id jw10-20020a170906e94a00b00a523be5897bsm2448748ejb.103.2024.04.13.23.03.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 23:03:37 -0700 (PDT) Message-ID: <80effcab-74b8-4e15-a4db-9982b000b6b1@linaro.org> Date: Sun, 14 Apr 2024 08:03:36 +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 v2 1/3] dt-bindings: hwmon: Add maxim max31790 bindings To: Chanh Nguyen , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Justin Ledford , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen References: <20240414042246.8681-1-chanh@os.amperecomputing.com> <20240414042246.8681-2-chanh@os.amperecomputing.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtA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5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240414042246.8681-2-chanh@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/04/2024 06:22, Chanh Nguyen wrote: > Add a device tree bindings for max31790 device. > Nothing improved in commit msg, where is the rationale of split of bindings? A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > Signed-off-by: Chanh Nguyen > --- > Changes in v2: > - Update filename of the maxim,max31790.yaml [Krzysztof] > - Add the common fan schema to $ref [Krzysztof] > - Update the node name to "fan-controller" in maxim,max31790.yaml [Krzysztof] > - Drop "driver" in commit title [Krzysztof] > --- > .../bindings/hwmon/maxim,max31790.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml > new file mode 100644 > index 000000000000..a561e5a3e9e4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/maxim,max31790.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: The Maxim MAX31790 Fan Controller > + > +maintainers: > + - Guenter Roeck > + > +description: > > + The MAX31790 controls the speeds of up to six fans using six > + independent PWM outputs. The desired fan speeds (or PWM duty cycles) > + are written through the I2C interface. > + > + Datasheets: > + https://datasheets.maximintegrated.com/en/ds/MAX31790.pdf > + > +properties: > + compatible: > + const: maxim,max31790 > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +allOf: > + - $ref: fan-common.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + fan-controller@20 { > + compatible = "maxim,max31790"; > + reg = <0x20>; Make the example complete - add all properties, like clocks, resets and any others which are applicable. Best regards, Krzysztof