Received: by 10.192.165.156 with SMTP id m28csp1376768imm; Fri, 13 Apr 2018 19:52:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qxB6uyLZS5pe6HzY0MwYct7CJ8JJvm1HUsyrBNJbd9SvGDk2cBvOx6TqREDf5EvA5JevW X-Received: by 10.101.75.66 with SMTP id k2mr5982263pgt.66.1523674368389; Fri, 13 Apr 2018 19:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523674368; cv=none; d=google.com; s=arc-20160816; b=pL6P1uE+60r3U4p7OBOU2kLUJMguZCapfqxh7TR3UmyXX5EXc+Lt8fWeZNdkYZ8qVT 7nOHruXcZGjiTv4x9BORFpxxTElTWvSU0m0Xp9eQWXWq9Z+evmqCeYK+LnfPd/BH9WVS qlrIUy6U7GuBdbK1sMIUfNzNH+r9ztzhuNgr8BUZqtmNE8VLfq2QuHJDkKQFz4Mb93n/ aGStzqlCOZcLEXW7qNAyJMqfUp3Fuuaoq+FNJ8ytPfwVcJauV2faTJeaXCPBA5c2SeKR Qcn21/IS9R8e1WMNpKQe2tTgtppG+TmSAZvJeSI75ezHYP1DKb60hPx2frdKOTtdNvA/ gnCw== 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=FwCV/oOgjYpErwnrY9Jp0w7BoclDePwJb42kCFc/Jvs=; b=uZZ/mhtQ6e6hG97K5NmmG5aChWafRFYUBJKBilZWLC1FLkdG9GSTFQuJA3O7GBGqe0 v7uxt1x1s5kB02xRmZVVxO/JmoR4hGEw8vHQHmtQdWvsfCWwaDsNNU/IXRiI/YURpHDn 4+0TWc+duilJA2KHE6yD9G+NTxPlrvd/yQILmPiZi11D/ODo0XWyhyoGFkZ6TljcB7Pa eQaEpFvzsLldQQRGWxdFUiN3Y/JtjEUF+YPgjP39LxMqXoNk1twPPMuLmGltXkfnlIav tB4EUNpZd61z9Tc1AFNTYcX903Hll4R8fcwSpPfZmUp6WX7DrES1iDOlrvvkS3hB5ner b44g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qxj1JydD; dkim=pass header.i=@codeaurora.org header.s=default header.b=hK1OA0iV; 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 l2si5311260pgs.555.2018.04.13.19.52.34; Fri, 13 Apr 2018 19:52:48 -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=Qxj1JydD; dkim=pass header.i=@codeaurora.org header.s=default header.b=hK1OA0iV; 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 S1751771AbeDNCuu (ORCPT + 99 others); Fri, 13 Apr 2018 22:50:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33434 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbeDNCur (ORCPT ); Fri, 13 Apr 2018 22:50:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 34FEC60807; Sat, 14 Apr 2018 02:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523674247; bh=E50Mu8/sNA9dKtCMe2SgtdA/LkSm1wMJBH4bP0WaufM=; h=From:To:Cc:Subject:Date:From; b=Qxj1JydDduQYe24J8n8JxZ2zOFXvyviC9evl7nWfL8u2Hv1XxfMK90dovf3bCMcsD zbk9jIh/htMFAwg1wF4gei1X0E/pIZ63PDLnjMPtfTnmVHzsDF3js9Uq4qQI/Yx1+F /WtvhXm5pvl/voFvNKne3ZRmE27MLhzgueSMK3mE= 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: collinsd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C9A26603AF; Sat, 14 Apr 2018 02:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523674246; bh=E50Mu8/sNA9dKtCMe2SgtdA/LkSm1wMJBH4bP0WaufM=; h=From:To:Cc:Subject:Date:From; b=hK1OA0iVndLDih5YejHfcb8LOPWzAWR2bbOZBbLqf271kO/1D5oTFs1o7eBXjaMfk TueuM61K4EysSAAWzb8K+NaCpCyWoaB5daCGFHEMDfv87nodNUvZaShMl4gGrwwHBE zWM+vsC2qysRJW6lS8wneWzDQNGUKyCImzgTUqzY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C9A26603AF 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=collinsd@codeaurora.org From: David Collins To: broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: David Collins , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rnayak@codeaurora.org, sboyd@kernel.org, dianders@chromium.org Subject: [PATCH v2 0/2] regulator: add QCOM RPMh regulator driver Date: Fri, 13 Apr 2018 19:50:33 -0700 Message-Id: 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 Hello, This patch series adds a driver and device tree binding documentation for PMIC regulator control via Resource Power Manager-hardened (RPMh) on some Qualcomm Technologies, Inc. SoCs such as SDM845. RPMh is a hardware block which contains several accelerators which are used to manage various hardware resources that are shared between the processors of the SoC. The final hardware state of a regulator is determined within RPMh by performing max aggregation of the requests made by all of the processors. The RPMh regulator driver depends upon the RPMh driver [1] and command DB driver [2] which are both still undergoing review. Changes since v1 [3]: - Addressed review feedback from Doug, Mark, and Stephen - Replaced set_voltage()/get_voltage() callbacks with set_voltage_sel()/ get_voltage_sel() - Added set_bypass()/get_bypass() callbacks for BOB pass-through mode control - Removed top-level PMIC data structures - Removed initialization variables from structs and passed them as function parameters - Removed various comments and error messages - Simplified mode handling - Refactored per-PMIC rpmh-regulator data specification - Simplified probe function - Moved header into DT patch - Removed redundant property listings from DT binding documentation Thanks, David [1]: https://lkml.org/lkml/2018/4/5/480 [2]: https://lkml.org/lkml/2018/4/10/714 [3]: https://lkml.org/lkml/2018/3/16/1431 David Collins (2): regulator: dt-bindings: add QCOM RPMh regulator bindings regulator: add QCOM RPMh regulator driver .../bindings/regulator/qcom,rpmh-regulator.txt | 207 +++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/qcom_rpmh-regulator.c | 910 +++++++++++++++++++++ .../dt-bindings/regulator/qcom,rpmh-regulator.h | 36 + 5 files changed, 1163 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt create mode 100644 drivers/regulator/qcom_rpmh-regulator.c create mode 100644 include/dt-bindings/regulator/qcom,rpmh-regulator.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project