Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2038006yba; Mon, 15 Apr 2019 03:45:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsbpyOsyduyAA0/pVUAvKQ0qgbIf2WhU3Mmv3GILDIvtJbCY4MYmvaaTzLLzJTV8sR/zO6 X-Received: by 2002:a65:610a:: with SMTP id z10mr22452792pgu.23.1555325104671; Mon, 15 Apr 2019 03:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555325104; cv=none; d=google.com; s=arc-20160816; b=GEv90qBrARVQd3z2yhInFfudwqF8OPQKNdRQbiwKPa8mO48hW7Hn33wWVdAn6aqTlL +mGBGlrRdBEiQZ7nHQFuwU0dwHNV4u2wDfvbiH5C6Cz3oat7Go9omJYjaOg4Ltgp4shY 84O9AQJ+pVv+q34MtTk6SgPdSsh/0O+erhar+Ly4PtuHkO/SfKHgUiCJ4c1wPqPdvb3r FUU5bjg9AqKvXzooDzH4K3zMqPWRq/HXh3kQbOXW/dqnvk5J6jzujT3ncXZuKkLj+cMT sZ09S4L4zfc2y1sOCG9B3cP7Vx1TPIjRfi6svW/cwvYB/Fg56GYMd6QLOQ6Uyw5/UBMG KNfA== 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=WnMjrli1zTUtUE5+GT4k5X5hghHhqsPUuTlBpNnfz/8=; b=Kx1XY+2eHwWPP7kateBNbrUUwogHviIKP6RyOWoHrRpOImOFfRKGCbyI1zoSPRjEU7 dNC0Auj5Df5XUrlStyDAZCNjMYQr2CqWzVWddeNFK1QCftQURCzEPrADZMxuJs/Ugnfl qk6BQoS7j3PSilzu/4iP54szPXF/EBlN5R/KJr6H9KYvmuN8Bit55KL4vv7szTFcgkus jBujm3f7WiR2CDh6LYBiZF44oBZvUU9UVD4M++Ziiq5JH4I76Bl1LuqqdDyRMgqJit3v pb7tkyHUI0uRtACvJJ+PvRMWJSL2A9ezwR97XsYM0hT5DEXFQXPDyjRbOQ3gYyhQVz7J pdWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n3bfc+y6; 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 j30si45044467pgl.338.2019.04.15.03.44.48; Mon, 15 Apr 2019 03:45:04 -0700 (PDT) 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=n3bfc+y6; 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 S1727297AbfDOKoL (ORCPT + 99 others); Mon, 15 Apr 2019 06:44:11 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41197 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfDOKoI (ORCPT ); Mon, 15 Apr 2019 06:44:08 -0400 Received: by mail-lf1-f67.google.com with SMTP id t30so12670295lfd.8 for ; Mon, 15 Apr 2019 03:44:07 -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=WnMjrli1zTUtUE5+GT4k5X5hghHhqsPUuTlBpNnfz/8=; b=n3bfc+y6021NjYFPdYL0NUa4U/Zj0uMTb2RRNUH9KzCteZ+gMVZO4Q/BFUfyXaHQDu nNLzl6YO+QiCJ9bOWxtcJ3/IaUT9aUmtsLpfCH+dlHKN2NI6Wne/UUSZXi6gGj1eSELO 8wvw8cLtoX+kz5cu5N3hfLMQvqgmsktB8oMVoE1SiEbvLvN5xxrR9+6VO8Je2H1BvSbj cNgf6MnLgkC8z3bpkDwwC0qSLpQ0lX5N1dIiIL64s5ytJC4Zpjnt2By5jnL4M0GYwCVg wALX/z4aWjTs+G8fIENT+AhcTLoQBnF2QRSo6QFCLYbFAMngDgr2GaW04My6bRj44/bN pPFQ== 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=WnMjrli1zTUtUE5+GT4k5X5hghHhqsPUuTlBpNnfz/8=; b=stcii6Xfp/rvRYTkHenzBAJfBiZeKgSLU9Iq3gKgR+WOjH1THi8iqIL9ytle/R57vS dIxZLk0rlRS86MyTArpRRzj6+CQ/QE6mbeGu6un6vFFKK3/FMCmSHq0dvM+EoQ6+nHwC AffYRqVdYPkyN4DKubPnkz0T/y4WojaqJZ9VLdjC+i9EkXrf/KwD3t0j4fbDIq66HvSb Fjs1G0s+T03Z54GluJs3XengA1hQRg2NPnpkOHG7NyAq0x+1omU4xalTXUX9/+6sFemJ 4szfqUF2qad2iGV8s7LXjc3W9V35hXhcgOrlhes9StIJdpJhemZH+X333923bMe73oBb atHg== X-Gm-Message-State: APjAAAXsv51ti83U+a9JL5Tamhl3vJ+eOi52qLmLGIoV3UvMv55knuK8 vj1T4n4ZxqQZWSVLyty9KtihcA== X-Received: by 2002:ac2:4357:: with SMTP id o23mr16889458lfl.146.1555325046597; Mon, 15 Apr 2019 03:44:06 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id k21sm9812596ljk.21.2019.04.15.03.44.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Apr 2019 03:44:05 -0700 (PDT) From: Georgi Djakov To: robh+dt@kernel.org, bjorn.andersson@linaro.org, georgi.djakov@linaro.org Cc: vkoul@kernel.org, evgreen@chromium.org, daidavid1@codeaurora.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 4/4] dt-bindings: interconnect: qcs404: Introduce qcom,qos DT property Date: Mon, 15 Apr 2019 13:43:57 +0300 Message-Id: <20190415104357.5305-5-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415104357.5305-1-georgi.djakov@linaro.org> References: <20190415104357.5305-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 There are separate hardware blocks per each interconnect that allow QoS configuration to be applied to each port (node). There are different kinds of priorities that could be set on these ports. Each port supports also various QoS modes such as "fixed", "limiter", "bypass" and "regulator". Depending on the mode, there are a few additional knobs that could be configured. Introduce the qcom,qos property, so that we describe this relation in DT and allow the interconnect provider drivers can make use of it. Signed-off-by: Georgi Djakov --- v2: - New patch. .../bindings/interconnect/qcom,qcs404.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt index 9befcd14a5b5..b971e0ee2963 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt +++ b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt @@ -11,9 +11,37 @@ Required properties : Optional properties : clocks : list of phandles and specifiers to all interconnect bus clocks clock-names : clock names should include both "bus_clk" and "bus_a_clk" +qcom,qos : phandle to the QoS device-tree node Example: +soc { + ... + bimc_qos: interconnect@400000 { + compatible = "qcom,qcs404-bimc-qos"; + reg = <0x400000 0x80000>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_BIMC_CLK>, + <&rpmcc RPM_SMD_BIMC_A_CLK>; + }; + + pcnoc_qos: interconnect@500000 { + compatible = "qcom,qcs404-pcnoc-qos"; + reg = <0x500000 0x15080>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_PNOC_CLK>, + <&rpmcc RPM_SMD_PNOC_A_CLK>; + }; + + snoc_qos: interconnect@580000 { + compatible = "qcom,qcs404-snoc-qos"; + reg = <0x580000 0x14000>; + clock-names = "bus_clk", "bus_a_clk"; + clocks = <&rpmcc RPM_SMD_SNOC_CLK>, + <&rpmcc RPM_SMD_SNOC_A_CLK>; + }; +}; + rpm-glink { ... rpm_requests: glink-channel { @@ -24,6 +52,7 @@ rpm-glink { clock-names = "bus_clk", "bus_a_clk"; clocks = <&rpmcc RPM_SMD_BIMC_CLK>, <&rpmcc RPM_SMD_BIMC_A_CLK>; + qcom,qos = <&bimc_qos>; }; pnoc: interconnect@1 { @@ -32,6 +61,7 @@ rpm-glink { clock-names = "bus_clk", "bus_a_clk"; clocks = <&rpmcc RPM_SMD_PNOC_CLK>, <&rpmcc RPM_SMD_PNOC_A_CLK>; + qcom,qos = <&pcnoc_qos>; }; snoc: interconnect@2 { @@ -40,6 +70,7 @@ rpm-glink { clock-names = "bus_clk", "bus_a_clk"; clocks = <&rpmcc RPM_SMD_SNOC_CLK>, <&rpmcc RPM_SMD_SNOC_A_CLK>; + qcom,qos = <&snoc_qos>; }; }; };