Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp610605pxk; Thu, 3 Sep 2020 08:11:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjCteg85DK//P3VY8EbLFdLeitmfihVy0FRwrn4QrjHevLvGzq5ibg1H5duHqUBlbaTzZw X-Received: by 2002:a17:906:d14e:: with SMTP id br14mr2446764ejb.299.1599145917707; Thu, 03 Sep 2020 08:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599145917; cv=none; d=google.com; s=arc-20160816; b=rbM3zKYOjCSqnnQUE29+ou9J2Rr68plHrY8JQ8CEngvdVVmzenotQTp0PY6t+5UTdI VBL9Vkx4zDNlHCuGKAF8HJMLTDroLj0l4Um2F9nfegtrb1/8D38j995c+s87kEJkWoYn UpQWTHC50aMrSWmOqGfgB14aPnS3rSAJv97IySTH0ec/+uLEI7dTemzCKcCRyuTR7jhM lAiers/RtRhYCbGUeOh2/99edsnpVAxnUoWjrFCJSRyqVKGkHzCOoc0mW1/lZxMfiWqL yd6DDujlMrbtQXYh7/yPIwpiM0LLKxIEeriOXdB9tJjwNSNABh07FUs+PV2UhTxaBVTr CBMQ== 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=4v7riCkWqOW12WqwNbdYgi3MhtDbA8fxMcLkKxaVn1Q=; b=u0uEvTryKujdSeC9KmgggOsRtXUnAXqGxyL8UuHvsWstyqyP26XCAikUTz+8PrlZkO RRevf85YHB2QLmPot2vFDEujFoqaVf2FboGhpYmG2+SH8XvDk7+v03kxpeFod/prVVAg LfwLWamewX+rXB/dw2f6Vknyk2mdoEEk3VaObc0ayPdAMmzALXXcUACyOaADqVK6M82D I1n8X45uB6b5IeCwq4gF7mDf9xSg5n7BKGo+5m2o9IjMhHthyjqsJRIa7wARTs2n3Z5V m7K/t/8mdyXD7cxXl9l3yfrpeqrMi2JsBp0dVUwaHM1JVq7NO8YCrlmsekHC1frO7i8O Pj9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FxSMag+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a8si2286679ejx.662.2020.09.03.08.11.33; Thu, 03 Sep 2020 08:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FxSMag+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729408AbgICPKg (ORCPT + 99 others); Thu, 3 Sep 2020 11:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728988AbgICN5y (ORCPT ); Thu, 3 Sep 2020 09:57:54 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F2A7C0619E8 for ; Thu, 3 Sep 2020 06:31:40 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id a17so3240347wrn.6 for ; Thu, 03 Sep 2020 06:31:40 -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 :mime-version:content-transfer-encoding; bh=4v7riCkWqOW12WqwNbdYgi3MhtDbA8fxMcLkKxaVn1Q=; b=FxSMag+QeOzVZzZ+W/d4wUZ228qXnTc22tAxz97IrORD8jZ1HYcP+sq2f2Lx6LfZL3 hCQmI3l6sISeNn78F6Z3VYf7cXFECd9N8RKUZSKARukgkj2KPTDjIQ10GSUQZ2e4kU1i 5lq3epDjkN01sN0gOs9C3LbtQ6sDJ/49NDuxEpQXTerjREMHIdAX7obuKgHhjQb7KXWQ Z2+WlBaT30YpbYgKs+NkWSUG4DKGwNe0EF60dRWyW7HFlwDhxELhqAmCvLa6/kBrW/87 TrIVqzw/5wBYmDyhC465Zn9R9K5WBAHLQZxAy/QZRgflKb/yJcaMeT2obJzIRa5fJ54F x3YQ== 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=4v7riCkWqOW12WqwNbdYgi3MhtDbA8fxMcLkKxaVn1Q=; b=J/80YWjYARKyIKgKy/ppAHxjBMIBRZNMCDlCVd1BeZvAkAPPg9/eT//ftJl1c3xaw3 N720Slf3WzAfrqpVYfWSXJHAmL5x2NOwUuNDRE2KQOSgnUiuO3ia38JsV49afijNPsU0 bbgG34tSlx8M6K25fIev6r8wNk5qMqQR/5iJCZLY6Ju1Oq/DqbsQhyIQgTbiISzzA8Tu dEZUhPl1c/HibqLzpeG/WojJwRkhOgPBSGNqcqYpMXdshD2ML2gVxapt+OF8zDNT56Z6 rPN/5S7u64C/K3xI9CNczS2o4sNNo93VUaf9CqTsai+PAhveIupu2ghprIGaU3Hk+94c JVew== X-Gm-Message-State: AOAM532wor5MKrf6OVipME6TJCK90r/Va90EpgakENwzWcpCaFDu1yw0 r0RpJuUmPnIkZqLiixbSuur8Og== X-Received: by 2002:a5d:514e:: with SMTP id u14mr2485171wrt.211.1599139899481; Thu, 03 Sep 2020 06:31:39 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id b2sm4310768wmh.47.2020.09.03.06.31.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2020 06:31:38 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org, bjorn.andersson@linaro.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, sibis@codeaurora.org, mka@chromium.org, dianders@chromium.org, georgi.djakov@linaro.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v3 2/7] dt-bindings: interconnect: Document the support of optional path tag Date: Thu, 3 Sep 2020 16:31:29 +0300 Message-Id: <20200903133134.17201-3-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200903133134.17201-1-georgi.djakov@linaro.org> References: <20200903133134.17201-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 Let's document that we now support specifying path tag information in the arg cells of the 'interconnects' DT property. This information would be populated when the xlate_extended() callback is used. Specifying the tag in DT will allow the interconnect framework to do the aggregation based on the tag automatically. The users can still use the icc_set_tag() API if/when needed. Reviewed-by: Rob Herring Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interconnect/interconnect.txt b/Documentation/devicetree/bindings/interconnect/interconnect.txt index 6f5d23a605b7..138c544c8c8c 100644 --- a/Documentation/devicetree/bindings/interconnect/interconnect.txt +++ b/Documentation/devicetree/bindings/interconnect/interconnect.txt @@ -19,7 +19,8 @@ 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 + encode the interconnect node id and optionally add a + path tag Example: @@ -44,6 +45,10 @@ 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. + An optional path tag value could specified as additional argument + to both endpoints and in such cases, this information will be passed + to the interconnect framework to do aggregation based on the attached + tag. Optional properties: interconnect-names : List of interconnect path name strings sorted in the same @@ -62,3 +67,20 @@ Example: interconnects = <&pnoc MASTER_SDCC_1 &bimc SLAVE_EBI_CH0>; interconnect-names = "sdhc-mem"; }; + +Example with path tags: + + gnoc: interconnect@17900000 { + ... + interconnect-cells = <2>; + }; + + mnoc: interconnect@1380000 { + ... + interconnect-cells = <2>; + }; + + cpu@0 { + ... + interconnects = <&gnoc MASTER_APPSS_PROC 3 &mnoc SLAVE_EBI1 3>; + }