Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8491580ybi; Thu, 6 Jun 2019 13:18:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEEy1L2wb7qlHtG1q8tDjm7XhBR5FW97YojvXZsX8d8PjpJ9SH8cZ/5LNSkcLfFshg6H/q X-Received: by 2002:a63:a055:: with SMTP id u21mr316386pgn.5.1559852302123; Thu, 06 Jun 2019 13:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559852302; cv=none; d=google.com; s=arc-20160816; b=1AZWdBG8AaCweBL5gu2VPt21LJwv95s91TKocayUMoZ0Z/cz8iRQN0fI7qxQM2xxYR oQo3e1mPMBDwcc5WXVCUdDwPTgHN6ZhauofrrQciEybnad4bcRtpf6g17VjKLl7lr9dh eM3wfjczhna8um76ozYPhWtICXKlkSinCqR37FU4q7CFbvMj28VwdbXOFBxwJZRPVcWE BdiUP+yzrJAGU5GLSuL5FQ3/KT1HPNpQ7GW2FqVsg1E01VZb4AI+ZTE2t71ggzRCmUKr 9CUR65bCL3EwgdKr+Ew3UqY/71S7qODqFxf0dFsK5ivjGMQt2ChNV/Llqsv09utyFQ8w +drQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=mtDz93Y1TuKw4yabSIG15GQuxtlGSwCV0Vd7oPRbGU8=; b=Y8J31lhYKju9bCCCQrI/AGIqYQ0L+hz5fLijYWHobC2beLYZueSVoGGP5hzhhtUHrE +PupiCKnP/fSho/nGxuH6Ow4YfSp92/giHxWwx3FWOUHdgNioZkS2GNfNn92NiNLTptt 35VP/s+BQ2zw8XmGfaqW1+N7L8c0SShS+W+EuTxqMX3Qp/E774Gr2FYQQBvA8xtP8wLF 0BtlB98mnsXfiys6cAMx1dR5Z7eTrVV7Hl7riK/8eZlLXi0E7du589ZmN0S22F0pe2OK 6qXLFV41iaEPyjwtnTy2P5aGSR6/ehUh3P5tuuvbRjpb8TsOzmGGE3cBIpJMDFMzVFV6 dDKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tV5NEkK5; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si8811pgm.208.2019.06.06.13.18.06; Thu, 06 Jun 2019 13:18:22 -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=fail header.i=@gmail.com header.s=20161025 header.b=tV5NEkK5; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbfFFSuM (ORCPT + 99 others); Thu, 6 Jun 2019 14:50:12 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39854 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727163AbfFFSuM (ORCPT ); Thu, 6 Jun 2019 14:50:12 -0400 Received: by mail-pl1-f195.google.com with SMTP id g9so1273088plm.6; Thu, 06 Jun 2019 11:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mtDz93Y1TuKw4yabSIG15GQuxtlGSwCV0Vd7oPRbGU8=; b=tV5NEkK5Vkx3jlMPQ8U1HYCBlORe1msZGEUTOk3KdWKam1BQA2wPawKlAxsPMrwpfV I2n97g+/Wl4YkrerEiVkG8pO/0oG09EqTxUpvDgeObGckju45xi6DBHJyIx95V082691 rDAnJTKF1G0FapFCJOq7RSt+Mz5707JPgG7o2WWD3vCsFlm9obL1RZ1+4j5a93MvR8sj HjnWeBDuYfWqew71uxicPKt+xu18/KW0PzLEnhKLq3KY449AS5AR1zpcRX8d4mm0oIv9 YxCWYlx4sv0ds+eVfCyflaV9fb1gBc6eYsKoGausVVJI5P7GUmNfIC7Xi08wI9QoD+uR bgpw== 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; bh=mtDz93Y1TuKw4yabSIG15GQuxtlGSwCV0Vd7oPRbGU8=; b=BqYXa4iXkFHSml7rQxsnWXYBQ6ej8hrxDCEBXWZAQxTa4Dof9ErlsOOH0VAm9lEv6I 6K2r5G0wQU2avDZW8x20SI7bKIqhqorSRuj4AqbroI9rYjuAk0gE2uL9IG45lsTZWQiK Dc6zZUw0G/facSfw6/zASqrvE5kc7G5spVhUXFZlrabs7+7buW6ID43L6BDO4K3cwCZD J1C2M/TArb1tcw4eT0mFHX9PeoHDadCsVkyaYWvjB1Np9FFeq3/OlURDip7q0M2kVjjK xa4YWUptNlMDnUwABRIsdGERXdFMVFs+ybqqVz/OUinDIxhySkLFUmfSjx7WnM0XMQNH YzdA== X-Gm-Message-State: APjAAAWjGnFPv40ucCcTsKL5WWVww3asgFWzICrPdcVMTzS+I0S1pz7K eqeLh635saK1DMhJACxwe5k= X-Received: by 2002:a17:902:f01:: with SMTP id 1mr51442182ply.170.1559847011599; Thu, 06 Jun 2019 11:50:11 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 26sm2543917pfi.147.2019.06.06.11.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 11:50:11 -0700 (PDT) From: Jeffrey Hugo Cc: agross@kernel.org, david.brown@linaro.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, jorge.ramirez-ortiz@linaro.org, niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v2 0/7] PM8005 and PMS405 regulator support Date: Thu, 6 Jun 2019 11:48:42 -0700 Message-Id: <20190606184842.39484-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MSM8998 MTP reference platform supplies VDD_GFX from s1 of the pm8005 PMIC. VDD_GFX is needed to turn on the GPU. As we are looking to bring up the GPU, add the support for pm8005 and wire up s1 in a basic manner so that we have this dependency out of the way and can focus on enabling the GPU driver. The s3 regulator of PMS405 is used for voltage scaling of the CPU on QCS404. Both PMICs are very similar in deisgn, so add the base support with one, and trivially add the support for the other on top. The PMS405 work has only been compile tested as I don't have the proper platform. A tested-by from Jorge or someone with the platform would be great. v2: -Perform if statement cleanups per review discussion -Pull in linear range support since its related, and simple -Rework the PM8005 to minimize special cases in the driver -"common2" is now ftsmps426 since that design first implemented it -Reworked the PMS405 changes on top, since they are related to pm8005 and trivial Jeffrey Hugo (4): drivers: regulator: qcom_spmi: Refactor get_mode/set_mode dt-bindings: qcom_spmi: Document PM8005 regulators regulator: qcom_spmi: Add support for PM8005 arm64: dts: msm8998-mtp: Add pm8005_s1 regulator Jorge Ramirez (2): dt-bindings: qcom_spmi: Document pms405 support drivers: regulator: qcom: add PMS405 SPMI regulator Jorge Ramirez-Ortiz (1): drivers: regulator: qcom_spmi: enable linear range info .../regulator/qcom,spmi-regulator.txt | 28 +++ arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 17 ++ drivers/regulator/qcom_spmi-regulator.c | 233 +++++++++++++++++- 3 files changed, 271 insertions(+), 7 deletions(-) -- 2.17.1