Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp969858imm; Wed, 23 May 2018 08:16:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbSGJ9CH3gKL7p32D5zBveNlBIPjtK7ctZKcU6BAI3vy/QkiWYUz2NGDnQzIihBLH+aHg0 X-Received: by 2002:a63:7848:: with SMTP id t69-v6mr2692666pgc.380.1527088605547; Wed, 23 May 2018 08:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527088605; cv=none; d=google.com; s=arc-20160816; b=PKZfPYuhoVI9P62ROJZyG9jr43EDJVrwqSLdAWJ15JCmf3tOAdFG4/JbSuINneYVSL 4H56bAJTPTa0DnUgc8XOYWsQ6p8ICKdObWWDxDbWvd30kt0V13tm2b01GgSrT1EALHKY 3jRDkIuFhivvyBR/Jm9QX50lmtgP6kuVjtXqiyZNWtV6HJ8PAwZkgfp2U6vG0uva1xWo IzJgcyUu4WY/drb151CuC5uOiyII69pXBL48zOgygMEAcXya/8M0VkfGUHxbDkTegzF7 JlWY4rxxxr30FLGWS6g5KRDnASV4HlcZpWL4NPuwY9tyYN91RFtJ97ZevACBhY4VHTBN nP2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=I2wGUtfYk4PdXf+FLp2GuTkGVnVgmm37dC3A8bL1AmI=; b=hYclGzCiadJzBCgczkK/jYHoR/tX9o5SnRATLJVwCYS2owOb6OBqYD3j++IA5roR6v ceH8Cd/rkQYPzzQNJOYpr2zm3LSQKRTfqpCOsOeBcMyTOoqN8xXGdBBL+rYLDQcxzlQx bbEBMqEFo6wb6N2LPQSIcrQdxJErimwO03Fjq+qDOMtLg+djUHylaG7GOKmJGXSWh738 1AVV/rIfG5/AYhO/9myudzF0lH2JZDvq9nWZ1TieVX5HA1Q/lP5r6eWtLp4qhMuiSPzN teByOcec2S36OnrHebapMuzQOUB9B5pq4Ws3RoEJQ8GdAJGX5QbW4Ed6E/LQvH92pMPK /xVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r07C/yx1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12-v6si18807856pfd.113.2018.05.23.08.16.30; Wed, 23 May 2018 08:16:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r07C/yx1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933647AbeEWPOd (ORCPT + 99 others); Wed, 23 May 2018 11:14:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:40980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933151AbeEWPMQ (ORCPT ); Wed, 23 May 2018 11:12:16 -0400 Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 81B2120878; Wed, 23 May 2018 15:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527088335; bh=1HYc6sHNsA9DBNIRkl+KGZHdcQqlm/mtSDHX6Gziyp8=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=r07C/yx1U/NBrd+KIOb0TMdNNYKIBAAKGUYf4/9Tz8VInbbPub01aILtSWfjahW7u ZvmGg0C5P1ZproU6ClojQ1fzQ5JB6dXNbQrBKgtDrpd8Xw+j9IVjBWehc7B9RldxXk /l61OyZa+trSCS82p2Uc//X5PQr3Om+JmmyLDrA0= Received: by mail-qt0-f177.google.com with SMTP id m9-v6so28517377qtb.5; Wed, 23 May 2018 08:12:15 -0700 (PDT) X-Gm-Message-State: ALKqPwdbJBFz73Nln3iUCpTdAJZnP8kAWENOlhHw5KF3FWYXFDlxMETC nuiOEBPZYq3PUbpVujtiRKY5L4ikQsYnrmQ1/w== X-Received: by 2002:aed:3a46:: with SMTP id n64-v6mr3114009qte.118.1527088328897; Wed, 23 May 2018 08:12:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9b02:0:0:0:0:0 with HTTP; Wed, 23 May 2018 08:11:47 -0700 (PDT) In-Reply-To: References: <20180521195905.27983-1-jae.hyun.yoo@linux.intel.com> <20180522164230.GA11707@rob-hp-laptop> From: Rob Herring Date: Wed, 23 May 2018 10:11:47 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v4 07/11] dt-bindings: hwmon: Add documents for PECI hwmon client drivers To: Jae Hyun Yoo Cc: Mark Rutland , Haiyue Wang , Vernon Mauery , James Feist , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andrew Jeffery , Arnd Bergmann , Jason M Biils , Joel Stanley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 12:18 PM, Jae Hyun Yoo wrote: > On 5/22/2018 9:42 AM, Rob Herring wrote: >> >> On Mon, May 21, 2018 at 12:59:05PM -0700, Jae Hyun Yoo wrote: >>> >>> This commit adds dt-bindings documents for PECI hwmon client drivers. >>> >>> Signed-off-by: Jae Hyun Yoo >>> Reviewed-by: Haiyue Wang >>> Reviewed-by: James Feist >>> Reviewed-by: Vernon Mauery >>> Cc: Andrew Jeffery >>> Cc: Arnd Bergmann >>> Cc: Jason M Biils >>> Cc: Joel Stanley >>> --- >>> .../bindings/hwmon/peci-cputemp.txt | 23 ++++++++++++++++++ >>> .../bindings/hwmon/peci-dimmtemp.txt | 24 +++++++++++++++++++ >>> 2 files changed, 47 insertions(+) >>> create mode 100644 >>> Documentation/devicetree/bindings/hwmon/peci-cputemp.txt >>> create mode 100644 >>> Documentation/devicetree/bindings/hwmon/peci-dimmtemp.txt >>> >>> diff --git a/Documentation/devicetree/bindings/hwmon/peci-cputemp.txt >>> b/Documentation/devicetree/bindings/hwmon/peci-cputemp.txt >>> new file mode 100644 >>> index 000000000000..2f59aee12d9e >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/hwmon/peci-cputemp.txt >>> @@ -0,0 +1,23 @@ >>> +Bindings for Intel PECI (Platform Environment Control Interface) cputemp >>> driver. >>> + >>> +Required properties: >>> +- compatible : Should be "intel,peci-cputemp". >>> +- reg : Should contain address of a client CPU. Address range of >>> CPU >>> + clients is starting from 0x30 based on PECI specification. >>> + >>> +Example: >>> + peci-bus@0 { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + < more properties > >>> + >>> + peci-cputemp@30 { >>> + compatible = "intel,peci-cputemp"; >>> + reg = <0x30>; >>> + }; >> >> >> [...] >> >>> + peci-dimmtemp@30 { >>> + compatible = "intel,peci-dimmtemp"; >>> + reg = <0x30>; >>> + }; >> >> >> As I said in the prior version, 2 nodes at the same address is wrong. >> >> Rob >> > > In PECI bus, there is one and only bus host (adapter) and multiple > clients on a PECI bus, and PECI spec doesn't allow multiple originators > so only the host device can originate message. Yes, I get that. A single host still has to address slave devices. > In this implementation, > all message transactions on a bus from client driver modules and user > space will be serialized well in the PECI core bus driver so bus > occupation and traffic arbitration will be managed well in the PECI core > bus driver even in case of a bus has 2 client drivers at the same > address. I'm sure that this implementation doesn't make that kind of > problem to OS. Multiple clients to a single device is common, but that is a software problem and doesn't belong in DT. I don't think there is a single other case in the kernel where multiple drivers can bind to the same device at a given bus address. That is why we have things like MFD. Though in this case, why can't one hwmon driver register multiple hwmon devices (cpu and dimm temps)? Rob