Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2729161ybt; Mon, 22 Jun 2020 05:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiYCdTzy/MuORXqufkVhRRo/0x+wzcl+0ycDy1jTIW0LLZikclv7N5ACP/5K1bfu5RkvJJ X-Received: by 2002:a17:906:1cd3:: with SMTP id i19mr14990497ejh.321.1592829809061; Mon, 22 Jun 2020 05:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592829809; cv=none; d=google.com; s=arc-20160816; b=llUWMTAGVZ33YuiF9X9vqPQwlzGHAPC5q5l/Q07auGF6iHDrkUQX/QswPKfNFew6gQ UxyAovfhBNh9zV/GTntY5RbEgX6yz7QRi7ah6ZjqOcngagnZuiNHyjbuCncKTHOblj3A /DiZrcfR1XOb5D0iJlG+LMAvrWs92TQC0nXniRXuYSE7mgeMMb7Nc4rZ/NdmbAiAMOIq GdAWtQyfckVpSf2Wp2TrxcPqdtXGSGu4MFeatFBDLxsegNk7QWiS49qv2dZtBRbxHAqF mZmwQzQ/VZE2ZErtwc2/thKOxBQENXq8OP2uvvGwuCgPmHeQS3xI/nheszx8PL6sQkMc qnlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fq5dVVlXW8qg+ASmc5eHI9qkJpaHLFgd8jV55IoO3ds=; b=V8vvbx4rFsHomGpEIhkGEZnA8Y5YlE8Qs3NvZjYUFgxTrn+hy9Uea0x27HbmGYqwpp QminEalic2Y/zVA84y3KQkIa78LQu/hlxq4xV2PmE3/hiyXHyYWNGkOJtDAxNEHbDVKK eNRnlpTWr9/yqSqO8p1bTTjFsEfYqQy1t+/OQxQiM2sGEiO7J2eXE8DYbwXyxHSGbchF kAbvtEQ9RFfh+XEF+4OYyOrLAqK0RCODyHNAXIQaseziY9LCLGxwYNpi2CsOun15yrOb YVvVcMvzmwsapy5Gm1PDvjvcRDA7IQpgrnQB/7CO6cCWlhb/vz3ssvVZh1LfiEQD91Ap NT4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wcSTbWr1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si8539993ejl.550.2020.06.22.05.43.06; Mon, 22 Jun 2020 05:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wcSTbWr1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbgFVMlW (ORCPT + 99 others); Mon, 22 Jun 2020 08:41:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgFVMlV (ORCPT ); Mon, 22 Jun 2020 08:41:21 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD2EDC061794 for ; Mon, 22 Jun 2020 05:41:21 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id jz3so8110446pjb.0 for ; Mon, 22 Jun 2020 05:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fq5dVVlXW8qg+ASmc5eHI9qkJpaHLFgd8jV55IoO3ds=; b=wcSTbWr12KM0AKzvczAYGpY8oNBlPcfTlSqXSviRt6OVkzWhCDYP9/vasBpxVa159T vZMShpuchPupvThg/UKN4QPPDmfiT1u7wmr3KcRRsd8+9ZzOLxdvwSYoiYH0M0ITVWIp AEIqdLRy2K0grOOM48kvK15Np7sRxIjAz85bJKWF0mOFTFGhw6D80NKy8xkZQd4/1QzT xPKuFKJQ7UKYWCA50gU9EcDEdbOMRxt86AZ9SH8u+auHNZsoUbF9YDee4c7i10JsZUqU 4tHiNTvD1eLzQbXCpmq19w5ln2UemzsLBWF0ThxGAFg581DionEgeCstmoE5U29SWFlh bcuA== 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:mime-version :content-transfer-encoding; bh=fq5dVVlXW8qg+ASmc5eHI9qkJpaHLFgd8jV55IoO3ds=; b=qKxlxEFu8X6wqpR23BU6gK10UEO+Au4trz3rbRqQficlC/Y0y+UPm9vN9qXvXwRh4m W48F+dAfxPUWBj1fPONZQceXqNbKs10pEn2bsn/fDgTZA2wg16zg/aLBSlWw4ViM0RJs QSsbxGPNEdCtlZn+4awCkigBjOOPHxboEGqf2hdK0lSvaLBcRGw25w/GIEdYihdiDez/ JVnGOYhsoZV+jrTX3NHWZfcJRLk5YcxCtvSRxP9SptTl6xXTGBda3IDRBYUHZqJlC+Uu ejn7TSFLF4suynxVOzT22642X8wfZZcncTlUy9wHa+T+uHC7XU0AUG+TyjaXpTeoB6+W +Y9w== X-Gm-Message-State: AOAM532Zefjs8YeYcbJ8vws4z6u38O03a+4ooaUGwethjcD4t1FelK1S 7010+6ZR59vwh6L4GXVzuS1Pyw== X-Received: by 2002:a17:90a:36d0:: with SMTP id t74mr16600778pjb.27.1592829680949; Mon, 22 Jun 2020 05:41:20 -0700 (PDT) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id i62sm14590581pfg.90.2020.06.22.05.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 05:41:19 -0700 (PDT) From: Sumit Semwal To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org Cc: nishakumari@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, rnayak@codeaurora.org, Sumit Semwal Subject: [PATCH v5 0/4] Qualcomm labibb regulator driver Date: Mon, 22 Jun 2020 18:11:06 +0530 Message-Id: <20200622124110.20971-1-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds a driver for LAB/IBB regulators found on some Qualcomm SoCs. These regulators provide positive and/or negative boost power supplies for LCD/LED display panels connected to the SoC. This series adds the support for pmi8998 PMIC found in SDM845 family of SoCs. Changes from v4: - v4 Review comments incorporated - simplified the driver: removed of_get_child_by_name(); use ENABLE_CTL register and switch over to use the regulator_*_regmap helpers - improved kerneldoc - From the dt-bindings, removed interrupt-names, changed to dual license, added unevaluatedProperties: false, removed interrupt-names, since there is only one interrupt per node - Since the Short Circuit handling needs more details from QC engineers, drop the SC handling patch from this series, to submit it later Changes from v3: - Handled review comments from v3 - In core, swapped the meaning of enable_time and poll_enabled_time; so we wait for total enable_time delay, and poll in-between at poll_enabled_time interval now. - fixed dt_bindings_check issues in dt-bindings patch. - Cleanup of register_labibb_regulator(), and adapted to updated meaning of poll_enabled_time. Changes from v2: - Review comments from v2 - Moved the poll-to-check-enabled functionality to regulator core. - Used more core features to simplify enable/disable functions. - Moved the devicetree binding to yaml. - Updated interrupt-names and simplified handling. Changes from v1: - Incorporated review comments from v1 - Changed from virtual-regulator based handling to individual regulator based handling. - Reworked the core to merge most of enable/disable functions, combine the regulator_ops into one and allow for future variations. - is_enabled() is now _really_ is_enabled() - Simplified the SC interrupt handling - use regmap_read_poll_timeout, REGULATOR_EVENT_OVER_CURRENT handling and notification to clients. Nisha Kumari (3): dt-bindings: regulator: Add labibb regulator arm64: dts: qcom: pmi8998: Add nodes for LAB and IBB regulators regulator: qcom: Add labibb driver Sumit Semwal (1): regulator: Allow regulators to verify enabled during enable() .../regulator/qcom-labibb-regulator.yaml | 70 +++++++ arch/arm64/boot/dts/qcom/pmi8998.dtsi | 12 ++ drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator/core.c | 63 ++++++- drivers/regulator/qcom-labibb-regulator.c | 175 ++++++++++++++++++ include/linux/regulator/driver.h | 5 + 7 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml create mode 100644 drivers/regulator/qcom-labibb-regulator.c -- 2.27.0