Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp268126ybg; Thu, 17 Oct 2019 22:45:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCE/Uq1hgcX+CKefVCIVnd12FhMQwTWYVhpSnl9y6pgEYjGjTNxNcmIdLX6zNzVxswoneE X-Received: by 2002:a17:906:69cc:: with SMTP id g12mr7069287ejs.235.1571377534522; Thu, 17 Oct 2019 22:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571377534; cv=none; d=google.com; s=arc-20160816; b=t8s1vDvoR8ZO+0ueOfgEHT+5U3NtqP6wx0C105Wf9NqLwX/M/8yOyC/SIu+aK5qVxo WQIeqmd2a0w9fgn8ThrQXcTvmtS0h2fGEPpQBIZMKrXmj7KpN7zlTDmJA1Hks4F/a9H6 of2htd35KOwr0olxa0t9zdKRMytyIoDDmvjZagyvCccfKyLLblX2pwKJuoBcJJH7xNXM 3DiBkFGfW5nrmFNdZTcyeKBk8S0fMm7jwyAyx7OX/J35mzrXRxvhPlLiL7Y6up7aDglX qQ3yDVzhxRXorj3fugDuWGFu92CEDY1Ghvr1GQkziC3W5iZbMpB9U+dkqY1PvI0UuJfG lz9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=QKhYindVYvfvOOC6SHhlqm3cNilVa0lMq2O5aOLkKxo=; b=hH5kt5SuILBngrsvHjeawi3CaV1kMwkxaSoqWNBjGFhWLCXzuCCRpoZVWGZySIMSZI f2BM4M/DX+q2LRc7NiaYBL9I3iyj/s8v7au8FDKWnfBX/W7BUtl6nHy3G25F9uF6+iql H73kxVjtCh9yhCJEqWF52Mp1aIYxzVJ79wAh+FZoy2bsv43sivqZqWpAl+60D3lFcxeU sFnvF8dLe4r1wHu/QRWpCO1YQ4RZ7Hva/ApP/llZm58dpet/DKQjrKO1sNxDlpqmV+yQ AxeYsuMoyuhKJPmL4c60NbcYXV3lIzh2GxqZybM2M82+s7ntv/p2BejuC5dZWsSpBTWl tDOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=HXw4sWQl; dkim=pass header.i=@codeaurora.org header.s=default header.b=dp1hnxyS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si2930158edo.14.2019.10.17.22.45.11; Thu, 17 Oct 2019 22:45:34 -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=@codeaurora.org header.s=default header.b=HXw4sWQl; dkim=pass header.i=@codeaurora.org header.s=default header.b=dp1hnxyS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391826AbfJQCVE (ORCPT + 99 others); Wed, 16 Oct 2019 22:21:04 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45248 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbfJQCVD (ORCPT ); Wed, 16 Oct 2019 22:21:03 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 63F476032D; Thu, 17 Oct 2019 02:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1571278862; bh=ya0y6uIRyTrjP0oZpf7fC4HeXiZCPtMSPUrBj16lLQg=; h=From:To:Cc:Subject:Date:From; b=HXw4sWQlIeoRH5NyTz3+OYGP6BiUi6CdoiBqNCJtAyD56RlSas7vL4VTLHVoICbU/ 0VgkSxesa8qR+22m31W7p3Wfgrw1udapEqjeVvuKZwg55g3z6L5yO+m4KQ6zRpt/40 7bFaOjMNrIwjHdfFJK1OK8Wh58eLGY/9OzpNYs8k= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from davidai-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: daidavid1@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0AB7860588; Thu, 17 Oct 2019 02:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1571278861; bh=ya0y6uIRyTrjP0oZpf7fC4HeXiZCPtMSPUrBj16lLQg=; h=From:To:Cc:Subject:Date:From; b=dp1hnxySPzveI1r8i/H0PIobU3pyRmtIX34yugKQ1bM7Mv/XWpn0YVp+b8nq606HF hThh7an7dxGYOh8QB3frRfnC/sqMAQHRgd61fhFdtjGJhtffuR+kN8K10qLougTNFw 1ekXsd2PGWfR4AFXs1D60BFVEfBax4wqEYwpF/A4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0AB7860588 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=daidavid1@codeaurora.org From: David Dai To: georgi.djakov@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: David Dai , evgreen@google.com, sboyd@kernel.org, ilina@codeaurora.org, seansw@qti.qualcomm.com, elder@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [RFC PATCH 0/4] Redefine interconnect provider DT nodes for SDM845 Date: Wed, 16 Oct 2019 19:20:48 -0700 Message-Id: <1571278852-8023-1-git-send-email-daidavid1@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While there are no current consumers of the SDM845 interconnect device in devicetree, take this opportunity to redefine the interconnect device nodes as the previous definitions of using a single child node under the apps_rsc device did not accurately capture the description of the hardware. The Network-On-Chip (NoC) interconnect devices should be represented in a manner akin to QCS404 platforms[1] where there is a separation of NoC devices and its RPM/RPMh counterparts. The bcm-voter devices are representing the RPMh devices that the interconnect providers need to communicate with and there can be more than one instance of the Bus Clock Manager (BCM) which can live under different instances of Resource State Coordinators (RSC). There are display use cases where consumers may need to target a different bcm-voter (Some display specific RSC) than the default, and there needs to be a way to represent this connection in devicetree. This patches series extends the original discussion involving the SDM845 interconnect bindings[2] by adding accompanying driver implementations using the split NoC devices. The first patch also updates existing sdm845 binding documentation to DT schema format using json-schema. [1]: https://lkml.org/lkml/2019/6/13/143 [2]: https://lkml.org/lkml/2019/7/19/1063 David Dai (4): dt-bindings: interconnect: Update Qualcomm SDM845 DT bindings arm64: dts: sdm845: Redefine interconnect provider DT nodes interconnect: qcom: Refactor icc rpmh support interconnect: qcom: sdm845: Split qnodes into their respective NoCs .../bindings/interconnect/qcom,bcm-voter.yaml | 45 ++ .../bindings/interconnect/qcom,sdm845.txt | 24 - .../bindings/interconnect/qcom,sdm845.yaml | 108 +++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 60 +- drivers/interconnect/qcom/Kconfig | 8 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/bcm-voter.c | 355 ++++++++++ drivers/interconnect/qcom/bcm-voter.h | 28 + drivers/interconnect/qcom/icc-rpmh.c | 154 +++++ drivers/interconnect/qcom/icc-rpmh.h | 150 +++++ drivers/interconnect/qcom/sdm845.c | 727 ++++++--------------- 11 files changed, 1115 insertions(+), 548 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,bcm-voter.yaml delete mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845.txt create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845.yaml create mode 100644 drivers/interconnect/qcom/bcm-voter.c create mode 100644 drivers/interconnect/qcom/bcm-voter.h create mode 100644 drivers/interconnect/qcom/icc-rpmh.c create mode 100644 drivers/interconnect/qcom/icc-rpmh.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project