Return-path: Received: from mail-oi0-f66.google.com ([209.85.218.66]:33287 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753185AbdBJP5m (ORCPT ); Fri, 10 Feb 2017 10:57:42 -0500 Date: Fri, 10 Feb 2017 09:51:14 -0600 From: Rob Herring To: Heiko Schocher Cc: netdev@vger.kernel.org, Guan Ben , Mark Jonas , devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Samuel Ortiz , Lauro Ramos Venancio , Aloisio Almeida Jr , Mark Rutland Subject: Re: [PATCH] Make EN2 pin optional in the TRF7970A driver Message-ID: <20170210155114.pvjahqqjqurw5jdc@rob-hp-laptop> (sfid-20170210_165909_618137_BFC1D44B) References: <1486444924-18444-1-git-send-email-hs@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1486444924-18444-1-git-send-email-hs@denx.de> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Feb 07, 2017 at 06:22:04AM +0100, Heiko Schocher wrote: > From: Guan Ben > > Make the EN2 pin optional. This is useful for boards, > which have this pin fix wired, for example to ground. > > Signed-off-by: Guan Ben > Signed-off-by: Mark Jonas > Signed-off-by: Heiko Schocher > > --- > > .../devicetree/bindings/net/nfc/trf7970a.txt | 4 ++-- > drivers/nfc/trf7970a.c | 26 ++++++++++++---------- > 2 files changed, 16 insertions(+), 14 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/nfc/trf7970a.txt b/Documentation/devicetree/bindings/net/nfc/trf7970a.txt > index 32b35a0..5889a3d 100644 > --- a/Documentation/devicetree/bindings/net/nfc/trf7970a.txt > +++ b/Documentation/devicetree/bindings/net/nfc/trf7970a.txt > @@ -5,8 +5,8 @@ Required properties: > - spi-max-frequency: Maximum SPI frequency (<= 2000000). > - interrupt-parent: phandle of parent interrupt handler. > - interrupts: A single interrupt specifier. > -- ti,enable-gpios: Two GPIO entries used for 'EN' and 'EN2' pins on the > - TRF7970A. > +- ti,enable-gpios: One or two GPIO entries used for 'EN' and 'EN2' pins on the > + TRF7970A. EN2 is optional. Could EN ever be optional/fixed? If so, perhaps deprecate this property and do 2 properties, one for each pin. Rob