Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp662304pxk; Thu, 3 Sep 2020 09:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuiD7ghjuIuwouFcgr6DPDpmA5W6oF9hP2yl+SOvzfkKYJ4NdjX0ulcZwdbLXIfXXhMn9k X-Received: by 2002:a05:6402:176c:: with SMTP id da12mr4061324edb.386.1599150275841; Thu, 03 Sep 2020 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599150275; cv=none; d=google.com; s=arc-20160816; b=UY+MVd5c1MKAzFbbG2YVBlXOubO8IAne6wLvIoTSo79t+Yw7G0xe18NgjPBXvIcLD8 pXkW61Ov+kxkZYs2N8FSi7n3XxOLpwINLgFzrysHslILpavUJNMnztiUIWK+H8O4ufYV ZmqqIXPmO0pHpUsXWtfUZkiZDTcqMwo0TTGw8OP9aBPikAlCJ9V/VgFNeaFT/bbgY9Ds FJMX6VPHMh7aXyhIqoek6XpuN624LOC4dlAo/44dkQqBXZVdEKt0SYdaIqfIUaTT5ARy v3WZt/VRfvGX0DFAdXf9myo7DtY1YSLePF4vHnYiiXD6szW29Eq/7OrH4ZieRzy4sc4L G4DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=upBX4Clryy/k/84ALL5IHsbLB/nGc3rUDtUWpyLYwZc=; b=Tma8odIHHGSv/WFKStr4Uzmu7r5gBK6fHbbIgIBFO2lsIK+DRedyB2JE7Zayfpb/YN eofUvd066+D5Oa0ewZkak3U2BUYHh9wh2j/m+HPinDDPJ2YDAzp7qPVcqhUUTrA+kwQQ ZgQu1PgosOYBRQxwvd/7fRWLO2jlYSDNbTpXK/yeCrvsuU5m5lvVO+cuPkM7LfuDWceU /UmtWS5+pAvZdX8wUsZ9h28weIkLL0BJ6J5d9anwPdSMoZX2Frf8dOuAl6T4+KODK25Y CiVT09tBQJ2AFUbWDPi+rp8vlmczGIVBnRd64xR2rhfjbB4+PZF+hTEZ8vo2SUK0ZQFF YM9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mAUB47sC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 e19si2138873eje.233.2020.09.03.09.24.12; Thu, 03 Sep 2020 09:24:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=mAUB47sC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728708AbgICQXH (ORCPT + 99 others); Thu, 3 Sep 2020 12:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbgICQXE (ORCPT ); Thu, 3 Sep 2020 12:23:04 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA82C061246 for ; Thu, 3 Sep 2020 09:23:02 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id w186so2534270pgb.8 for ; Thu, 03 Sep 2020 09:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=upBX4Clryy/k/84ALL5IHsbLB/nGc3rUDtUWpyLYwZc=; b=mAUB47sCbHtOGQ0iXqfPxTH7toDvKaKbaUhrtYrWD129n7XSFGeKYjncs2sw4IA5xi NdKJSX5p7sd8FkvLZAQaBLfEmHPQSVjRyrfOyVR8d7j64vDzGwJicub+xHRC/TmZK0nx Ckh+lgpuhUTlL7+rwyg0vSazuqYSalrFWlscU= 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:in-reply-to; bh=upBX4Clryy/k/84ALL5IHsbLB/nGc3rUDtUWpyLYwZc=; b=Odn/sUgWVwUzbhwmftvEaKDGcDQtSJdkKXSoPYGS3zJmQAOQv+ZBMYUWjQb6ujiBFL jg8rL8HSs4LkuCBLmU88PJAIVhSkZM8deEcsUGRXoU5OpM4N3CX1+sC5jJCSIuWwi5u2 IhzxjIujrL3NexfjQsHUBhjiTXkBPLRNOd1BSnSMlfVs1yDZ83kVbwAwh2n0JGy+abjx rIwbBx5KNpMX9mC+j9I0jZmKBN4fN6kxImQxY7gARlE4uo40+yr1tJUHJJ3ytpEcoADc OxIdLyRsRe0jhhqEPFSMnKvmpm4OGiYOcrSz65HQsbrT5lGiwlWHowdShSzlGpjDHZpn xSLA== X-Gm-Message-State: AOAM531tyKF1LkI1Xschq5skUQp660FSRyAFRNbgih1nk/yygh9EF8r0 W9i/UNONKrdmU5bxtuI8Sq+d6Q== X-Received: by 2002:a17:902:868b:: with SMTP id g11mr4655370plo.213.1599150182197; Thu, 03 Sep 2020 09:23:02 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id a20sm2984045pfa.59.2020.09.03.09.23.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2020 09:23:01 -0700 (PDT) Date: Thu, 3 Sep 2020 09:23:00 -0700 From: Matthias Kaehlcke To: satya priya Cc: Bjorn Andersson , gregkh@linuxfoundation.org, Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, akashast@codeaurora.org, rojay@codeaurora.org, msavaliy@qti.qualcomm.com Subject: Re: [PATCH V4 3/4] arm64: dts: qcom: sc7180: Add sleep state for BT UART Message-ID: <20200903162300.GJ3419728@google.com> References: <1599145498-20707-1-git-send-email-skakit@codeaurora.org> <1599145498-20707-4-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1599145498-20707-4-git-send-email-skakit@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 03, 2020 at 08:34:57PM +0530, satya priya wrote: > Add sleep state for BT uart to support the wakeup feature. > > Signed-off-by: satya priya > Reviewed-by: Akash Asthana > --- > Changes in V2: > - This patch adds sleep state for BT UART. Newly added in V2. > > Changes in V3: > - Remove "output-high" for TX from both sleep and default states > as it is not required. Configure pull-up for TX in sleep state. > > Changes in V4: > - As per Matthias's comment, removed drive-strength for sleep state > and fixed nit-pick. > > arch/arm64/boot/dts/qcom/sc7180-idp.dts | 37 +++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > index cecac3e..77e3523 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > @@ -507,6 +507,43 @@ > }; > }; > > +&qup_uart3_sleep { > + pinconf-cts { > + /* > + * Configure no-pull on CTS. As this is driven by BT, do not > + * specify any pull in order to not conflict with BT pulls. > + */ > + pins = "gpio38"; > + bias-disable; > + }; > + > + pinconf-rts { > + /* > + * Configure pull-down on RTS to make sure that the BT SoC can > + * wake up the system by sending wakeup bytes during suspend. > + */ > + pins = "gpio39"; > + bias-pull-down; > + }; > + > + pinconf-tx { > + /* Configure pull-up on TX when it isn't actively driven */ > + pins = "gpio40"; > + bias-pull-up; > + }; > + > + pinconf-rx { > + /* > + * Configure a pull-up on RX. This is needed to avoid > + * garbage data when the TX pin of the Bluetooth module is > + * in tri-state (module powered off or not driving the > + * signal yet). > + */ > + pins = "gpio41"; > + bias-pull-up; > + }; > +}; > + > &qup_uart8_default { > pinconf-tx { > pins = "gpio44"; Reviewed-by: Matthias Kaehlcke