No description
  • C 95.6%
  • Makefile 4.4%
Find a file
2026-08-04 22:04:22 +00: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 install instructions 2026-08-04 21:33:46 +00:00
rpm.c forgot to enable pull up 2026-08-04 22:04:22 +00: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>;
	status = "okay";
};