From patchwork Mon May 15 15:35:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 9727463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4C1A60386 for ; Mon, 15 May 2017 15:46:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF204286D5 for ; Mon, 15 May 2017 15:46:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B358F2898D; Mon, 15 May 2017 15:46:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 824E4286D5 for ; Mon, 15 May 2017 15:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l6yacD66a5rMYvAOel3hGyz7iDehH19FADEHnT4gIqE=; b=WIJvMerDP5AgacsUIqnJcm+FMM MfQLZk39o6oPh9rQ90S9DFoU1PYdIV08Mf5sQBzRd2pbXEKtWhhCLuZPpkQ3eTLc2hmcoMPMW5l3v jPXqkujrCr3UXiR4t4iCTXXwa0hsWze6GGpVGqaYau+7kBd0zOmDw5INXXXC9N9WictFQHV6XFDK7 1YYiMdAgqnV7Z45p1zpGxremd1Jb/oq9stb/ivTaT7t3LK40I52cakSl91fhrR0eWnS3uXTFjouZJ aOy1mH4sSjhQBecvk1dC+MreTxVYITfjOTuhs0ppTWqVMX5FtZaleJN/kH7VDN1KbfNRaP300VCrt T9t/8zOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAICM-000828-DO; Mon, 15 May 2017 15:46:14 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAI2P-0002Xa-VK for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2017 15:36:02 +0000 Received: by mail-wm0-x231.google.com with SMTP id b84so89337456wmh.0 for ; Mon, 15 May 2017 08:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rY8s3532ufsD/QZ9NHY3Glb0s09VglHhB9TSrvqyMRM=; b=ZeYYxYC+DO+0UeoP5SrwyMiZCbble++t9GVwY48xSMOnzGb3w9lPIWOcttJV7JJOOC 8rrL6apq4kBEZ5hW2PNlIRb/FGpGs/9GrPk8WXxI7A3qPvX+/7GiIl+jKy62ZtRbuGCE vu5R8vc0jU006m5tkM/PnB2cksvAlPslsWUr4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rY8s3532ufsD/QZ9NHY3Glb0s09VglHhB9TSrvqyMRM=; b=qgxV2LnEngdgqXVYIhNnHtPXp/Vz47mt58zihHEeByR60ifHNx6fW6fGPFwEC0sEoT r1titB9jCWJbaGMOd1/iYwiqqXLvCrMr+zgOwriPT7amTDwey1HSsjfIcNX3hgQgM2I6 PN3vMC3pYsFd3TK44yWctK2zg+bedwTmFW6ERWkiqc3hxWB8zXAopD82mzl63rpQtg9b 63vTG7hFfylqgwRsCn7oGqQ5p7SbgBRwMmFXcnXUIPry8rlUw18xkFRHkj+bUIe0pKwV 7NklyUh2icSt88c4sOFc+ZBtoXyRMe6a97APIkz0DGwt6OykFq3SuhMMo0YYGTPQNJ+g EnVQ== X-Gm-Message-State: AODbwcCBvodqaXBr/KS9CH8e+3/u/2caijAOI1JK9AT+cfegaUQ3Rh/S 1bj+AbgBw3jRe8cW X-Received: by 10.223.168.97 with SMTP id l88mr4638567wrc.54.1494862535801; Mon, 15 May 2017 08:35:35 -0700 (PDT) Received: from mms-0441.qualcomm.mm-sol.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id l7sm14548023wrc.52.2017.05.15.08.35.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 May 2017 08:35:35 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org, rjw@rjwysocki.net Subject: [RFC v1 3/3] dt-binding: Interconnect device-tree bindings draft Date: Mon, 15 May 2017 18:35:27 +0300 Message-Id: <20170515153527.27649-4-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170515153527.27649-1-georgi.djakov@linaro.org> References: <20170515153527.27649-1-georgi.djakov@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170515_083558_227020_CE74089C X-CRM114-Status: GOOD ( 13.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, vincent.guittot@linaro.org, seansw@qti.qualcomm.com, khilman@baylibre.com, mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, davidai@quicinc.com, robh+dt@kernel.org, skannan@codeaurora.org, gregkh@linuxfoundation.org, andy.gross@linaro.org, georgi.djakov@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The interconnect API is not yet using DT bindings for expressing the relations between the API consumers and providers. This is posted a separate patch as it needs further discussions on how to represent this with DT. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/interconnect.txt diff --git a/Documentation/devicetree/bindings/interconnect/interconnect.txt b/Documentation/devicetree/bindings/interconnect/interconnect.txt new file mode 100644 index 000000000000..e38a29db981e --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/interconnect.txt @@ -0,0 +1,75 @@ +Interconnect Provider Device Tree Bindings +========================================= + +The purpose of this document is to define a common set of generic interconnect +providers/consumers properties. + + += interconnect providers = + +The interconnect provider binding is intended to represent the interconnect +controllers in the system. Each provider registers a set of interconnect +nodes, which expose the interconnect related capabilities of the interconnect +to consumer drivers. These capabilities can be throughput, latency, priority +etc. The consumer drivers set constraints on interconnect path (or endpoints) +depending on the usecase. Interconnect providers can also be interconnect +consumers, such as in the case where two network-on-chip fabrics interface +directly + +Required properties: +- compatible : contains the interconnect provider vendor specific compatible + string +- reg : register space of the interconnect controller hardware +- #interconnect-cells : number of cells in a interconnect specifier needed to + encode the interconnect node id. + +Example: + + snoc: snoc@0580000 { + compatible = "qcom,msm-bus-snoc"; + reg = <0x580000 0x14000>; + #interconnect-cells = <1>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_SNOC_CLK>, <&rpmcc RPM_SMD_SNOC_A_CLK>; + status = "okay"; + }; + bimc: bimc@0400000 { + compatible = "qcom,msm-bus-bimc"; + reg = <0x400000 0x62000>; + #interconnect-cells = <1>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_BIMC_CLK>, <&rpmcc RPM_SMD_BIMC_A_CLK>; + status = "okay"; + }; + pnoc: pnoc@500000 { + compatible = "qcom,msm-bus-pnoc"; + reg = <0x500000 0x11000>; + #interconnect-cells = <1>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_PCNOC_CLK>, <&rpmcc RPM_SMD_PCNOC_A_CLK>; + status = "okay"; + }; + += interconnect consumers = + +The interconnect consumers are device nodes which consume the interconnect +path(s) provided by the interconnect provider. There can be multiple +interconnect providers on a SoC and the consumer may consume multiple paths +from different providers depending on usecase and the components it has to +interact with. + +Required-properties: +interconnect-src : A phandle and interconnect provider specifier as defined by + bindings of the interconnect provider specified by phandle. + This denotes the source device port which will be used, as the + device may have multiple master ports. +interconnect-dst : A phandle and internet provider specifier pointing to the + local port of the target device. + +Example: + + sdhci@07864000 { + ... + interconnect-src = <&pnoc MAS_PNOC_SDCC_2>; + interconnect-dst = <&pnoc SLV_BLSP_1>; + };