Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4392880imu; Fri, 30 Nov 2018 16:40:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJFQuEpM4Kjm29Rimynj99dsLIK6Tg2NnM725kDC0yWmd/LuyVGXRjWvJxDQbzZbu0p3Pu X-Received: by 2002:a63:d604:: with SMTP id q4mr6468440pgg.175.1543624805024; Fri, 30 Nov 2018 16:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543624804; cv=none; d=google.com; s=arc-20160816; b=voeQFSGWYJ7ZWEiWCATg8UGfYf2ShSpzimKgGoFaiGSoJwzZYPnr6SE2eoGih+DrL8 aUbXrruIdxmjv6AQmSCgWwnRthXAMKTUykVZUfaGiloY+7lqo8bnWLBw7iwuPfCNMe49 gVaxLPuRYNP83VA+iqPfvHfT8t9/1r2WZVq9IAMdWLGiHq8DvzWN0O0wFr2d5i8PgIPq sfzWqX+y/nGp9IlY1gA9686TH0z9Vr/dSSvk8B3DV/n/qnPoSIG9N6248A1tNp2wiC// 4Ktz3MLPqacJthCDHRfXZlcey2wIhMDrwYNjoMLpvOc4hZtNKgFGf1ENqxuCP8et2vSK Wkgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kUwgOG2FwKn73vdyjMJ9x8UdUTas2QjkWsYuqenQdmk=; b=XxCVdSNw724PvULhgUMzqOmGmkT+rB8b3w4pce+6iYO0ddO074LjGAssrFOpzMYGrC QxRluTXYQ08pn4uPThW+MqH9JouJn0gL8TyKj6pqdORQ0DVEMHhv6dmJGJEQzlz5Td87 nIRBxWxVL/Erx3PvxZnyD6TwUPTkOUPY+sMw7/UlK4gj3O6I8uGiJNNRbfgN/9frVNSc 4ui5jEbqcXVM9/AouhO+IyB++rchj00B29DjdrDvDGWEk1q8WgbjI/GQbaq/w15e2DZ0 yC/tMNnzZQJVwR/pJ2m4x8e5LsOVikLoV6IUkKHyoHmGDFFC5MjF7Y8XZskv5ZXpVFEf R92A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A7LzCfW8; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i23si6358656pgb.116.2018.11.30.16.39.49; Fri, 30 Nov 2018 16:40:04 -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=@chromium.org header.s=google header.b=A7LzCfW8; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbeLALuX (ORCPT + 99 others); Sat, 1 Dec 2018 06:50:23 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44566 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbeLALuW (ORCPT ); Sat, 1 Dec 2018 06:50:22 -0500 Received: by mail-lj1-f193.google.com with SMTP id k19-v6so6511396lji.11 for ; Fri, 30 Nov 2018 16:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kUwgOG2FwKn73vdyjMJ9x8UdUTas2QjkWsYuqenQdmk=; b=A7LzCfW8fURMHCJvh+eCrnoMDst+w2MVobrY/ZRoPlxnsGPWMEUvJXYP77/Y0ZJnSA 2Vhypd2U8MDqCiOJmmUADxU5zMOS6bPMoXSseYHpjLXLLJJ8sq/v2roeVEOBMODAFJle Znz3Vp4EV3lEU+OabVzWSKhiwqKwKnRyH1oUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kUwgOG2FwKn73vdyjMJ9x8UdUTas2QjkWsYuqenQdmk=; b=fJJYZRIGFC647e8RwjAyQ0K8LKrrhdfqzVWCAKgZiUTHKbh+zlh0FQyVapGmU36Eu3 IiFKuo6OVKG2Nsz3PxCI6c2dKywmGMLL7mMZd4HtRVjDxVPL3e5gIfk4jHM+eS2oxlfc XbLRzfQpKTf9Hh7CShODRpcByTG2ra30lJGrYSdEjrIRpI1wRsWE7/x7MA6FwbwepPzw fyCfCToY19uP5GDbcRtdFVpHNltapsjg++XxmoT/3Ey8Xyj2uHrsBKYqZ4nP20G3d8I3 4OHPsF+a155nIhkBMO6xnaJjekk9/BBD8hCfVkC6+xlKUjj0wWE8bzeMekweMduiynFs BWhA== X-Gm-Message-State: AA+aEWbZL5XUGpXZ+eke6SNvazGfSQh7rxJAhw177y8G7LBLIe8rToWg uLuV0DKD/JKGQDaNmPKra/z06Hl/9vg= X-Received: by 2002:a2e:9715:: with SMTP id r21-v6mr5083046lji.30.1543624750735; Fri, 30 Nov 2018 16:39:10 -0800 (PST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id j12-v6sm1057962ljh.66.2018.11.30.16.39.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 16:39:09 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id s5-v6so6516096ljd.12 for ; Fri, 30 Nov 2018 16:39:08 -0800 (PST) X-Received: by 2002:a2e:501:: with SMTP id 1-v6mr5641242ljf.74.1543624747961; Fri, 30 Nov 2018 16:39:07 -0800 (PST) MIME-Version: 1.0 References: <20181127180349.29997-1-georgi.djakov@linaro.org> <20181127180349.29997-3-georgi.djakov@linaro.org> In-Reply-To: <20181127180349.29997-3-georgi.djakov@linaro.org> From: Evan Green Date: Fri, 30 Nov 2018 16:38:31 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 2/7] dt-bindings: Introduce interconnect binding To: georgi.djakov@linaro.org Cc: linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, rjw@rjwysocki.net, robh+dt@kernel.org, Michael Turquette , khilman@baylibre.com, Vincent Guittot , Saravana Kannan , Bjorn Andersson , amit.kucheria@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, Alexandre Bailon , maxime.ripard@bootlin.com, Arnd Bergmann , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 10:03 AM Georgi Djakov wrote: > > 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..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"; > + }; Reviewed-by: Evan Green