Linux kernel driver for the DS1307 and DS1337 rtc modules

Helmut Pozimski d5ef1b1f3a use regmap for nvram access since i2c_transfer was unreliable 5 år sedan
.gitignore 9bbc6fed77 add Makefile, .gitignore and module skeleton 6 år sedan
COPYING 30dd0828e7 Initial commit, add README.md and COPYING 6 år sedan
Makefile 9bbc6fed77 add Makefile, .gitignore and module skeleton 6 år sedan
README.md d28b2a3b96 add hint about the device tree overlay to README.md 6 år sedan
rtc-ds13307.c d5ef1b1f3a use regmap for nvram access since i2c_transfer was unreliable 5 år sedan

README.md

rtc-ds13307

Linux Kernel driver for the DS1307 and DS1337 RTC modules implemented from scratch.

Getting Started

Execute make to compile the kernel module and then load the compiled module via insmod. Please make sure that no other kernel is loaded for the hardware (e.g. the stock rtc-ds1307 module) before loading this one.

Prerequisites

To use this module, you will need either a DS1307 oder DS1337 rtc module that is attached to your computer via i2c. To compile it, you will need gcc, make and the kernel-headers for your currently running kernel. Usually you will be able to install the kernel headers through a package called kernel-headers, linux-headers or raspberrypi-kernel-headers in the case of Raspbian. The name of the package largely depends on your distribution.

For the Raspberry PI you will also need to enable the i2c-rtc and ds1307 device tree overlays. To do that, put dtoverlay=i2c-rtc,ds1307 into your /boot/config.txt.

Installing

TBD

Authors

  • Helmut Pozimski - Initial work - Hoshpak

License

This project is licensed under the GNU General Public License, Version 2 - see the COPYING file for details

Acknowledgments

TBD