Received: by 10.223.185.116 with SMTP id b49csp4033710wrg; Mon, 26 Feb 2018 10:00:47 -0800 (PST) X-Google-Smtp-Source: AH8x227CsdbIS/xgF9Fa/0CDEyw2am4kudZAEBqyTweHSn0mdreNTyb3bLF7rbjmLeigmm9mYsDq X-Received: by 2002:a17:902:720b:: with SMTP id ba11-v6mr10209542plb.148.1519668047726; Mon, 26 Feb 2018 10:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519668047; cv=none; d=google.com; s=arc-20160816; b=LjhaXp3BgZes2IuMZ3ERkdWzaKLwlPjYke4OjZ0iMqRtF+kk5puRJ8/tqEEqUgvS9+ l7z065K5gDYAQCir3850FDdr1lsjpqGrwVLSBWexYanS0s6JR8mQlf1HMZWIODPl+KB2 DUj8nQ+Nh6mXGv2/WSvEVzAzo0hOmk5pL6hNRwTeYq6jC2vc0MmiWG8FvKeDYqEtfsba ophhIBJTfYy/g6PRwCq5oFD/ghCG8oSGA6x4MpnMU2E+hd+p86RzuNyCovn8yd372aG2 QcrXhJgDOEnrAaWrmD5K4XO/6P5R70RV6tXY6vmsJmLBbAKiBSVkP6sOxfWEQjCEzhUI 9wQQ== 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 :arc-authentication-results; bh=LbyTTUGM56Y9iLL0eGHqBjM5ZTsIKmQqzStPTDe8CEg=; b=Ur0YJ7Jm0YQ0GvlemhvlGLlOqvpXkDW9Ha7E/QgxbHBbbddLZUK6Io0nJo2lK9MZ21 gguB7NNNlHF7V68Ff7d9q7ko7883DPN38H91NGMSe9QeOfMz2VqS0OF+6rssdPe98Xap T+jOOQtFg67FdH6z6I9wKhp6TletoWsoQrRuWqVbKC77BfN8lu4GV5FLq38aE7zNavu3 ZMLm+X3svdLteuJbdex769Iqqak8IEwK0ozXB02MpF1KmBxtKjhga0NgDHl5No+a3KWJ LC/ZBTZov1UqURv8Ac6Z6/cZ8w1RRjJU+7if8CAYahSKSKfnax0/B1D5VNCz0qAF/FRM urSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lpvpseWf; dkim=pass header.i=@codeaurora.org header.s=default header.b=C3NLoOg/; 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 e63si1055005pfb.268.2018.02.26.10.00.23; Mon, 26 Feb 2018 10:00:47 -0800 (PST) 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=lpvpseWf; dkim=pass header.i=@codeaurora.org header.s=default header.b=C3NLoOg/; 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 S1751994AbeBZR6W (ORCPT + 99 others); Mon, 26 Feb 2018 12:58:22 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44534 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbeBZR6U (ORCPT ); Mon, 26 Feb 2018 12:58:20 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1B1436070A; Mon, 26 Feb 2018 17:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519667900; bh=LaIsm3ZkOPnCdA2mcZIX31fTHz90KcvyEZoNnzfIyIA=; h=From:To:Cc:Subject:Date:From; b=lpvpseWf2ie7sVarmWEcgRXZnLjy0d0aCgIwtv5KBcBSqEnuW6QStsSEd7gjYDYWP N9JYZVzGw2Wg1dYjW/RIXnae5KzG3fADatExRUOsZS/5+ZXbUMiZwFvUnmamQf6r/0 0WN6vVMDd06uIa0pCGgla/d5pKb3HPXxRTx/pNrA= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (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: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 962FD6079C; Mon, 26 Feb 2018 17:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519667899; bh=LaIsm3ZkOPnCdA2mcZIX31fTHz90KcvyEZoNnzfIyIA=; h=From:To:Cc:Subject:Date:From; b=C3NLoOg/9VL93JRrnaWCEJvNizyPyphoKkTqafDIOHiwmbtONRbbkqAc62QSYFNib fXdIYQ6BYF0LByepONK4Lo/8cUOIFwkwCXi6ijfvSV3iat7ixOVofKBChBGr24qO2t dahkvTYysw4ZhYjCWbErR3ZtOPB4bDoqgr8YLJzw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 962FD6079C 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=ilina@codeaurora.org From: Lina Iyer To: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Cc: rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: [PATCH v4 0/2] drivers/qcom: add Command DB support Date: Mon, 26 Feb 2018 10:58:00 -0700 Message-Id: <20180226175802.20052-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v3: - DT binding documentation fixes as suggested by Rob. These patches add support for reading a shared memory database in the newer QCOM SoCs called Command DB. With the new architecture on SDM845, shared resources like clocks, regulators etc., have dynamic properties. These properties may change based on external components, board configurations or available feature set. A remote processor detects these parameters and fills up the database with the resource and available state information. Platform drivers that need these shared resources will need to query this database to get the address and properties and vote for the state. The information in the database is static. The database is read-only memory location that is available for Linux. A pre-defined string is used as a key into an entry in the database. Generally, platform drivers query the database only at init to get the information they need. [v1]: https://www.spinics.net/lists/linux-arm-msm/msg32462.html [v2]: https://lkml.org/lkml/2018/2/8/588 [v3]: https://lkml.org/lkml/2018/2/16/842 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../devicetree/bindings/arm/msm/cmd-db.txt | 38 +++ drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 319 +++++++++++++++++++++ include/soc/qcom/cmd-db.h | 50 ++++ 6 files changed, 418 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/msm/cmd-db.txt create mode 100644 drivers/soc/qcom/cmd-db.c create mode 100644 include/soc/qcom/cmd-db.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project