Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3799434pxb; Wed, 13 Oct 2021 13:15:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB8PaIJYPEedlPdtbdeLjRTxcvOJTbZWPO0KE+ciJZtdrqOZhTxib0IhaBjT7UKSrh6M8+ X-Received: by 2002:a17:902:e0d5:b0:13f:25a0:d26b with SMTP id e21-20020a170902e0d500b0013f25a0d26bmr1184260pla.53.1634156131040; Wed, 13 Oct 2021 13:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634156131; cv=none; d=google.com; s=arc-20160816; b=rWT7RBoJAV5OuFU+z9zbs8q0GQYewDgfH88G0eoM+GSM0CSdIYTEiz559rFFZF06ly FsU/+AbrHzvDaonZhpkiX+T8lAPTJrbYyHJum6eMoJWf77BDISNslg49Zhg97se/F67R KU/BJI4m1LLx6i1y6rXAZGQjUOYzpG8FdtGYHSW4+jiwovxOYkk1PE7PbyhkY6tHEbt1 u4YKbqisAqAOE9L8tQHu46mLh/iEYyPd/BjX0B2PEElOf2jPrWCcfRbzrlRRw+bD/FZd +WGQsm59tkoKzepheV/cdCPxgrLoETClSQnhSOVdmaLy5SbqI8OLrjAudOsIXXkM0uw5 HnUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=QyTd56Yy55oJcpmoXXse3UQ4TanL7tsHe7pndupRnAM=; b=RHtyvbnEDJZlaj1OKW/PKHdFTHMS0Rp6cZ1woUn8eCGnPGMg0C7q/7SpU5/hzsG0Vi X4zoVjKwKCmJ/nwLo/o4LD4w+ocidMYqLWUJgcCWStuR5FPQ5qgHNRcJgflKoqdRuuZY b4Cgo2ZrOM/BJVUYuepxJKjGnUXsRXx83oVKcRHZPw2iY0Ta8415oxMX1KIf8UR/UpqA zqiyNSyJnYeDHnPoseW9/k4NNseZ0bgGYaWyfXBTY0NaR63UHGjxYHjnmYQ5MY1SH2Cm 0yG4PqMAMkuLV1dZQr1NRYzDqblyHsrfq2WhJs0LvYe1CBcdCW7ZOmeAL6XiCQqFFlIC tk5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UkgUzXgr; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si906885pgl.42.2021.10.13.13.15.15; Wed, 13 Oct 2021 13:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UkgUzXgr; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238720AbhJMUQ0 (ORCPT + 99 others); Wed, 13 Oct 2021 16:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbhJMUQZ (ORCPT ); Wed, 13 Oct 2021 16:16:25 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD196C061746 for ; Wed, 13 Oct 2021 13:14:21 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id p6-20020a9d7446000000b0054e6bb223f3so5290286otk.3 for ; Wed, 13 Oct 2021 13:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=QyTd56Yy55oJcpmoXXse3UQ4TanL7tsHe7pndupRnAM=; b=UkgUzXgrhkocHJb5SORkvSsGhkAluE52o5vGR5B/f7J0XVrXZDQnrqJ2kt91A1un3H h3tpGowokJymNG3IgJkju/eTuWrTzHaUEgIXfvWKsfKj8hUwi0p6VZwPd58V/kBk/TeH W+xJEtq6ROaCfFT7KZndQGTvZJm1CLF9y8pMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=QyTd56Yy55oJcpmoXXse3UQ4TanL7tsHe7pndupRnAM=; b=feBivQSvvnF64dqNcXmJYHTjGNJzXerkXKpWkurHWpjcbTBDwxD1knuQR/Isq46E2k Ofetn67agRQ3gnXNnJN/7SmTQ5pAJ6spAoOZfUYTY5E6CtqImg6SsEzLXYmwZijmcI6a ML6fOph9V5GDC57MfnEkCIXuT008TD8okhXHhJ+34s+waI1/1wU0i9zGE3YBrtPivFAd BFj3G9crjhfJLNav/B1HusQq0gbG35NyQrvZtECj5QQ22H5MZtWIn0c674Vl8u2NK4D8 kkMQ/53Heg40k7LoPrO5Sunc3ISjAqHdJKfj3eDIUdTHjv/JL9nvFXMSV9O3DJLruwlp qwaQ== X-Gm-Message-State: AOAM530BNdSY+VXD6vqIU+H6EVEIfcar6EOIA8v0dsw7pGIY4uLegmdH NAPnbZQGJlcmJmloKVkctl3DEMEeCFqwOu9pUsryqw== X-Received: by 2002:a9d:12f4:: with SMTP id g107mr1096988otg.77.1634156061042; Wed, 13 Oct 2021 13:14:21 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 13 Oct 2021 15:14:20 -0500 MIME-Version: 1.0 In-Reply-To: <46cc793cf651822ef90c448682598a02@codeaurora.org> References: <1634043698-20256-1-git-send-email-bgodavar@codeaurora.org> <46cc793cf651822ef90c448682598a02@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Wed, 13 Oct 2021 15:14:20 -0500 Message-ID: Subject: Re: [PATCH v2] arm64: dts: qcom: sc7280: Add bluetooth node on SC7280 To: bgodavar@codeaurora.org Cc: bjorn.andersson@linaro.org, johan.hedberg@gmail.com, marcel@holtmann.org, mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, pharish@codeaurora.org, rjliao@codeaurora.org, hbandi@codeaurora.org, saluvala@codeaurora.org, abhishekpandit@chromium.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Quoting bgodavar@codeaurora.org (2021-10-12 22:30:50) > On 2021-10-12 22:54, Stephen Boyd wrote: > > Quoting Balakrishna Godavarthi (2021-10-12 06:01:38) > >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > >> b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > >> index 272d5ca..09adc802 100644 > >> --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > >> +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > >> + compatible = "qcom,wcn6750-bt"; > >> + pinctrl-names = "default"; > >> + pinctrl-0 = <&bt_en_default>; > >> + enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>; > >> + swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>; > > > > Is there any pinctrl config for gpio 86? > > > [Bala]: This is input GPIO to apps, BT SOC will handle configurations. Ok. So there should be some pinctrl stating that the function is "gpio" and the biasing is probably bias-disable. The BT SOC will handle setting any pull, either up or down? > > >> + vddaon-supply = <&vreg_s7b_0p9>; > >> + vddbtcxmx-supply = <&vreg_s7b_0p9>; > >> + vddrfacmn-supply = <&vreg_s7b_0p9>; > >> + vddrfa0p8-supply = <&vreg_s7b_0p9>; > >> + vddrfa1p7-supply = <&vreg_s1b_1p8>; > >> + vddrfa1p2-supply = <&vreg_s8b_1p2>; > >> + vddrfa2p2-supply = <&vreg_s1c_2p2>; > >> + vddasd-supply = <&vreg_l11c_2p8>; > >> + max-speed = <3200000>; > >> + }; > >> }; > >> > >> /* PINCTRL - additions to nodes defined in sc7280.dtsi */ > >> @@ -504,6 +521,14 @@ > >> */ > >> bias-pull-up; > >> }; > >> + > >> + bt_en_default: bt_en_default { > > > > bt_en: bt-en { > > > > Node names shouldn't have underscores and 'default' is redundant. > > > [Bala]: will update in next patch. > > >> + pins = "gpio85"; > >> + function = "gpio"; > >> + drive-strength = <2>; > >> + output-low; > >> + bias-pull-down; > > > > Why is there a pull down on an output gpio? Shouldn't this be > > bias-disable? > > > > [Bala]: BT_EN pin is OP of apps and input to BT SoC. > by default we want the state of BT_EN to be low. so used pull down > instead of bias-disable The pin state will be low because of the 'output-low' property. > as AFAIK bias-disable may trigger a tristate on BT_EN pin, which may > trigger BT SoC enable > if it is not actually triggered. Is the pin ever "turned around" and made an input? If not then it will be output and be driving low until the enable-gpios is set to output active. The pull down is probably wasting power when the pin is being driven either high or low.