Received: by 10.223.185.116 with SMTP id b49csp364584wrg; Tue, 20 Feb 2018 23:02:27 -0800 (PST) X-Google-Smtp-Source: AH8x224cVgQY7QGZ2tpTOksjb8HXLNu4oB+P5kb7sPf3Jt4gCZHZbLgF4HHUjGxnR7uKy25stqBy X-Received: by 2002:a17:902:d83:: with SMTP id 3-v6mr2264913plv.47.1519196547378; Tue, 20 Feb 2018 23:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519196547; cv=none; d=google.com; s=arc-20160816; b=PLogZNcgs22jFQb2Vn8EXxuInQdkL/wOQIp/dhmSzva93sSzeDiRzlAE+EKNOxS73e oHP89r0CwgSK85tUhErO0NRltk9LAnxCmNbdBd8QNmULxlXNBqVKeq1BGUshrCihYfQ8 9dTWiYlGIzwxWq03aidj0ZEm1bmKov6OnioHgiZFaR0zpEUVng9DZGeBPBt2iQ+mN6JJ 3NU0XwkbIbN/Nb8NrcQoWGHIWvaEk2HpHzVTorFzD9DDiuYgaFPiMCDPDZpBUKjxk6zG T2Ip1nPyohIMHi2fnpgwVzrMWjpnGHuMqalhbj8DbQyiC65ZE53uWguJW3F02yy2lngQ 18og== 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=Zkzsd45GOQK4qdErtazaxQwyAwbXnyZ49lGFMObF+TE=; b=ZmZUHH/fdUgcT+rMMKqCLWOAAfC/mz3HyUjm8BaJpn9m2kRqCqeCwDu0yAesE2FjJW DlAMDRCTeQTT4X6pwCDBWyTeLRY3jpBMFSYAHv7fyVrmeji7LA28yjgPjjyPvJoGnO9p 6DVaeL/6c/7zRnEHmGvfyI1amVinZ0iYDRb0m8lAJzOX2VKHoSA+nlAz2fy47eVsMC06 a/Q/U//WD7xCOx7aQmodsOB0UPhadwpoG7ttJWDAk3f8sLzIOPFhzLZeCt3Mq6X6euTX Z33DEOcCQhkvI/SFhcErs/UrdxHNKBbLyzgK560BSSuzdRO6QC8By+UrO1yRHjZx4G3L 0C4A== 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 l5-v6si6839466plk.390.2018.02.20.23.02.13; Tue, 20 Feb 2018 23:02:27 -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 S1751710AbeBUHAF (ORCPT + 99 others); Wed, 21 Feb 2018 02:00:05 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:12372 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbeBUHAC (ORCPT ); Wed, 21 Feb 2018 02:00:02 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com id ; Tue, 20 Feb 2018 23:00:05 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 20 Feb 2018 23:00:00 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 20 Feb 2018 23:00:00 -0800 Received: from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 21 Feb 2018 06:59:58 +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 06:59:54 +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 06:59:46 +0000 From: Rajkumar Rampelli To: , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 04/10] hwmon: generic-pwm-tachometer: Add DT binding details Date: Wed, 21 Feb 2018 12:28:53 +0530 Message-ID: <1519196339-9377-5-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 DT binding details for the PWM based generic tachometer driver which gets the period of the PWM tach-output from Fan via PWM IP having capability of capturing the signal. Signed-off-by: Rajkumar Rampelli --- .../bindings/hwmon/generic-pwm-tachometer.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.txt diff --git a/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.txt b/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.txt new file mode 100644 index 0000000..3541fe5 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.txt @@ -0,0 +1,25 @@ +Device tree bindings for fan tach output connected to PWM controller with +PWM capture capability. + +Required properties: +- compatible : Should be "generic-pwm-tachometer" +- pwms : PWM handle. Please refer pwm.txt DT binding for more details. + +Example: + tegra_tachometer: tachometer@39c0000 { + compatible = "nvidia,tegra186-pwm-tachometer"; + reg = <0x0 0x039c0000 0x0 0x10>; + clocks = <&bpmp_clks TEGRA194_CLK_TACH>; + clock-names = "tachometer"; + resets = <&bpmp_resets TEGRA194_RESET_TACH>; + reset-names = "tachometer"; + nvidia,pulse-per-rev = <2>; + nvidia,sampling-window = <2>; + status = "okay"; + }; + + generic_pwm_tachometer { + compatible = "generic-pwm-tachometer"; + pwms = <&tegra_tachometer 0 1000000>; + status = "okay"; + }; -- 2.1.4