Received: by 10.192.165.156 with SMTP id m28csp932993imm; Mon, 16 Apr 2018 11:01:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++qDORR4KeNF8N61mLrNmAPfYskDoahJJn5KxiqSIwHM80dNd95W0immpTIT7L9fFI5YGv X-Received: by 10.98.150.198 with SMTP id s67mr22568391pfk.191.1523901703064; Mon, 16 Apr 2018 11:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523901703; cv=none; d=google.com; s=arc-20160816; b=FYdBgErKLDdKDYImLjP/dJh1FVzi4evQq1qu9zvX2KVE8yfwGOGzeAjiqHrywHixXb LeO6LU2W5X5nvzkJn3B7Y3II4TRb7HhvhXp0f6RZD66qDoiNFw9fcYQDX4L6y/bKCN5P w2ac+nyQMc2UEMWDYO8bXmzVBd6ypqHfFEUzQ0bhMgBu5PAbsBWw0UNnANnMUUoWd0PQ wwkTiX1UdzS1trLF9eHVIZvK9yMlHiW89+18524sG4gYXmPZk2ebooUfn+gLCUndcY5Q aa9ygcJ3tKURI2IDCgKMFmCevmvKNju9F8EY43WSHYQxXbVpbnCIdo1xWBSdQmwlX1W9 ldVw== 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=it7fvg/RmS45jORTLrF+0fEudoPMAAjNAUFbU82WO70=; b=LZS5xFwvcoSzWxs9j5mqlt00SziOs7PogpY9tTJWCyMcTjD/2fhAG5Kxpi/QPXPKcW r0JIoWJ4OCicICPxrYll/MD0LvYQS5U4KcwHG1qTFQyAkNeskUErkbOvGvPR3HDHnHsO W9KrC5X+4n2KhEdC8oSsp0l9U6Gb/g4yDOfkh/QIqF/QbYhuQ4+AJKZYrH9LnSn/173+ UXSvZAPTXzU9j4t8I8MwtBvszzR9BoDMZEG7P+c07gcuKlA80T+cbYZ1oaR1OglRfesd DQNZmYuxqBJwJ9AidciiVFHr5m5FnYtWFU+z4y0g4Kcb4Hu3JWsN4Aws9l8NZithNExm 9CLA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13-v6si12752041pll.416.2018.04.16.11.01.19; Mon, 16 Apr 2018 11:01:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753178AbeDPR7l (ORCPT + 99 others); Mon, 16 Apr 2018 13:59:41 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34880 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829AbeDPR7i (ORCPT ); Mon, 16 Apr 2018 13:59:38 -0400 Received: by mail-oi0-f68.google.com with SMTP id 10-v6so3619631oix.2; Mon, 16 Apr 2018 10:59:38 -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=it7fvg/RmS45jORTLrF+0fEudoPMAAjNAUFbU82WO70=; b=LfuKzMDyfKr0p/wAc2b8C1P8ZgXDP9Xopras2oKBfcxUB29KMLagUyYCXT0GLB8Xer IMltC20TeOvXRI7kc3/16yL5WAF/dZg0tP+djPpD2jDnBFD/9pAo0tWchnW6/XnfX9NK ffOoxVfNCQgHfPp/RLL89WkbWCIuZzk3lxksxBiUl5i7ADbGx/hIOADG5ntR5YFD7zdE NwaBAriYCAsn6mMBWBAz8+JtSFLSyKkQ93fDPM9GpmK0pic2w6iHqUNlUB6K0OjTw1vw Ka1ZZeRWDo/DMVWCuqs/qMl9ee7YoGw7abHuEt43d4X0Q3vSJ4U5hyHzRUrX9u2KHigJ LDNw== X-Gm-Message-State: ALQs6tB3KaL+okiw8Yw3BQeMxL0L/Wgu3j9lErbbju+lHFhOOjHNNjUU fFo91FIaC3iIS7AdWFCFnQ== X-Received: by 2002:aca:ad90:: with SMTP id w138-v6mr14351583oie.20.1523901577595; Mon, 16 Apr 2018 10:59:37 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id 68-v6sm7810406otj.43.2018.04.16.10.59.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 10:59:37 -0700 (PDT) Date: Mon, 16 Apr 2018 12:59:36 -0500 From: Rob Herring To: Jae Hyun Yoo Cc: Alan Cox , Andrew Jeffery , Andrew Lunn , Andy Shevchenko , Arnd Bergmann , Benjamin Herrenschmidt , Fengguang Wu , Greg KH , Guenter Roeck , Haiyue Wang , James Feist , Jason M Biils , Jean Delvare , Joel Stanley , Julia Cartwright , Miguel Ojeda , Milton Miller II , Pavel Machek , Randy Dunlap , Stef van Os , Sumeet R Pawnikar , Vernon Mauery , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 01/10] Documentations: dt-bindings: Add documents of generic PECI bus, adapter and client drivers Message-ID: <20180416175936.4vcse73mrnyk242m@rob-hp-laptop> References: <20180410183212.16787-1-jae.hyun.yoo@linux.intel.com> <20180410183212.16787-2-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410183212.16787-2-jae.hyun.yoo@linux.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 11:32:03AM -0700, Jae Hyun Yoo wrote: > This commit adds documents of generic PECI bus, adapter and client drivers. "dt-bindings: ..." for the subject prefix please. > > Signed-off-by: Jae Hyun Yoo > Reviewed-by: Haiyue Wang > Reviewed-by: James Feist > Reviewed-by: Vernon Mauery > Cc: Alan Cox > Cc: Andrew Jeffery > Cc: Andrew Lunn > Cc: Andy Shevchenko > Cc: Arnd Bergmann > Cc: Benjamin Herrenschmidt > Cc: Fengguang Wu > Cc: Greg KH > Cc: Guenter Roeck > Cc: Jason M Biils > Cc: Jean Delvare > Cc: Joel Stanley > Cc: Julia Cartwright > Cc: Miguel Ojeda > Cc: Milton Miller II > Cc: Pavel Machek > Cc: Randy Dunlap > Cc: Stef van Os > Cc: Sumeet R Pawnikar > --- > .../devicetree/bindings/peci/peci-adapter.txt | 23 ++++++++++++++++++++ > .../devicetree/bindings/peci/peci-bus.txt | 15 +++++++++++++ > .../devicetree/bindings/peci/peci-client.txt | 25 ++++++++++++++++++++++ This should be all one document. > 3 files changed, 63 insertions(+) > create mode 100644 Documentation/devicetree/bindings/peci/peci-adapter.txt > create mode 100644 Documentation/devicetree/bindings/peci/peci-bus.txt > create mode 100644 Documentation/devicetree/bindings/peci/peci-client.txt > > diff --git a/Documentation/devicetree/bindings/peci/peci-adapter.txt b/Documentation/devicetree/bindings/peci/peci-adapter.txt > new file mode 100644 > index 000000000000..9221374f6b11 > --- /dev/null > +++ b/Documentation/devicetree/bindings/peci/peci-adapter.txt > @@ -0,0 +1,23 @@ > +Generic device tree configuration for PECI adapters. > + > +Required properties: > +- compatible : Should contain hardware specific definition strings that can > + match an adapter driver implementation. > +- reg : Should contain PECI controller registers location and length. No need for these 2 here. > +- #address-cells : Should be <1>. > +- #size-cells : Should be <0>. Some details on the addressing for PECI would be good. > + > +Example: > + peci: peci@10000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0x10000000 0x1000>; > + This part of the example is not relevant. Just start with the adapter node. > + peci0: peci-bus@0 { > + compatible = "soc,soc-peci"; > + reg = <0x0 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/peci/peci-bus.txt b/Documentation/devicetree/bindings/peci/peci-bus.txt > new file mode 100644 > index 000000000000..90bcc791ccb0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/peci/peci-bus.txt > @@ -0,0 +1,15 @@ > +Generic device tree configuration for PECI buses. > + > +Required properties: > +- compatible : Should be "simple-bus". I don't understand what this has to do with PECI? "simple-bus" already has a defined meaning. > +- #address-cells : Should be <1>. > +- #size-cells : Should be <1>. > +- ranges : Should contain PECI controller registers ranges. > + > +Example: > + peci: peci@10000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0x10000000 0x1000>; > + }; > diff --git a/Documentation/devicetree/bindings/peci/peci-client.txt b/Documentation/devicetree/bindings/peci/peci-client.txt > new file mode 100644 > index 000000000000..8e2bfd8532f6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/peci/peci-client.txt > @@ -0,0 +1,25 @@ > +Generic device tree configuration for PECI clients. > + > +Required properties: > +- compatible : Should contain target device specific definition strings that can > + match a client driver implementation. Bindings are for h/w, not client drivers. How are PECI devices defined? > +- reg : Should contain address of a client CPU. Address range of CPU > + clients is starting from 0x30 based on PECI specification. > + <0x30> .. <0x37> (depends on the PECI_OFFSET_MAX definition) 8 devices should be enough for anyone... Where is PECI_OFFSET_MAX defined? > + > +Example: > + peci-bus@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + < more properties > > + > + function@cpu0 { Not a valid node name. "function@30" is what it probably should be. For a new bus you can define unit-address format you like, but it must be based on the contents of reg. However, it doesn't look like you should create anything special here. > + compatible = "device,function"; > + reg = <0x30>; > + }; > + > + function@cpu1 { > + compatible = "device,function"; > + reg = <0x31>; > + }; > + }; > -- > 2.16.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel