From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 A7F8E3EF0A4 for ; Wed, 1 Jul 2026 12:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782909798; cv=none; b=RMnz3WsDBl+1mlaDXzgdXyuNuDbVHvvmyA2FtqSIPxDENepTyT7Xm3smMiLQ96bSmD0iAM3dZiL2pu+JW/Yh5xyE91VR5F2bkGZK/hmUJO8I4W2skEVMrGZnuqWmLnpju8gvzelurMuDcdsZlm6lm2dGKbiW0sN6XgLt0jYo8iE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782909798; c=relaxed/simple; bh=zJevfdSMG4AJEgqzzGvpVZZEevc7eVCrmO15iNl2q4w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Euf0uRFHI+C/nMaiJqm4zBkWrwCLJmNeI8U2eGJWCaI8kOcm+dXi5gdvLcBwHUuVvjl735izyPUxuU3C2vmsm+f1/eCyHPdoCAJvcQ0SQnkwyYh7v8XwaFeoXmOAQdwy5Or//U6Z8qjWs6QmmGa5E2ortVn8lVbdEo5ctJt47Zk= 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=R6udX1s6; arc=none smtp.client-ip=91.218.175.189 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="R6udX1s6" Date: Wed, 1 Jul 2026 15:43:08 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1782909795; 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=U7y0rtFd8Id0Kr1JLKnltce7dF6ibmUq5mVZfAqMYvg=; b=R6udX1s6xnLdV7hdiL3DysTvEhBJ6kEn44CpbH1kBF426z2vDLkxB528FltYTSy/0WP3mW mQ4Fzkgdr53OgbnXbZUJTKhtrjM4Ovcu8Y0rBAg84s0QrzGxB+9CSqQuH1Ro2hT34lcopF UR+4bWMYDHwfYyphD9TckwTm1xGUqk4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Matti Vaittinen , Michael Turquette , Stephen Boyd , Brian Masney , Linus Walleij , Bartosz Golaszewski , Alexandre Belloni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: [PATCH 6/8] clk: bd718x7: Support ROHM BD73800 Message-ID: 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="1F/Xq7h4mIXqx1uL" Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT --1F/Xq7h4mIXqx1uL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom: Matti Vaittinen The ROHM BD73800 PMIC has a 32.768 kHz clock gate. Add support for controlling this clock. NOTE: The CLKOUT pin can be muxed by an OTP option. On some OTP configurations the CLKOUT is not outputting the clk signal. Signed-off-by: Matti Vaittinen --- drivers/clk/clk-bd718x7.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/clk-bd718x7.c b/drivers/clk/clk-bd718x7.c index 1cae974e6d1d..2dc6b8e46f18 100644 --- a/drivers/clk/clk-bd718x7.c +++ b/drivers/clk/clk-bd718x7.c @@ -21,6 +21,9 @@ #define BD718XX_REG_OUT32K 0x2E /* BD72720 */ #define BD72720_REG_OUT32K 0x9a +/* BD73800 */ +#define BD73800_REG_OUT32K 0x50 + /* * BD71837, BD71847, and BD71828 all use bit [0] to clk output control */ @@ -123,6 +126,10 @@ static int bd71837_clk_probe(struct platform_device *p= dev) c->reg =3D BD72720_REG_OUT32K; c->mask =3D CLK_OUT_EN_MASK; break; + case ROHM_CHIP_TYPE_BD73800: + c->reg =3D BD73800_REG_OUT32K; + c->mask =3D CLK_OUT_EN_MASK; + break; default: dev_err(&pdev->dev, "Unknown clk chip\n"); return -EINVAL; @@ -152,6 +159,7 @@ static const struct platform_device_id bd718x7_clk_id[]= =3D { { "bd71828-clk", ROHM_CHIP_TYPE_BD71828 }, { "bd71815-clk", ROHM_CHIP_TYPE_BD71815 }, { "bd72720-clk", ROHM_CHIP_TYPE_BD72720 }, + { "bd73800-clk", ROHM_CHIP_TYPE_BD73800 }, { }, }; MODULE_DEVICE_TABLE(platform, bd718x7_clk_id); --=20 2.54.0 --1F/Xq7h4mIXqx1uL Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmpFC1wACgkQeFA3/03a ocUbaAf/d7MbmBs0y/WQnjnQg/4i6yvH92DGkIwThuxpkJM78/oPj6AFER52hDyG f2C8T7oc9gYxUtefvsc6aSF6XIqZO8Uw+R4BeVgEjVc7DHKbwJOYVNScn3lsh0vx cNbpLW4YmomHHS+oL1B2Q95syCh/X39iFBCitMgoRZyifCQq37U91RFB4gC6hIM+ lHUlDLXDMjFFs3KyY1UygoFYqAc7yN7zRHA7c3cPq9MHY25n8jRMiLNy78O/Q5pf zNhGsETiuWXczukDORyVBOg3awI6kz8rkfBkXizId2fqXxDQN1trgwtm218cnaEi Hp7/wHzCtEFHLi+La90FAslISx+6dg== =Hu2m -----END PGP SIGNATURE----- --1F/Xq7h4mIXqx1uL--