arm64: tegra: Add support for Tegra234 Tachometer

Add the tachometer device to the device-tree overlay for Tegra234 Jetson
AGX Orin.

Bug 3881007

Change-Id: I0ff75f5bd8dc80e90a90379cc0dea8d16e242575
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2840161
(cherry picked from commit 1498e7e65cdfdc1ff22ca6d24e0d63ed11311884)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2864774
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892501
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Jon Hunter
2023-01-09 17:44:21 +00:00
committed by mobile promotions
parent 87e60b143b
commit e254c5aa50

View File

@@ -272,6 +272,21 @@
status = "okay";
};
tachometer@39c0000 {
compatible = "nvidia,pwm-tegra234-tachometer";
reg = <0x039c0000 0x10>;
interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
#pwm-cells = <2>;
clocks = <&bpmp TEGRA234_CLK_TACH0>;
clock-names = "tach";
resets = <&bpmp TEGRA234_RESET_TACH0>;
reset-names = "tach";
pulse-per-rev = <2>;
capture-window-length = <2>;
upper-threshold = <0xfffff>;
lower-threshold = <0x0>;
};
};
};