Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3303507yba; Mon, 8 Apr 2019 15:56:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/X8dAPv2FBosmu3X/LXNLBaK1DTfiObizRAwmEo0/UWaoiefKuQNZ4kGqYmqoPkIU2sZO X-Received: by 2002:a65:6545:: with SMTP id a5mr20228021pgw.264.1554764190386; Mon, 08 Apr 2019 15:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554764190; cv=none; d=google.com; s=arc-20160816; b=QXstz5qMx+GVNuyZYBRmvqhaA6HhNd0Vbc2qGxhKYYTDoEiAKHjTIZ0vxkfn9f3eNp 3QcJljbd1L0BEL7RQk66KltEUPoP+ckV0QnAa3xlJHxAQ0IrFlFmYgf0u/Jt08ODjHYH m0EId7LRYG8IRWaIlIVppIUFtXvhBmXs9TjsoExS8aeubWawV+oHVW0mgk0tjYEQyizW 6SsLNnmzYmaMNet69KfjsBIfbHubvk2oi4Am4WObpYqRzay0raLrG/Z2lRvtdQSOtpgu ybTErvSeXJizxqquddxpG4dSeMVwIm6a1/6ezlD4NxnwbxXjQuyYRcMtVFVk1Kdts5zF hQtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FfXCNxGjgip9tM/24J4x9HgXgQeH+eXUxsfXR19pBSo=; b=waVexhzPz/6ohE8c5aSwUrs0FJNeRwFrBjtU0dleOcaZbSPzCUVSLEPASC76vrUIf/ IsHd9x4DKxfFVGQbIkkUiA5JzmI/tvL6mS7UTyFR9UK/s9fEH8Gi58W3J0Gv1rlRNm97 xkYr5BwtKkfhMgabvp1w5DdT87eG79yacG7DdIQM9B0GcT2UaO9+I1ZmIybk+IpV5Ymd MO0+SvepOwQYMuYJOe8HHAR/sIM8ReUvA+IBMyBxQ9iDkVSCHQsEQ+fB82896ZR4xz/f 9ft+PrwY9UKt3/f5PN+YjRdV6tyF7AjmKyJwdszROYE63sO7MnEYEpHbp3PKtbgP945i jJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I6F3c3yt; 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 l66si27287198pgl.474.2019.04.08.15.56.15; Mon, 08 Apr 2019 15:56:30 -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=I6F3c3yt; 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 S1728067AbfDHWiW (ORCPT + 99 others); Mon, 8 Apr 2019 18:38:22 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37016 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbfDHWiW (ORCPT ); Mon, 8 Apr 2019 18:38:22 -0400 Received: by mail-pl1-f194.google.com with SMTP id w23so8158416ply.4 for ; Mon, 08 Apr 2019 15:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FfXCNxGjgip9tM/24J4x9HgXgQeH+eXUxsfXR19pBSo=; b=I6F3c3ytswQ2No1wfT9BwkH3vkabdrpJcUJ0D+X/pKLNaOCVbJuebSFNRj7cJ/a6KY zEPKjzFf/TqyZzQyubdQ0PpkKz1RsmL0kVycfyzx+1ovcvSeam8Eug0aMyu5uvd2e+n/ APe1+RzO76LnBoWHcTiglOc9BK7fasU8ALOk+Bnl24dS3KL94DMngoJZdQ+SPRz93Eh9 worpOkyLZcfpmHHToStEVo2EsCQG6K2wj8oJZNUGgHry/8C0vBHizi5KuKg5vqs7BRhh leDeM7XlwMbXAh/Sd0elxDag1PLKxXezjtU4ohTfCQ7Jdt6bBRQdnvCwXKyPaJ0x2Yd8 g7Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FfXCNxGjgip9tM/24J4x9HgXgQeH+eXUxsfXR19pBSo=; b=irJc1/Yh4vJchm9THumNFmdwd6Q1y5oTWdDBnnh8/5BlSQQ18/Ms70HQXrg1uc9xVO i20nsXlT1ORzX3VZDuvPUtFUfMI31cpS5AmkW6Yz3dKxOE7XMKN6SKraauGDX67WwZEP T5aQheTCX0/Ut7ZDN3j/UyFW4VCwsBz8CKVkGecEewWZNF0dUh7Mpbj0q9f8E0qAubLa h9LI8nQef75viAUaAUkPLdsq5k0bYCIXefCTscmAHBU2xln9IadL3FBgOGfz5abuPFty V3CQ8RzKZ8LUY96RFctGocn4PXuWrDTwwkiFAPLHO4MhLKyOps6FLPWPlC17PKGW/9oh WAMA== X-Gm-Message-State: APjAAAWvv95F70Zy7zy9s5UY3n1BvJSwhM9gISg/xhSDD0xrLxtt1D+P VXebOb87WiFjRZQIDWmoSxLTAA== X-Received: by 2002:a17:902:7441:: with SMTP id e1mr32220266plt.13.1554763101258; Mon, 08 Apr 2019 15:38:21 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v12sm41115361pfe.148.2019.04.08.15.38.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2019 15:38:20 -0700 (PDT) Date: Mon, 8 Apr 2019 15:38:17 -0700 From: Bjorn Andersson To: Georgi Djakov Cc: robh+dt@kernel.org, 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: Re: [PATCH 1/3] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings Message-ID: <20190408223817.GS1843@tuxbook-pro> References: <20190405035446.31886-1-georgi.djakov@linaro.org> <20190405035446.31886-2-georgi.djakov@linaro.org> <20190405143254.GM1843@tuxbook-pro> <9ee2c9b2-f201-abfb-be60-180befa9dc6d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ee2c9b2-f201-abfb-be60-180befa9dc6d@linaro.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 05 Apr 08:46 PDT 2019, Georgi Djakov wrote: > Hi Bjorn, > > On 4/5/19 21:32, Bjorn Andersson wrote: > > On Fri 05 Apr 10:54 +07 2019, Georgi Djakov wrote: > > > >> The Qualcomm QCS404 platform has several buses that could be controlled > >> and tuned according to the bandwidth demand. > >> > >> Signed-off-by: Georgi Djakov > >> --- > >> .../bindings/interconnect/qcom,qcs404.txt | 45 +++++++++++++++++++ > >> 1 file changed, 45 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt > >> > >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt > >> new file mode 100644 > >> index 000000000000..2ea63ea827d7 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt > >> @@ -0,0 +1,45 @@ > >> +Qualcomm QCS404 Network-On-Chip interconnect driver binding > >> +----------------------------------------------------------- > >> + > >> +Required properties : > >> +- compatible : shall contain only one of the following: > >> + "qcom,qcs404-bimc" > > > > As this is a hardware block available in mmio register space I think you > > better represent this on the mmio (soc) bus - and then represent the > > link to rpm as a child node of the rpm. > > The mmio register space is not used for expressing bandwidth needs, but > contains mostly QoS related stuff. We do not support QoS for now and > that's why i haven't included it. When we decide to support QoS, we can > add the nodes for the QoS registers and then reference them with some DT > property like qcom,qos = <&bimc_qos>; > The fact that QoS support is not implemented today is an implementation detail, it does not relate to how we're describing the hardware in DeviceTree. Adding three new nodes under soc{} and referencing these (and potentially duplicating the clocks properties in the two sets of nodes?) in the future, rather than just describing the hardware appropriately today seems odd to me. Further more, as I shared a while back the aggregation code related to the RPM would better be shared between 404, 410, 820 and 835. So to me it makes sense to even on the implementation side split this is NoC part and RPM part, from the beginning. Regards, Bjorn > Thanks, > Georgi > > > > > Apart from that this looks good. > > > > Regards, > > Bjorn > > > >> + "qcom,qcs404-pcnoc" > >> + "qcom,qcs404-snoc" > >> +- #interconnect-cells : should contain 1 > >> + > >> +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" > >> + > >> +Example: > >> + > >> +rpm-glink { > >> + ... > >> + rpm_requests: glink-channel { > >> + ... > >> + bimc: interconnect@0 { > >> + compatible = "qcom,qcs404-bimc"; > >> + #interconnect-cells = <1>; > >> + clock-names = "bus_clk", "bus_a_clk"; > >> + clocks = <&rpmcc RPM_SMD_BIMC_CLK>, > >> + <&rpmcc RPM_SMD_BIMC_A_CLK>; > >> + }; > >> + > >> + pnoc: interconnect@1 { > >> + compatible = "qcom,qcs404-pcnoc"; > >> + #interconnect-cells = <1>; > >> + clock-names = "bus_clk", "bus_a_clk"; > >> + clocks = <&rpmcc RPM_SMD_PNOC_CLK>, > >> + <&rpmcc RPM_SMD_PNOC_A_CLK>; > >> + }; > >> + > >> + snoc: interconnect@2 { > >> + compatible = "qcom,qcs404-snoc"; > >> + #interconnect-cells = <1>; > >> + clock-names = "bus_clk", "bus_a_clk"; > >> + clocks = <&rpmcc RPM_SMD_SNOC_CLK>, > >> + <&rpmcc RPM_SMD_SNOC_A_CLK>; > >> + }; > >> + }; > >> +};