From patchwork Fri Aug 31 14:01:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 145648 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp819429ljw; Fri, 31 Aug 2018 07:02:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbrsRmcr6qXp4t7ihl7dfWyM1JuAZnAgX12oZcRGFjJVK8P3uC7TWa0rwNy8OVhUuL+TJFJ X-Received: by 2002:a62:54c7:: with SMTP id i190-v6mr15944191pfb.155.1535724121962; Fri, 31 Aug 2018 07:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535724121; cv=none; d=google.com; s=arc-20160816; b=G+gIc1CT6t1hN18eq61D/P6gbRkgP50Sav9bPCrSESN/d2eFdGwlSQ4HitQlNANeGC 9c0f+H5IRE3X8nLOopzdjR6OpHlYYcAyBl8Ui+xRf+NrZVfYBWyWXqlmBik9AtKQAdyE jFtoz/uF0sTDd0M/7qT/pf4uca/C4au7KwkeFlvdGYw89Xk91LqmX9PfZfDJGrtCNQWd 7HvxfYL+SAESE15h8iQLm/6tA3TGZfYhf34tXIwnZuHfAOYK8Vs2AYHdHDYlFAxkeMbR /137F8KcLRgdOSf8ffTNcpY4yto2UCxXZ2AbJCxnFSkya/9TYVhx7nw7fLb69OabBYQj LB9A== 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:dkim-signature:arc-authentication-results; bh=Wpwh1J0n/D8S9rbxdqkayW0bLbU11ULq+GMS5dW7EjU=; b=LLKyN9txWr9nxcbAs+PVPcbBa/SNeu7KZQl5wl2l01/BTZxnauBRejXgZdtULfndwi XeVk0+71VpbekWfIjkFXBH2X+J6DESelcz4hWhMbie7TuJkUDxyJGa5Wmz8KUjvaMt3+ f0NX3ZSCKDt+9dSD7S/pvY2bedm/0nkDe3zaN+h7Mtr7utmZKi2KtdLKjoWHYqYaJ7JM 8y/c4yE+m0c8PNz3rE7rhVv3Mk74HZDfRu/VozdmZg4EpNJCBY2v8OnNLA5lbHKjfJLK m99GsNfG9+gG6ro2qjgh38XJdktmRU7RMq55t17NtJJ94jzpmFjTLbZuR40/0EjRwMwf eqPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WnKMpsPo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 m37-v6si4126722pla.236.2018.08.31.07.02.01; Fri, 31 Aug 2018 07:02:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=WnKMpsPo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728692AbeHaSJh (ORCPT + 6 others); Fri, 31 Aug 2018 14:09:37 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35036 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728675AbeHaSJg (ORCPT ); Fri, 31 Aug 2018 14:09:36 -0400 Received: by mail-wr1-f67.google.com with SMTP id j26-v6so11332377wre.2 for ; Fri, 31 Aug 2018 07:01:58 -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=Wpwh1J0n/D8S9rbxdqkayW0bLbU11ULq+GMS5dW7EjU=; b=WnKMpsPo7YRkUxgETFZi0F4/wLp546KODvbWtN2BHc9uDkMXKakn+Cq0aW7erowIw7 DZrIqcF8k1dLKnTZOLReOQQ5aOGIqsYbJUibaP/mz3fkqODYlXrye8b/ePQY7CVA9UPb JnG6JSLbZB5aIEs62YcMeY7RhmUArMwZnpZa4= 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=Wpwh1J0n/D8S9rbxdqkayW0bLbU11ULq+GMS5dW7EjU=; b=pPKjc3C0X5Buf+47tupqK0Upf9wFDxRImxualHRXq2fjjT+k0FJ8TjnfzhHz6ydkr6 18BKgeIEB/IW0lMZDr457P/abu5He7BlhvveHjvgCMgx2e0RjMCPrxWh96SVmdSpkjV/ eUuYaBkjPz9kFhByH3FcpvHme+mx4Pp+RxuQUlGr6mKG15pov1GSixOMEri375CPzAZc ubXtoCZC12d2fXPIaJVHldDnWwC22ff7E+zVAvNmfKr+rso2bRVbkYccSgxJUvcFs9y4 /Ho7J3y3kgGovNZdsUwOOZWTxqj9wp4HvporywzlZ5KWVMUihX+eyFGaBFC40OdrEJiY oaVQ== X-Gm-Message-State: APzg51AlmSCeA725gg9j5Ouzf7SxW+7N4aJTZZM7ictFOKn1pV5UAQ5e SUy8CRpjgl44z46fC6bApTd+GA== X-Received: by 2002:adf:ce06:: with SMTP id p6-v6mr11550258wrn.118.1535724117788; Fri, 31 Aug 2018 07:01:57 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id m68-v6sm8624513wmb.10.2018.08.31.07.01.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Aug 2018 07:01:57 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org, gregkh@linuxfoundation.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, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, abailon@baylibre.com, maxime.ripard@bootlin.com, arnd@arndb.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v9 2/8] dt-bindings: Introduce interconnect binding Date: Fri, 31 Aug 2018 17:01:45 +0300 Message-Id: <20180831140151.13972-3-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831140151.13972-1-georgi.djakov@linaro.org> References: <20180831140151.13972-1-georgi.djakov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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). 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..5cb7d3c8d44d --- /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: snoc@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 + specifiers. + +Example: + + sdhci@7864000 { + ... + interconnects = <&pnoc MASTER_SDCC_1 &bimc SLAVE_EBI_CH0>; + interconnect-names = "ddr"; + };