Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1874799pxb; Fri, 24 Sep 2021 14:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB4F5IL0Yq46g3JazcCnjn/jHrV8amzjoe6baNGAEg9/dfb3SGfHX2GnUoHBYQLEXr6NNt X-Received: by 2002:a05:6402:709:: with SMTP id w9mr7514810edx.345.1632517654553; Fri, 24 Sep 2021 14:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632517654; cv=none; d=google.com; s=arc-20160816; b=JaV+lH8Opro/gO3qyaI+QLP4m+8zloPmhnhg04fL83rkR8HB3ml7BE6LxNcucY4pfZ 9APtItbAddnVsbnE147Je53kQGd+25uCsWOhocrRzchpNMKdAB4+Z4Z38kXZpEm8S6jb cAA/5ysqpjUgf1V+wVNvfS1TLwNNRAETvJKEdxw5ounxQh38+ICS50qoJ+ZYTKIwyyHW K06NNmGxtj7G8dceyqfn7J+GOBRz5Z0Pz0XxgDGBOwCnUDfxLsapVhrBqVYywxVJph5b XDLwvaMrsF80vUIEiVj8fFG2XXiEbc/DPiRsEwa/W0OzXKCoEuJN5w+CMEfPg7LkVbNO 5Jtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5E7t/WszXkQagFRXOLaF8gaxoWgE1XNb8TlegVhlV6M=; b=KR4YnYEUBW1z4d/+MLT6lPA2DbEVhKc3/PZZ+W/3Y33hW3yJ/CqOWfzlENmLgP37qW ZmsUuiHZkPKoy5oGywAb+bPNBs3+f0PGtaNfwf/Ftite4/S6GrJZP8ZUlH/YxPr9AdX5 IccLpAryCHdnZ3Ef9m84NGfwgkt1GCIZfm24M025hXKj6Qj64f870/RueGKKBVMcrl48 cOpOgiCFbCFQaD1nUeuC40X6nHf3uhZro6VnsssYZZiUwmI5XhlHVBlyPBrjXlcsj5Zd AVLoCTk6XPB8101ZivstnXLYTJ2JV/G3CMKaMEqhu/ScBEEvryrROYXK6eBW/F2mHjZe cUVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g5Fb87d3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp29si11070594ejc.290.2021.09.24.14.07.10; Fri, 24 Sep 2021 14:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g5Fb87d3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347064AbhIXPTq (ORCPT + 99 others); Fri, 24 Sep 2021 11:19:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347060AbhIXPTp (ORCPT ); Fri, 24 Sep 2021 11:19:45 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBDCAC061571 for ; Fri, 24 Sep 2021 08:18:11 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id x27so41790866lfu.5 for ; Fri, 24 Sep 2021 08:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5E7t/WszXkQagFRXOLaF8gaxoWgE1XNb8TlegVhlV6M=; b=g5Fb87d3LH2CS17A/kJMtdePbqm35JkHVHlr+BeS1W6eBK9wAjT4FuQiN3z+DB+uLu V/D3ND4TgGBdQz9Bw7Ns4NbFqcjKkazyKQOras6GZKPP94qMlfeB+5YNQ5XTJrWlWuqy VgLTi0E1xtYqHEV9H7vzJFmNioTA9UfGiE6La+XUS1ildHaqoybMy5DH9wVYTReWfx4U wMlyPo1DHNzVjofBWAj213d0iSP7e+O1KAnRHZdeFrEl55/2iVszbi/XH8zBI6ezXbUl Y1ir8LIZyEQwD4EM39I7nTefOcBS/9yE3Eq98he7ntgpxs8WCdMvxFMJuuaQrn1jbiWF Sp+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5E7t/WszXkQagFRXOLaF8gaxoWgE1XNb8TlegVhlV6M=; b=o475kiWHshpDTvfuPINBLwdPmy8bSKvWTRFNVV13SSnKKR3b8w75Xy4bHn3BY64JWL /HXCGmz9iaWNN7svtXidMbtxg+XBOP03czckNNQ0mpXh4mRnyzNDElFhx2svSL/lL0UP wonP4TDm9/3trIRbbZbQfRuUc/y+EUPAjhCspaOZ+yp9I8j2KIovWrVogH8frW+muNpa OFHM7ROSKqILHBm7IXw/uzm0JXQb9QTq3yZNid4qR5pkrv4wTAQFcxZh4+ou4gJEylX9 EaWYge5jmL49vQeYy+PyfSaiEaUTK09llGBHnhJT1wCrYc0z384Rmmmc3ERHdLyN+/D/ 3d9w== X-Gm-Message-State: AOAM533CRxRXQUoHHxnRFSCdY1voHtDdyFFPIAh7gisqPDQP0hUoXJAc zcOHJn7QB9lhYyeIq2MhDeC16JaWCqlbIatczkJBEw== X-Received: by 2002:a05:6512:3e1e:: with SMTP id i30mr9807008lfv.273.1632496687675; Fri, 24 Sep 2021 08:18:07 -0700 (PDT) MIME-Version: 1.0 References: <20210921004627.2786132-1-osk@google.com> In-Reply-To: From: Oskar Senft Date: Fri, 24 Sep 2021 11:17:51 -0400 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings To: Rob Herring Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob > > +maintainers: > > + - Guenter Roeck > > Should be someone that cares about this h/w, not who applies patches. Hmm, ok. After talking with Guenter, I thought that would be him. But I can add myself, too, since we're obviously using that HW. Is that what you mean? > > + properties: > > + ltd: > > + type: object > > + description: Internal Temperature Sensor ("LTD") > > No child properties? Yes. We really just want the ability to enable / disable that sensor. What's the correct way in the YAML to describe that? Same for RTD3. > > + "type": > > + description: Sensor type (3=thermal diode, 4=thermistor). > > 2nd time I've seen this property this week[1]. Needs to be more specific > than just 'type'. Ha yes, the example in [1] came from this patch. I went with this name to stay in-line with the sysfs name, being "tempX_type". In the hardware this would be called "mode". My original proposal [2] was to have this property a string list named "nuvoton,rtd-modes" with a set of accepted values, i.e. basically an enum. Splitting this string list into individual sensors makes sense. The other question that remains open (at least in my view), is whether naming the sensors "ltd, rtd1, rtd2, rtd3" is the right approach or if we should really go to naming them "sensor@X" with a reg property set to X. Note that ltd and rtd3 do not accept any additional configuration beyond "is enabled" (i.e. "status"). > > + temperature-sensors { > > + ltd { > > + status = "disabled"; > > Don't show status in examples. Hmm, ok. I found it useful to make clear that a sensor can be disabled, but maybe that's just always the case? I appreciate your other comments and will fix them in the next version of the patch. But I'd like to get clarity wrt. recommended sensor and property naming in the device tree before sending that. Thoughts? Thanks Oskar. > [1] https://lore.kernel.org/all/CAL_Jsq+NXuF+F7OE3vyEbTUj6sxyMHVWHXbCuPPoFaKjpyZREQ@mail.gmail.com/ [2] https://lore.kernel.org/all/20210910130337.2025426-1-osk@google.com/