Received: by 10.213.65.68 with SMTP id h4csp957322imn; Tue, 20 Mar 2018 21:43:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELvVlXtliqp1lN+0KqW6OrgsfU2/EFdKxgEBOWMQMzOMf5ORlap30MjMo2y2MMFI39f+k2KZ X-Received: by 10.101.71.202 with SMTP id f10mr13598158pgs.366.1521607391824; Tue, 20 Mar 2018 21:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521607391; cv=none; d=google.com; s=arc-20160816; b=a2g0ZIFtg59fI3H4WqltMwPk+60pnONv5AtBKhVaVv/w1T7Gp4ZtgeezStHB7EUv4Y 1Dg0mrvr06f15BLK/neb/PRAEt9m+pcvAVj8wh5I87jTvdviprSnP0/ygM0iJ4g4DSTi THAFS2HkiD+dh0HIB//sl9mleJlJWbR/QeD+vsnY1+HvPlLV4IfRqfjfckxeE8fYlEQ1 UNHghp7ix6KWbHqNJDPibC73MlIDh5Wu/gmo167wv3JcNfY8EOPMjyYLZbbk3f2IPQ47 G6M74v93VZfz5bt0gHwEUG4mbgN4ZGn32RHm5dXPkH+WU+gJmd9f5GfD3WKrKYKdEhU7 n7ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=ADQbGqbrl1VWAYjDzdbOXOPCVW2ZfAVh0Fy6JLGHVP4=; b=Zo4b0bfVnNsvOkpYjgRCnz6Gl1D1jqLVaeKKRftCf4umq/WsKs7J3qlUfJGo6SbWYa 6I+THEfF7o4zLe6SDBwDk6QKpIhGpwGa0ln2wPsaAFDskr81/dh2GVPZY8aUeQAAv35d 8dlD/kMLagIhvyu490gWUmYJDa33TbwHOk39rF0EHKiuF23ODX0VALKInQihQR7WLVD1 w3Es2lkogKRm2ihcb+tdxryQiL+VhOECQhTXynNQYFiS3dD1mWGF5dT7E2/2OdcmOmjg mAiGXk9okZXPQx/cdCmh/5cC9xxd9FBDyd2gSdfBUhdFiyS+Kso1cedQ5ehRft5xsSAj sWxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si2237087pgt.130.2018.03.20.21.42.57; Tue, 20 Mar 2018 21:43:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752105AbeCUElc (ORCPT + 99 others); Wed, 21 Mar 2018 00:41:32 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:7465 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbeCUEl1 (ORCPT ); Wed, 21 Mar 2018 00:41:27 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com id ; Tue, 20 Mar 2018 21:40:11 -0700 Received: from HQMAIL106.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 20 Mar 2018 21:41:26 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 20 Mar 2018 21:41:26 -0700 Received: from BGMAIL101.nvidia.com (10.25.59.10) by HQMAIL106.nvidia.com (172.18.146.12) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 21 Mar 2018 04:41:25 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by bgmail101.nvidia.com (10.25.59.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 21 Mar 2018 04:41:21 +0000 Received: from rrajk-ubuntu.nvidia.com (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2 via Frontend Transport; Wed, 21 Mar 2018 04:41:12 +0000 From: Rajkumar Rampelli To: , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH V2 4/9] arm64: tegra: Add Tachometer Controller on Tegra186 Date: Wed, 21 Mar 2018 10:10:39 +0530 Message-ID: <1521607244-29734-5-git-send-email-rrajk@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1521607244-29734-1-git-send-email-rrajk@nvidia.com> References: <1521607244-29734-1-git-send-email-rrajk@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The NVIDIA Tegra186 SoC has a Tachometer Controller that analyzes the PWM signal of a Fan and reports the period value through pwm interface. Signed-off-by: Rajkumar Rampelli --- V2: Renamed clock-names/reset-names dt properties values to "tachometer" Renamed compatible property value to "nvidia-tegra186-pwm-tachometer" arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 5 +++++ arch/arm64/boot/dts/nvidia/tegra186.dtsi | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts index bd5305a..13c3e59 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts @@ -172,4 +172,9 @@ vin-supply = <&vdd_5v0_sys>; }; }; + + tachometer@39c0000 { + nvidia,pulse-per-rev = <2>; + nvidia,capture-window-len = <2>; + }; }; diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 731cd01..19e1afc 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1042,4 +1042,15 @@ reset-names = "pwm"; status = "disabled"; }; + + tegra_tachometer: tachometer@39c0000 { + compatible = "nvidia,tegra186-pwm-tachometer"; + reg = <0x0 0x039c0000 0x0 0x10>; + #pwm-cells = <2>; + clocks = <&bpmp TEGRA186_CLK_TACH>; + clock-names = "tachometer"; + resets = <&bpmp TEGRA186_RESET_TACH>; + reset-names = "tachometer"; + status = "disabled"; + }; }; -- 2.1.4