Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1174641rwd; Wed, 7 Jun 2023 12:08:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4a8rLwu1DskRusfv7wz+YYlL8B+AGwQj28VeSlC4M1FZidTU81oGKqKsJaYcSaDqmcu7jc X-Received: by 2002:a05:6a00:3a27:b0:65e:ec60:b019 with SMTP id fj39-20020a056a003a2700b0065eec60b019mr2861769pfb.25.1686164903917; Wed, 07 Jun 2023 12:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686164903; cv=none; d=google.com; s=arc-20160816; b=Ujsgoiof1KT1zCJ2bCz01IJ8bJQW5qEBp8nL+62tO9izdoq2NdfxjIA98q95Z9PgGs LL9wLMmsSzw9h2VQVahjcSi2htkM18DVlftRUCypnxpjk74XkjFIxnOMmHRNOehN70Fs A5vCI/c/W9/uMYs5pPESAVKAEQ3m1Y/Ycr7dBfa70Y5uNmpgufbZ/Ogj7PlJEvMndZtP bjRZzvkLsjFhu40Hgk741vwOzU/wKxniITUEReJlOifJmX5FHu6NEpJLGILYUemfEaTO ziw50pvzXFrTzIKMktZIcBfLV0rybj9b8uYnj9sg/zetJcTvKXw+jQHu25Uq2lWTCmbG KP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=f+spCigXAQRIdqC9/nyy7/kZk/7sQAU1c4Tph8TmT54=; b=aJFObGKOOA+CxUAjHkENCQyzCQeV+wQ5uzZhjIKxvnRRQ9GhrSAQQheeBP61KeaRXr yMt+jvQ/TF4YAKJ2Gf6SyM1g1zd7q1cvjz2IIGDr3hzb2tTOI1v8kdSUWEEuTyftHntn k1/Z3ZWuaIT0cjJLR2jlTS9RqZ2phL6mIZCk9LSqGrYPDfcHOqb/1S0MsMV4LtSVMsPS 9/hB4f6EccxSXNpVdWbLLkl7vv2qZOFeDLRSL97es61UMA2RxbWZwrK9TTs3ahdb+FxP BZ8buTwLSLKJfGnUQ9nFbbrBy/ykHlG3GqU5okHyePKSgRV1KFA8uge+HzAIH25XDkyx DF5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LT0kG2ji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020aa79562000000b0064d740b7459si9287619pfq.102.2023.06.07.12.08.09; Wed, 07 Jun 2023 12:08:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LT0kG2ji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbjFGSZX (ORCPT + 99 others); Wed, 7 Jun 2023 14:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbjFGSZR (ORCPT ); Wed, 7 Jun 2023 14:25:17 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E3E213D for ; Wed, 7 Jun 2023 11:24:55 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-974638ed5c5so190047966b.1 for ; Wed, 07 Jun 2023 11:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686162292; x=1688754292; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f+spCigXAQRIdqC9/nyy7/kZk/7sQAU1c4Tph8TmT54=; b=LT0kG2jiJsVMEPPOaxwmqIUi/vnTheLo04FTvQXIMUDOn/CnRiDM7lZ7p8xkcQw3tf Tk7pHg+dlhlYNZl6PW/0qnghdM4Wd9GgcbRE7fqzgLKE8Df0w5Cn2VI1GtsRTtPVsoGY 4iRfbPwtuhATBPYDgnweWT0skckkMj1FpuHhp60OIrnCv2p5SNxnHO7WaOu6z7Lhw3E+ X6d4z6OE66cp4gCr1DasiVv55raqZdnreqT5WLPNVPfAVOyOU2vhht7OFWGQNZS8/Rpn CaMZzIn/hikSZS2BNJv3lEwBNtaetkoRJmuy+6eP//o6Klo9bU52C9ELQGeg0MT5QC5D nS2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686162292; x=1688754292; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f+spCigXAQRIdqC9/nyy7/kZk/7sQAU1c4Tph8TmT54=; b=GgRz512V/56Ybg7obS0vP6LY9FSDuW0D5g/ZBOPMqYvrfFjke0e9QoxzlY2ggXacm4 ea8vKN+5D4+RrpuorJH2cpoxwP+PYDxMNVcSZOwYqLAmnxHpr7ZMrwZwVfHKzO062OpV tLuYA0bhsXf3grjGWy0a1uVeU/DjsbJAfzifUP7Jz0qoEfcFWeKD590rz8enoz+UwFOP IfAorsfO5ec7RyOX+hQyPJKpfdMcxzLYHMTpvh3vTM1ijiqXUx6CzkOSON/U8gfZm6yR mvyla58yH+m/Ldpsq6rKIo8kaJyTi+hzc9w2la/sPW+apBnGAb6+6uHF8lFcaUS+4vR4 OzQQ== X-Gm-Message-State: AC+VfDzQ5SxrkEkhqQDxCl+eJLorXVDZhyaO5ocAcJTU4xqo0weYeiT/ XOv0jxjZScXwUSbB0yqa63Gyyw== X-Received: by 2002:a17:906:db08:b0:977:d468:827 with SMTP id xj8-20020a170906db0800b00977d4680827mr6284132ejb.17.1686162292040; Wed, 07 Jun 2023 11:24:52 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id x17-20020a170906149100b009764f0c5fe6sm6399462ejc.7.2023.06.07.11.24.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 11:24:51 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2023 20:24:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 1/2] dt-bindings: hwmon: Add Nuvoton NCT7362Y binding Content-Language: en-US To: Zev Weiss , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org References: <20230607101827.8544-4-zev@bewilderbeest.net> <20230607101827.8544-5-zev@bewilderbeest.net> From: Krzysztof Kozlowski In-Reply-To: <20230607101827.8544-5-zev@bewilderbeest.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2023 12:18, Zev Weiss wrote: > This binding describes the NCT7362Y, a 16-channel fan/GPIO controller. A nit, subject: drop second/last, redundant "binding". The "dt-bindings" prefix is already stating that these are bindings. > > Signed-off-by: Zev Weiss > --- > .../bindings/hwmon/nuvoton,nct7362.yaml | 123 ++++++++++++++++++ > 1 file changed, 123 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct7362.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct7362.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7362.yaml > new file mode 100644 > index 000000000000..630dcce7a14c > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7362.yaml > @@ -0,0 +1,123 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7362.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nuvoton NCT7362Y fan controller > + > +maintainers: > + - Zev Weiss > + > +description: | > + The Nuvoton NCT7362Y is an I2C fan controller with 16 pins that can > + be independently configured for PWM, fan tach, or GPIO > + functionality. Each pin's functionality is represented by a child > + node. > + > + The datasheet is not publicly available but can be requested from > + Nuvoton via their web site. > + > +properties: > + compatible: > + enum: > + - nuvoton,nct7362 > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + gpio-line-names: > + minItems: 1 > + maxItems: 16 > + > +patternProperties: > + "^tach@([1-8]|1[0-7])$": @9 is not valid? Aren't you using some non-numerical values? > + type: object > + properties: > + reg: > + maxItems: 1 > + description: The pin number. > + > + nuvoton,pulses-per-revolution: Just "pulses-per-revolution" https://lore.kernel.org/linux-devicetree/20221116213615.1256297-2-Naresh.Solanki@9elements.com/ > + description: | > + The number of tach pulses per revolution of the fan. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 1 > + default: 2 > + > + required: > + - reg > + > + "^pwm@([1-8]|1[0-7])$": > + type: object > + properties: > + reg: > + maxItems: 1 > + description: The pin number. This is some plague of single-property-nodes... Aspeed also sends something similar. Why the heck do you need empty nodes? Drop entire node pwm. > + required: > + - reg > + > + "^gpio@([1-8]|1[0-7])$": > + type: object > + properties: > + reg: > + maxItems: 1 > + description: The pin number. Drop entire node gpio. If this is pinctrl, then make it a pinctrl. > + required: > + - reg > + > +required: > + - compatible > + - reg > + - "#address-cells" > + - "#size-cells" Best regards, Krzysztof