From patchwork Tue Jun 15 07:45:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 460493 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp4034864jae; Tue, 15 Jun 2021 00:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeKob6P0xTJyFS4LFQbQoEY7vaUvIoRB6QhnHI7yjkgkm+q0bx6dRJ0gkLaiolLsUeJR05 X-Received: by 2002:a17:906:9486:: with SMTP id t6mr19091515ejx.271.1623743391722; Tue, 15 Jun 2021 00:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623743391; cv=none; d=google.com; s=arc-20160816; b=Io0cw2+ZEmfOiZrXSiOWDuANM9VBpHZOMIpq4Onl1sORQus5g/PIqkkihiReIgkD8s SJqZ6SV9OW3lrKksG+i0GOieMDvYZyQm2WZ3c1O4E0TCn5lJ7qMKd7hqO9TItsLhXi4V tUO74ekpyVcZWUqIdsi9hM1ED7diYJYk5cqRaqVbrQJ8zweDzw4i/9aYksJ8Xlbm0+bO gCgKKVZwudcoo5kpNhtoQiPMgqrGNc9U5QBNXJ9k2DuL8ES7hb8AtGCQiWdJaW03QRPy Se/JeSlAejDm0z8AfQuU5mccc8/0SDKE8DfvUVSu0cwGLDq5g3kv5U2e/wp3xOS73zRt vF+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5o1BJZHNv96VxgrgtbJGhmEx3wfhKVsvqcZbT5gssMI=; b=hPCjg/UVzcVh4oTYTTiaraaz+TaST3M4tAVQRmhl62zaGgiXwE0Ya329qktpNCSR/f 19FFhPj/Vbrc/HJngM+0SzaQbK8G6JlyaDr8toyDWlK0GEpN62KmQ7VCpPyHxSglu9WE WNdNsGoDgF260ygS8T1NFMqLTqbpdhvKYzV00nl4n6KogpAn2uZ3EI2CC3KdpxjK6cCs ERvyogz4I0AUMg5TM3hskawaS7vR1s7f2NiZo5kyCnflrqFKD6X4uT0u5pflPNIvJYoc O56lizXgg3arMJ+YS2kQ16/PZRGpr8sf2uL8R1t/MkKjObS6eHw4ONktbIy58e0WQOet lhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pyQytY+T; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ga21si13587272ejb.24.2021.06.15.00.49.51; Tue, 15 Jun 2021 00:49:51 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=pyQytY+T; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S231136AbhFOHvw (ORCPT + 7 others); Tue, 15 Jun 2021 03:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbhFOHvu (ORCPT ); Tue, 15 Jun 2021 03:51:50 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B8CC06124C for ; Tue, 15 Jun 2021 00:49:44 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id u18so12604880pfk.11 for ; Tue, 15 Jun 2021 00:49:44 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=5o1BJZHNv96VxgrgtbJGhmEx3wfhKVsvqcZbT5gssMI=; b=pyQytY+TI7xnBzHu2gsYLx2ksYKrv1ik4okxh7p7/90Y3xGjq1Knnl32Jcj52NegRr V//xd5+jKK35Gg03i+KRBFQ2wno7JvL2y5qNmhwsz+NNdn6+ONXGuTcbUNfZGfrTHxr5 ujNWWLdDYYamVWaGsoqXtIRMj935dkR92WLMKJC+0wyT423Aye6xPizItCFPfXA5Pe7C 5O9BFQaR4In0+NszmhQxKDRm8sGY/Fd8h13iNLDWKQ2uPDyDkGr/GVU2cPzamQEGLW5c A+PvzH8yn3GGunNlRj5sK2vRQrtahJT2d+2MCC6lPloCA2QUb2OnvOItdQf2KnAS8TAh xMwg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=5o1BJZHNv96VxgrgtbJGhmEx3wfhKVsvqcZbT5gssMI=; b=Wz0l4kqxnRBZlXarfs1akMhKW2ObUrt4GFwpvi1tAAr4SwrqdQxJwVlToLb2xYP02S Ee4DgN+AYHL5D1bvkcJmwWxl737hmV1f6vUVTynqqcb08pXvP/8ge8xaCvOn8JWy7UGe RjcTfx9N19zYS7f3Je+Q6v2CywlptuqH6b0yua7d0wzMQtoQqQieibyr3BHuURoS9Pkd btXag9cLlz15yBjArrNjFjqoVmpDdDqdu1PwQe9ALj8jsd7thmTBegLx3JwLykCaCM3J hzxZq1ukGEoLAaEv4m8QJUylDb1NcXqLFMYvtN5zEeWGk0fNuUhaxvZwmc7xo9ywJzY2 N11Q== X-Gm-Message-State: AOAM533Po2owTbQBmKEfLZokG3/uziRjA1WUJAmU7PTwcWYnwP7FI0UE l8lYAaU+Gh13FVv1w35kWZThtw== X-Received: by 2002:a63:5504:: with SMTP id j4mr21283621pgb.238.1623743384067; Tue, 15 Jun 2021 00:49:44 -0700 (PDT) Received: from localhost.localdomain.name ([122.177.197.114]) by smtp.gmail.com with ESMTPSA id c25sm14273097pfo.130.2021.06.15.00.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 00:49:43 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij , Liam Girdwood , Mark Brown , Bjorn Andersson , Vinod Koul , Rob Herring , Andy Gross Subject: [PATCH v2 06/10] regulator: qcom-rpmh: Add new regulator found on SA8155p adp board Date: Tue, 15 Jun 2021 13:15:39 +0530 Message-Id: <20210615074543.26700-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210615074543.26700-1-bhupesh.sharma@linaro.org> References: <20210615074543.26700-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SA8155p-adp board supports a new regulator - pmm8155au. The output power management circuits in this regulator include: - FTS510 smps, - HFS510 smps, and - LDO510 linear regulators Add support for the same. Cc: Linus Walleij Cc: Liam Girdwood Cc: Mark Brown Cc: Bjorn Andersson Cc: Vinod Koul Cc: Rob Herring Cc: Andy Gross Signed-off-by: Bhupesh Sharma --- drivers/regulator/qcom-rpmh-regulator.c | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) -- 2.31.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index af41a517da99..73623d51929b 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -883,6 +883,38 @@ static const struct rpmh_vreg_init_data pm8150l_vreg_data[] = { {} }; +static const struct rpmh_vreg_init_data pmm8155au_vreg_data[] = { + RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"), + RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"), + RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"), + RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"), + RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"), + RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"), + RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"), + RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"), + RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"), + RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"), + RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"), + RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"), + RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"), + RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"), + RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"), + RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"), + RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"), + RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"), + RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"), + RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"), + RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"), + RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"), + RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"), + RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"), + RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"), + RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"), + RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"), + RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"), + {} +}; + static const struct rpmh_vreg_init_data pm8350_vreg_data[] = { RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"), RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"), @@ -1145,6 +1177,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm8150l-rpmh-regulators", .data = pm8150l_vreg_data, }, + { + .compatible = "qcom,pmm8155au-rpmh-regulators", + .data = pmm8155au_vreg_data, + }, { .compatible = "qcom,pm8350-rpmh-regulators", .data = pm8350_vreg_data,