Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp893151imm; Fri, 1 Jun 2018 11:22:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZdTU2r0wISDQ/pZvWSbb9rrPF8wklrXOjmj3FSp8Npm1SX1qJRZBJcFOQuDHjBrhXKMW5 X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr12233824plk.217.1527877333634; Fri, 01 Jun 2018 11:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527877333; cv=none; d=google.com; s=arc-20160816; b=LEje0Vl3Y8RD8ek9uof43fNsicdgMvbOw/hoQjapePAp43VNEBEXHpGEFnyxLleHhg sryZ4EqK6moVDmqHQVg5Ei1bagPSiRjeo2qkzf5lCv3y+2PJT71b1BgL82nUPPKhUxaE ioCZ7qKCgNDM57O1kWAodD7JEsLCn+ZfjBHr5zYB5vg93UmzzD2zl/ovWRe+6i0QfgdS cQoDZgSYbF0UZ4gqIGzLPC/X8ih5DCWRsJGLlQoFJEsC3M4myfkN+6GkeyyTj9i6m8G6 w75ZUF8aURT37Xiz0Cbi5Cs/ji0NKYGAykZWae4F55q3Jc8kYaFzXr1Z89pVD/SE7ajl HvsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zGa4UyFsVew+5jY9ynP9E79h6lDRKXHc+JKCR7BJfGM=; b=FEt82xoU1LrhFHnAMfE9LFC89tps2y+eHKCWJ6vCuU1ShH5+CdR+rjEDnGUFGiF60g Lrkeo/iaqe3KrD+0BDOLBURCs/TMMGz8IkZjSj2Pm6RpPUSQiVHlO1O6YXtLhJkugQ7x ofMkW+KTBdLwjeRk0s59MDvfKgI2vUk2aVVGyR1bknUssQ1BqWyNBBP1qH+mTYtyN8oU c7PB9x7bPxpi1FsgG6UvfLkksfzczuh02t1CWEFie6EV9egj9AmlGmunRjNT+6In56fJ VeR1YJsa0Iy5fi6+PpkXD8m+S6sBUeUIDmffv+aBTMcM7W6lvmhxy1pU7+kEeu/3AJD9 K1uQ== 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-v6si7292665pln.471.2018.06.01.11.21.59; Fri, 01 Jun 2018 11:22:13 -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 S1753349AbeFASVK (ORCPT + 99 others); Fri, 1 Jun 2018 14:21:10 -0400 Received: from mga14.intel.com ([192.55.52.115]:14436 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752704AbeFASVF (ORCPT ); Fri, 1 Jun 2018 14:21:05 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jun 2018 11:21:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,467,1520924400"; d="scan'208";a="233889315" Received: from maru.jf.intel.com ([10.54.51.80]) by fmsmga006.fm.intel.com with ESMTP; 01 Jun 2018 11:21:04 -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 v5 01/13] dt-bindings: Add a document of PECI subsystem Date: Fri, 1 Jun 2018 11:21:03 -0700 Message-Id: <20180601182103.23630-1-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.17.0 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 | 59 +++++++++++++++++++ 1 file changed, 59 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..8db2b1e56a01 --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci.txt @@ -0,0 +1,59 @@ +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 = "soc,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 is starting from 0x30 based on PECI specification. + +Example: + peci-bus@0 { + #address-cells = <1>; + #size-cells = <0>; + < more properties > + + peci-client@30 { + compatible = "intel,peci-client"; + reg = <0x30>; + }; + + peci-client@31 { + compatible = "intel,peci-client"; + reg = <0x31>; + }; + }; -- 2.17.0