From nobody Fri Oct 3 04:08:59 2025 Received: from smtp1.iitb.ac.in (smtpd9.iitb.ac.in [103.21.126.64]) (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 8B9F021B192 for ; Wed, 10 Sep 2025 13:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.21.126.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757512393; cv=none; b=suCCQXDtHngdM77tdhn6fPclaJo5h4RNeqyBpeiYQprLRIeZa8xpPwe2mSpjfeRufJS8ANM9QPgqhGZRMM1sfzvOcgFoSkxcIj2ov/YeSfFx0D9zeuHq4+NV3WzR54eDmYA44xv3G3sDw9e190+EF0/ut9N8mv0I31yxNHQA4QY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757512393; c=relaxed/simple; bh=dnPKUf1tRxvkBGYpB6SRXfAi+F5vNbqKi4NNlW6M/lc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dD0B3KPfX0qvBg2ugd8zrTnrBpeex85kP4EMRBvNk2YdmxquDIQ+cacAUcUB6IkPPc29BGxHZqRJ3lGUrw6qZANQ13NnloNHK9sFvp35F0exPa9vsUaBV4aVthSJHNLYSUpO6eFzJxuPePyrm7kwW8Me66K57qBH3KMaxb0wkLw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ee.iitb.ac.in; spf=pass smtp.mailfrom=ee.iitb.ac.in; dkim=pass (1024-bit key) header.d=iitb.ac.in header.i=@iitb.ac.in header.b=XjIK+ZlH; arc=none smtp.client-ip=103.21.126.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ee.iitb.ac.in Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ee.iitb.ac.in Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iitb.ac.in header.i=@iitb.ac.in header.b="XjIK+ZlH" Received: from ldns2.iitb.ac.in (ldns2.iitb.ac.in [10.200.12.2]) by smtp1.iitb.ac.in (Postfix) with SMTP id 31F4C1016230 for ; Wed, 10 Sep 2025 19:23:09 +0530 (IST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.iitb.ac.in 31F4C1016230 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iitb.ac.in; s=mail; t=1757512389; bh=dnPKUf1tRxvkBGYpB6SRXfAi+F5vNbqKi4NNlW6M/lc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XjIK+ZlHoDXbiI4hLn3YcSmd9xeqx63jB8qwLx1FrpKR5XNiKKMItEZ6Lv7B258BS YkEjairChh1E7mBP4Xr8h+s8VxRLDDlk0kqfr1OZ46nLgCfmZoTasBYnCBEBrpoQSO HstKF4rGWbYQv6Vc3JJuf54Z3u8Lp5CBHrVpXW2Q= Received: (qmail 7774 invoked by uid 510); 10 Sep 2025 19:23:09 +0530 X-Qmail-Scanner-Diagnostics: from 10.200.1.25 by ldns2 (envelope-from , uid 501) with qmail-scanner-2.11 spamassassin: 3.4.1. mhr: 1.0. {clamdscan: 0.100.0/26337} Clear:RC:1(10.200.1.25):SA:0(0.0/7.0):. Processed in 2.978493 secs; 10 Sep 2025 19:23:09 +0530 X-Spam-Level: X-Spam-Pyzor: Reported 0 times. X-Envelope-From: akhilesh@ee.iitb.ac.in X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received: from unknown (HELO ldns2.iitb.ac.in) (10.200.1.25) by ldns2.iitb.ac.in with SMTP; 10 Sep 2025 19:23:06 +0530 Received: from bhairav.ee.iitb.ac.in (bhairav.ee.iitb.ac.in [10.107.1.1]) by ldns2.iitb.ac.in (Postfix) with ESMTP id A90723414DD; Wed, 10 Sep 2025 19:23:05 +0530 (IST) Received: from bhairav-test.ee.iitb.ac.in (bhairav.ee.iitb.ac.in [10.107.1.1]) (Authenticated sender: akhilesh) by bhairav.ee.iitb.ac.in (Postfix) with ESMTPSA id 8C9D61E813E1; Wed, 10 Sep 2025 19:23:05 +0530 (IST) Date: Wed, 10 Sep 2025 19:23:00 +0530 From: Akhilesh Patil To: alexandre.belloni@bootlin.com, krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org Cc: skhan@linuxfoundation.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, akhileshpatilvnit@gmail.com Subject: [PATCH v2 2/6] rtc: m41t93: add device tree support Message-ID: <3ec83583754d7db70ded369efd9818e1b65670ef.1757510157.git.akhilesh@ee.iitb.ac.in> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add device tree support for m41t93 rtc by adding of_match_table. Define compatible string - "st,m41t93" which can be used to instantiate this rtc device via DT node. Signed-off-by: Akhilesh Patil --- drivers/rtc/rtc-m41t93.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/rtc/rtc-m41t93.c b/drivers/rtc/rtc-m41t93.c index 9444cb5f5190..4e803ff0ce49 100644 --- a/drivers/rtc/rtc-m41t93.c +++ b/drivers/rtc/rtc-m41t93.c @@ -191,9 +191,16 @@ static int m41t93_probe(struct spi_device *spi) return 0; } =20 +static const struct of_device_id m41t93_dt_match[] =3D { + { .compatible =3D "st,m41t93" }, + { } +}; +MODULE_DEVICE_TABLE(of, m41t93_dt_match); + static struct spi_driver m41t93_driver =3D { .driver =3D { .name =3D "rtc-m41t93", + .of_match_table =3D m41t93_dt_match, }, .probe =3D m41t93_probe, }; --=20 2.34.1