Skip to content

Commit dedaf03

Browse files
amiclausalexandrebelloni
authored andcommitted
rtc: max31335: add driver support
RTC driver for MAX31335 ±2ppm Automotive Real-Time Clock with Integrated MEMS Resonator. Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Link: https://lore.kernel.org/r/20231120120114.48657-2-antoniu.miclaus@analog.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 5905777 commit dedaf03

4 files changed

Lines changed: 729 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12986,6 +12986,14 @@ F: Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
1298612986
F: Documentation/hwmon/max31827.rst
1298712987
F: drivers/hwmon/max31827.c
1298812988

12989+
MAX31335 RTC DRIVER
12990+
M: Antoniu Miclaus <antoniu.miclaus@analog.com>
12991+
L: linux-rtc@vger.kernel.org
12992+
S: Supported
12993+
W: https://ez.analog.com/linux-software-drivers
12994+
F: Documentation/devicetree/bindings/rtc/adi,max31335.yaml
12995+
F: drivers/rtc/rtc-max31335.c
12996+
1298912997
MAX6650 HARDWARE MONITOR AND FAN CONTROLLER DRIVER
1299012998
L: linux-hwmon@vger.kernel.org
1299112999
S: Orphan

drivers/rtc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,19 @@ config RTC_DRV_MAX8997
373373
This driver can also be built as a module. If so, the module
374374
will be called rtc-max8997.
375375

376+
config RTC_DRV_MAX31335
377+
tristate "Analog Devices MAX31335"
378+
depends on I2C
379+
depends on COMMON_CLK
380+
depends on HWMON || HWMON=n
381+
select REGMAP_I2C
382+
help
383+
If you say yes here you get support for the Analog Devices
384+
MAX31335.
385+
386+
This driver can also be built as a module. If so, the module
387+
will be called rtc-max31335.
388+
376389
config RTC_DRV_MAX77686
377390
tristate "Maxim MAX77686"
378391
depends on MFD_MAX77686 || MFD_MAX77620 || MFD_MAX77714 || COMPILE_TEST

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ obj-$(CONFIG_RTC_DRV_M48T35) += rtc-m48t35.o
8989
obj-$(CONFIG_RTC_DRV_M48T59) += rtc-m48t59.o
9090
obj-$(CONFIG_RTC_DRV_M48T86) += rtc-m48t86.o
9191
obj-$(CONFIG_RTC_DRV_MA35D1) += rtc-ma35d1.o
92+
obj-$(CONFIG_RTC_DRV_MAX31335) += rtc-max31335.o
9293
obj-$(CONFIG_RTC_DRV_MAX6900) += rtc-max6900.o
9394
obj-$(CONFIG_RTC_DRV_MAX6902) += rtc-max6902.o
9495
obj-$(CONFIG_RTC_DRV_MAX6916) += rtc-max6916.o

0 commit comments

Comments
 (0)