From patchwork Mon Apr 15 10:43:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 10900525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C0F381669 for ; Mon, 15 Apr 2019 10:44:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8F5528488 for ; Mon, 15 Apr 2019 10:44:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99FF02850F; Mon, 15 Apr 2019 10:44:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 447A728488 for ; Mon, 15 Apr 2019 10:44:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727143AbfDOKoB (ORCPT ); Mon, 15 Apr 2019 06:44:01 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37823 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbfDOKoB (ORCPT ); Mon, 15 Apr 2019 06:44:01 -0400 Received: by mail-lf1-f66.google.com with SMTP id o19so8348552lfl.4 for ; Mon, 15 Apr 2019 03:44:00 -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=zPcRJN1/NzE6gNtSRy+MJcIXRb2hexYCT1b0WmO6hYU=; b=d7QEJ0pMzQFYzjYWTgqOtQJwQwjwhewLQeVGN+jM39bsQV6azez2oVHqnEWLxx9fzQ tOjpYoc33JOP7aVJFwx1T686wASmefpvDwD1bi8xpeRuL0dv9QENmeqJFznFMUjQ9mdC jgZz3/2HRmifykVsczRQh6YguYMsBsD39JrQh7JIJHZ+EC27W7DfL9ivuHETD12NkDAs RqSBDEwV4hfvp7m7ZEaeTPUEGbiMnXNP5ycetYQho6qgvOr5puPLbmzvGaB99jQQPst2 wpK3PqbH4+Jj96OflWAWi0QRNvlUGXaZDgVn1M+dA6ltFpMcVEDpMDNIylad6z61e9e3 e1WQ== 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=zPcRJN1/NzE6gNtSRy+MJcIXRb2hexYCT1b0WmO6hYU=; b=cRCWzlNrC6bvrWCgvLO+S900G3sIp5ChThxeEKLdn8OHAS0Yd1yRSTSMrHoXKYK4GZ Ua2bUkfLf7dR6MSMMDtHX0/itHvai7bzd5aergeap+gwsut0oIvmhuN1WPnWkn3svfQW g+LnA4kzwdUM6MlY8Yh1Ya7jVFC79TUPWbtljWBC1vbx2tsTa70vOsuiciOHsGhtyQGN +Q3kNeB7XczaopFRykv/V3B9a29Tqqkx/nvdFs8XAAmRwQ7bQSJqjgwVey/Nys6DYNy4 UqgSCiZYEI1bLs9Jo0z4fQFzJBIDZk7nl/UQP0A/7eCHleh6moxl9WSI2JhSPr+vuAzM uGgg== X-Gm-Message-State: APjAAAU2a1DtFKPddDiA23UxnYSqQZH38Kd7Qn8pt2Vwy3tQv3TACwcD aYlPULVm6lX3xkAnoM1/u0/cxg== X-Google-Smtp-Source: APXvYqyNF/HpuYaU+UlhbmnAZcs5XpnjKSAXfr2SBu04i9RHrTGytce2b64rWTzCtwc0TZi+JqYwng== X-Received: by 2002:a19:f81a:: with SMTP id a26mr7861013lff.63.1555325039504; Mon, 15 Apr 2019 03:43:59 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id k21sm9812596ljk.21.2019.04.15.03.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Apr 2019 03:43:58 -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 0/4] Add QCS404 interconnect provider driver Date: Mon, 15 Apr 2019 13:43:53 +0300 Message-Id: <20190415104357.5305-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add driver 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. v2: - 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 (3): dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings arm64: dts: qcs404: Add interconnect provider DT nodes dt-bindings: interconnect: qcs404: Introduce qcom,qos DT property .../bindings/interconnect/qcom,qcs404.txt | 76 +++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 25 + drivers/interconnect/qcom/Kconfig | 8 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/qcs404.c | 559 ++++++++++++++++++ .../dt-bindings/interconnect/qcom,qcs404.h | 88 +++ 6 files changed, 758 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt create mode 100644 drivers/interconnect/qcom/qcs404.c create mode 100644 include/dt-bindings/interconnect/qcom,qcs404.h