Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7007820ybi; Thu, 13 Jun 2019 08:04:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzF3Elcjldg8KbCNr4nqxzkqTzW/xVwyISdw7IuLN96arxWqCQ9m1OXU6H79c+CJFsZNPzC X-Received: by 2002:a17:902:7246:: with SMTP id c6mr28440428pll.248.1560438280046; Thu, 13 Jun 2019 08:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438280; cv=none; d=google.com; s=arc-20160816; b=rNTFlJeVnY/qcFKrzQw8RpvDgg50P48531/bMVUVcmq/S0kTqCZJFHskp0RZd2euA5 /RQ6ZY5e7WL8GtUNjBlbWN3vl93VQ12NVIf3/AyH60RjsABTuLU/NSFZMpeBkdpAoRvr loBXZZ5cuT2lHI8WrIk74ff76DExjin9gqpbCy+qMuoWED2iHAClOj1vb7YePOprmCkf 2nfFNhHE8KmmWgU8CN2vIl13SuD7g8PsINnRn1ostuFZn3MR1PXDI5zNAnHlSycTfszn YG9AGMFzwTc28b3oKnkjRCn5WkSVtCmASRT8D+b1HNgluJ0heqUthFoIDtH+Y2bZ7pc9 ginQ== 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=eKOd4vO1UgFYSd+YAFiidpo1Y+51qTryroNSM0EM6GI=; b=FNjSCHr87l+XM41dKdzI56XqhebjQ+ZrRQWUskSgk3FE/AfJoobOj6bYRHPipYXRb2 7skR52HwzEFGCjBlllWTfmELW0XC2eBHD7Gfl8tfxDxNuUcWiEOpUD2epa7RyVWA0aOg WJt88Oe1Argplz9VG/DJQbizCRcHAZp9oG1IjC8bAcsql3vnCKvxbBTbA7LOhj+Ics/B yLXTKMAR2+c7bu2lsWyxQtCA/LM9ZnyXXtWqWqBCMuOFadxiitKaqXeyxoEwNOB8dvT+ MXYX4U6/HYadlnBTkfV6MigEeUdI8pRsNw7QgixO8+pHnQNmPQBjI9V+fe3LhWaEncNf Jfeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eO3M8sdZ; 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 207si3717338pfu.258.2019.06.13.08.04.23; Thu, 13 Jun 2019 08:04:40 -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=eO3M8sdZ; 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 S1732746AbfFMPDn (ORCPT + 99 others); Thu, 13 Jun 2019 11:03:43 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37826 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727012AbfFMOWC (ORCPT ); Thu, 13 Jun 2019 10:22:02 -0400 Received: by mail-pl1-f195.google.com with SMTP id bh12so8227255plb.4; Thu, 13 Jun 2019 07:22:01 -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=eKOd4vO1UgFYSd+YAFiidpo1Y+51qTryroNSM0EM6GI=; b=eO3M8sdZsGzs0H+XeWXXhP+/9/J3q8AyrU/LKxC0EoDBiBUsZQaEHmvPqze41Hi3Gy 8T1a9l8xTLBHaDbUedvbWzCxLITXWlKRgaBDKY5LW50hQPiCBSBPuDVumPj+hnzA8+96 XAlw5oijtu7E4enl0WyVGwT83+MU5lm9Vo8DHEFYChsYFLlJwR/zNB4m+TWDbkDBpP3f ZmzobNt4cxnG9eQ4hzUuEGzvyWf5rfjDlJudsfLWnTgLAwxKUHaV4nOpyrEUYyAwuf9T HxRUH0dlc+SHqax0Oo6So5xs94pYmCpwCLlWXqLpCDNCU7EYOp8CLvIOyhNWOzeauUKs nhVg== 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=eKOd4vO1UgFYSd+YAFiidpo1Y+51qTryroNSM0EM6GI=; b=VxYSDtV1j2AFqJrXbBUDETKuBB552yTJKzi5zAaguG6etKk+un2yH6w/xMqFU/1NoR Nl7bgjgFZX/aQnGDe5GHASnvOv/9mu+/ZL5DV1tj/iBNg08J7BMzxOBtFfybJ7XhmsuX o9Z/tJX7A0zflyExKg45TfdnVPFiNtc3HxW1G0Vs+ABRH0MIo7nl80Sy4kSHyHfyJOgw +5XFJ2xZ7mDEKklovtCoYmzMM+/b0+auiK0MU8z3n0kwOHAJm7GNvi9Dg1nSzhIm9rym Ha/YeW+nWVNDh8UBUTr9E9rk5IrwpbPc90acWxIQz2uHUNST67gAN4eEuxuaXmZ34g3V ghQA== X-Gm-Message-State: APjAAAXE8pUzSf2AC414nu8F4K0GcZfGXiaE0YQKkYAmiFz7K+3d5XFS HHimTZKKbqPSfSufVQx6gzPNYG1x X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr81922020plq.98.1560435721094; Thu, 13 Jun 2019 07:22:01 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id c124sm3029689pfa.115.2019.06.13.07.21.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 07:22:00 -0700 (PDT) From: Jeffrey Hugo Cc: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, 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, 13 Jun 2019 07:21:57 -0700 Message-Id: <20190613142157.8674-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 design, so add the base support with one, and trivially add the support for the other on top. v3: -Allow PMS405 regulators to be enabled and disabled, instead of the outdated "always on" concept 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