Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp131391lfu; Mon, 4 Apr 2022 22:17:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjlaO+i77vNh3gQhnu+ZEbmfTKW8NJHYm5zN1ekqNZTlpMU7reiF4N6L+ZT5ktmhfLlFcU X-Received: by 2002:aa7:d682:0:b0:419:3b78:e489 with SMTP id d2-20020aa7d682000000b004193b78e489mr1724204edr.372.1649135872564; Mon, 04 Apr 2022 22:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649135872; cv=none; d=google.com; s=arc-20160816; b=FH3KIfyvEEk9wvYP2MMaZHcMPgYxfVdbZvndQN1eJVX2s4yf2ID6pzUIXkbcgMFLva SuiuSoskRMEpc6OZOgObLeGzQrIzRX7yFpskzUv8oGl3hDMUz8XCqq9LRKsJLHdK5s6j TtVcporcop1MPS1QyPx3ms/ctrYF37WS/Ka2Uwcg9OwFvR28m+u/A+85PdiI1pdQ8l8g zWf1OQ83W/NjEsKJ4Kpe9Ow27lSdil3sHNsEH1bU1SD1bARxiA4NWLWirK/nDKdFBKE/ n7PB29iiX+pcmOHU9Jbv8CoULAESDeslQwlL+yXSETgVmMcLNDOCZCG37QWtucDeAtDy rG7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=LkxzEX1anG4s/wmWN5T1Ru9TpO+y0pigaqRc6/MAp74=; b=rWDJNCyOe+k4RydERS7VFhxQ1LC8KP9H/9P1mjj3SLIwHk/s68kuc5e2x1QRgxJgoR n1nCglU/LbN4M3ScnGLCb+La9nuZeFN68/AtaiYwSd5pL1m7uYgMYi0N/wtDZCf9Vkvg CBY+/JGcVv1ZGF/j/1D3KW7Gmw0JjF8b11RgJ9TrQbvMjWofHN5RwIh7WgLblwbbsr1M Al1sgFEjxAmqoe+cESbRME/RYRYEWn9PY3fkzaSRg9zePqNqgHduy4hs2p9hxwim3kM9 FdMH9+1izSKWhPFdBDab3wSPowM99X9VGa19Qt8K0NQGZ+yvIY8MmBycK8SckJVp2201 HYNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hkTEbrEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kz20-20020a17090777d400b006df7808f11fsi8229684ejc.913.2022.04.04.22.17.25; Mon, 04 Apr 2022 22:17:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hkTEbrEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbiDEFHd (ORCPT + 99 others); Tue, 5 Apr 2022 01:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbiDEFH1 (ORCPT ); Tue, 5 Apr 2022 01:07:27 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39B71483B8; Mon, 4 Apr 2022 22:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649135126; x=1680671126; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=LkxzEX1anG4s/wmWN5T1Ru9TpO+y0pigaqRc6/MAp74=; b=hkTEbrENBz2DxmOhLmhj3UOKp9+PNnIyKTw16MyxdGO3IFoKVhfyVPP2 47Pt66O04n+IgBNKsYqNzpx6/fjakkM3RKQfcZZD2Pwlhvf+IQ0Q4GRFd ThV9O3/9affKK34oi4Y2IhMikdT/so/XcCpMLPwwVavmpi6Q6bY1SRkGI k=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 04 Apr 2022 22:05:26 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 22:05:10 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 4 Apr 2022 22:05:10 -0700 Received: from [10.216.10.223] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 4 Apr 2022 22:05:06 -0700 Message-ID: <5d2f23a5-e8a9-6be1-cc91-0a80bad68f3a@quicinc.com> Date: Tue, 5 Apr 2022 10:35:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v5 3/3] arm64: dts: qcom: sc7280: add lpass lpi pin controller node Content-Language: en-US To: Stephen Boyd , , , , , , , , , CC: Venkata Prasad Potturu References: <1647863959-3289-1-git-send-email-quic_srivasam@quicinc.com> <1647863959-3289-4-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 3/22/2022 1:56 AM, Stephen Boyd wrote: > 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. Okay. will re arrange accordingly and remove output-high property. > >> + }; >> + >> + 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. Okay. > >> + drive-strength = <8>; >> + }; >> + }; >> + >> + dmic01_sleep: dmic01-sleep { >> + clk { >> + pins = "gpio6"; >> + function = "dmic1_clk";