Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5470542ybg; Tue, 22 Oct 2019 03:51:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMjUiH1MNpsjUThxST93/4yu/kFu6AMAA9k7u+p60fuoSO2AVOt5+RmQOt3TvmfeT9uoJ8 X-Received: by 2002:a17:906:a986:: with SMTP id jr6mr26352369ejb.158.1571741511610; Tue, 22 Oct 2019 03:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571741511; cv=none; d=google.com; s=arc-20160816; b=E9YSDeFrAz6ARq1DJ/m1eKYtoiSIpTxqhEj+PvE8xfPpYUWiGa0L/Ryt7aNipolUN6 d7dfZ2PWqYZmnVxe1Cp2aeBSStFKgHtiNAKN5LJ6Nry0mWsYd+azwuSOHNM018ZNN/21 VB34Xzo5ZYUov/zGdXbcjDnhxTqynDTrfgAo+GFmQg0iZX+7KM+oSEvol6JdN15zxWhy DGdf/TqDRgjiww4HsmZZ1tKaeHHM9LVUMEsuD7bivV8qaa86JdKTySzJemWyUcFsl55E CWsjPJlxUvEUzaohXuPLDbBTY9/yto76tCis8S9kUGaTovduG7owgi7kBRBR0VugUipz gnQw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=KolVcg9jgRHfOPr4dsyyZKnCjFX0hcx/JHW97tZg7/Q=; b=rSCoICodfTCDxnFExuGvxB2smKxv0ebK5XhGE6XOXOcKViwB2aRrRtzIF446czOZlC 2+8TXwnBBD3/B0u8bAPsuwDAW+/a3MNbGNHWU1VCLlrJX5cFx/pVRz+mlUS6xcN/lqzv 7udA/B86jAMDMdziltlGWa6Ep9vILTb3PB6uPH43+L92rd3fRExpSr0cEjL9GDw0afSK RmsZAMgJerrcqdZEXOP193EzxkPrdK3cKG5bulBAIkXJE4xJueklfG/R4+BytZWsHaep 1FxyO7S3egMNnbGw+zLxwKqwzOT+4SO3oHNdM4QSZRlc3nhx3me7RsObS5TKX7XKGxZc FTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E2fDfhbm; 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=pass (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 k63si12980143edc.347.2019.10.22.03.51.27; Tue, 22 Oct 2019 03:51:51 -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=@kernel.org header.s=default header.b=E2fDfhbm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388516AbfJVKuQ (ORCPT + 99 others); Tue, 22 Oct 2019 06:50:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:50666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388372AbfJVKuQ (ORCPT ); Tue, 22 Oct 2019 06:50:16 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 256A62075A; Tue, 22 Oct 2019 10:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571741415; bh=HLnoPG4NqtCzOt9lT9Vz7q0mws9WR3wYSYgX18WYPYg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E2fDfhbmc4ltqu66OYTH+21FIkF0OiS1Uc1nII2OALDCnQM41KhOnTf6sZ4kASDAH +mec1MmJc4nLevTccIjILEk/vIB/QAm1qQS6tW+R0RMmgXZwZjyB11fEd0Paeftkif CBUxsm0dy/fSz+m6/OCKASeDY9JbtqK4D5ObQJg4= Date: Tue, 22 Oct 2019 11:50:10 +0100 From: Jonathan Cameron To: Martin Kepplinger Cc: Andrey Smirnov , linux-iio@vger.kernel.org, Chris Healy , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mma8452: Re-word 'interrupt-names' description Message-ID: <20191022115010.7957744e@archlinux> In-Reply-To: <1a1bdf10-2505-6baf-8030-ce5e0e2b55a9@posteo.de> References: <20191022035626.13002-1-andrew.smirnov@gmail.com> <1a1bdf10-2505-6baf-8030-ce5e0e2b55a9@posteo.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Oct 2019 10:43:09 +0200 Martin Kepplinger wrote: > On 22.10.19 05:56, Andrey Smirnov wrote: > > Current wording in the binding documentation doesn't make it 100% > > clear that only one of "INT1" and "INT2" will ever be used by the > > driver and that specifying both has no advantages. Re-word it to make > > this aspect a bit more explicit. =46rom a quick glance at the datasheet, it appears that the hardware is capable of routing different interrupts to different pins, even if the driver does not do so. CTRL_REG5 has 6 different bits to set whether particular blocks have their interrupt routed to INT1 or INT2, so it appears to be possible to send some each way. =20 A binding is for the hardware not the driver, so if I'm right about this the current text is correct and should be left alone. Thanks, Jonathan > >=20 > > Signed-off-by: Andrey Smirnov > > Cc: Chris Healy > > Cc: Jonathan Cameron > > Cc: Hartmut Knaack > > Cc: Lars-Peter Clausen > > Cc: Peter Meerwald-Stadler > > Cc: linux-iio@vger.kernel.org > > Cc: devicetree@vger.kernel.org > > Cc: linux-kernel@vger.kernel.org > > --- > > Documentation/devicetree/bindings/iio/accel/mma8452.txt | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/iio/accel/mma8452.txt b/= Documentation/devicetree/bindings/iio/accel/mma8452.txt > > index e132394375a1..b27b6bee9eb6 100644 > > --- a/Documentation/devicetree/bindings/iio/accel/mma8452.txt > > +++ b/Documentation/devicetree/bindings/iio/accel/mma8452.txt > > @@ -17,7 +17,7 @@ Optional properties: > > =20 > > - interrupts: interrupt mapping for GPIO IRQ > > =20 > > - - interrupt-names: should contain "INT1" and/or "INT2", the accelero= meter's > > + - interrupt-names: should contain "INT1" or "INT2", the acceleromete= r's > > interrupt line in use. > > =20 > > - vdd-supply: phandle to the regulator that provides vdd power to th= e accelerometer. > > =20 >=20 > Acked-by: Martin Kepplinger >=20 > thanks, >=20 > martin >=20