Received: by 10.223.185.116 with SMTP id b49csp364150wrg; Tue, 20 Feb 2018 23:01:54 -0800 (PST) X-Google-Smtp-Source: AH8x224L7LAMM9J80PGZSXToO5pDVMavEAoknGTFFlRO7fxm5v+M35y1NWYjeEILDrULspZNOGKU X-Received: by 10.101.89.74 with SMTP id g10mr1893679pgu.415.1519196514196; Tue, 20 Feb 2018 23:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519196514; cv=none; d=google.com; s=arc-20160816; b=t+tH/O8K0Zj/qF67mXotWyVJkeqWvmyh9mn1hjXisLJGVFDWojr04T2GfxFhmY4OMn tnAXs9AvUSzbyAEKJKHzTxYS2geSLk8bqhwZRboacdTnkdENEVfcjQ55PtGkFbBFxqsH sYi0AHpf9jmOQ4ZTjmwpkNlqBH21soxst0hE5Zk+KsCEP8SXYfLV3VYVjtUYzDLa57uv DL8/NA4V1xhsmPnh3MNxAvLmhhPvP80Ed9Hs6N5n1QaczKsLC9uPMTQt1W2V9RqNfv2G cbdKq1+RiAykxo4A6n8mZdfFXxykMsAIzZt9eZfihXOXiycqmhDBaGB4qT75TGa17pmf c4fQ== 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=NW5vN21woXYbdWnNVSAIooPhSuo9raU9pKQ4+5XTlok=; b=AfSSZP1sqI1/HXkaZQpLTpb9h6v7kuCWBqF2wlGUOxa3TX2SY5V+hIwwBfIg1Z7UJD OzW889WM9mO+7vfD1V03euk7v4ZrarxyKJwmN3C7/bDI8H8+X1exR2+ue2CPs3MbSnW2 HpwGe3+eAeVFBO17PPtPqnS2th9CoJJB0UcYY9cIF6V8Zy77IOmHOmHnsCvU0H35RAHs I9Hx1lkMFfqGj/LBawViv8BKE3jvLBFpxIjTCORwiRo4ACZScpBhWNKY/3MI7IEpKvaw bLOvr2eba4mR/Wvc/4i7xTYWu98ozoTNf478iSeEmVyHzptsfZ3jqEjbSbAlIT5FMgrz To9w== 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 g34-v6si2387896pld.513.2018.02.20.23.01.40; Tue, 20 Feb 2018 23:01:54 -0800 (PST) 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 S1751819AbeBUHAg (ORCPT + 99 others); Wed, 21 Feb 2018 02:00:36 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:3255 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760AbeBUHAc (ORCPT ); Wed, 21 Feb 2018 02:00:32 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com id ; Tue, 20 Feb 2018 23:00:37 -0800 Received: from HQMAIL103.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 20 Feb 2018 23:00:32 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 20 Feb 2018 23:00:32 -0800 Received: from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 21 Feb 2018 07:00:31 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by UKMAIL101.nvidia.com (10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 21 Feb 2018 07:00:27 +0000 Received: from rrajk-ubuntu.nvidia.com (10.124.1.5) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1347.2 via Frontend Transport; Wed, 21 Feb 2018 07:00:19 +0000 From: Rajkumar Rampelli To: , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 07/10] arm64: tegra: Add PWM based Tachometer support on Tegra186 Date: Wed, 21 Feb 2018 12:28:56 +0530 Message-ID: <1519196339-9377-8-git-send-email-rrajk@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1519196339-9377-1-git-send-email-rrajk@nvidia.com> References: <1519196339-9377-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 Add PWM based Tachometer support on Tegra186 to measure number of rotations of a Fan per minute by using PWM capture interface Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 8f2d598..37149e9 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1042,4 +1042,10 @@ reset-names = "tachometer"; status = "disabled"; }; + + generic_pwm_tachometer { + compatible = "generic-pwm-tachometer"; + pwms = <&tegra_tachometer 0 1000000>; + status = "disabled"; + }; }; -- 2.1.4