From patchwork Mon Apr 15 10:43:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 162184 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2758746jan; Mon, 15 Apr 2019 03:44:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6ku2YLcPizFU9isjj2ONNVoajcSO5iTLzvGX+ekubRNNl3M1+km1WoQ1UlKK3lF6NRPEF X-Received: by 2002:a62:1c54:: with SMTP id c81mr32240574pfc.122.1555325052164; Mon, 15 Apr 2019 03:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555325052; cv=none; d=google.com; s=arc-20160816; b=A86HFX+sw/sKFgk+dWWnzcfhBhX1Mt3axdBS8UkXc1fz+m1jqBlZVukRKwRHRR+HP5 FHAu4kjzbld64JkxR1rQcPcaFoVaF1IdS3SVZOvZPL/U/oyhi0+SdQ2RbMmFg2XNwyIv cmZkPvGWuq20NJH5x8BEP//+mZrQqHRchraYcIeTHBOorAYHfRVyzNDsrNI5jgUT4Z3V a4k0GBtN/JiRhYkRl4bd1WU4wcSg+4hghYxV/Gz4qXmxIKOacSIixnw580Ly84wIMF7w kKHgJ8uIBlF8DTD21ZZWtr4/ZfRrnhCvyLqONMfnZL5IvSW0bq/4QLtbsb+XHNMEW9uU JkDg== 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=N4FIqAto57qHftoaxcm39C8x4pv2aAla3Os18c3A+J6H1mATda1I3wTnFAzuYdmZep iit/GQJnLjSare5Jr0kty/+o+AxK7uIOIYjF3JIzvVWDmWWy4fxrr6/4VVadD1z6sd4V lhnlapHwVcXEu2lxk8StVTrbGTtSb1Ry0ojtXRiWk/CBv0cvTbAdBfAO/TacbTSNQQR9 cuvlIIT/YNTZVBPpsr/XJ/eVwrufSeLopn1MbLUh6rfEVKeqshUHij9rEH4WSUCSm116 mMVk7X+d1rNjQ5BcuSm4f0d8fkqGVeBKZxSjhlKP7xc3tcqb14dAWp80dcsPxWLf8tL2 sM0Q== 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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 k9si44568614pga.575.2019.04.15.03.44.11; Mon, 15 Apr 2019 03:44:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1727258AbfDOKoK (ORCPT + 11 others); Mon, 15 Apr 2019 06:44:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46554 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727253AbfDOKoI (ORCPT ); Mon, 15 Apr 2019 06:44:08 -0400 Received: by mail-lf1-f66.google.com with SMTP id k18so3751564lfj.13 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=HeIXJDP6u+i/0swgJS4fGKr68ne8sZftVRGMl9kGvGz2xFYN3iKJkD1o62l5Yw5VA3 2EbxquE30ULi01Lr1oyOkyTcCIUWXkijV7QO09wFR4tVpK+iUafYQfpVh1HPRXRHe6MU tB4pX/IixCF+rS3fb3EekC6zfgoX2MQ4jnDK+Nb1KFiNYdt6vqxmWNWX74rR2h0Z9Zd+ xnEETx8xRI80XVqvymmIwIBZP39YN33QHZ4ALg7XchNscQs+FPK3CyM2cDcxdYgG5Q47 NpfIlDCzHFiXKkL/qL8M+78PjFcXDJhgJPW4a7RcjtJBUrHwwcco3K7INNX7iKVeq49W 5QPg== X-Gm-Message-State: APjAAAX6XjPJtL5lx4zW7MrcSFsRM0/8cVImmN3bLDro6G5yJGKwAPcD J3z8cXCi0mK5Bmu47smRakwH/A== 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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>; }; }; };