Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2373698pxb; Wed, 9 Feb 2022 17:32:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFKMmyjbqG8jlRgTe1nWIFCDiJQWfTnMWzSimZPKWcvz46jFGzwFPpZxYkvxOiLV3koP+Y X-Received: by 2002:a17:90b:1d8d:: with SMTP id pf13mr156868pjb.205.1644456727602; Wed, 09 Feb 2022 17:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644456727; cv=none; d=google.com; s=arc-20160816; b=jYUO4S383dwNPKDDVm4aX9AdB/aM7Su6WvfvNETTexBu5Vmw6pRs4QLMRLxAo4PoR/ w1ciEYvUdpgMMPL5gmfr/EAZMlW5PRrnCaNrH4wAR4m3GEXx6UctwLAKrRyPs23k8r8s 8grcjCYfZgAmtiXKoGhsihL4/r2ySAx4fty7vaNxDzMZtvqNo23SozOfYjuQ+toZDzcN x1kqCP9jfa7E1h/Y1urrPj4PlL89JINvNZVuSDh6zMpc9H+1myp2bPew1RiBwJZjsafl HYhXpUFdp6Ci9fFKXtPlDQGAEYG6Rg3VOJ7cjYIlFlkwensiLPeVambQ8byNKd53kVwv jgNA== 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=8+Nru2NcToVw10SMtgwpUUD5V5gNRuUchLBb5mwzcTo=; b=VFN6BbJBo9oHNHQxiINzSkC6QYxnPSIUDtg1HVx5Dbh1+T/lvTppztZ5Sq0apDPd5I FhA5sb6lfP444zuf9DRBOX5LJZfQBR11HmgjV39/k+Qoc6MIE3b2TVIngbjx9X15EJwW aHiIMpbzhuGGEe+e7vLB4wSHXj1Ey6DAaWuq7kbWBmOlClJnDgmbHzA+L9Zd96rNxt/u Z7+T+Qz+phd5Ras7Viggo2cpm4rMOlFkJe4gOmiguSE5djkhtkNguPzZQPplV+jVuAFg L+OcyK7ztpnSG17UzvxbOVw2FmQRwMgnlShUYQ026PJn1VDUR/Lf5qyB5d//EbxYBe7x QMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TXHV4iS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b6si525367plx.548.2022.02.09.17.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 17:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TXHV4iS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 50FE7BEB; Wed, 9 Feb 2022 17:32:03 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbiBJBbt (ORCPT + 99 others); Wed, 9 Feb 2022 20:31:49 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232726AbiBJBbp (ORCPT ); Wed, 9 Feb 2022 20:31:45 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6579DC43 for ; Wed, 9 Feb 2022 17:31:47 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id i5so4478293oih.1 for ; Wed, 09 Feb 2022 17:31:47 -0800 (PST) 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=8+Nru2NcToVw10SMtgwpUUD5V5gNRuUchLBb5mwzcTo=; b=TXHV4iS/LnExFOG16+ujTQmMvV1cNm5vPFzItoWZDg8A8T/YPbRQnR5VB+jSEMaxFU Pt/WKTUgnSrBXxgCyeIzvTEs7ZzqHTpju3FkNOxVi1T4xx3SI1l6pK+TLwjynJqb/OSP R19+UJ4qOCkEjvQcpQOFlPTR99isRfg19NWdQ= 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=8+Nru2NcToVw10SMtgwpUUD5V5gNRuUchLBb5mwzcTo=; b=O9idf7zZbUif7xS2eNnhcTrHQ+a4DfsMnJ46NZvF4p2CfUJzeo3ohSvKO+YLbLvwhx HXCqrvlhQo1/5MlGGcoo04XUXOFKimYUS9DWVED+OFHmA3tNbkAPIy1c0w/x/X5VPJ7h k3gxW7bXUqxu+/JqxwJMs83YOViy4CSo95ljgJI2f1pl03Z4zTvurBa067rAm8UXSKoj rMUgMmKUujhVfCny3NjFVhzk2lXgUjppL4EtTXfmE0XK6NUaVxXmo1hHg+hywhtzWLYY RhWbvm09QpXgJeVAWPs7Hg4pTrZWmF3wciBFgmn82JSyWB5ddlEKxmWi5yHVEOo1kY7w dLzA== X-Gm-Message-State: AOAM533fLbVnw9P31pLgmBrBChzWu1nvOZC5ItisvCgMpJO7ewHB+Ia4 vlm0K5edBtl6NpsFsh6pT25D9XULvtR6g7XjRpmGoEcD/Q4= X-Received: by 2002:a05:6870:d413:: with SMTP id i19mr1648649oag.54.1644451410730; Wed, 09 Feb 2022 16:03:30 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 9 Feb 2022 16:03:30 -0800 MIME-Version: 1.0 In-Reply-To: References: <1644334454-16719-1-git-send-email-quic_srivasam@quicinc.com> <1644334454-16719-4-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 9 Feb 2022 16:03:30 -0800 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sc7280: Add wcd9380 pinmux To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, dianders@chromium.org, judyhsiao@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org Cc: Venkata Prasad Potturu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivasa Rao Mandadapu (2022-02-09 06:26:58) > > On 2/9/2022 2:42 AM, Stephen Boyd wrote: > > Quoting Srinivasa Rao Mandadapu (2022-02-08 07:34:14) > > > >> + pins = "gpio83"; > >> + function = "gpio"; > >> + drive-strength = <16>; > >> + output-high; > >> + }; > >> + > >> + wcd938x_reset_sleep: wcd938x_reset_sleep { > >> + pins = "gpio83"; > >> + function = "gpio"; > >> + drive-strength = <16>; > >> + bias-disable; > >> + output-low; > > Why doesn't the device drive the reset gpio by requesting the gpio and > > asserting and deasserting it? We shouldn't need to use pinctrl settings > > to toggle reset gpios. > Okay. Verified without these nodes and didn't see any impact. But > similar way it's mentioned in sm8250-mtp.dts. Could You please suggest > on it how to go ahead on this?. I'd expect the wcd938x codec device node to have a 'reset-gpios' property like reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW> and then the driver to request that gpio via reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); so it gets the gpio during driver probe. Then the gpio can be deasserted during suspend and reasserted on resume, if that's even important?