No description
  • C 96.2%
  • Makefile 3.8%
Find a file
2026-08-12 22:41:19 +02:00
.gitignore initial code 2026-08-04 19:28:30 +00:00
LICENSE added install instructions 2026-08-04 21:33:46 +00:00
Makefile initial code 2026-08-04 19:28:30 +00:00
README.md added hysteresis 2026-08-12 22:41:19 +02:00
rpm.c added hysteresis 2026-08-12 22:41:19 +02:00

rpm

Installation

  1. Run sudo make install

Example usage

cat /sys/class/rpm/rpm0/rpm 

Example device tree entry

rpm_fan0: rpm_fan0 {
	compatible = "sentinel,rpm-gpio";
	rpm-gpios = <&gpio 7 1>; /* 1 = GPIO_ACTIVE_LOW */
	pulses-per-revolution = <2>;
	hysteresis = <15>; /* optional: number of pulse periods averaged for the reported rpm value, defaults to 15 */
	enable-pull-up; /* optional: enable the internal pull-up */
	status = "okay";
};