Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1362585imm; Tue, 3 Jul 2018 09:48:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfwAeQvUd7jNBpB81LXOFw0YXw0XfrnHVOQtOoqC2IwRNmBjBAkbFW+Ri7T9sZ2aOm2qW5+ X-Received: by 2002:a62:a50e:: with SMTP id v14-v6mr30552282pfm.121.1530636518257; Tue, 03 Jul 2018 09:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530636518; cv=none; d=google.com; s=arc-20160816; b=ijoU2ZzEfXbd0oLi4YHVjPW6PquxLP3x0dtJAZ0HCc6nj9f+65D77JBaQl8mt61/cN mQ2X6vzzwePA/WFCgeiHr24mQ/kJD5m6QpVAoq5xl2FfkJlwC7yms7xEDthUaxtwmSbg q2Z+qMC2IIzhFrIUXnNtcAVKowtJPaZHBEq1MLQmCNTO2JEQ+HsAPl02rymP/7rot2Eu taCaWhyZphAqordHihcTAjYdDq9r33C4fPFuFx5YjneZc7XPadiPk1vokGPe3qcpbFrx 6UjScfTbcaN0IZH7WcVCj/TMMsgT5kvMjE/BRRJnBJJi1iI7oGsHTmPRoq5415F5p9T7 oLlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zAuH4LH1gGeLkLg1XUekchSwnDFdQ8jOV8OkLjv4TjU=; b=U4gsb+yi33FkG06hnVCkdb6ITKPbG/X4YH8j87bTkV7jE5dvCjdTrJsJoDQdeDTesN jzkUB9CiSVoOZAhHNjdYEIEWescjHyWMGpxt4BXkxRc9u/R/cNdZdWz++qVTfobSwXKv 1+YP1c/VkcPxhJxwDqP0Q7eaaGK1U54Orv3qU0mGjZXpcRTQmuCgiFU68jHbI75MTvgK v3tBgGaR0sJsLkSnahCNhYpR8ZRiSqYt6TkCtrtCGepkLvKsvmqED3Jl6cRHlhOFoC0s 2T2h6H+bsuiJq4lS1JWgKwjde8+wPZxmZWX0YMnqASd3pSK7ztBttEP/1hN1WIhgRots JzMQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 w65-v6si1344852pgb.377.2018.07.03.09.48.23; Tue, 03 Jul 2018 09:48:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934127AbeGCQrg (ORCPT + 99 others); Tue, 3 Jul 2018 12:47:36 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:47023 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933860AbeGCQre (ORCPT ); Tue, 3 Jul 2018 12:47:34 -0400 Received: by mail-yb0-f194.google.com with SMTP id s14-v6so978088ybp.13; Tue, 03 Jul 2018 09:47:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zAuH4LH1gGeLkLg1XUekchSwnDFdQ8jOV8OkLjv4TjU=; b=Fbp6vBJiiPvBd0cymApN+sxwTHskG/DzPdM/LAMYTDnaabQ77XD/2DN8yspoOj7VZX eO+/T0TaepCWfi33Afyvm24av0s8AXAIT5xiGBy+PSP4VI5/J30i+N3igoJ+nf9boLQC WU3p0Iujx3ajhyOWjHTrFdYFoekY/9CB+CpqJRhlJie6VZj5NYea7QXvlMJXy8v4y0vW iiSpkTzaxF7AEkJzp186pzvs4+cirlYOml0eC0UnIXWnc6WNk6SAmrJefhu1bsNZth2M ndGmg52h4RNQGA8Zmoet5hVpv8m1Q2pNCRCOhc+h8UQGwlXccr+PflvXyK2mYvPU8otU /fOw== X-Gm-Message-State: APt69E0ccnHB5CbdYc8m1iMZdBMulHPLE122lVtMU9U4RkjdlCuLkhhi smjUrSEIWgb0PHmDqZpEBc14Rdw= X-Received: by 2002:a25:da11:: with SMTP id n17-v6mr16135444ybf.409.1530636453408; Tue, 03 Jul 2018 09:47:33 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id x129-v6sm501002ywe.61.2018.07.03.09.47.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 09:47:32 -0700 (PDT) Date: Tue, 3 Jul 2018 10:47:31 -0600 From: Rob Herring To: Jae Hyun Yoo Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Andrew Jeffery , Joel Stanley Subject: Re: [PATCH linux-next v6 01/13] dt-bindings: Add a document of PECI subsystem Message-ID: <20180703164731.GA9150@rob-hp-laptop> References: <20180621193721.20588-1-jae.hyun.yoo@linux.intel.com> <20180621193947.20645-1-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621193947.20645-1-jae.hyun.yoo@linux.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 21, 2018 at 12:39:47PM -0700, Jae Hyun Yoo wrote: > This commit adds a document of generic PECI bus, adapter and client > driver. > > Signed-off-by: Jae Hyun Yoo > Reviewed-by: Haiyue Wang > Reviewed-by: James Feist > Reviewed-by: Vernon Mauery > Cc: Andrew Jeffery > Cc: Joel Stanley > --- > .../devicetree/bindings/peci/peci.txt | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/peci/peci.txt > > diff --git a/Documentation/devicetree/bindings/peci/peci.txt b/Documentation/devicetree/bindings/peci/peci.txt > new file mode 100644 > index 000000000000..5583aa80b78a > --- /dev/null > +++ b/Documentation/devicetree/bindings/peci/peci.txt > @@ -0,0 +1,60 @@ > +Generic device tree configuration for PECI buses > +================================================ > + > +Required properties: > +- compatible : Should be "simple-bus". > +- #address-cells : Should be present if the device has sub-nodes. > +- #size-cells : Should be present if the device has sub-nodes. > +- ranges : Should contain PECI controller registers ranges. > + > +Example: > + peci: peci@10000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0x10000000 0x1000>; > + }; I don't think you need this section. It's just the parent of the controller, right? > + > +Generic device tree configuration for PECI adapters > +=================================================== > + > +Required properties: > +- #address-cells : Should be <1>. Read more about client addresses below. > +- #size-cells : Should be <0>. Read more about client addresses below. > + > +The cells properties above define that an address of CPU clients of a PECI bus > +are described by a single value. > + > +Example: > + peci0: peci-bus@0 { > + compatible = "vendor,soc-peci"; > + reg = <0x0 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > +Generic device tree configuration for PECI clients > +================================================== > + > +Required properties: > +- compatible : Should contain name of PECI client. > +- reg : Should contain address of a client CPU. Address range of CPU > + clients starts from 0x30 based on PECI specification. > + > +Example: > + peci-bus@0 { > + compatible = "vendor,soc-peci"; > + reg = <0x0 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + peci-client@30 { > + compatible = "vendor,peci-client"; > + reg = <0x30>; > + }; > + > + peci-client@31 { > + compatible = "vendor,peci-client"; > + reg = <0x31>; > + }; > + }; > -- > 2.17.1 >