Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2195462imc; Tue, 12 Mar 2019 08:50:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhfIu+tZKlei2/9ntEwesDnDuulrkiTaenzqt599ddHCJGBhHQqpHmjlJe4gOl76/HoVub X-Received: by 2002:a63:f905:: with SMTP id h5mr4820686pgi.223.1552405820495; Tue, 12 Mar 2019 08:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552405820; cv=none; d=google.com; s=arc-20160816; b=I0LQ/jvYyjULHpHlql+if4zzAMCFB59uh3rG34tCF5xRJtelt5qfIoexbS0CImI5Ic HVLvxSpxx48NvA9n5zxftAgXTfTK9QAv1QqtLUjF8YSQ2G1vtGzasb+C0xhrFiH0OaYM ZAcORp7EZ3poD6hSaR3exyYhHpc1RAkRtOFSHzEUjVmqIaKBYVgR6Ab4L5qg2+kNq6Fn o0TtsGobQkit4TZQElGL3FVN9oNc0zzVpPQ0yktv+IY5L6HViCwMf5MfxfJuWEr8JzhK 3t6Z5nKHbZKpWR+zkNV1zGxzkayHFIJcs4LJULeoA85hWbtSBmw6RzwITh87MYVss7bp soiA== 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=Swil8d26nbBRuIeERFxj3CEgC6UaIXsOtAc/yNrkCTg=; b=yL2lY9F+Q0zeBbKLemYRc5Qh9+cM2DMEqbHosylBLNeRsqYq76tOUAJY7ObdZVw/JZ 50C5NWhAgyISAeTKSussJp3DmP3EBmaTLzd0dk296/9spFediRSoRLGUVho15ylnZW2C 4SOUzctcf6rvnDLXzitCHKdBqqG83YYvWzb7tIdGUifdS5AYcZ/T2dtAnrFwnWmrU0GO rt1bW0m666VfaMbokowXmfj4csYFYiXhRiSgCPAiYjWJiDF+rluVTJ4bzlYflGk2Xm+y xuUyp9psFgWq/xdSWeDU/07NQTZDAQWcIP+xF0jj3y7HZeUHcxOQKpp92QT6rGxe4Ai9 d4PQ== 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 i13si4565933pgr.58.2019.03.12.08.50.00; Tue, 12 Mar 2019 08:50:20 -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 S1726711AbfCLPst (ORCPT + 99 others); Tue, 12 Mar 2019 11:48:49 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:46799 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbfCLPss (ORCPT ); Tue, 12 Mar 2019 11:48:48 -0400 Received: by mail-oi1-f196.google.com with SMTP id j10so2426940oij.13; Tue, 12 Mar 2019 08:48:48 -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=Swil8d26nbBRuIeERFxj3CEgC6UaIXsOtAc/yNrkCTg=; b=jmV1VVgP+zk8wDEpJLgpYZ0IPyrTwPzW2jOjUZ2HuNFjKSB4hchb80cQbPkV4z4xxv PGnIPWJHMoXaeGNo/zHSTG2Y2C5qoaRyd3HrwTCkVHw5RcHzAkudFjeLj+l/VE8sAl++ VVNGId4EJiH+aF6YnrTm1u3MmpjDjWsA4JG9dOBLekKB8Mbl/5IEnp2prOEB+py/HX3Y mSKptsz/YZCJ2C7NSjLnli3Rsgngff0kizVu2MqLjIwreF0b7E0EJr4O26a3T2K6Gb95 GvsGLemTDd5pXVKbqIZoUwexeErfJum0dTQlWdBX2AfVJEomQETrq6Vuvr9yGC5rVwaF 3uTw== X-Gm-Message-State: APjAAAWz/JCzUPlE6QEZAhdC1HMFJBKuzspmDG+9g/bX42ri0EjwtUy3 FjywQgcIJtQ25hRnZJnIhA== X-Received: by 2002:aca:42c6:: with SMTP id p189mr2119669oia.163.1552405727445; Tue, 12 Mar 2019 08:48:47 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id e138sm4131014oih.27.2019.03.12.08.48.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 08:48:46 -0700 (PDT) Date: Tue, 12 Mar 2019 10:48:46 -0500 From: Rob Herring To: Stefan Wahren Cc: Kamil Debski , Bartlomiej Zolnierkiewicz , Jean Delvare , Guenter Roeck , Mark Rutland , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC V2 1/3] dt-bindings: hwmon: Add tachometer interrupt to pwm-fan Message-ID: <20190312154846.GA11788@bogus> References: <1551110359-19860-1-git-send-email-stefan.wahren@i2se.com> <1551110359-19860-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: <1551110359-19860-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 Mon, Feb 25, 2019 at 04:59:17PM +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 > --- > Documentation/devicetree/bindings/hwmon/pwm-fan.txt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > index 49ca5d8..7d09623 100644 > --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > +++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > @@ -8,6 +8,14 @@ Required properties: > > Optional properties: > - 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. > +- interrupt-ratio : defines the ratio interrupts per fan revolution as an > + integer (default is 2 interrupts per revolution) Name this for what it is, not how it is used. Using 'interrupt' is misleading that it is related to the interrupt binding. 'tach-pulse-per-rev' or something similar. > > Example: > fan0: pwm-fan { > @@ -38,3 +46,14 @@ Example: > }; > }; > }; > + > +Example 2: > + fan0: pwm-fan { > + fan0: pwm-fan { > + compatible = "pwm-fan"; > + pwms = <&pwm 0 40000 0>; > + fan-supply = <®_fan>; > + interrupt-parent = <&gpio5>; > + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; > + interrupt-ratio = <2>; > + }; > -- > 2.7.4 >