Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp694218imu; Fri, 7 Dec 2018 07:31:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/WyByHWRdguytGI4fxohOljWcoeWvVU6XrXlb9gMUyiX9rfAMoi869obdzS0ovphkgLghPe X-Received: by 2002:a17:902:8641:: with SMTP id y1mr2530328plt.159.1544196717801; Fri, 07 Dec 2018 07:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544196717; cv=none; d=google.com; s=arc-20160816; b=Caa27yqbWt5Y92JVgEkYAjwhMX+oe6CS/+1EpwQ20laCHLh1sJh/nNlH0T4iehqOlU ToMg/SC66ughuJcwyuWJWcJMcn4RQxnn07FZ5FhroIJnYTMiqgIOcLqnBcsMsJFnDNdi gyEHTW12npEMYASGoXr0CIigI0BG7tnKKCKH1FrJY4/joMU8PRhDs8N8ePWJhnPQdWFO 3snhDYdW4wv8q8nMvOIGOz0fdJGy9/oWKRLMcKilQxS9WMNDT+Vh0dJ2+Dt7yvIpgfaJ f4ccUckYKFu/uLXBwlqrKGA6N2+PnAAQA9kM2Rjw9QoXyOYJ7cEPyK5T4STSVtv7DO5d HJjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RDj6MDHY8LfhaKzwZwR+xk+j8tl7N19Jf8vqoRp4O4Y=; b=p/k8/VkfVsvk5dajaOG9/7DYJjAIKWaFY1TzDYoB9bO6412g+hpsQ4NT/LSZmoAawl ZBaO/xYl9JM3kPcrGDB8fh1ziPXGCEPoneb5fmYA9loP7+ZsluwyDzCUR3qhMA8p0NBV KUkhgvoN2nDYroygzSsdosiqweGpiMhlr9EgO/i9UZXjSRvCjyoO78w9+wGiIxgNjIQo 9E2z6T574Qry8rSsIZhC8jbQNn+s8WsECJFa9O1j6Pr3ocAdK44QsOc4Y1/562GiaSMu 3Yiqr54hVmvI+xCFwJDXzJF9xjiId1OCKMIVAnggkg9HLipNSnWaMR+xqFMDJ6seKi1s hoXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TBlhCU+Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si3006452pgl.570.2018.12.07.07.31.42; Fri, 07 Dec 2018 07:31:57 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=TBlhCU+Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726186AbeLGP3a (ORCPT + 99 others); Fri, 7 Dec 2018 10:29:30 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40781 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbeLGP31 (ORCPT ); Fri, 7 Dec 2018 10:29:27 -0500 Received: by mail-wm1-f66.google.com with SMTP id q26so4895654wmf.5 for ; Fri, 07 Dec 2018 07:29:26 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=RDj6MDHY8LfhaKzwZwR+xk+j8tl7N19Jf8vqoRp4O4Y=; b=TBlhCU+QpJs0e62CNtOmnH8EuDCbTs5nwf9+D/bWuRXOAo9kzw8a6XMrBcX3dGGkI1 5bTG0DSuPBGdxzgapoNVR7u1wFv3JcMiVdao6XFt2l92C1P7zeZRKzbGbZv5WIoWmBy/ EE/l87tIzCR1sK/TAmjJlY/lZCHjfAnc4RElo= 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:mime-version:content-transfer-encoding; bh=RDj6MDHY8LfhaKzwZwR+xk+j8tl7N19Jf8vqoRp4O4Y=; b=RAzcbpMviJn4EMDzhkbrCIBnBv4qRHNwkb3oUccqgtG0Sk5jx15CUwlTzbo0oSheMM 9slNYMMNLmgKTMx+bMuHGuI5G5wxMBs1gUHI5gOvE5bZC5iHdOjupt3E7O+L3+jQSpt5 HdvaeV3aVWD4kdVdpnauT+qCdNYcBwWZ0vsU/UZavW+UxZlR1NjF0jUu1KwyNBB0QLw4 qw4qvNSAWkyUOHWxufm32TIqEXHTGnG/A41OlTN7bgpDyyE4s7A6eJClknFhJZ05ufku OMCQYjlVhoQ80TG+e7lwn2M/GN8hIG6uil0dVyu0aE/VPwESbRC7zdkHvrMcLwbM4DYP T4QQ== X-Gm-Message-State: AA+aEWYwdAuiP3KFffy9Q657gXGhV1ozTnW3/nTl0GoY/GBXo5vMP/v2 v8WHyc76jwYVHZPz7p+IajK43A== X-Received: by 2002:a1c:d08b:: with SMTP id h133mr2656724wmg.8.1544196565420; Fri, 07 Dec 2018 07:29:25 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id y145sm2728721wmd.30.2018.12.07.07.29.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Dec 2018 07:29:24 -0800 (PST) From: Georgi Djakov To: gregkh@linuxfoundation.org, linux-pm@vger.kernel.org Cc: rjw@rjwysocki.net, robh+dt@kernel.org, mturquette@baylibre.com, khilman@baylibre.com, vincent.guittot@linaro.org, skannan@codeaurora.org, bjorn.andersson@linaro.org, amit.kucheria@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, evgreen@chromium.org, dianders@chromium.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, abailon@baylibre.com, maxime.ripard@bootlin.com, arnd@arndb.de, thierry.reding@gmail.com, ksitaraman@nvidia.com, sanjayc@nvidia.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v11 2/8] dt-bindings: Introduce interconnect binding Date: Fri, 7 Dec 2018 17:29:11 +0200 Message-Id: <20181207152917.4862-3-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181207152917.4862-1-georgi.djakov@linaro.org> References: <20181207152917.4862-1-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This binding is intended to represent the relations between the interconnect controllers (providers) and consumer device nodes. It will allow creating links between consumers and interconnect paths (exposed by interconnect providers). Reviewed-by: Evan Green Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt | 60 +++++++++++++++++++ 1 file changed, 60 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..6775c07e1574 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/interconnect.txt @@ -0,0 +1,60 @@ +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 use case. 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 compatible string +- #interconnect-cells : number of cells in a interconnect specifier needed to + encode the interconnect node id + +Example: + + snoc: interconnect@580000 { + compatible = "qcom,msm8916-snoc"; + #interconnect-cells = <1>; + reg = <0x580000 0x14000>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_SNOC_CLK>, + <&rpmcc RPM_SMD_SNOC_A_CLK>; + }; + + += interconnect consumers = + +The interconnect consumers are device nodes which dynamically express their +bandwidth requirements along interconnect paths they are connected to. There +can be multiple interconnect providers on a SoC and the consumer may consume +multiple paths from different providers depending on use case and the +components it has to interact with. + +Required properties: +interconnects : Pairs of phandles and interconnect provider specifier to denote + the edge source and destination ports of the interconnect path. + +Optional properties: +interconnect-names : List of interconnect path name strings sorted in the same + order as the interconnects property. Consumers drivers will use + interconnect-names to match interconnect paths with interconnect + specifier pairs. + +Example: + + sdhci@7864000 { + ... + interconnects = <&pnoc MASTER_SDCC_1 &bimc SLAVE_EBI_CH0>; + interconnect-names = "sdhc-ddr"; + };