From nobody Mon Dec 1 22:37:31 2025 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 7DC6D32D0F5 for ; Thu, 27 Nov 2025 11:20:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764242422; cv=none; b=NE5x8wRT5tEun2vnhBxpZe6gAOWEn/Bh7t4GHu7svOGAZCVlaBJu0fyQyYJen88UzbKT1mdYRAVVEwiUnyYZM/CzkPZvQBb0mL5E7gnRRe3KJciX4O7UKWhZc3rQiPnbJCRqV5si91QPxorwK8G/HVpYEgLC7tq4kx93aiK0Tuc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764242422; c=relaxed/simple; bh=ucFpu0RWK4cl0qNvLM5C03vzGKUbasKKYEDfo0oYSYM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZgpZncqo/v5wpZlE8SJA9soJGhwahfGpDIYOUQCOsn+XU+1sOvsfMVpWw3Erwp/A5gZNJMvCR1/gp9wRJDWNJ3XJPMdVDZfE7KqA4wWgpDwG5z1LnBKqaYjQKPTl3h03gZbHX0PrdcY9yp2kwyMsBaHapSOmypcNdFooo5/Tie4= 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=uD6dc49j; arc=none smtp.client-ip=91.218.175.171 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="uD6dc49j" Date: Thu, 27 Nov 2025 13:20:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1764242407; 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=a23qHk86Zi3bdvtQs+OvTa7aksTK81p1fec0WBO7o70=; b=uD6dc49j1YSRpp345AWpl60AEtEm2XXnlPtfGx1uWk2H9RhdhAIrVoIqsfk609ocq4Ajzb SHb6TG7XKP6n8Dc90TfDMcMZAoVrBFC4/gmYDyY1RRjsCNKNjXSJdsW/iN2mHMZyM5y5Yg 0lgdXDUANIdWsE9LXYhUoqcx6WS6u8o= 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 v6 13/17] clk: clk-bd718x7: Support BD72720 clk gate Message-ID: <5ee91ae7be77a400a17fda7d6d603323617e15ff.1764241265.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="kLrmilqfiAqlFLL4" Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT --kLrmilqfiAqlFLL4 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.52.0 --kLrmilqfiAqlFLL4 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmkoM+EACgkQeFA3/03a ocWUswf+LNJ0VkOHZiVY399Rk7TXsw6VDCPxvLqRmSuzAO8N17t6dLLN5KnNUo+L weRBfqpwG4OVl0/PeMJhdrHh9M3J0G528XGTVQELeXV5rg9eOJEnKONxnjcqCOcP 6W49RA3EYp+DQY93LQ1rfqLPlpPZitRZVvB2T6+w4DWB0eGUY8w/rzmXpwo6j/Jp iwRFGjfUA6hYerZOvhCkPmvgydSYcsiO7e+tjRHz7QkadkMIfaHz+l4LMkbQf3+p ZO0N+rk9W4uH9MdKHyxzuvu+Llz+bKVFMzQeMoMjhpMXpwXV9WJJkT5seYwR687/ NrgJ7vj0/xGUKJUgTQM8GVfCsdIEJw== =CfUP -----END PGP SIGNATURE----- --kLrmilqfiAqlFLL4--