Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4647419ybi; Tue, 11 Jun 2019 10:03:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt/K7z9Bl0m+7YQw0sZml+JbuNYPrfed8YyA4bMi5f0A0Cbhjnru4Jfp+fnnILAvrKCJpk X-Received: by 2002:a65:48c3:: with SMTP id o3mr21389445pgs.351.1560272588469; Tue, 11 Jun 2019 10:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560272588; cv=none; d=google.com; s=arc-20160816; b=JvEsDm/HB5c++AdQvRIx4aITCpHHmDwOOz3UoZkuc90dp1ZV5aSv5iJPtYzqTd68TU Xsq/Vyfhkyz1bJ8kIjFidrK3dmek+y/Qe7FB+BdsRlt38VxfF0NaVa1DK5JiBaQqN3ct 6VsH8+yaaL36fLIewwcwuP8xTMi2hgxLR7aBfMusdfbWQ79gMVb2wsiAGzwy7GcxLTHZ Bu/2ytmip4odi141knZ5q1uTHT3IE4S7SyyGM4VRGVzWYsmPGnal1qE7ROCMlqxjVzGR v5iF4n/SBJ8XLzxje7JhWCuS7mEGkH5GYsXgzSXcO4TMNpj1QQrHv2Q1/YfxsqEb3GrN mi3w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Vh/p30irgSD9xffiE9oewWj7mUanYFsIl2djx+XobXY=; b=N7MPbc/XScm0jAfWlQAkP0RKtnmXQ3Z0uPM8P6WGRxqFMH8XoPMOZQNN/K0lDJG1dA V2f15W0i2lWJlznE8zONTZ7blLZf69QUwDexRhepCfSFuMje1BRernflobPd9AxItZBC c3ToPS4O1frp4JT9BpawCtxXsupjeiFRLoSlvs7Zgf8AmUguE1pQH4SGUvboxc3PFiIF tJpCdVKv++wSmw26n/Qb/a91Bn7TWnklXveY34IHS+tJrzYDxF4XlFiAA1OOvUDSA02f EQMN2aJfdIVhZ1mEWz9CxN0Ka+7rwUOouyfy7oDmbeYKSSTGk+Qo3coJalZarNYKQpOA Jejw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HC8AWtBB; 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 o127si6011191pga.593.2019.06.11.10.02.52; Tue, 11 Jun 2019 10:03:08 -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=HC8AWtBB; 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 S2404908AbfFKQmI (ORCPT + 99 others); Tue, 11 Jun 2019 12:42:08 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41784 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391961AbfFKQmH (ORCPT ); Tue, 11 Jun 2019 12:42:07 -0400 Received: by mail-lf1-f65.google.com with SMTP id 136so9819072lfa.8 for ; Tue, 11 Jun 2019 09:42:06 -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:mime-version :content-transfer-encoding; bh=Vh/p30irgSD9xffiE9oewWj7mUanYFsIl2djx+XobXY=; b=HC8AWtBBddfq3ja6eieAy2clA5L9ShGX6GyMrlQqv6G8p7YcQh6KXu6TZKJ6loUu8e uebZxIXw7Eer6dDh/YOVEkNczX7wjuQP390PWjZ4DtdMN3fZufuQO2zlu3FCWh0C6xQy zpr6YKhTIPYo6vBOPhE+ioXDgmlj5Uoh5PTtyaD8qNpHNLFMCJX/xSqGih3W7hjfGGWB oZu60TB9cXE61ntew4y5uKq8HyXYeXeJa+lQu+YFnHp3McpHYA8VbNB2rW0YwOxKfu60 5BNOW9NXWkoFP4lqNwXOKu7APUdh+YsQJ1IJ0anWyS+KbTDPiO9KBTYuoCENpwZkD5/Y UEtQ== 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:mime-version :content-transfer-encoding; bh=Vh/p30irgSD9xffiE9oewWj7mUanYFsIl2djx+XobXY=; b=CzME8GPL6gKpOEJzBs1InMm55NLQ2lhUnUO+hi43LyqfIPiFVuKFUaaBHqFrr4hfkv hod/Ql6co+2VSjM0lXYZx8qU37GYo2P79zbbpDBZmpHQrwShIY3MMcJ0BgJOvGPluCIe 25P9syMCLIZz567FtXNOGlQJKPc599zHqcy0Sp8fNW8NW10pbgAeSKALGrfZZqNv4J3E NSIb1SIOPJmRzSzS7yoPcsTCq5wWAkqD70jou8jDl8ghPMc8HQFyVDT/Beq+jL6oAeMI BAAp69zJu+SHEHs70TglDNRuvU+FY/uD2ua7DmHsbJZbaNR757IdNQFTYQE2I6OdQ3gW RHjA== X-Gm-Message-State: APjAAAWmKR1dc5wge7D5dRZP9VUxNeCM9iv6Tv95I5x99kgLHN+eRd+G g3di1S33CoSNjfjb5HfWlAc6Kw== X-Received: by 2002:ac2:43cf:: with SMTP id u15mr37488341lfl.188.1560271325298; Tue, 11 Jun 2019 09:42:05 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id r14sm2616772lff.44.2019.06.11.09.42.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Jun 2019 09:42:04 -0700 (PDT) From: Georgi Djakov To: robh+dt@kernel.org, bjorn.andersson@linaro.org, agross@kernel.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 v3 0/5] Add QCS404 interconnect provider driver Date: Tue, 11 Jun 2019 19:41:52 +0300 Message-Id: <20190611164157.24656-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.21.0 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 Add drivers to support scaling of the on-chip interconnects on QCS404-based platforms. Also add the necessary device-tree nodes, so that the driver for each NoC can probe and register as interconnect-provider. v3: - Drop the patch introducing the qcom,qos DT property. - Add two new patches to create an interconnect proxy device. This device is part of the RPM hardware and handles the communication of the bus bandwidth requests. - Add a DT reg property and move the interconnect nodes under the "soc" node. v2: https://lore.kernel.org/lkml/20190415104357.5305-1-georgi.djakov@linaro.org/ - Use the clk_bulk API. (Bjorn) - Move the port IDs into the provider file. (Bjorn) - Use ARRAY_SIZE in the macro to automagically count the num_links. (Bjorn) - Improve code readability. (Bjorn) - Add patch [4/4] introducing a qcom,qos DT property to represent the link to the MMIO QoS registers HW block. v1: https://lore.kernel.org/lkml/20190405035446.31886-1-georgi.djakov@linaro.org/ Bjorn Andersson (1): interconnect: qcom: Add QCS404 interconnect provider driver Georgi Djakov (4): dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings soc: qcom: smd-rpm: Create RPM interconnect proxy child device interconnect: qcom: Add interconnect SMD over SMD driver arm64: dts: qcs404: Add interconnect provider DT nodes .../bindings/interconnect/qcom,qcs404.txt | 46 ++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 28 + drivers/interconnect/qcom/Kconfig | 17 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/qcs404.c | 539 ++++++++++++++++++ drivers/interconnect/qcom/smd-rpm.c | 72 +++ drivers/interconnect/qcom/smd-rpm.h | 15 + drivers/soc/qcom/smd-rpm.c | 17 +- .../dt-bindings/interconnect/qcom,qcs404.h | 88 +++ 9 files changed, 825 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt create mode 100644 drivers/interconnect/qcom/qcs404.c create mode 100644 drivers/interconnect/qcom/smd-rpm.c create mode 100644 drivers/interconnect/qcom/smd-rpm.h create mode 100644 include/dt-bindings/interconnect/qcom,qcs404.h