From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 D535447CC85 for ; Wed, 1 Jul 2026 12:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782909751; cv=none; b=mJwYRC1WMqXA71JKLwRI8N9+fwtLHp3lgPt12BmDzfTApoomfN8/lYR8KOfJ/F3z2f78bktuP9kUo7C5hHGRngg6dQaKpSvqKkRYxTq9KVTjackjMV7tdWewt7zbQMY2IRXEGEJU1SE7aIovs0uXeKF7j2s+qcjuQP3RZd42NxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782909751; c=relaxed/simple; bh=R9FIIyC7v3yveCxvL9Sv1vZG8pY5UgbwEw7oji3WHXQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ss8Zf0h2eNY91WYfItCvcLOe236XhXLv9znEM+HWji6Gg8xu8DJ1K4cCB0JERrrm8AwTz6lCJpN4mLmBChbi+ggW7r/x5RvKiMYJYV/77D5oMuGDwogwmeR/NfzPowMOHVbaDQhnegHTHs5Y8qLhmJ9sXPNJXCGfFcZiAv+Ay+A= 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=GVd6D98n; arc=none smtp.client-ip=91.218.175.178 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="GVd6D98n" Date: Wed, 1 Jul 2026 15:42:20 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1782909747; 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=IvyP+6IBPo+SaCxxlxcFooQLBfZsZ2IQR6meFJNWH0U=; b=GVd6D98nTKzRfR7N6XBoHPEIFSrR+XSx7395C2O9sfsMpzevU0JZxH18gRX/q/66qzY7Ly u6LC8cGO2kFC8wbH6IMeP3GIwpfP6an6ny7rdxEGPnnqetkE8013xocU/W4I4TeZ5wjPxX p2HAEKShkuY/ItN9wZPORiZNzPBJ6S0= 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 4/8] rtc: bd70528: Support RTC on 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="opg1Xu82DhyF1m53" Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT --opg1Xu82DhyF1m53 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom: Matti Vaittinen BD73800 contains similar RTC block as BD71828 and BD71815. Only the address offsets seem different. Support also BD73800 RTC using the rtc-bd70528. Signed-off-by: Matti Vaittinen --- drivers/rtc/rtc-bd70528.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/rtc/rtc-bd70528.c b/drivers/rtc/rtc-bd70528.c index 482810b61495..fd415e327ea6 100644 --- a/drivers/rtc/rtc-bd70528.c +++ b/drivers/rtc/rtc-bd70528.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -284,6 +285,12 @@ static int bd70528_probe(struct platform_device *pdev) bd_rtc->bd718xx_alm_block_start =3D BD72720_REG_RTC_ALM_START; hour_reg =3D BD72720_REG_RTC_HOUR; break; + case ROHM_CHIP_TYPE_BD73800: + bd_rtc->reg_time_start =3D BD73800_REG_RTC_START; + bd_rtc->bd718xx_alm_block_start =3D BD73800_REG_RTC_ALM_START; + hour_reg =3D BD73800_REG_RTC_HOUR; + break; + default: dev_err(&pdev->dev, "Unknown chip\n"); return -ENOENT; @@ -344,6 +351,7 @@ static const struct platform_device_id bd718x7_rtc_id[]= =3D { { .name =3D "bd71828-rtc", .driver_data =3D ROHM_CHIP_TYPE_BD71828 }, { .name =3D "bd71815-rtc", .driver_data =3D ROHM_CHIP_TYPE_BD71815 }, { .name =3D "bd72720-rtc", .driver_data =3D ROHM_CHIP_TYPE_BD72720 }, + { .name =3D "bd73800-rtc", .driver_data =3D ROHM_CHIP_TYPE_BD73800 }, { } }; MODULE_DEVICE_TABLE(platform, bd718x7_rtc_id); --=20 2.54.0 --opg1Xu82DhyF1m53 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmpFCywACgkQeFA3/03a ocXD8Qf8DPGjAv6Z697J0P6vwwgEi6/pfKwWCGv14HNNOKH5tHiqqtPGFw5ZhW1C Ch36520fY578Krn2pwAlXMU4Yz6hiHNW/g/U3vIgHAYCr+bH+2c00/1yHDTuDlmw cF5I30ELpEpXSW1L0M41KmdN7kR/gTa8Hzr5EGk2XQ697BIj0VjuyupPZZul7IQg 0RP1FvdQqXffQcqLIJVtLFOfbK07D5cp8qBpEQ6/qbq5SU9Yec+9R3IYiLRKOF66 LbYKpuokxlYPNJzBJqaT35NAGsMNDRqgTK5R3qTxMHUkKyHdB/4+3nWGwt8f4mE+ xEA7PVsJLxDjSuVT0zNmcZmjnvNIRA== =9kOM -----END PGP SIGNATURE----- --opg1Xu82DhyF1m53--