Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp730884ybb; Thu, 28 Mar 2019 11:03:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwma0vx0dUnQb/2BQ0VtlqAZiozYjpoeEU/oyc1ucLuv+hccux9T9Gvu/OB/Jdu4EIo2SxL X-Received: by 2002:a65:625a:: with SMTP id q26mr41418950pgv.61.1553796181499; Thu, 28 Mar 2019 11:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553796181; cv=none; d=google.com; s=arc-20160816; b=Dk032RAnPEhNmYGzkfILCvsk5KZv26tlsLaeWjvMNVRt8cLd33BoBsoNlzNxCC4e08 6q1TBYHRoaKOtXiaxtewzZi/CjuMwCghbJN/pRxuw/c5ihM8iM+bmll12EXDlEL0vB6s QWAB+Y+kyOY3KuvygzJliTwr/myZRfZAa4Setww3r7AwxpKpHVkBZVW0TckiXxlRuuat 6Au4LzDE4QWhJQhGjxRcwS0v9Wwree7w8nKdlqaSPRAMg9l4p85lPzaemxiVUL1wd4Vw nQwJF43VWMK0kvGgfj/Hj1/+2IG+6lWVocXL5t1KISsAP9dm1ywa0Kp6JyzbGIBbkKXJ KwdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vTgtxQ03sR8a8ohtGcqFORH34Fjsaap8ekjhbrBO66k=; b=YWPpXC41zikgIS4mFYcFQpts+OBrODUBFbMjZ1w/eAjYiWL8DbptXr71r+dyQh068V pDIOlJ69/z+AgkF3/XgyzAtN6VyORxQ8h3E5eEAVmF7bCx69f6LwIOBYDi9I6DuM5VX/ 93SNnZZAsR6peTw2wTVSZjiRxtYwXTXmb0R+BzCq317p9dU7hwXbYMK7xiiQAPb3EH/a MWOHmxA6rew9noxA8kJKY9hoc5gsl+HTRnDiWBFVj+McVWUCt3QrJLAa5chJPx8wLUoI M4lIOcmdWlQ6534kKqzJZXk4Q725BBEbhmGrjFxICqGfWqV+bCDAizvHQNMWxMuNUchi O34w== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24si11074399pgh.260.2019.03.28.11.02.44; Thu, 28 Mar 2019 11:03:01 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbfC1SCC (ORCPT + 99 others); Thu, 28 Mar 2019 14:02:02 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:41224 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbfC1SCB (ORCPT ); Thu, 28 Mar 2019 14:02:01 -0400 Received: by mail-ot1-f68.google.com with SMTP id 64so19184384otb.8; Thu, 28 Mar 2019 11:02:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vTgtxQ03sR8a8ohtGcqFORH34Fjsaap8ekjhbrBO66k=; b=tF32dzcEMo20nsKrTR5yrPPtDw+PDfO/s52c73D/sC3BIQpD60hlSfNRioAeNwmD3p xb/YTcpri37pFl4asYkxjXsYhck0FoizLLinG8AR3NvNSuaXfNwgr7PLsMktDs225baX NT5hAM4OSvNkQQgXtTJPOa1i8RJvmCSHlpvvPqta3Ia3JuQmujyrB7oDJ+JWbayng+RG KbFqT31cQKJtQ5edL4+mubbABDB1mNMR5Xvw4KFIzbXjJjEgbSaBJjk+Q9/1EGuVOiAX ZqMIriRiGw/+LNe2maN3l22CL7pMG68GPGOSef5VpS5gW7dWx9QRgAiSIF22Du87LFOY +WWw== X-Gm-Message-State: APjAAAU7A/2FxDDCX2g2n7B9l7mzK/8XQfyfavsmmxCUb5vqcAzir72b pFNqaQ4mhGYa+AX1eeYG9gU5Q82dbg== X-Received: by 2002:a9d:5b7:: with SMTP id 52mr25479706otd.279.1553796120629; Thu, 28 Mar 2019 11:02:00 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p186sm1703598oif.34.2019.03.28.11.01.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 11:01:59 -0700 (PDT) Date: Thu, 28 Mar 2019 13:01:59 -0500 From: Rob Herring To: Stefan Wahren Cc: Kamil Debski , Bartlomiej Zolnierkiewicz , Jean Delvare , Guenter Roeck , Mark Rutland , Robin Murphy , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 1/3] dt-bindings: hwmon: Add tachometer interrupt to pwm-fan Message-ID: <20190328180159.GA29107@bogus> References: <1553243043-19486-1-git-send-email-stefan.wahren@i2se.com> <1553243043-19486-2-git-send-email-stefan.wahren@i2se.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553243043-19486-2-git-send-email-stefan.wahren@i2se.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 09:24:01AM +0100, Stefan Wahren wrote: > This adds the tachometer interrupt to the pwm-fan binding, which is > necessary for RPM support. > > Signed-off-by: Stefan Wahren > --- > .../devicetree/bindings/hwmon/pwm-fan.txt | 22 +++++++++++++++++++++- > 1 file changed, 21 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > index 49ca5d8..722005f 100644 > --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > +++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > @@ -7,7 +7,16 @@ Required properties: > which correspond to thermal cooling states > > Optional properties: > -- fan-supply : phandle to the regulator that provides power to the fan > +- fan-supply : phandle to the regulator that provides power to the fan > +- interrupts : This contains a single interrupt specifier which > + describes the tachometer output of the fan as an > + interrupt source. The output signal must generate a > + defined number of interrupts per fan revolution, which > + require that it must be self resetting edge interrupts. > + See interrupt-controller/interrupts.txt for the format. > +- pulses-per-revolution : define the tachometer pulses per fan revolution as > + an integer (default is 2 interrupts per revolution). > + The value must be greater than zero. > > Example: > fan0: pwm-fan { > @@ -38,3 +47,14 @@ Example: > }; > }; > }; > + > +Example 2: > + fan0: pwm-fan { > + fan0: pwm-fan { This line should go. Otherwise, Reviewed-by: Rob Herring > + compatible = "pwm-fan"; > + pwms = <&pwm 0 40000 0>; > + fan-supply = <®_fan>; > + interrupt-parent = <&gpio5>; > + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; > + pulses-per-revolution = <2>; > + }; > -- > 2.7.4 >