Received: by 10.213.65.68 with SMTP id h4csp1171911imn; Wed, 14 Mar 2018 11:44:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELtdIsyRZT+nfUrjIUvMX8+SH9qPYCPX1pm+cHZ44kzyJn7q14xqW3ueb84gHU3PKX91qEK8 X-Received: by 10.98.200.131 with SMTP id i3mr5292668pfk.40.1521053063643; Wed, 14 Mar 2018 11:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521053063; cv=none; d=google.com; s=arc-20160816; b=FVuXzihCzFjCgUpdr3j+CkFtgif70kV2mKHkMvucH6GzNCCRUDBbflsZ1PGpZNAEgr 7E+y+U+fmelFLDzd7+K/Worne4u+1S/SRAMab5rwcAATH86bTlBg5fY6ARtPGxdNKwDa qmj7KtAANbPHMt01IT5fk/Y80d4kSdWuup/ZJkf4Z6DNcsOpGeioC26oGP6BEmR8Kzfu /JZcARDfDm64xKOX58JcgidZXE1mxUw+KnOVzDkVCCr5G9k+8Zo5XyLiJE8aImQPEm+q Vq489Dd8z7IVZ7mjngtQU5f3Vo9pkJy13NRGAqcJfsC5vVdDkLmF/G1h9gZViCGvOxT2 1+mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=KSnLAkOjqMmVU+cVBNmrB71Rwt7xUa4cc74cdt8LeOA=; b=Vfp+EyQ/OI5ktMT1iIZ5pO7TVSvLCCbtuMTvHB/JLNW76mrsunMuiuRew3CcWYqcKz DE9GhV1fm6gEWS/EIlDSzNcE8spwjO9d98DBfxykItFGC8Qo9TK6pB4JJ6g5LtJmK7+3 x+8TLSP12fBb/Po9V7N7D/yJuCYq1hJojrmyul2rpRH0cGzhIRyvaXbOeJRyQzxNzxNT dIuvaLIPdpcwxVQ+1wyUXUMlA5RcBeuo/DMThSrx2rbwbHXGekzzNnMdzSbSo4p1zo+I pAhnUnmm7v2myBxTBIT0DlBWBcxtYezDjV4elnSRNXDdWu4OFO2XHaNWAwgYx21VKpDp Hgaw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w81si2816pfk.296.2018.03.14.11.44.08; Wed, 14 Mar 2018 11:44:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbeCNSnE convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Mar 2018 14:43:04 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49607 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeCNSm7 (ORCPT ); Wed, 14 Mar 2018 14:42:59 -0400 Received: from marcel-macpro.fritz.box (p4FF9F617.dip0.t-ipconnect.de [79.249.246.23]) by mail.holtmann.org (Postfix) with ESMTPSA id 55EA7CF36A; Wed, 14 Mar 2018 19:49:11 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH v4 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth From: Marcel Holtmann In-Reply-To: <20180314183043.GX18510@minitux> Date: Wed, 14 Mar 2018 19:42:56 +0100 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 Content-Transfer-Encoding: 8BIT Message-Id: References: <20180314155514.3374-1-thierry.escande@linaro.org> <20180314155514.3374-3-thierry.escande@linaro.org> <20180314183043.GX18510@minitux> To: Bjorn Andersson X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Regards Marcel