Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6441113imu; Wed, 30 Jan 2019 15:00:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN42NmpmQykxBNHEshiU4uWI1t10CV76dhqY9866BlMu6PevmABpFfhaP3C8QQ1HSWCy+gRZ X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr32779632pls.315.1548889208194; Wed, 30 Jan 2019 15:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548889208; cv=none; d=google.com; s=arc-20160816; b=mGb4Y+dWRWPGS+5pF8cIUE533oRucqx0LCyoJrakVccRYYQeRevdgcKicw32AcryNf 75iMkK2eplukdYaDj/CB17adXatbPb0I6vJvBOMn9Wm1q1sMMMk4LbngNBCuqTUYrWY9 CvvOTqQKC9DvEe659RoMUhLDN/I8ZtbNlJ0ZXve9HDVOmnmZ9M+XZ2xIiaqx1oLc/wTY twIV18NuVYOO/FXSSDozozhBlfRd9/dVpL7JM1OnXeX3q8pj6eZnp5GjgyGeWk/czqRl NDnGyLEkY0paaJlYFCr/ZejnUBZV+z5LTjapJIhX1z/HJq+O4m0BTVB5K4320Lx9gg2D +uIw== 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:dkim-signature; bh=GmctxZS15y5z2V85O1PU0CkJgxCRKgIbZyDbKcO3Mk4=; b=MRYdz3QKCpjX4j0H25DA1a8SZ0ZuJWPw5e0qyVR9lGK1oQxVmMUGV+c9Qq7ROSzSWg 5sWJbh+fqPdCNpta/1iUkMp3ejHcYRbxvKBBLXoAYc4uO4dogtRQYFDHArJOL4qlmJuX qgKPVDkP0SfQCSdM6IA8QsZ3oA0pvODQxlLplojNaSNtahAwJo1+msJrBlGOinEn1ndA gxKXc4LlylnGB1FxCVnjTmqPmw2g7SMXfW2Xak3h/hDYa1CevNtyP4F4e0wwXj2xpBMz 3M+2easUVOkSK7F+D6jo4oIokPyX/z+xOduW5T9cCLA4ox3UCwLHWetULMdX9bj19MZL +aCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vE10Ib9j; 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 s80si2682481pfa.130.2019.01.30.14.59.52; Wed, 30 Jan 2019 15:00:08 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vE10Ib9j; 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 S2387692AbfA3Ufb (ORCPT + 99 others); Wed, 30 Jan 2019 15:35:31 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40736 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387609AbfA3Uf2 (ORCPT ); Wed, 30 Jan 2019 15:35:28 -0500 Received: by mail-pl1-f196.google.com with SMTP id u18so348926plq.7; Wed, 30 Jan 2019 12:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GmctxZS15y5z2V85O1PU0CkJgxCRKgIbZyDbKcO3Mk4=; b=vE10Ib9j33MNS8aeBLU3oTRIYMUczk7bWwdZ8xzpTtLOmD8IoWlK9IaPZFkT5imD50 FAQbxastdeP+5TMqtCHqLGba+9Iuqf9Rm79lpHt2KSt1OwZFT0RRH3nw7qwmR8H2kB6P cdEKXHTs1UO9fSniiytt9s3SIc+l4FR5rAwRk52J0/sv95gya4cHVguCmtfV8W9YLMdF GjakZfeyCRYjhSiTlnMr67chMEspOnTAxGg+Wou2p1+MOSpTfVw7g1B3DTfCLoryh6uH 1TnkOg2bT6Hh2ryFVfgJrGDlxSfcTagzEwIG+u9STjfTI7+PVmX4D8shJFZSCwkNHMtp Tz7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=GmctxZS15y5z2V85O1PU0CkJgxCRKgIbZyDbKcO3Mk4=; b=a9G5+6d3GEyQJrz89cfKJC12+49pYVrX+sjPwZ4B7LRDQEDuVV/MNn10TZADOsxEjb f1kP5VtyQxwLzTwqkkXzyFjY5jYADD70x0m6R9F9KuZpYERheAroe1Y9d4ok3LC0MLmm RsGh9TriIbKyPUrQFzDBMhCj8Sh97hK9kOK8ti6iBVmZS6A7yJeR6rdfXA/6YmIkBj5Y mY172uDG9Mb5MJqDVUQ/z/uL1DN+QMTN5rzE+V291fZoG80BLSqjrY1aMmD86lWRBSvt hzE2k3e0oPuAh9Xx2C5KFMPNcjFFxIqXg3Q3SMiRH3OS7zQbR3me7lYKV89YaDmuP5bp Kdyw== X-Gm-Message-State: AJcUukd34c4rq9CAlQxknayKnQnQqrcb4mGPj7pML54DJNszxEFvrP46 Jcku2v0OAGratniFyJ96Vyv1qW+F X-Received: by 2002:a17:902:5ac7:: with SMTP id g7mr32224925plm.212.1548880527936; Wed, 30 Jan 2019 12:35:27 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m19sm6404798pgn.35.2019.01.30.12.35.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 12:35:26 -0800 (PST) Date: Wed, 30 Jan 2019 12:35:25 -0800 From: Guenter Roeck To: Stefan Wahren Cc: Kamil Debski , Bartlomiej Zolnierkiewicz , Jean Delvare , Rob Herring , Mark Rutland , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 1/3] dt-bindings: hwmon: Add tachometer interrupt to pwm-fan Message-ID: <20190130203525.GA23614@roeck-us.net> References: <1548860827-29796-1-git-send-email-stefan.wahren@i2se.com> <1548860827-29796-2-git-send-email-stefan.wahren@i2se.com> <20190130172815.GC14781@roeck-us.net> <625436113.118199.1548879811777@email.ionos.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <625436113.118199.1548879811777@email.ionos.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 09:23:31PM +0100, Stefan Wahren wrote: > Hi Guenter, > > > Guenter Roeck hat am 30. Januar 2019 um 18:28 geschrieben: > > > > > > On Wed, Jan 30, 2019 at 04:07:05PM +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 | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > > > index 49ca5d8..7f69b0b 100644 > > > --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > > > +++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt > > > @@ -8,6 +8,9 @@ Required properties: > > > > > > Optional properties: > > > - fan-supply : phandle to the regulator that provides power to the fan > > > +- interrupts : contains a single interrupt specifier which describes the > > > + tachometer pin output of a 2 pulse-per-revolution fan. > > > + See interrupt-controller/interrupts.txt for the format. > > > > So a hypothetical {1,4} pulse-per-revolution fan would explicitly not be > > supported ? Why ? > > i could add an additional property to specify the pulse per revolution and use the 2 as default (according to the Intel spec for 4 pin pwm fan) which should fit in most cases. > That would be a possibility and make sense, but that is not the point here. The "interrupts" property does not and should not care how many pulses per revolution the fan provides. Guenter