From patchwork Thu Jul 11 16:46:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 812106 Delivered-To: patch@linaro.org Received: by 2002:adf:fac3:0:b0:367:895a:4699 with SMTP id a3csp317393wrs; Thu, 11 Jul 2024 09:50:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX6vtC0dpMSBebG92i2VHNYmV6SVvwH9YSmR8fnVj3yilSuJJzQDXL/d5LDoovxnte/ZFNvUatHyWvg7vNDwbNG X-Google-Smtp-Source: AGHT+IGN5U2+V014Wi33xvaAKYoWeRpH1lmDCoRNBsfHWydyVkZ91ecRB15SFYdP7gbVsOPjdZGR X-Received: by 2002:a17:906:b24b:b0:a77:d9b5:ad4b with SMTP id a640c23a62f3a-a799cc4f0damr17876666b.9.1720716655024; Thu, 11 Jul 2024 09:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720716655; cv=none; d=google.com; s=arc-20160816; b=Q9KIVJ8oH7hPAB0brocZD6fuiSQeNkDi7amAeGR2snl6BGg/ZD+fx0+XOPwxVnMKBx 2mEtTjFY/lGALn1IOBE3kyQdz5eNTlmO7TGdeNlH/RQ9E9YSySvexSHoYRLWCXQtG935 nOLKKkw/cqqSzwI0P2/uH8TpaMuywgJZgCEIlYXEjo+vCL9v51K2thjnzYEWHxP3JsBv ceomnWnmC/Sek4RZYW/zDbWbuBhbwi+aWpXsy5U+JpGu1rna3MmXPgOOwd9Ukb+UgyZW JSbt+joFKM5FYBV22aELNYcDrhmeijidhV+bdczeluFViHUnW99wrE1UV8H5F+eSsoTQ 2tMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=OF76tLlohvDjPr8qGLbtCRZpdV9zcWQISuqlg021S0o=; fh=/XivWHF+vo8fEJZkIifbJJS5exQ4Pz1Cdxakj2MFy4s=; b=K6KsnziKVocp5rvrBCvqV/zF+Cn209Wqfs/Twdozm5Bv6YqwwuO9S5cGvIJyAhB2IT DCnFQzrNDd2yIAejODs5AKytTI253AbuUrqUJ6oX9z0iVXWWrLe4nyPSV+AE1ggynRc8 M5Ezl95u7ozJzoA5hVeVDtJCu/vvlgUbAIT8DEVWy9ulj9HDKw40SUwhgeAGoq+QFZhj 2B3pMytXJZ/SOF92sv8RUmfSijlfobCG9q/zITXPWO7WUgzTSVnhiEG/kj8nS+dRqUXB LzNOXtosKDayEnCCsgsX8aIakbz8GujdGVnY9mQkcHCqgpbQvmN3OTjvFSkxd+W2ancO Z9Ag==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wvn+VWaS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a780ab0d87dsi355806366b.516.2024.07.11.09.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 09:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wvn+VWaS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C66288761; Thu, 11 Jul 2024 18:47:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Wvn+VWaS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1DB1A887CE; Thu, 11 Jul 2024 18:47:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 124AC88777 for ; Thu, 11 Jul 2024 18:47:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-58c2e5e8649so3232899a12.1 for ; Thu, 11 Jul 2024 09:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720716427; x=1721321227; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OF76tLlohvDjPr8qGLbtCRZpdV9zcWQISuqlg021S0o=; b=Wvn+VWaSbo2j2rJjo7OeeqLt+bFvr8ZPAttNgJyLiGZJXMce3ldahBFT+Wjo1gbbBB nru8PTPltNom9Hm5rV+JEtbnXBJi1gQdbmqJKDirLC97VuKwiwsg/gDD2vO7Cy8zOuTl 1ZuKhq1cCfCT8VN5129AUJ0W/UY9wjBGe6IxI3piPetwRk/dgrLqwXxtz466uMLz7zCH eu6Efwvlw7ZAKWtn2P2/WM5oXViq5KZpFrfCP3/Dxy525ry0PWFTQpI9WmGScvzuA/Fv niJHRM6BPfYL+ABHCFw8ZgQ1tTi1l/ORnUpodSsEuO8itq3rdVKxk4GlorqUw5YDM1Gh vw3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720716427; x=1721321227; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OF76tLlohvDjPr8qGLbtCRZpdV9zcWQISuqlg021S0o=; b=URtFhfRtZ9LqRMVWUl1P32m1Pud6UIkv+eHVZRlW2xqjQfCH96nJTsqVhLLOPaSb3z BGg0PccJG0sGut/JD3pPE/aZuaEv6UM1R4SOyrJQQloUQDmKQsynLrgvyAwjbu36hE2N wCs324RcQsiXhliJHSZ7En8pEig/ZLsTRj8VvKpiezrRpIM949pLMHz60DI9HtFabzl1 JYwtEtcuHX+ru+DpzXvcooRsaso2PTn0LpLMQ4h2OqZtCkyK/dswEHHS8PvVMGymDdzi 7TTdNoV/kBqNhdR3bbYvYZzc609HhXzUyXTmwlOl3cBrPZnEcyZsrRJAWTKgIjkFs1oI ZQwg== X-Gm-Message-State: AOJu0Yx3To+ONsJ9yUD2smJ6u6VKdC69DMW46TFGnY6vK+SYQapceWgf 8SL7jpxqSRv7/LbSgajngDAy8GlXJbpBxiPyE3lemlNFcDyydhi++Q6KVuiG4HA= X-Received: by 2002:a17:907:846:b0:a77:f5fc:cb61 with SMTP id a640c23a62f3a-a799cd67784mr19872566b.0.1720716427605; Thu, 11 Jul 2024 09:47:07 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a8545adsm268454166b.159.2024.07.11.09.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 09:47:07 -0700 (PDT) From: Caleb Connolly Date: Thu, 11 Jul 2024 18:46:54 +0200 Subject: [PATCH v5 22/23] power: regulator: qcom-rpmh-regulator: add build infra MIME-Version: 1.0 Message-Id: <20240711-b4-qcom-rpmh-v5-22-fbf04ce6a7e8@linaro.org> References: <20240711-b4-qcom-rpmh-v5-0-fbf04ce6a7e8@linaro.org> In-Reply-To: <20240711-b4-qcom-rpmh-v5-0-fbf04ce6a7e8@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Jaehoon Chung Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1943; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=Pso8b/uVAl+mlHoL5Qsl7woxZlxMQtfdivEwIMBQyfo=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmkAxwUpMJbOcBg40tUC677lctCevBlNqC+Nqvq JQnL0QzKjqJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZpAMcAAKCRAFgzErGV9k tosTD/wNjfoHfn6tyMAD+/t18dXMSnfMZ1VTgju2yP6YDmSLcRJRY9z78/mAoexVyirnMw4UYyS sg9u0GvYgBWN5wD/xptK25ISltIdifjOJZYhIJHVGd6XpgWadFcvs/+hxjg3GV83MH3itx4sUFW 4qPPlVJPqpOLsCmVJN6wIgS+Xtdu6tdETYMz0tunjQWDk0wsrk6m20jHs6obFUelvVwoKsmLtWO 10O12KOfEMQbDEZOasHzlYxKMod9VkGD0XOeme1/9CJe6nAXDJW7i/xZh2I+TSr+gESozYqgkm8 JbBKYBv3p87QOrGRZUgThjooL3+/9sU7waQCSqP+VDH+CsTPKRbFGFBOFq8MuThB+X1DKVLaXMk 5XQ6A3g9+ZbzBKw1Xb6pNRRsgBo3ZtYQj90FRnsQNPzyh9h3Z1Ow7ATpjeqSU0DUn/LhbYKhXbd D4ocFRmBPHkALUCytCGZv2r8zdjbpogjP3iMTPbiePx87UfpPZoZlCbKwMTTcMn3jCwO5ZOcHZY 7VNJuYmiw89bbHkp2ZkQuRnPkbfSmv9fQuuJty9gw6RZ5OgeslTi4yvrdc547vZpHq70a55tch1 MwQRGajA9k6t4gaBB6U0svzyIohkZyvaukpjJmYdjbbIc7d6fqapmpKsVEfwZD/7vjkpuRCdhGj zjml1pjMsJt05eg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add Kconfig and Makefile entries for this driver now that it can build for U-Boot. Signed-off-by: Caleb Connolly --- drivers/power/regulator/Kconfig | 8 ++++++++ drivers/power/regulator/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig index 102ec7bc5f89..bc061c20d75e 100644 --- a/drivers/power/regulator/Kconfig +++ b/drivers/power/regulator/Kconfig @@ -215,8 +215,16 @@ config DM_REGULATOR_GPIO This config enables implementation of driver-model regulator uclass features for gpio regulators. The driver implements get/set for voltage value. +config DM_REGULATOR_QCOM_RPMH + bool "Enable driver model for Qualcomm RPMh regulator" + depends on DM_REGULATOR && QCOM_RPMH + ---help--- + Enable support for the Qualcomm RPMh regulator. The driver + implements get/set api for a limited set of regulators used + by u-boot. + config SPL_DM_REGULATOR_GPIO bool "Enable Driver Model for GPIO REGULATOR in SPL" depends on DM_REGULATOR_GPIO && SPL_GPIO select SPL_DM_REGULATOR_COMMON diff --git a/drivers/power/regulator/Makefile b/drivers/power/regulator/Makefile index f79932d83307..56a527612b74 100644 --- a/drivers/power/regulator/Makefile +++ b/drivers/power/regulator/Makefile @@ -20,8 +20,9 @@ obj-$(CONFIG_$(SPL_)REGULATOR_PWM) += pwm_regulator.o obj-$(CONFIG_$(SPL_)DM_REGULATOR_FAN53555) += fan53555.o obj-$(CONFIG_$(SPL_)DM_REGULATOR_COMMON) += regulator_common.o obj-$(CONFIG_$(SPL_)DM_REGULATOR_FIXED) += fixed.o obj-$(CONFIG_$(SPL_)DM_REGULATOR_GPIO) += gpio-regulator.o +obj-$(CONFIG_DM_REGULATOR_QCOM_RPMH) += qcom-rpmh-regulator.o obj-$(CONFIG_$(SPL_TPL_)REGULATOR_RK8XX) += rk8xx.o obj-$(CONFIG_DM_REGULATOR_S2MPS11) += s2mps11_regulator.o obj-$(CONFIG_REGULATOR_S5M8767) += s5m8767.o obj-$(CONFIG_DM_REGULATOR_SANDBOX) += sandbox.o