From patchwork Wed Mar 30 09:41:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12795623 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 A72B1C433EF for ; Wed, 30 Mar 2022 09:43:08 +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=1zxNgrAA+REZnEOjTpZy/nuhG+VLf573xryYp6rkSqY=; b=Lh1sdmQpKopsnt acpdnWfBB7Sy8ZjnyRBIIiwMKxNRR7aCq91jBoL6+0tc8t5XAvtJxg0nyjIITEGG/gK+vI2zoBjiV SaxKDuuc6bfrRekNuufNbV8LPJgi+AuL07C3qevE4Bc20NxJD4E1jFdolIv6hBxyBRrP9AUkraQ1M jwqAGamp24Q1hW4nAdoufcH/4lS2pYjVnfLu681tpWXy3S/WF9ySgWu8u3pncMDzyxh1C7C8sfdbN rVKnEvxgCafzWDDPDwH3Ha6Qu/YeiXGUR+93/ToX07S/4u4pU5buwPlRT+oDEnFjni13lf2/9Wu+4 HDoel+lts9DDLvZcI8NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZUpt-00F0lQ-M7; Wed, 30 Mar 2022 09:41:53 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZUpj-00F0i5-HX for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2022 09:41:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D73AC5C0158; Wed, 30 Mar 2022 05:41:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 30 Mar 2022 05:41:42 -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; bh=YWVHnruhGewAl+ Paza8ux9+8q9vmzM2dPPEB/fzt7c0=; b=E5C2HdR/FlAderKdoGOBPfDi/WNO5k bIecBPJUWBRxl/8gNePkVhI3x9WtaHCzOyvaSBbj4Kr9yk8yj0wrCzMZNhIfVXRg JOx7P4wYH0ej3J/sw6wq0LucDdU2OybphkF+xR9T47L9ittc1wOYNbVoOuB5bBVL OwYqiTaWYu/VVGiHl4+PGN/NKYlI602Zc3eXRLPCdiyvVIYB0iru9Qxc5D4bW247 1up+y7BEHZ+oREmLE5GsdEF5xtrI8kCnCRwvWyfghC1F+yZpSpUmNzwlGzWVdK1l sZGG8F0C3COinfnR7Wy75uGMfHdlwDRMK0k8gsAJLq45yA6ztRmqq3hA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; 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:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=YWVHnr uhGewAl+Paza8ux9+8q9vmzM2dPPEB/fzt7c0=; b=R6/9NKnVlmd/jk5uyPkt2m 0i26wa7RHZ/FhxMlhsJfOI3rcvI//wtbH/98vSeKmFOKp2j8H5MVnjnq/MURriBq NzRuYDDYkFAOVCyRYGJ1q+6VKMTEI1Y3ssxocxh7rDyIKKhidKoo5aapQ7WUKxoO C5fp7cfueY0vrot0V5uyiSWHtnqU/krFe5lw4gxjLwvVW1gcE+FmcyiItdtJ638L 8VLVKiuaIt2JLvzoKNXfj02tgiTAQVT0rJl6rmR1SI7kdV8yAZnR00wQdz/CK07Q A17bMWkNPp/5u1SjS/Gqo/9Dx2NhnaUEo2+2O5OSOOQCr1j2PsqkLOHmZWQcNhOg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeivddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Mar 2022 05:41:36 -0400 (EDT) From: Alistair Francis To: lgirdwood@gmail.com, robh+dt@kernel.org, kernel@pengutronix.de, lee.jones@linaro.org, broonie@kernel.org Cc: linux-hwmon@vger.kernel.org, geert@linux-m68k.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, alistair23@gmail.com, s.hauer@pengutronix.de, andreas@kemnade.info, linux@roeck-us.net, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, amitk@kernel.org, Alistair Francis Subject: [PATCH v20 1/4] mfd: silergy,sy7636a: Add config option Date: Wed, 30 Mar 2022 19:41:23 +1000 Message-Id: <20220330094126.30252-2-alistair@alistair23.me> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220330094126.30252-1-alistair@alistair23.me> References: <20220330094126.30252-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220330_024143_679679_9500A7EE X-CRM114-Status: GOOD ( 11.38 ) 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 --- 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 68a8a27ab3b7..74b60d24e740 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1693,6 +1693,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 5ef2306fce04..c8ce6e5eea24 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1219,6 +1219,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.