lede/target/linux/phytium/files-5.10/Documentation/devicetree/bindings/hwmon/tacho-phytium.txt
HunZI a462d2b757
target: add phytium support (#11798)
* target: add phytium support

* kernel/video: add phytium platform ARM GPU support

* config: add EFI support to phytium armv8

* target: phytium: remove rtl8821cs driver

* target: phytium: refresh dts
2024-01-18 15:16:24 +08:00

49 lines
1.4 KiB
Plaintext
Executable File

Phytium Fan Tacho and capture counter controller device driver
The controller can support one input signal. The function of controller is to
measure the speed of fan and the edge number of input signal. The function
can be selected by devicetree setting. The edging mode and anti-jitter level
can also setted in devicetree.
Required properties for tacho node:
- #address-cells : should be 1.
- #size-cells : should be 1.
- reg : address and length of the register set for the device.
- compatible : should be "phytium,tacho"
- clocks : phandle to clock provider with the clock number in the second cell
Optional properties for tacho node:
- tacho : set the controller work as fan tachometer, which is a default option.
- capture : set the controller work as capture counter.
-------------------------------------------------------------------------------
- up : set the input edging mode as ascending, which is a default option.
- down : set the input edging mode as descending.
- double : set the input edging mode as doule-edging.
-------------------------------------------------------------------------------
- debounce-level : set the debounce-levle, which can be 0, 1, 2 and 3.
Examples:
tacho: tacho@28054000 {
#address-cells = <1>;
#size-cells = <1>;
reg = <0x0 0x28054000 0x0 0x1000>;
compatible = "phytium,tacho";
clocks = <&sysclk>;
tacho;
up;
debounce-level = <2>;
};