Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7019875ybi; Thu, 13 Jun 2019 08:15:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCMMidixxJWGcwz/mzEggI0PbTkUiNSmUrbPmVvo/cV6D/NlAZxLn5qdCgtpQLuyOJvwIO X-Received: by 2002:a17:90a:7f91:: with SMTP id m17mr6161259pjl.86.1560438902827; Thu, 13 Jun 2019 08:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438902; cv=none; d=google.com; s=arc-20160816; b=eKM5bx733t7CezUlATdV7E4dmrGOC6Wy7stPuI5zMG9yxppL6MqF4x4I0soBCnNFY6 gMsCDZ4sAfaKxsjU/lD5GWjYeYVNgNIg5wem2cRIgXF+tiO3S0A6EfNgSzXQ3i7USXXQ LW9ddU2aNljHEC3kYdcT6HnsU/tiAfeqcPEljjINCWOf5eVG8DXrr41ck3YvjVIkT0oe eo+WjQjzIva4srDrrd5sUM6qqEwSs5qqapV0iJhrX5/o+80ZHvUTu4f7WwVFKTWhBmmS TFqeCLP/y1EnRb2PKDygL0t8JIQueznVcH25b8hDZBz9W9aTrO94wMX2cYwmoPspEk+P 6fKw== 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=oy4WRzt4oy7DKEhEUsk8mM+TKtbIR/SxiJkzCANc2S0=; b=EXdFi6dnfRrcrseEHWSlhwvaWf8pZUjsf9CEOkssoQMEa31UqP1HHubdhGx1DbYD5t l/SBQq0uXWTXwB2NNb0wdfIX5w6tIAnvQyIRlrLg2+IpCsOz0lcTQMMd1kKLE7i1nfqi e5ryvw+YlLRe/ORftaoPUvomVZUgZASn4Qw9e8Iji7NHbyZUmjjpf5+wSnt9VQzFyNmV 6iXaclTo9EzkPpVYA3wPN6VFroKWaOondVWs5TRJeGe+KuMPOHA7ADSDBMNHAL1FgUfS DXdRIShX4wbZNfs7CK1q6QaRB/KPAt2zmKEhspHWs/joRF6xODMxGRsLgzOckVfhEYG9 Dk2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jMyVNjAH; 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 n2si29157pgv.590.2019.06.13.08.14.47; Thu, 13 Jun 2019 08:15:02 -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=jMyVNjAH; 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 S2388320AbfFMPNa (ORCPT + 99 others); Thu, 13 Jun 2019 11:13:30 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40835 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732842AbfFMPN2 (ORCPT ); Thu, 13 Jun 2019 11:13:28 -0400 Received: by mail-lf1-f68.google.com with SMTP id a9so15379463lff.7 for ; Thu, 13 Jun 2019 08:13:27 -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=oy4WRzt4oy7DKEhEUsk8mM+TKtbIR/SxiJkzCANc2S0=; b=jMyVNjAHR90qecUAhRrWQnYr3j5JfbQWsYrzQvWMbwWRPL0Z7nP94qt24V2i/E3l+a ZIvy9FmxmrQ2duSB2wqLIJDUZtCMYd07SgfkxP/rrJsQY5NilBYJej4YfiPEshJT52Lw mbC4J9qi3ZrY9C9o3nloY8heK6ApIxvZcz3KVAkBbGHPjnVjUCOdxZ+t3JVxn+dLbgDB rZoDDcp1kQykVvuwSqmhTgqgMlqyntHU71iS6oJVCAUd6/QQvjkYi8VZu+O5LpEmeSE7 Jeoao2k+CmmIvF3A7/aq407OY7qRgIb9NEu2ypnge/Bou2ibNgLJNZ+0CNSmKd/W1/Ml Q80w== 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=oy4WRzt4oy7DKEhEUsk8mM+TKtbIR/SxiJkzCANc2S0=; b=MexuEA83KtHvBis9Ra9HgrtYogJgX6tPB0dZ9xscnVTsHNuDgKxasLmUmXkEOK4C2e 0h68MStYDC/LYYr6118M8I3PJblevCHxfpNcf4BSHRdl1gCwnp8IeUSSUgsayt7tliYb 4wEA1juoJybHKrvCMmXdwAyRL1r8aWKbIW4VsvONDn5ah8b8+nGiS57+Xj0JEUC5gXzm we58GdysTnNzNEUWS1IQde+l6XdK58VzRfAGDy1ErHYAF5TXV4LnAVDgx7+DUI5IYOxM LVCua4UdmmrqxrQZcfIsASno0YTst7Vpd03zeg6gCb0ypzKiIpGDaKrMwyiYC5EIzfuc mJ+A== X-Gm-Message-State: APjAAAXTk/bathNVD+mfL5BcXb1jxYt6ROgGQQkLJQkwXLFE7RJAIccT AngfVx03D+1htfC6OxXycqhXOw== X-Received: by 2002:a19:e619:: with SMTP id d25mr1335729lfh.34.1560438806327; Thu, 13 Jun 2019 08:13:26 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id k4sm42923ljj.41.2019.06.13.08.13.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Jun 2019 08:13:25 -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 v4 0/5] Add QCS404 interconnect provider driver Date: Thu, 13 Jun 2019 18:13:18 +0300 Message-Id: <20190613151323.10850-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. v4: - Move DT headers into the dt-bindings patch (Bjorn) - Pick Bjorn's r-b on some patches. - Return error if platform_device_register_data() fails (Bjorn) - Use platform_set_drvdata() only in the child device. (Bjorn) - Hide the smd-rpm proxy driver from config menu. (Bjorn) - Add remove() function to zero out the rpm handle. (Bjorn) - Move move the qcs404 driver patch later in the serie. (Bjorn) - Insert the DT nodes after rng to keep the list sorted by address. (Bjorn) v3: https://lore.kernel.org/lkml/20190611164157.24656-1-georgi.djakov@linaro.org/ - 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 | 12 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/qcs404.c | 539 ++++++++++++++++++ drivers/interconnect/qcom/smd-rpm.c | 80 +++ drivers/interconnect/qcom/smd-rpm.h | 15 + drivers/soc/qcom/smd-rpm.c | 17 +- .../dt-bindings/interconnect/qcom,qcs404.h | 88 +++ 9 files changed, 828 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