Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp708852imm; Mon, 21 May 2018 12:58:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr6AO4Hyqx2n4+NIW2cahTHr0Q9PgxuhAxl1jXtV7G0m5hzRBHD/SBufcqViWu/IwHYwO/T X-Received: by 2002:a17:902:548f:: with SMTP id e15-v6mr22360894pli.314.1526932732164; Mon, 21 May 2018 12:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526932732; cv=none; d=google.com; s=arc-20160816; b=yvxRS8palYy0xytMrVk9yG6KgI7j/HT96CcdwsUKf6EQt32WbNQuWyMq8UHnvQSAdp y0LmGJb/sVVESoyQ6L3+1BZ4gJJ3vzNgtOvISF/FtpiQArsRbRcaMvO4+L2KHv6Y6ayU xGS5sl4cT2K5nGc3341NkWbhb8r8H53rWo84bVkAngYZklfHpLN2Q0BSZrENeHFb/Eiq njz87zlfpoNER9bjKEYSmYUSIc+r8mhZgY3MJWXsLy5Fjwo4q2ULGSO1mn1Zz/8DDvtr sB4v8jlpJ1j3tyAr5K0hVpiSkkLmpLQlEj6RL4rTe8UiXwCEfqG+MT6Nf4gnfLntN+H+ 2EAA== 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=fV3nSt5xzbFUhv+8OzCtpLz7iZp/p3pinkdprkkOTqo=; b=K0ISVPm3i33oh/JwQepSL1OntdsCJTVGf93qbs3mCZDm5NzSp2izqAcAYKy+W/KgSC /XMVIUzcLm8qxee5+EaBvqzqDntzszAg5pV46ROPH0fpIkMlyX+xVNIaKnb4p2lm6wSr st6bKwsJaccWNsP8cV8fPjkG60GQPKQmb0XduchNfNsyDdOpH10U6/ifmzbZr2PwW3sR 519Q4GloX9YIDI/sx4Vi57ATs+Jq71HlOJB5KY+/MuoUuvausvT54Kx+kee4aAM3izdJ iLjkbqNnqXZFy9W/XzpnvTzADialfQyE7+hmT0tnnUqB9QWnSuyTFJ5eudyJEb00Ucjy lRgw== 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 p1-v6si14414918pld.218.2018.05.21.12.58.36; Mon, 21 May 2018 12:58:52 -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 S1751190AbeEUT54 (ORCPT + 99 others); Mon, 21 May 2018 15:57:56 -0400 Received: from mga05.intel.com ([192.55.52.43]:20167 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbeEUT5z (ORCPT ); Mon, 21 May 2018 15:57:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2018 12:57:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,427,1520924400"; d="scan'208";a="201236819" Received: from maru.jf.intel.com ([10.54.51.80]) by orsmga004.jf.intel.com with ESMTP; 21 May 2018 12:57:54 -0700 From: Jae Hyun Yoo To: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jae Hyun Yoo , Andrew Jeffery , Joel Stanley Subject: [v4 01/11] dt-bindings: Add a document of PECI subsystem Date: Mon, 21 May 2018 12:57:51 -0700 Message-Id: <20180521195751.27716-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..72fc8ddd6a55 --- /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 > + + function@30 { + compatible = "device,function"; + reg = <0x30>; + }; + + function@31 { + compatible = "device,function"; + reg = <0x31>; + }; + }; -- 2.17.0