Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2442897imm; Thu, 21 Jun 2018 12:41:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIuBSCMByon+0OVFImKZ8SvucBA5S6X7JWX3S3siF8jAs+CF7fdDdqWq8TabVEHzmQ4ntjD X-Received: by 2002:a63:7d06:: with SMTP id y6-v6mr1038789pgc.356.1529610067225; Thu, 21 Jun 2018 12:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529610067; cv=none; d=google.com; s=arc-20160816; b=lf+3BdrWhYlWsgCSQLNckUJe5ptJey2Mp7H8zUehagq+Zcw1gBXAjWvfEO649BqxQx stRdDC/RJibqJxAWK7XTuR1YcF9xuHvaDm2oVTKHM9/JZsAmPAPMhN459Y42lCsvZJgo 1rTSnD0ft3QhYKO37sW0O6msb74NrGQH8B1ARMf8wu1iyIxR0Pchw16EG5LGBpW1SxEA ZrBYu7ZjPSEkifK2hia8fL6/ZuxTUazprD8rihUF3Z68ziXMuEGn7Mzx7wNkuRCVD/j1 Gd/TYoL2TNhxaArHPEqbxedcxm0U9pgcwpZcbsM1fN0z+WLTlKaIX+9vnpFj8CUw3g// MgYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=M7g/2rtU9zcV2DsAzWS7FfsWt4GcWlSGpBw3FnGYqfY=; b=qSEPwLzIkvAHmfVl35Su/9MCRbVnS+B8189XVm3Qdfdt+8hL6S+SYrLogmLkBmrQXh WunE2Xtane1NPAkse2Xk3wgFNiLP4dC2pfKvccsqj2359onSY5qUxBYkhEhfHuZwY2yI KtemLIpCfV1vMxft98VclEIy96QcpqzFE7wu6MsrbHfH9t6AFWOA4Y27lfBVFoZHuLSW qqdcq6VqxNetdNo9GOyX2YCpw0bdl9X+rzDypT4UMsRtDwx8uly0ubP4qdyg2obPkVZp mmyxOncTSgRDMvJIOSgIPVUVlUGXOZMW/IaOxRhgvO46ksapJpUh7iEnIrrjEDn6Dgfm 9KfA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si5485473pld.515.2018.06.21.12.40.50; Thu, 21 Jun 2018 12:41:07 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933078AbeFUTj4 (ORCPT + 99 others); Thu, 21 Jun 2018 15:39:56 -0400 Received: from mga07.intel.com ([134.134.136.100]:50567 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932686AbeFUTjz (ORCPT ); Thu, 21 Jun 2018 15:39:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 12:39:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,253,1526367600"; d="scan'208";a="59887863" Received: from maru.jf.intel.com ([10.54.51.80]) by fmsmga002.fm.intel.com with ESMTP; 21 Jun 2018 12:39:54 -0700 From: Jae Hyun Yoo To: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Cc: Jae Hyun Yoo , Andrew Jeffery , Joel Stanley Subject: [PATCH linux-next v6 01/13] dt-bindings: Add a document of PECI subsystem Date: Thu, 21 Jun 2018 12:39:47 -0700 Message-Id: <20180621193947.20645-1-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621193721.20588-1-jae.hyun.yoo@linux.intel.com> References: <20180621193721.20588-1-jae.hyun.yoo@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + +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