From nobody Tue Dec 2 02:28:22 2025 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8259E31DDBF for ; Thu, 20 Nov 2025 08:23:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763627034; cv=none; b=dTrhcPIwvDqNPnwQa3K15y4KngutAJ8SfoAs2U+nrMNx6FTPsHj3q/fYWBFAd3IVf3C4FGIdXIzt8HwUDEGL4v98E1qgFcD8W6rkGT3ns7Cvv8gYRTaSEpQuK6aAlC5mzdgO+d7TbXPoVTGADbZPG0mhEcNEy0+9pssu9eSNpCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763627034; c=relaxed/simple; bh=9XbD64TAykTSUxGuAKvhXEOC81asgxQ2yMctEhRqrW0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gtlwOpbcqP0yhOdQJcWB8EWNUbQ1wyOXD2UHyq0DYLLzbN0nXmIIKlqLI7oIs3LksdvPgDjPJb9TkhG5Z4SPbcEs56fwVQZ5wC9ckb91Jfi5Bt9Gvsx48EDc6ZpMmDXzarfAQHjEQ2aqN2LarEX1mZ64ohVumjTm+NetA2BI4gU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YbIdEuxc; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YbIdEuxc" Date: Thu, 20 Nov 2025 10:23:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1763627030; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=35JUl7u2KQAo+I+6X18tMQ+7tIts6ox8KMI8oe+ZkMU=; b=YbIdEuxciKtfHhiZ6sYCVWJ3jhDtYfM+ztHM9fWQKtua3Kmq9gcCOshQF4uekfs5IXvJJJ eRr3anuk0JAK4+8JSSyVKv2rvRWrb6o8OdTmvC81xp/qsLA9udg9tUj5saXqYfVVIj+Odk /1zR9F4gjISILyxj2i/0QLbcrSkBtUE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Matti Vaittinen , Linus Walleij , Bartosz Golaszewski , Alexandre Belloni , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org, Andreas Kemnade Subject: [PATCH v5 12/16] clk: clk-bd718x7: Support BD72720 clk gate Message-ID: <1dbbd627a90741e55727ed8bd96a9b05daf0ac6a.1763625920.git.mazziesaccount@gmail.com> Reply-To: Matti Vaittinen References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z6xQVHY/4A06AMsg" Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT --Z6xQVHY/4A06AMsg Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Matti Vaittinen The BD72720 has similar simple clk gate as a few other ROHM PMICs. Add support for BD72720 clk gate. Signed-off-by: Matti Vaittinen Acked-by: Stephen Boyd --- Revision history: RFCv1 =3D>: - No changes --- drivers/clk/Kconfig | 4 ++-- drivers/clk/clk-bd718x7.c | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 3a1611008e48..619bd63a3c77 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -475,8 +475,8 @@ config COMMON_CLK_BD718XX tristate "Clock driver for 32K clk gates on ROHM PMICs" depends on MFD_ROHM_BD718XX || MFD_ROHM_BD71828 help - This driver supports ROHM BD71837, BD71847, BD71850, BD71815 - and BD71828 PMICs clock gates. + This driver supports ROHM BD71837, BD71847, BD71850, BD71815, + BD71828, and BD72720 PMICs clock gates. =20 config COMMON_CLK_FIXED_MMIO bool "Clock driver for Memory Mapped Fixed values" diff --git a/drivers/clk/clk-bd718x7.c b/drivers/clk/clk-bd718x7.c index ac40b669d60b..1cae974e6d1d 100644 --- a/drivers/clk/clk-bd718x7.c +++ b/drivers/clk/clk-bd718x7.c @@ -19,7 +19,8 @@ #define BD71828_REG_OUT32K 0x4B /* BD71837 and BD71847 */ #define BD718XX_REG_OUT32K 0x2E - +/* BD72720 */ +#define BD72720_REG_OUT32K 0x9a /* * BD71837, BD71847, and BD71828 all use bit [0] to clk output control */ @@ -118,6 +119,10 @@ static int bd71837_clk_probe(struct platform_device *p= dev) c->reg =3D BD71815_REG_OUT32K; c->mask =3D CLK_OUT_EN_MASK; break; + case ROHM_CHIP_TYPE_BD72720: + c->reg =3D BD72720_REG_OUT32K; + c->mask =3D CLK_OUT_EN_MASK; + break; default: dev_err(&pdev->dev, "Unknown clk chip\n"); return -EINVAL; @@ -146,6 +151,7 @@ static const struct platform_device_id bd718x7_clk_id[]= =3D { { "bd71847-clk", ROHM_CHIP_TYPE_BD71847 }, { "bd71828-clk", ROHM_CHIP_TYPE_BD71828 }, { "bd71815-clk", ROHM_CHIP_TYPE_BD71815 }, + { "bd72720-clk", ROHM_CHIP_TYPE_BD72720 }, { }, }; MODULE_DEVICE_TABLE(platform, bd718x7_clk_id); @@ -161,6 +167,6 @@ static struct platform_driver bd71837_clk =3D { module_platform_driver(bd71837_clk); =20 MODULE_AUTHOR("Matti Vaittinen "); -MODULE_DESCRIPTION("BD718(15/18/28/37/47/50) and chip clk driver"); +MODULE_DESCRIPTION("BD718(15/18/28/37/47/50) and BD72720 chip clk driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:bd718xx-clk"); --=20 2.51.1 --Z6xQVHY/4A06AMsg Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmke0BAACgkQeFA3/03a ocUnqAgAkyHL4k4IipQl6ULCjrirarhEfBVLuekzuKvmuizzzmd+Bheq95jfHsAG EhO5sRj7jnNRGAywKLdayuaLx6qUmCN1JGd3kMtnKBEeHPQcD4oLHQBi+PIRdZE6 1JQvzf4Qna/mk+oEwF4MQzy5JcEQ+C3MqkO87l26Dkcw0uSw8EfH9i7nwhR8QsOg Fvthgm28d0WPriPZtN6/1yKabW4yO8E6HkwFYmtE1gjqKfV1FQIPlgYffSM4pgtd lRzzGrjLZDVS0qr7SKFnbityE+xYYRjHrYliCKpFDSiGiTRBPOlEqkc0yYWD0hY/ YbMGEFFK/UhzoXsfxwpOrJtsNSh51g== =KfbR -----END PGP SIGNATURE----- --Z6xQVHY/4A06AMsg--