[PATCH] rtc: isl12026: Add id_table

Akhilesh Patil posted 1 patch 1 month, 1 week ago
drivers/rtc/rtc-isl12026.c | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH] rtc: isl12026: Add id_table
Posted by Akhilesh Patil 1 month, 1 week ago
Add i2c id_table for isl12026 rtc.

Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
---
tested by instantiating isl12026 device as
echo "isl12026 0x6f" > new_device
Tested rtc on TI am62x sk board on i2c-2 using rtctest.
I am currently implementing alarm support for isl12026
this patch helps to instantiate device runtime without DT
for faster testing without reboots.

 drivers/rtc/rtc-isl12026.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/rtc/rtc-isl12026.c b/drivers/rtc/rtc-isl12026.c
index 2aabb9151d4c..45a2c9f676c5 100644
--- a/drivers/rtc/rtc-isl12026.c
+++ b/drivers/rtc/rtc-isl12026.c
@@ -484,6 +484,12 @@ static const struct of_device_id isl12026_dt_match[] = {
 };
 MODULE_DEVICE_TABLE(of, isl12026_dt_match);
 
+static const struct i2c_device_id isl12026_id[] = {
+	{ "isl12026" },
+	{ },
+};
+MODULE_DEVICE_TABLE(i2c, isl12026_id);
+
 static struct i2c_driver isl12026_driver = {
 	.driver		= {
 		.name	= "rtc-isl12026",
@@ -491,6 +497,7 @@ static struct i2c_driver isl12026_driver = {
 	},
 	.probe		= isl12026_probe,
 	.remove		= isl12026_remove,
+	.id_table	= isl12026_id,
 };
 
 module_i2c_driver(isl12026_driver);
-- 
2.34.1
Re: [PATCH] rtc: isl12026: Add id_table
Posted by Alexandre Belloni 1 week, 3 days ago
On Sun, 09 Nov 2025 11:18:59 +0530, Akhilesh Patil wrote:
> Add i2c id_table for isl12026 rtc.
> 
> 

Applied, thanks!

[1/1] rtc: isl12026: Add id_table
      https://git.kernel.org/abelloni/c/e0784949c65b

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com