Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4409958ioa; Wed, 27 Apr 2022 03:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZXWrMpABA+8vjhit5JLIRh2b41G/zoE2Gg4+E48p2yl9uocxpqSoArmp5r+EDzp4e4UWO X-Received: by 2002:a17:902:f605:b0:14f:5d75:4fb0 with SMTP id n5-20020a170902f60500b0014f5d754fb0mr27927942plg.101.1651054653067; Wed, 27 Apr 2022 03:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651054653; cv=none; d=google.com; s=arc-20160816; b=fjhEBDSP8lkttGjz2gs3MTe1uWEnRAz01L2Zqvpj7YMy3ISMlKb97oK+X3YyEcmIbW bAeWQExxuv5zw9LxNFoSaX7F358Kc/BJMSFgzj3YdZue5rvzj77qSzkox9VXoBRDYGpt GNrz1tcYdiHTIxT9br32Vs5xC95Egds4UgkGd8VAFzLmuw5Gvz1IpH3kJuwtVyX442NM 7Vpwkq8Hc9V2br5DW5L1j9s/Qh3C2sdYUo1YZBrMz8HyAfXvPp4qm4d5+5FBpgB36jjM NNR11cBOwqd3/RiylCcrBtPRdLm+eA50plDlRYQb9/XOwTfGDX7kbKJmDzDgQowTxnXn avAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pc/P965/OJeehYyicfBvk821lPIWQ3ALNZy/rCj/WUw=; b=O6C3+WW+Vhu6uSw+AfndibRi/QwSCFwOvOK7a5Ywjh+8HQ1ePxSEZ+lfITnstDHzQP OqeZn2GdWoOqFVuCOBLS+Zo4DmkFDUbqwDpsEtAgfxWcD6Y6CeEbIkGiql4VeGBcrGhX TCyNTIhze6Th0rsXrK7KyqAMBYGPwY2oMJC8Y8d3+hnr5wELpDFZNWUWLDNUTEmqF8YW yzWBlzKtf6rAPcPsbomtfEogp+jpWP4eAvxyI/G2xQPRUW8osxe4wfrMwxgtRryLzyXG MWkrXenVpXmVR/3lt1vWRbslaF3rmXfZm1GUwV+17V/ovKMBQgHrvFBsjxtfIQ5JNTOq yShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=foeAGPh8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e8-20020a170902744800b00158dd229950si1153876plt.573.2022.04.27.03.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=foeAGPh8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29DAF345141; Wed, 27 Apr 2022 02:37:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357624AbiD0GsO (ORCPT + 99 others); Wed, 27 Apr 2022 02:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358261AbiD0Grz (ORCPT ); Wed, 27 Apr 2022 02:47:55 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EEB414AF41; Tue, 26 Apr 2022 23:44:45 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-163-222.tukw.qwest.net [174.21.163.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 94A401BA; Tue, 26 Apr 2022 23:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1651041884; bh=Pc/P965/OJeehYyicfBvk821lPIWQ3ALNZy/rCj/WUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=foeAGPh8IshQudsNi3FtMgXt5RQKupidc5utcg6pJ0R1r6FjqNlVtUXQW5xwSijDa 0moau1aY1QU0jWseodPxgoHK2iBADT0ddLoE1DGzFdwhqgVagZ3y3fymCG2D1rMCUU yGZSzchECmBbKnbjx4tklTDTakXcwJVWwyqn3Wnk= Date: Tue, 26 Apr 2022 23:44:40 -0700 From: Zev Weiss To: Krzysztof Kozlowski Cc: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Renze Nicolai , Oleksandr Natalenko , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/7] dt-bindings: hwmon: Add nuvoton,nct6775 Message-ID: References: <20220427010154.29749-1-zev@bewilderbeest.net> <20220427010154.29749-2-zev@bewilderbeest.net> <178b9310-a854-dfa6-a4f3-f971b608abe3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <178b9310-a854-dfa6-a4f3-f971b608abe3@linaro.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Tue, Apr 26, 2022 at 11:04:30PM PDT, Krzysztof Kozlowski wrote: >On 27/04/2022 03:01, Zev Weiss wrote: >> These Super I/O chips have an i2c interface that some systems expose >> to a BMC; the BMC's device tree can now describe that via this >> binding. >> >> Signed-off-by: Zev Weiss > >I already reviewed it so I guess you did not include the tag because of >significant changes? > Yeah, the nuvoton,tsi-channel-mask property is new this round, so I dropped the previous R-B -- and since it looks like I missed some stuff, thanks for taking another look (though perhaps some of it could have been avoided if I'd remembered to run 'make dt_binding_check'). >> --- >> .../bindings/hwmon/nuvoton,nct6775.yaml | 56 +++++++++++++++++++ >> 1 file changed, 56 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml >> >> diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml >> new file mode 100644 >> index 000000000000..418477374fdb >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml >> @@ -0,0 +1,56 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> + >> +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct6775.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Nuvoton NCT6775 and compatible Super I/O chips >> + >> +maintainers: >> + - Zev Weiss >> + >> +properties: >> + compatible: >> + enum: >> + - nuvoton,nct6106 >> + - nuvoton,nct6116 >> + - nuvoton,nct6775 >> + - nuvoton,nct6776 >> + - nuvoton,nct6779 >> + - nuvoton,nct6791 >> + - nuvoton,nct6792 >> + - nuvoton,nct6793 >> + - nuvoton,nct6795 >> + - nuvoton,nct6796 >> + - nuvoton,nct6797 >> + - nuvoton,nct6798 >> + >> + reg: >> + maxItems: 1 >> + >> + nuvoton,tsi-channel-mask: >> + description: >> + Bitmask indicating which TSI temperature sensor channels are >> + active. LSB is TSI0, bit 1 is TSI1, etc. > >Need a type/ref. > Ack, thanks. >> + maximum: 0xff >> + default: 0 > >Since by default it is disabled, doesn't it make a required property? >IOW, if you add a node without this mask, will the device operate >properly and usefully? > Yeah, zero active TSI channels is a totally legitimate way for these devices to operate. TSI is just an optional source of additional temperature readings that's used on some (AMD) systems; all the basic Super I/O functionality works fine without it. Thanks, Zev