driver: sensor: add tachometer driver for rts5912

Add tachometer driver for Realtek rts5912.

Signed-off-by: Jhan BoChao <jhan_bo_chao@realtek.com>
This commit is contained in:
Jhan BoChao 2025-03-11 15:57:50 +08:00 committed by Benjamin Cabé
commit 482d17f235
11 changed files with 261 additions and 0 deletions

View file

@ -267,6 +267,15 @@
interrupt-parent = <&nvic>;
status = "disabled";
};
tach0: tach@4000fd00 {
compatible = "realtek,rts5912-tach";
reg = <0x4000fd00 0x40>;
clocks = <&sccon RTS5912_SCCON_PERIPH_GRP0 PERIPH_GRP0_TACH0_CLKPWR>;
clock-names = "tacho";
interrupts = <192 0>;
status = "disabled";
};
};
swj_port: swj-port {