Dapu INS590x,INS5699,INS5609,INS5710,INS5830,INS5101
I2C Linux Driver – September 15 , 2021 – K3.8-v1.0
====================================================
The INS590x or (INS5699,INS5609,INS5710,INS5830,INS5101) I2C Linux device driver provides the means
for an application running in user space to access the Dapu INS590x or
( INS5699,INS5609,INS5710,INS5830, INS5101) RTC.
The I2C driver can be easily modified according to the user's requirements and rebuilt. The driver
was tested using Linux kernel 3.8.x and was developed using the ARMhf Ubuntu 12.04LTS distribution
on a BeagleBone Black. It is expected that changes and additions will be required for driver
implementation on other platforms/interfaces based on the specific requirements of those platforms.
Installing the Driver
To install the driver source:
1. Copy the file rtc-INS590x.c or (rtc-INS5699.c, rtc-INS5609.c, rtc-INS5710.c, rtc-INS5830.c, ,
rtc-INS5101.c) into the directory ./linux-3.8.x/drivers/rtc. "linux-3.8.x" refers to the base of
the linux kernel source tree.
2. Add the following lines into the drivers/rtc/Kconfig file:
config RTC_DRV_INS5XXX
tristate "Dapu INS5xxx/RTC"
help
If you say yes here you get support for the Dapu
INS5xxx RTC chips.
This driver can also be built as a module. If so, the module
will be called rtc-ins590x or (rtc-ins5699, rtc-ins5609, rtc-ins5710, rtc-ins5830, rtc-
ins5101).
3. Add the following line to the drivers/rtc/Makefile:
obj-$(CONFIG_RTC_DRV_INS5XXX) += rtc-ins590x.o or (rtc-ins5699.o, rtc-ins5609.o, rtc-
ins5710.o, rtc-ins5830.o, rtc-ins5101.o)
4. During the rebuild, make sure to include the ' Dapu INS5xxx/RTC ' option in the Kernel
Configuration window under 'Device Drivers' -> 'Real Time Clock'.
评论5