Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4388434ybi; Mon, 15 Jul 2019 08:12:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEPyyGU81BhFy5++HtYTKVppwSsjYqJ/WISrLk438Veyhu5AVs+G9YIPWtBUlFNgpS14he X-Received: by 2002:a17:902:8a94:: with SMTP id p20mr28857282plo.312.1563203545363; Mon, 15 Jul 2019 08:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563203545; cv=none; d=google.com; s=arc-20160816; b=Ym0T6CoelMHY0Lbq4lZqy4wA5wUKUMZhM0vT5wwPy5ZlU6tR46zQu0m4Ff6sbphEIY 21oFamJLim/jE+bscT0KMaIcd1tUbpN7Xxb5jNXiI2/owvzrM79+nBCgHzHMviA3Zf9U rreJd15X3MPHxlWhMOaAaQC5D3U4N/IOEPkkBLCDHuMtYlg103dncJWpKwwqAAcbToUJ VL882TgVqUCaSNjTfgEtxE1pN9Yjj8cWMl+J6og6bZLnf8RNPocL/v/pjfQuhTlMj/sT 7riger7rR+8D4vBniGtvDu6OvopwqtWJY8DesvUufcQvaubZrleJXY7a/G0wqV6GHVKe mX5Q== 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 :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=AQA3rAirNvZxKwlWUk/9YJ/2ZCXTfP6FUgOkw0oiaHo=; b=isbPZ5hobcf5v7pu0em5DDeQg2aFsmiLDBufW0F1LBlkJh58q48QzbjYSYREhMVop8 Dyi84k5mZEl+x/yxoLMAzOYkGIr1yGkY6RRjzumtbVJMUDLgNjawUZgMxqnJ9CbXBgh8 oNQNc5FkrAnEYNTnqGIeYXViXrRnMFAj07RmvSTUzzVbn40EIhnblC0CWURCtkJINnMu o2UQufdq3d+qShU0a603DNuGRuv0WyhoSMcnHBz5d3yaZ134MWIC2kSxe821V/NBNsHg OS14dBfgZEFC2lzTUK3YIFhhMsdQcuUt31iKHz+sQDvRB7IDx0CTDQumsaHNyZhTIa/u y04w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rGQho+rA; 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 e123si16855849pfa.252.2019.07.15.08.12.08; Mon, 15 Jul 2019 08:12:25 -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=rGQho+rA; 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 S2387500AbfGOPJx (ORCPT + 99 others); Mon, 15 Jul 2019 11:09:53 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35749 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732784AbfGON4I (ORCPT ); Mon, 15 Jul 2019 09:56:08 -0400 Received: by mail-lf1-f68.google.com with SMTP id p197so11060527lfa.2 for ; Mon, 15 Jul 2019 06:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AQA3rAirNvZxKwlWUk/9YJ/2ZCXTfP6FUgOkw0oiaHo=; b=rGQho+rAvF5bf8OQFUILTdrWAvao0/A+FK6CXAY2yvsdgYrKy+o8nMLBDh9RN2Tevr 1xRWj8rhRcsS0gq5Zlv7P8XA5QHzfc7F3K2SiQjiWOG6h+0kyBDTYKrFyJJhArNqUVOu OG61/tmFoHYXOxampkVklYiAjeyYqd1nj1hnUQCXAr1RydqNqEM5yRUDTrqHIDEgMeAH J9WAEx8jxt/aA912sTTzAl+VZ4gal6o7aFFQiHgtu6eNBbdBri1k0RAGP69gZ/zNSV2W 0iG17lVk5T6lb6YdXLY5RCF1xsMI+HNFEmj1fF/6MkTcgurPNXV9im8PtM8/sPEY9hYW 9zyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AQA3rAirNvZxKwlWUk/9YJ/2ZCXTfP6FUgOkw0oiaHo=; b=otlMiU9HJimWSnMC+vnBXBuwQOKBCTPBVIdj5bKD0VeBbrSXPH08tlCho7rp2MgU1E ujIkRXWIsTC9ixZn6ssxaxOpPjMWeT2qZhE48xNgy/HBn6XesGAF2y5h6Rhu3l/uyKnS pObeqtj8PBCWiFtxSGTM+MyXbsmv7SqvuRvOegRrHaaKWHGY/tFLRd3Tg6fvCQLZN9OT 13r50p9T8hckulCh13QRRaYcJazpvQM5qzjCtJ+M/53ssbpuBC/wI1ktgkdWJfyipZxy SaiWiTQejNJC/pBDQgchxQZvCwtSC9qrYqaWhPKJ3ZTAimxzRG9+vQOo+w06mhsMGHjn 9OwA== X-Gm-Message-State: APjAAAUTYXLMjueDTrHA/3cYef0Q6jQy/6znBz3NfRgbxOwwGoF6UYoE bh1ZTmIZZS9tbyiZmOgJbdZawA== X-Received: by 2002:ac2:568e:: with SMTP id 14mr11820863lfr.189.1563198964973; Mon, 15 Jul 2019 06:56:04 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id d16sm3155336ljc.96.2019.07.15.06.56.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 06:56:04 -0700 (PDT) Subject: Re: [PATCH v4 1/5] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings To: Bjorn Andersson Cc: robh+dt@kernel.org, agross@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 References: <20190613151323.10850-1-georgi.djakov@linaro.org> <20190613151323.10850-2-georgi.djakov@linaro.org> <20190708192612.GE30636@minitux> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2V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sPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <70982f11-792e-6c02-056d-47582708be4f@linaro.org> Date: Mon, 15 Jul 2019 16:56:03 +0300 MIME-Version: 1.0 In-Reply-To: <20190708192612.GE30636@minitux> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 7/8/19 22:26, Bjorn Andersson wrote: > On Thu 13 Jun 08:13 PDT 2019, Georgi Djakov wrote: > >> The Qualcomm QCS404 platform has several buses that could be controlled >> and tuned according to the bandwidth demand. >> >> Reviewed-by: Bjorn Andersson >> Signed-off-by: Georgi Djakov >> --- >> >> v4: >> - Add the DT header into this patch. >> - Pick Bjorn's r-b. >> >> v3: >> - Add a reg property and move the interconnect nodes under the "soc" node. >> >> v2: >> - No changes. >> >> .../bindings/interconnect/qcom,qcs404.txt | 46 ++++++++++ >> .../dt-bindings/interconnect/qcom,qcs404.h | 88 +++++++++++++++++++ >> 2 files changed, 134 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt >> create mode 100644 include/dt-bindings/interconnect/qcom,qcs404.h >> >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt >> new file mode 100644 >> index 000000000000..14a827268dda >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt >> @@ -0,0 +1,46 @@ >> +Qualcomm QCS404 Network-On-Chip interconnect driver binding >> +----------------------------------------------------------- >> + >> +Required properties : >> +- compatible : shall contain only one of the following: >> + "qcom,qcs404-bimc" >> + "qcom,qcs404-pcnoc" >> + "qcom,qcs404-snoc" >> +- #interconnect-cells : should contain 1 >> + >> +Optional properties : >> +reg : specifies the physical base address and size of registers >> +clocks : list of phandles and specifiers to all interconnect bus clocks >> +clock-names : clock names should include both "bus_clk" and "bus_a_clk" > > Spoke to Rob about this patch, and I don't think these properties should > not be described as optional. > > The reg isn't used unless we're implementing support for QoS, but let's > include them in the binding as required anyways. Ok, will do it! > > Iirc the two clocks are required with the current implementation, but > shouldn't there be an iface clock as well, for accessing the QoS > register space? Actually i expect this to be a list of AXI clocks of the IP blocks, whose QoS ports we configure. For this platform, according to downstream, it would be just <&gcc GCC_SYS_NOC_USB3_CLK>. For other platforms i see these are a few usb/ufs clocks that should be enabled while we set QoS for usb/ufs. > > PS. As I read this again, please drop _clk from the two clocks names - > we know they are clocks... Sure, will do it! Thanks, Georgi > > Regards, > Bjorn > >> + >> +Example: >> + >> +soc { >> + ... >> + bimc: interconnect@400000 { >> + reg = <0x00400000 0x80000>; >> + 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@500000 { >> + reg = <0x00500000 0x15080>; >> + 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@580000 { >> + reg = <0x00580000 0x23080>; >> + 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>; >> + }; >> +}; >> diff --git a/include/dt-bindings/interconnect/qcom,qcs404.h b/include/dt-bindings/interconnect/qcom,qcs404.h >> new file mode 100644 >> index 000000000000..960f6e39c5f2 >> --- /dev/null >> +++ b/include/dt-bindings/interconnect/qcom,qcs404.h >> @@ -0,0 +1,88 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +/* >> + * Qualcomm interconnect IDs >> + * >> + * Copyright (c) 2019, Linaro Ltd. >> + * Author: Georgi Djakov >> + */ >> + >> +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_QCS404_H >> +#define __DT_BINDINGS_INTERCONNECT_QCOM_QCS404_H >> + >> +#define MASTER_AMPSS_M0 0 >> +#define MASTER_OXILI 1 >> +#define MASTER_MDP_PORT0 2 >> +#define MASTER_SNOC_BIMC_1 3 >> +#define MASTER_TCU_0 4 >> +#define SLAVE_EBI_CH0 5 >> +#define SLAVE_BIMC_SNOC 6 >> + >> +#define MASTER_SPDM 0 >> +#define MASTER_BLSP_1 1 >> +#define MASTER_BLSP_2 2 >> +#define MASTER_XI_USB_HS1 3 >> +#define MASTER_CRYPT0 4 >> +#define MASTER_SDCC_1 5 >> +#define MASTER_SDCC_2 6 >> +#define MASTER_SNOC_PCNOC 7 >> +#define MASTER_QPIC 8 >> +#define PCNOC_INT_0 9 >> +#define PCNOC_INT_2 10 >> +#define PCNOC_INT_3 11 >> +#define PCNOC_S_0 12 >> +#define PCNOC_S_1 13 >> +#define PCNOC_S_2 14 >> +#define PCNOC_S_3 15 >> +#define PCNOC_S_4 16 >> +#define PCNOC_S_6 17 >> +#define PCNOC_S_7 18 >> +#define PCNOC_S_8 19 >> +#define PCNOC_S_9 20 >> +#define PCNOC_S_10 21 >> +#define PCNOC_S_11 22 >> +#define SLAVE_SPDM 23 >> +#define SLAVE_PDM 24 >> +#define SLAVE_PRNG 25 >> +#define SLAVE_TCSR 26 >> +#define SLAVE_SNOC_CFG 27 >> +#define SLAVE_MESSAGE_RAM 28 >> +#define SLAVE_DISP_SS_CFG 29 >> +#define SLAVE_GPU_CFG 30 >> +#define SLAVE_BLSP_1 31 >> +#define SLAVE_BLSP_2 32 >> +#define SLAVE_TLMM_NORTH 33 >> +#define SLAVE_PCIE 34 >> +#define SLAVE_ETHERNET 35 >> +#define SLAVE_TLMM_EAST 36 >> +#define SLAVE_TCU 37 >> +#define SLAVE_PMIC_ARB 38 >> +#define SLAVE_SDCC_1 39 >> +#define SLAVE_SDCC_2 40 >> +#define SLAVE_TLMM_SOUTH 41 >> +#define SLAVE_USB_HS 42 >> +#define SLAVE_USB3 43 >> +#define SLAVE_CRYPTO_0_CFG 44 >> +#define SLAVE_PCNOC_SNOC 45 >> + >> +#define MASTER_QDSS_BAM 0 >> +#define MASTER_BIMC_SNOC 1 >> +#define MASTER_PCNOC_SNOC 2 >> +#define MASTER_QDSS_ETR 3 >> +#define MASTER_EMAC 4 >> +#define MASTER_PCIE 5 >> +#define MASTER_USB3 6 >> +#define QDSS_INT 7 >> +#define SNOC_INT_0 8 >> +#define SNOC_INT_1 9 >> +#define SNOC_INT_2 10 >> +#define SLAVE_KPSS_AHB 11 >> +#define SLAVE_WCSS 12 >> +#define SLAVE_SNOC_BIMC_1 13 >> +#define SLAVE_IMEM 14 >> +#define SLAVE_SNOC_PCNOC 15 >> +#define SLAVE_QDSS_STM 16 >> +#define SLAVE_CATS_0 17 >> +#define SLAVE_CATS_1 18 >> +#define SLAVE_LPASS 19 >> + >> +#endif