Received: by 10.213.65.68 with SMTP id h4csp1183756imn; Wed, 14 Mar 2018 12:06:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELv85TpINtHJQVai368CIQKs2IY/hef0CtWgGm4iyBlrPwv5KNuUn3AwIAtaJv8u2UDZBq6y X-Received: by 10.98.31.155 with SMTP id l27mr5345031pfj.176.1521054411017; Wed, 14 Mar 2018 12:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521054410; cv=none; d=google.com; s=arc-20160816; b=nTbq2lQWNe/qYujMIs0u3gdRtXuNYloBSg+frF8dOzWjzYMmUSp++ZYimnOcv4ZpIj IMhZD0nFvER/KWQJhkt19cRV0p25bims0BZc9g3lMT26Td37qsbXOZ3KXJ8bh8OAGZ7K W2ybaagkAuqkJVDS6Gps81sx95AWQ6htCIsusHA3uXJXtScs4JnB06AiO9AUMzVW3ozl dFpUdAYSJKmDiHCPkXxPsB8VGeFXVD3219NUETVKMHFGYg4reUgY4jI+84x6kAWBBztZ NlaxHFeV9bp2vUifueEJE1u5lpmmRsom2w4j9nZio2Z8E9SyGTPVwnOloI52I6b1bA6T Rqyg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=05eWWFTW2o1TERd8elebhW/+8GuJsNY2jbdCmtz/4Sg=; b=t9Be09tP2Mhsq5lzSfaW76k3KR5UNJaJVrMX0wHzZQt2N3qGuYTBT3kVW4+McIhMzB IVUEmAP610zoE+BioJBhEPSzG0RjC6kpDgp3PTyH5whAK52D0AyVvOcnhHHXj0rZL3XU +POVf/LAXIcugkNQgSl8QSInQ12reoslLx1n4DIfltQO65mEEGc7cDQzqbDA2b87X04i vcdnHZgiN5oLxSEXDsZ4kBCkW1zHf74B9PAd5O1pIEX5bY43i+f4tvjucNXWHd7nwGxt SVkT7qLRF0+TfLHKLRSXZu1tDB5aNlrFDQw26PQV0gbuUk8iqcmIGZMad67JT1pn3Z2n FEFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NOupIKZC; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si2422029plb.423.2018.03.14.12.06.34; Wed, 14 Mar 2018 12:06:50 -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=@linaro.org header.s=google header.b=NOupIKZC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752006AbeCNTF1 (ORCPT + 99 others); Wed, 14 Mar 2018 15:05:27 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:41970 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbeCNTFZ (ORCPT ); Wed, 14 Mar 2018 15:05:25 -0400 Received: by mail-pl0-f65.google.com with SMTP id c8-v6so1355198plr.8 for ; Wed, 14 Mar 2018 12:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=05eWWFTW2o1TERd8elebhW/+8GuJsNY2jbdCmtz/4Sg=; b=NOupIKZCChE/8pOu4N0tHQ2dej7gnZnI1r3lUuS+jvvkj6P8+JLl1WdIygrWN9J8UL gLBkK0Te1wk7TomXAgHYfZp8KEWjar2pNHe/VGL1RGhngZCES5htGAe1IJbDRJw6wzR0 Rnw7udPC1QUrLr/Z+VByOOeHrd+8Qd94r3vBI= 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:content-transfer-encoding :in-reply-to:user-agent; bh=05eWWFTW2o1TERd8elebhW/+8GuJsNY2jbdCmtz/4Sg=; b=cOSXpvlurgdIWwqYuu+SldiTK0mF/FiSz+hIHgfLZcN4qWmtPWvg2Rrj79JxyOfMiP eSwOL0s36/oTWwRNMjUBtJ8h2CXMNpSJRrpOfyrB+CVnq1nXZoSqd1CVpPkI5iOmqbI+ 1xSeE88IaaBwFMcU//0mIEHtSn05WTDN9AmGttHjS75fFEmEDBJXHBuQaYYjfAfCLHil PeQ2B2CJ8uCrgucvZ4KqZwzPCgXF9t2asH2761uhDJ+BaytqLh/rDgG/lk2ulO2LXAnl y3APUCEyTuMMvIvzBy1NLHk/3JT2FmaqxKJGN+cXtsVLjNrJH6PoyUixcfvd+RswiVxW UCCw== X-Gm-Message-State: AElRT7GCBTvcVSVyXXc5HNtrEclJ0toDFf75JAgeneSgMcMbgGzENAo6 O/GCtF9mpWeXbJIKNgbtvCvGgA== X-Received: by 2002:a17:902:9a8d:: with SMTP id w13-v6mr5081806plp.136.1521054325115; Wed, 14 Mar 2018 12:05:25 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id t17sm4542986pfe.17.2018.03.14.12.05.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Mar 2018 12:05:24 -0700 (PDT) Date: Wed, 14 Mar 2018 12:05:22 -0700 From: Bjorn Andersson To: Marcel Holtmann Cc: Thierry Escande , Rob Herring , Andy Gross , Johan Hedberg , David Brown , Mark Rutland , Andy Shevchenko , Loic Poulain , Srinivas Kandagatla , Linux Bluetooth mailing list , linux-arm-msm@vger.kernel.org, devicetree , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth Message-ID: <20180314190522.GY18510@minitux> References: <20180314155514.3374-1-thierry.escande@linaro.org> <20180314155514.3374-3-thierry.escande@linaro.org> <20180314183043.GX18510@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 14 Mar 11:42 PDT 2018, Marcel Holtmann wrote: > Hi Bjoern, > > >>> + bt-disable-n-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; > >> > >> can we use a common name here. I think that Nokia and Broadcom drivers > >> define one. And if this is the enable/shutdown GPIO, we should name it > >> consistently across all manufacturers. It essentially does the same on > >> Bluetooth UART chips no matter what chip is behind them. > >> > > > > Broadcomm has a device-wakup-gpios and Nokia has bluetooth-wakup-gpios. > > It might be that these behave in the same way, but from the description > > they only trigger the wakeup. > > that is something that we might need to start fixing. I really prefer > if we name the GPIOs a bit more consistent. > > > The reason for the proposed naming here is that the pin is named > > "BT_DISABLE_N" in the datasheet. > > That is not a reason I buy. So the next board comes around that labels > it in the data sheet BT_DISABLE_YEAH_SUPER_GREAT and you send me a > patch to the driver to look for that name. If the GPIO does the same > thing, I couldn?t care less what the data sheet says. That might be > a comment in the DT file, but it should not pollute the driver code. > BT_DISABLE_N is the name of this pin in the datasheet of the QCA chip, not on the board, so this name is the same regardless of what you name the line or gpio your board connect it to. > A new board should not require driver changes, you just ship a new DT > for that board and an existing driver hopefully just does the job. No > matter how someone named a GPIO in a piece of paper. > I totally agree with the fact that the board should not affect the naming of the gpio in the driver. But I do enjoy when we refer to pins by their real name - instead of having to guess which pin in the _chip_ specification the driver actually refer to. That said, what name would you prefer for this? Afaict this is not "wakeup" and there are a few extra steps between the disabled state and "bluetooth is enabled", so "enable" feels slightly wrong. And it probably should be "bluetooth" and not just "device" as this refers to a pin on a WiFi/BT combo chip. Regards, Bjorn