From patchwork Wed May 25 11:55:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12861076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2A01C433EF for ; Wed, 25 May 2022 11:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u6aZ2OtktYcDZiA3iO7uqwtOWgrDw8MgNcvUS+kUMD4=; b=hkTjkJH9HBg2jy VIWuB9I6Bf2eEoocAtHGB5+GT0ZY9v01MS+A773ICtN3TGwipbE02Tjuo05K5WBCwNaKLHXLXKXAT TTas2tgfN9Oxl1u7OA5U3zSSheJAo32Oewde+u2yUbeV2+VWqQ0h9inO7dHqRls94q8wrF/If3aBv ZEtgsE6qjoNg737mdsYskxciDZWrIp11W6CQPweZhxQBZU9s/8hRn56FV3B0hylEgaidSRYFx3uCW Jq406Div6hPM9rtsZCS9AptDsweBo/3WyYuxfvngDZ+imDkNlFTroEKNdPF5aAUpXzwK8Sih5OtKp l2RqvVjhcyZunqXVFlDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntpcl-00B0Mx-An; Wed, 25 May 2022 11:56:23 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntpcX-00B0HR-Ss for linux-arm-kernel@lists.infradead.org; Wed, 25 May 2022 11:56:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 447E75C0271; Wed, 25 May 2022 07:56:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 25 May 2022 07:56:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1653479769; x= 1653566169; bh=kt7gBjbCcDTHFl2EAtfoonuQ7hMGpdwGw7NIY5UTUX0=; b=P yj2o+6t+1UKDCLtYYzx8uXvGamhGWb4KoqYy52GkDPUGg7Fh0DU6gpBeFfGMs641 cSNjqo+cztjOhHcRexdwLDecionZNxsJIIo8GzmqXGcLAESancAjbyU1sfDOMuy4 C3H632lmMudoHag9yzVxa6bGhpchLBuh4kk71hc8YSVOfPI4h5qLJdcXeWmtzvQt l81iLHJhzzuP5Hj4y4vu6dszJvJNtfBOtTw2EgYTFSxT4JVwXnPIoOxjiAWDheSt G9mfEPOXn76rxCFHDYxgvttr2epCs+HkbZVlALyvxUlkm2RUHRD4T9cQ41qebD5s 74sEaTXBPQcoK4X4CrWHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1653479769; x=1653566169; bh=kt7gBjbCcDTHF l2EAtfoonuQ7hMGpdwGw7NIY5UTUX0=; b=KrBhGVYz9uY+QEIb6uoN45eNRQGby i9VtYizyswbGnz6xENeCJ+2EL5gYimGQKbI3L+FNlLQTQZ4G8t4e0uZxbLL9ierg vg2Q9ez1W/dQ0YjVfRvhR5piZhDM3Z1P3Ap2FNiXlXLw+2I8Ke2EGeSNLm3YLc0a cgGao8kzSV9BoxokBgLpC5ioIw40fLOeCUafEjjhmI6J+6W4GN3iExrtBTZ8Mi5F jDC3DKyp/q1q+9wgITME7ynh6zgBj2CfPcl9xP0jpxfalgnCRXdAUMbBtJ39vzCR sSMvpTUY2b1Vr7tlYGsYrxXXE3DgPrrAGVIvNTk+ysp2zRv17DSUemLHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeehgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 May 2022 07:56:03 -0400 (EDT) From: Alistair Francis To: lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org, robh+dt@kernel.org, kernel@pengutronix.de Cc: s.hauer@pengutronix.de, alistair23@gmail.com, linux-arm-kernel@lists.infradead.org, andreas@kemnade.info, amitk@kernel.org, shawnguo@kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, linux-hwmon@vger.kernel.org, linux-imx@nxp.com, linux@roeck-us.net, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Alistair Francis Subject: [PATCH v21 1/4] mfd: silergy,sy7636a: Add config option Date: Wed, 25 May 2022 21:55:51 +1000 Message-Id: <20220525115554.430971-2-alistair@alistair23.me> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220525115554.430971-1-alistair@alistair23.me> References: <20220525115554.430971-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220525_045610_141403_23BF0692 X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a specific MFD_SY7636A config option. As part of this change we can use MFD_SY7636A as a dependency for all SY7636a components and also remove the name from MFD_SIMPLE_MFD_I2C as it no longer needs to be selectable. Signed-off-by: Alistair Francis Reviewed-by: Guenter Roeck Acked-by: Mark Brown --- drivers/hwmon/Kconfig | 1 + drivers/mfd/Kconfig | 12 +++++++++++- drivers/regulator/Kconfig | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 590d3d550acb..a3a3b73b0a87 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1740,6 +1740,7 @@ config SENSORS_SIS5595 config SENSORS_SY7636A tristate "Silergy SY7636A" + depends on MFD_SY7636A help If you say yes here you get support for the thermistor readout of the Silergy SY7636A PMIC. diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 3b59456f5545..c47cb755757b 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1095,6 +1095,16 @@ config MFD_SPMI_PMIC Say M here if you want to include support for the SPMI PMIC series as a module. The module will be called "qcom-spmi-pmic". +config MFD_SY7636A + tristate "Silergy SY7636A voltage regulator" + depends on I2C + select MFD_SIMPLE_MFD_I2C + help + Enable support for Silergy SY7636A voltage regulator. + + To enable support for building sub-devices as modules, + choose M here. + config MFD_RDC321X tristate "RDC R-321x southbridge" select MFD_CORE @@ -1202,7 +1212,7 @@ config MFD_SI476X_CORE module will be called si476x-core. config MFD_SIMPLE_MFD_I2C - tristate "Simple Multi-Functional Device support (I2C)" + tristate depends on I2C select MFD_CORE select REGMAP_I2C diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index cbe0f96ca342..25041cc2f605 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1236,6 +1236,7 @@ config REGULATOR_STW481X_VMMC config REGULATOR_SY7636A tristate "Silergy SY7636A voltage regulator" + depends on MFD_SY7636A help This driver supports Silergy SY3686A voltage regulator.