Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2268009pxp; Mon, 21 Mar 2022 15:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd4KgNRAX43VC7jWXKDVMwzExrAa21OGqBEB28AF7zVGnjq3KT/crBDFx655SBhLMX6eZL X-Received: by 2002:a05:6a00:3309:b0:4fa:950b:d011 with SMTP id cq9-20020a056a00330900b004fa950bd011mr9027046pfb.24.1647901500529; Mon, 21 Mar 2022 15:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647901500; cv=none; d=google.com; s=arc-20160816; b=ivfRs2D8UhhRcC/Yxw+Wji+udyf9fdNOt4QCtLj+ZeDdeBBIb8eQktqQ71kNI2Vh0y jYiiFlLCYDr6rI7nxmfJfF8yW2P9rgofsSIyrGtl2IPv16ivZTWFYXJykU1sm3w1/q78 5LQ2l4nFzNSnjuhUfiR/hrj+DPrR2DQKMCXqXJVo8zvIlJylseQk+CdfIEpghH2GyXad Je+T5SAXK1f0mQ8vAY3e4nzabu47WeET+ual18h6881LHt+fz0wzPDtaOCY9OHOsxvVm N0FgKONERpUHgze59blLY+NUoZGRGWHOeu5OVh74mxVXR9rpkhd1U7LBhTlmfGMQ2xwI l+4w== 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=taGGw6FofrDBtg863EraXXBX2AFEQktzuZisXMbt1m4=; b=JuWHUcMdnt2EB6UWB7OqmJa3YcqZP8tsK7nDlubcGSv7pfjBue+bPgjPGe/tkkSQZH RRHVljvAb2M4K51UAjdmOGcqmStaD19VwnhuMCRpuGK8OydDCvnFVGsFssL/LRsh8eBq Xf2yYmDq+qcx7fB4lW2eR27kjyxLbVKDrG1QuVinLTgbiX5HwuEWBtKMY7e+Na/g6U0h jvVqCPFJgyabkMfAV6UGbcmIINpPlyUyHCrMCd4QWSH6bo79cPu7yIGRjdwjF7tLgHEt K/Ka6xztfHpYVdfqgXuevmTkPdbRK9MOHYX7J85OwH+TA+LD1xndqYCPY2wGI2IJzfyP DdKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Sjv8nPGk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id h9-20020a17090a2ec900b001bfc2beb4c4si475313pjs.64.2022.03.21.15.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:25:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Sjv8nPGk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 695B13A0587; Mon, 21 Mar 2022 14:41:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235913AbiCUU2A (ORCPT + 99 others); Mon, 21 Mar 2022 16:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353305AbiCUU1z (ORCPT ); Mon, 21 Mar 2022 16:27:55 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B27165B8F for ; Mon, 21 Mar 2022 13:26:29 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-dda559a410so65110fac.3 for ; Mon, 21 Mar 2022 13:26:29 -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=taGGw6FofrDBtg863EraXXBX2AFEQktzuZisXMbt1m4=; b=Sjv8nPGkQ9wOO76X9eqZVeXYPv5fgfvaAsJeozgl/xckR0NlSAO3HO9Zys0XN/ZgSr wnfaXZnZuDDk8C2PQJxSqeSIPvOflZMi4+pPTT586WrfBLEYLZs0eFOabMkPejm/tMVp yBzclX9et8LnF3XdHOKqh/wM9gxa5OlZi7f+E= 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=taGGw6FofrDBtg863EraXXBX2AFEQktzuZisXMbt1m4=; b=BgjHWHy/Fc4oJPs+Vj7F7ijNBcMYKUeTUo+KrbcZjsnndb4s1QTD8bVq7DfjA36n3j wB6KdEpT6mi3h6sfGIJZHVAFKqdTTErCGyUQtfByKmPccYZ4qS2Qb6tQOu4sImldRffo ZIwDBdYNutvIuuTfTBdE1Gqe01x76x8rvYZhMNw6Oa0aSlcnvg4T4YCFHkHUI3P7mOfO RTkSMwEZP/97lmGHMCgT++hJ0fK1J9e6cqL605lBx/HLqnigV9GLaadjjuPZ4UGkdc8m rA76xVi/lQYZs7tCk+ERza/POwdFlqYcGM/AW9chcWUPv1g0UjIxJo29Ew5mcNIfIDCH 7TjA== X-Gm-Message-State: AOAM5335F5vvhvwObHd2AukpnhLr4U0+V3v9mc3KgfsLPXb6tEU7gyoG DvFZxHxBLHb4ypCy2HwnwR+hy3dhvGbAaL8XKqG5+Q== X-Received: by 2002:a05:6870:b69c:b0:dd:b74b:4099 with SMTP id cy28-20020a056870b69c00b000ddb74b4099mr326223oab.193.1647894389066; Mon, 21 Mar 2022 13:26:29 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 21 Mar 2022 21:26:28 +0100 MIME-Version: 1.0 In-Reply-To: <1647863959-3289-4-git-send-email-quic_srivasam@quicinc.com> References: <1647863959-3289-1-git-send-email-quic_srivasam@quicinc.com> <1647863959-3289-4-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 21 Mar 2022 21:26:28 +0100 Message-ID: Subject: Re: [PATCH v5 3/3] arm64: dts: qcom: sc7280: add lpass lpi pin controller node 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=-3.1 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=unavailable 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-03-21 04:59:19) > Add LPASS LPI pinctrl node required for Audio functionality on sc7280 > based platforms. > > Signed-off-by: Srinivasa Rao Mandadapu > Co-developed-by: Venkata Prasad Potturu > Signed-off-by: Venkata Prasad Potturu > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 147 +++++++++++++++++++++++++++++++++++ > 1 file changed, 147 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 8d8cec5..499299a 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -1987,6 +1987,153 @@ > qcom,bcm-voters = <&apps_bcm_voter>; > }; > > + lpass_tlmm: pinctrl@33c0000 { > + compatible = "qcom,sc7280-lpass-lpi-pinctrl"; > + reg = <0 0x33c0000 0x0 0x20000>, > + <0 0x3550000 0x0 0x10000>; > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&lpass_tlmm 0 0 15>; > + > + #clock-cells = <1>; > + > + dmic01_active: dmic01-active { > + clk { > + pins = "gpio6"; > + function = "dmic1_clk"; > + drive-strength = <8>; > + output-high; The rule of thumb is that drive strength, output/input, and bias properties should be in the board file, because the board layout decides the drive strength, the output level could be inverted on the board, and the biasing could be done externally (or not) via pullup/pulldowns on the net. The gpio driver should be able to make pins into inputs automatically when the gpio is requested and used so having input or output is typically wrong and should be handled by the consumer driver. > + }; > + > + data { > + pins = "gpio7"; > + function = "dmic1_data"; So in the end I'd expect to only see pins and function properties in the SoC dtsi file. > + drive-strength = <8>; > + }; > + }; > + > + dmic01_sleep: dmic01-sleep { > + clk { > + pins = "gpio6"; > + function = "dmic1_clk";