Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3131088img; Mon, 25 Mar 2019 04:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdvthDNFQ7HXaY6fXsWg/GRS7MuRhWpII8Eg1RePW/m81WYicMLWXPhbGqgDpNbiW6H4kU X-Received: by 2002:a63:195f:: with SMTP id 31mr12109807pgz.116.1553513488112; Mon, 25 Mar 2019 04:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553513488; cv=none; d=google.com; s=arc-20160816; b=cH6qcrW4EY5UR4yYzAbI0IVDaiu8q6KKrKhfjF7hX6XTFkYPNK6wxt0aPEduBWnRC2 roGmNgsCEnUmrFTg9R7TxEKxo4ZEs2qznB2NWVC4abfwVhrnMeXGdeRJwJrLpibhCEhj CLUzbHgUqEn/aLr9YwKK7Yr2msA3rYL96zWLKrPivAoJqtagHP1yoHSpaKuz8yioYstl FkN5cjgDtIyJtJbtJhwr61Es7v2BU48PmWQ/5t4cXa5KS6rDSd2R6im6JJtl8ka6itQ2 MBUDTuiw4zkPVnl1xJCJHCwmL7okc5a+eHc8U6HMfcD8E7myq/+w8QZH4utATb9/E3iY 6FAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=x3x+Y2QhyGz0ihcFUWvKWXRmdCGty2P5VgZLZLAxThA=; b=VHIDzSrC8yqUQ+3gV+MdO+rnTKoHC2vXZ8e/KRW++euhjRLHRrXG6I1D/C1Zb/RqNn Q16XqJWo+qo8pTAV1J09+iDMukTI6RPn7I62F0aLAlPM1xrzT1dsTqCJBUztFLT/0n78 mj6wc2qqCFhbgbWL6+rUrm6OU26esbPe17GWMaOFsLziu0jlGtwGCnsL/vAiVVno60e8 aWHIEN6O6oRrPXkQmyUhhXY057hT+OtnKRptZK+zv/KdbuweAkBgv1vxLIPZFXY0BDR2 7m4l83MRRWT0DMTPbLp2L92kFJ+2DzXFMSLUJdKsSAcgLmlH/tcUO9cluUyPZFUuguWm FixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=C90nimZH; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y0XJ35T1; 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 i24si10884738pgh.434.2019.03.25.04.31.12; Mon, 25 Mar 2019 04:31:28 -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=@codeaurora.org header.s=default header.b=C90nimZH; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y0XJ35T1; 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 S1730847AbfCYLai (ORCPT + 99 others); Mon, 25 Mar 2019 07:30:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56954 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729831AbfCYLai (ORCPT ); Mon, 25 Mar 2019 07:30:38 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 05A19608FF; Mon, 25 Mar 2019 11:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553513437; bh=UjbK5dzmXrV26Whl8vuEofQq6XDc4bagX7YZpR9IhoE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=C90nimZHM8VVIMYMcCwxIiP7JP2F9HGbj9R3TkA011PhgBTmoJdKAWXRTxg5wkJnu f2SyjBMkh5aZ576/4+rxtt3ue9BS58i7lM4ZXZbv6aY7iX12j6skg+d8k9xTAHHC4k nOSiIp/whA35B3UPHwjZd9VPT1tPyRhMKLoVZTww= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 547A66063A; Mon, 25 Mar 2019 11:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553513431; bh=UjbK5dzmXrV26Whl8vuEofQq6XDc4bagX7YZpR9IhoE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Y0XJ35T1wG3y0jcB8+6mOkHFHKydCI/RIqHDkfgGWUkjNINvIO/UXtEP6q8qH2v98 WSXfD2Fijrw+eLsmTmiESCcpS1qk6dGb2JHfHv2teeFfRx2JBlM9Cwu5WLLiPJOrb0 RPmylXXLajw4gN04x78Pm9K6cdKpLArrRZazm7BQ= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 25 Mar 2019 17:00:31 +0530 From: c-hbandi@codeaurora.org To: Matthias Kaehlcke Cc: marcel@holtmann.org, johan.hedberg@gmail.com, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, anubhavg@codeaurora.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-bluetooth-owner@vger.kernel.org Subject: Re: [PATCH v3 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn3998 In-Reply-To: <20190314185637.GB112750@google.com> References: <1552393379-26330-1-git-send-email-c-hbandi@codeaurora.org> <1552393379-26330-3-git-send-email-c-hbandi@codeaurora.org> <20190312165928.GD200579@google.com> <88a923e02073461abb5f3a7674150615@codeaurora.org> <20190314185637.GB112750@google.com> Message-ID: <8432d8b9743e2b4b6a7195329c808af3@codeaurora.org> X-Sender: c-hbandi@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 2019-03-15 00:26, Matthias Kaehlcke wrote: > Hi Harish, > > On Wed, Mar 13, 2019 at 12:00:06PM +0530, c-hbandi@codeaurora.org > wrote: >> Hi Matthias, >> >> >> On 2019-03-12 22:29, Matthias Kaehlcke wrote: >> > +DT folks >> > >> > Please add them in future versions (script/scripts/get_maintainer.pl >> > should have listed them) >> >> [Harish] -- Will add them in new version of patches. >> > >> > On Tue, Mar 12, 2019 at 05:52:59PM +0530, Harish Bandi wrote: >> > > This patch enables regulators for the Qualcomm Bluetooth wcn3998 >> > > controller. >> > >> > No, it doesn't. >> > >> > The next version should probably say something like "Add compatible >> > string for the Qualcomm WCN3998 Bluetooth controller. >> > >> [Harish] -- From new patch onwards will add all patch >> version changes and add proper description. >> >> > Is there any particular reason why QCA drivers folks use 'wcn' instead >> > of 'WCN'? The QCA documentations calls it WCN399x, so I'd suggest to >> > consistently use the uppercase name in comments and documentation (and >> > log messages?). >> > >> [Harish] -- I think in DT we need to have small case like wcn, > > agreed > >> i think that is the reason it started using in code, comments and dt >> documentation. > > AFAIK there are no hard rules for everything, my suggestion would be: > > - use WCN399x > - for general comments/documentation > - commit messages > - in DT context wcn3998-n seems ok > - use wcn399x > - for function and variable names > - for compatible strings > > For logging: whatever, just be consistent. [Harish] --For Commit messages and all will try to follow change it new patch > >> > > Signed-off-by: Harish Bandi >> > > --- >> > > changes in v3: >> > > - updated to latest code base. >> > >> > This comment is useless, please describe what changed wrt the previous >> > version. >> [Harish] -- added details in v2, and v3 uploaded just to rebase on >> tip of >> bluetooth-next >> for better understanding of code in review. From new patch onwards >> will add >> all patch >> version changes and add proper description. >> > >> > > --- >> > > .../devicetree/bindings/net/qualcomm-bluetooth.txt | 15 >> > > +++++++++++++++ >> > > 1 file changed, 15 insertions(+) >> > > >> > > diff --git >> > > a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >> > > b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >> > > index 824c0e2..1221535 100644 >> > > --- a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >> > > +++ b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >> > > @@ -53,3 +53,18 @@ serial@898000 { >> > > max-speed = <3200000>; >> > > }; >> > > }; >> > > + >> > > +&blsp1_uart3 { >> > > + pinctrl-names = "default"; >> > > + pinctrl-0 = <&blsp1_uart3_default>; >> > > + status = "okay"; >> > > + >> > > + bluetooth: wcn3998-bt { >> > > + compatible = "qcom,wcn3998-bt"; >> > > + vddio-supply = <&vreg_l6_1p8>; >> > > + vddxo-supply = <&vreg_l5_1p8>; >> > > + vddrf-supply = <&vreg_s5_1p35>; >> > > + vddch0-supply = <&vdd_ch0_3p3>; >> > > + max-speed = <3200000>; >> > > + }; >> > > +}; >> > > \ No newline at end of file >> > >> > I think the example isn't really needed since it's essentially the >> > same as the one for 'qcom,wcn3990-bt'. >> > >> > But the important part is missing: add the new compatible string under >> > ´Required properties´. You also want to update the documentation that >> > mentiones 'qcom,wcn3990-bt' to 'qcom,wcn399x-bt' (assuming for now >> > that other possible WCN399x chips would be similar). >> > >> [Harish] -- Will check the DT properties, documentation and update >> accordingly in new patch. >> >> > You mentioned in an earlier version of the series that there are >> > multiple WCN3998 variants with different requirements for >> > voltage/current. This seems to suggests that multiple compatible >> > strings are needed to distinguish between them. >> > >> [Harish] -- for now we want to add WCN3998 support only, What i mean >> to say >> in my earlier >> explanation that. WCN3990 is base variant and on top of that we have >> variants like WCN3990, >> WCN3998 and WCN3998-0,WCN3998-1 like that.. >> So I think wcn399x would make sense for this series. > > If the variants have relevant differences between them (like different > regulator requirements) I think you want unique names, rather than > 'wcn399x' (I was referring to comments/documentation with this > string). > > If there are variants wouldn't your first 'wcn3998' already be a > 'wcn3998-n'? If 'wcn3998' without suffix is used I think it needs to > be valid for all 'wcn3998-n' variants (it might be less > power-efficient though than using the variant specific compatible > string), otherwise things get confusing (a 'wcn3998-2' isn't a > 'wcn3998'?) > [Harish] -- for now WCN3990 and WCN3998 only, also wcn3998-2 and wcn3998 are same. So for now we are going to have only WCN3990 and WCN3998 for DT. > Thanks > > Matthias