Received: by 10.213.65.68 with SMTP id h4csp2698482imn; Mon, 9 Apr 2018 07:41:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx489CXfmDYGQpm7rUUkPMvAA0X86Sy4UMCPbBGK8GL9/k2QK4eUgxiA9Idr7QkHcHswdcex6 X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr33346484plk.183.1523284879707; Mon, 09 Apr 2018 07:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523284879; cv=none; d=google.com; s=arc-20160816; b=E6T7cf4JhFE+1L9Gw2HaW5FcdrspbSGQXzAbx9IPKsX3tb+lnXtzUOmP1gAzmu5F9q sDYmGEkPL2iUXSgSkVbT4wUM+o7b7IKZygDwwoaXzzkltupvUb38d9IXEgwnai8QAcQv uba2ynPeZL/Fbg7zZ2RVveKN7cVZ3MggOk9utzP2+qsUqwhMQLJguSpx7kTfrZsgtVRj p/b03tS62qKlUPwWgQ9U4QZGMe4C0vBHekPh2TlOJq0UUjcid9Is8jxhvPLU//0SNfQe M0Oh9o0ThsPRZXUb8w/E3KEPAPFU5wX3WQNotWxda/2bayuwBkK12IM1TOMf9Kyd0OpS 9GMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=NMaxRHY8mimO2b5+A9G07u8SAaX7jgBFb7MWx26KDfM=; b=kl62gOhNZwpq7mdv3YXE20W+CR1J01xEtBEsi829+07CcNjFUlaqc0rVqNPv2yox6S uFk0dZ8UycjrGBBUTWLNR3qaxmxMDaZNm6PJ/c7onqc7Z1X80YtQQduHc4GLacTxYabE EQGHYLN7mirPtm7Nw915sXYcIDdO2JmX4U9wl5qILdF8INbH8NI9s2TbYYzenlmpIpdL M9EPwIw6IOGwSt6trfqG9pM/nsFspB3Z+6aEZmf3DWaTn9MuRShPN5nDAUk32tm4ZOb9 zevqy56de0zrCRjbAP+uESRPhyp2kS8Kj4YtSt2e8HTtxzfPi/xBCdxtYZHhaq1EF0et naJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=xXvSGQZe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si378890pfl.100.2018.04.09.07.40.41; Mon, 09 Apr 2018 07:41:19 -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; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=xXvSGQZe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbeDIOha (ORCPT + 99 others); Mon, 9 Apr 2018 10:37:30 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:39389 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbeDIOh1 (ORCPT ); Mon, 9 Apr 2018 10:37:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=NMaxRHY8mimO2b5+A9G07u8SAaX7jgBFb7MWx26KDfM=; b=xXvSGQZehXFpflqpZx6qnFL3Z3Li9U3KixdIg+/G47UCTRqRWDhdH10N90Sl/M/QUyjnX9SR4oUXJXBOCk24oNusnXQ2vX8CD8uvd3u3q7p4+dGJl2FcmLxiDPrxQF72c+8WUM0kzB+YDLgBNNRL3sOpHFis1b6pDZOh8lwO4sLigVJ0kzzBMc9jD4bhu1eRD0jXG2euUtWTFhapLECCfPdgaUfFL9pUuWH8Kou5HFgo1ZHRW7VGQfk4yLtHKLs/BZtEzQpbT7UvQjj61E+Cgex8KyCFDWgZJKk/09JqiV8/bpbjdBe1itq+mE6r4qBotcmqBdMdwI0dDCez2y6fdQ==; Received: from dsl-hkibng22-54faa2-250.dhcp.inet.fi ([84.250.162.250]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1f5Xuz-0005Rn-AS; Mon, 09 Apr 2018 17:37:13 +0300 Subject: Re: [PATCH V2 3/9] dt-bindings: Tegra186 tachometer device tree bindings To: Rob Herring Cc: Rajkumar Rampelli , Mark Rutland , Thierry Reding , Jon Hunter , Jean Delvare , Guenter Roeck , Jonathan Corbet , Catalin Marinas , Will Deacon , Kate Stewart , Greg Kroah-Hartman , Philippe Ombredanne , Manikanta Maddireddy , Mikko Perttunen , Arnd Bergmann , Timur Tabi , Andy Gross , Wei Xu , Alex Elder , "heiko@sntech.de" , Krzysztof Kozlowski , Ard Biesheuvel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Linux PWM List , linux-tegra@vger.kernel.org, Linux HWMON List , linux-doc@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Laxman Dewangan References: <1521607244-29734-1-git-send-email-rrajk@nvidia.com> <1521607244-29734-4-git-send-email-rrajk@nvidia.com> <20180327145249.xjoo42qow34ksdle@rob-hp-laptop> <867aace8-dac7-51d4-bd46-15919b58b37d@kapsi.fi> From: Mikko Perttunen Message-ID: <615d6771-00c3-a4a7-a99f-ec4f6e667c8f@kapsi.fi> Date: Mon, 9 Apr 2018 17:37:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 84.250.162.250 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2018 04:21 PM, Rob Herring wrote: > On Mon, Apr 9, 2018 at 12:38 AM, Mikko Perttunen wrote: >> Rob, > > Please don't top post to lists. > >> this binding is for a specific IP block (for measuring/aggregating input >> pulses) on the Tegra186 SoC, so I don't think it fits into any generic >> binding. > > What is it hooked up to to measure? You only mention "fan" five times > in the doc. In practice, fans. > > You have #pwm-cells too, so this block has PWM output as well? If not, > then where's the PWM for the fan control because there is no point in > having fan tach without some control mechanism. It doesn't provide a PWM output. The (Linux) PWM framework provides functionality in both directions - control and capture. But if the device tree #pwm-cells/pwms properties are only for control, we may need to introduce a new #capture-pwm-cells/capture-pwms or similar. The idea is that the generic fan node can then specify two pwms, one for control and one for capture, to enable e.g. closed-loop control (I'm not personally familiar with the usecase for this but I could imagine something like that). The control PWM can be something completely different, maybe not a PWM in the first place (e.g. some fixed voltage). > > There's only so many ways to control fans and types of fans, so yes, > the interface of control and feedback lines between a fan and its > controller should absolutely be generic. I'm not quite getting what you mean by this. Clearly we need a custom compatibility string for the tachometer as it's a different hardware block with different programming than others. Or are you complaining about the nvidia,pulse-per-rev/capture-window-len properties? Thanks, Mikko > > Rob > >> >> Thanks, >> Mikko >> >> >> On 03/27/2018 05:52 PM, Rob Herring wrote: >>> >>> On Wed, Mar 21, 2018 at 10:10:38AM +0530, Rajkumar Rampelli wrote: >>>> >>>> Supply Device tree binding documentation for the NVIDIA >>>> Tegra186 SoC's Tachometer Controller >>>> >>>> Signed-off-by: Rajkumar Rampelli >>>> --- >>>> >>>> V2: Renamed compatible string to "nvidia,tegra186-pwm-tachometer" >>>> Renamed dt property values of clock-names and reset-names to >>>> "tachometer" >>>> from "tach" >>> >>> >>> Read my prior comments on v1. >>> >>> Rob >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> -- >> To unsubscribe from this list: send the line "unsubscribe devicetree" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html