Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4826496iob; Mon, 9 May 2022 02:32:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsh3praDC1oqwBOewP9oUQESCWaGym7tFL2yL+ZJb06giBd9sKIx00Ysk9+3U+70sn9Jo2 X-Received: by 2002:a17:90a:1602:b0:1d9:9ddd:1f8b with SMTP id n2-20020a17090a160200b001d99ddd1f8bmr25810173pja.130.1652088735888; Mon, 09 May 2022 02:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088735; cv=none; d=google.com; s=arc-20160816; b=0uaaoSbuyIrgWQRzA2GEHSPeglSLnbRLDx0Sy8uZvbPa+T2mrRTW8BLdKZo3QDokpq 17nn8M+uloFQLxwlzpf1ohK3sdhai/SXLJE3GAB6HoI1FQljUYWzh3vm9IgBSKyB/NoR +zgU+w4opISG3HKfDPeNLjQ+aQ/UFnzdQcrBzlRNa9K4bJX0Vu9UPmmUdK3Nhh195XIk n+8LROCD4GHINkpOCAIbcjgyKTI+MLCJpG6xP0E6gnPzTO9PShbQGpOi+wjuzDZco/l+ 1vNAQY2vz12dctOnGGo2bAUVRUef2YzRtKrs/Ctzdo0yOC73hh339PI4nGShcN8KQV44 T7bw== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=MIqpVTVHlo6DTmks9PgaRxjH9KsrXWoNaS9uh51VnYI=; b=pfXpYU1IUGU4FzN5CNNW3sJMG7on1i9KIW02DRLtjLrSj1BAVN4Qs9hMorzv4mN0kx TxV+ZvAmwNlonexm4tp9Qj7axc5xbZgXFt9o2Yw4i9tT1SOb+r2yDX2muCnRz0Qu9EeO 3lp8v8kNmX5ZO9vF60QfAY1Rz/KwGZj4FWRzjtxZV3GPeqNbsh6gM9rEyTKfpB6FKHyo K6dJgXqLU8dldcjLrZTBXyQblKyzk0AG09esxbd4t/ea1Z+L5XAZ9qN2hVunXdKMGFMP m+8NbPWH3HXpLevk5562Cn1r+/TxMokkDDAg/GEQju1enyBk18F4sgnESEUE+wqojne9 6Z1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="iHvC3Bp/"; 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 u4-20020a170902a60400b0015d1ea26844si10074649plq.314.2022.05.09.02.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:32:15 -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="iHvC3Bp/"; 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 10AB42181C8; Mon, 9 May 2022 02:20:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387217AbiEFAKK (ORCPT + 99 others); Thu, 5 May 2022 20:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387219AbiEFAKI (ORCPT ); Thu, 5 May 2022 20:10:08 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24FAE4EDEF for ; Thu, 5 May 2022 17:06:27 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id n10so11575243ejk.5 for ; Thu, 05 May 2022 17:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MIqpVTVHlo6DTmks9PgaRxjH9KsrXWoNaS9uh51VnYI=; b=iHvC3Bp/yZjV6/3facmjrej5Ie9usQb83qVPvzExp04r1roEmXwSpQZCBtdphVUkn7 POw8j/oDDE9PdGus9LduRz7GzkZAfHZPZuZzgVRHsyheT5kxbgAaQB1cXrnAjggHBQ08 NIAtWJAu8HT1XDGaJ4soyBeenWFAl9t7LLvH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MIqpVTVHlo6DTmks9PgaRxjH9KsrXWoNaS9uh51VnYI=; b=qZMG76+dU5Qs8gT9APKsH1xlcgAv0WUglGQf3jQOZDpcSC+/8L44DxQNOwDc+IRQ83 CbmVP7KgoPGQhBj2djuA4ieIbh1OhrtbYWGaun9Js8I1TwIGyC9XIWsDRndUJLtqg2z8 NblGEv18KaflT00iye0ENdGSPEU85BBZy8OtrHHpj7YcLmzQaHkPLAFmo4kDFwCQBWgX EUDvWJv81eqkgdNQFyD8uyTCT6NEDj9gZyZubJM6b6FBHxeXaBNTSRp/gvU0k3RnEypb RUgdCVzQEWVWx4otrqHKJwiXo86V/I9T1rsC5UEykqrERvpIBxuRhDWf4E74hBqcyeuu rncA== X-Gm-Message-State: AOAM533XzCnVss+o753Bvfh3GfGbap/4vUnrd8R0yOhqJu0fvViyugxt KojVgOgSTvMtltHujHykhNfaT35uwYGVASAowcU= X-Received: by 2002:a17:907:9605:b0:6f5:c66:7c13 with SMTP id gb5-20020a170907960500b006f50c667c13mr636912ejc.66.1651795585427; Thu, 05 May 2022 17:06:25 -0700 (PDT) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com. [209.85.221.49]) by smtp.gmail.com with ESMTPSA id jz1-20020a17090775e100b006f3ef214e52sm1278329ejc.184.2022.05.05.17.06.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 17:06:24 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id e24so7979062wrc.9 for ; Thu, 05 May 2022 17:06:22 -0700 (PDT) X-Received: by 2002:a5d:6d09:0:b0:20c:53a9:cc30 with SMTP id e9-20020a5d6d09000000b0020c53a9cc30mr410473wrq.513.1651795582324; Thu, 05 May 2022 17:06:22 -0700 (PDT) MIME-Version: 1.0 References: <1651079383-7665-1-git-send-email-quic_srivasam@quicinc.com> <1651079383-7665-5-git-send-email-quic_srivasam@quicinc.com> In-Reply-To: From: Doug Anderson Date: Thu, 5 May 2022 17:06:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v12 4/4] arm64: dts: qcom: sc7280-herobrine: Add lpi pinmux properties for CRD 3.0/3.1 To: Bjorn Andersson Cc: Matthias Kaehlcke , Srinivasa Rao Mandadapu , Andy Gross , Rob Herring , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , quic_rohkumar@quicinc.com, Srinivas Kandagatla , Stephen Boyd , Judy Hsiao , Venkata Prasad Potturu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 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 Hi, On Wed, May 4, 2022 at 10:07 AM Bjorn Andersson wrote: > > On Fri 29 Apr 11:10 CDT 2022, Doug Anderson wrote: > > > Hi, > > > > On Thu, Apr 28, 2022 at 5:02 PM Matthias Kaehlcke wrote: > > > > > > On Wed, Apr 27, 2022 at 10:39:43PM +0530, Srinivasa Rao Mandadapu wrote: > > > > Add LPASS LPI pinctrl properties, which are required for Audio > > > > functionality on herobrine based platforms of rev5+ > > > > (aka CRD 3.0/3.1) boards. > > > > > > > > Signed-off-by: Srinivasa Rao Mandadapu > > > > Co-developed-by: Venkata Prasad Potturu > > > > Signed-off-by: Venkata Prasad Potturu > > > > > > I'm not super firm in pinctrl territory, a few maybe silly questions > > > below. > > > > > > > arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts | 84 +++++++++++++++++++++++ > > > > 1 file changed, 84 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts > > > > index deaea3a..dfc42df 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts > > > > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts > > > > @@ -111,6 +111,90 @@ ap_ts_pen_1v8: &i2c13 { > > > > * - If a pin is not hooked up on Qcard, it gets no name. > > > > */ > > > > > > > > +&lpass_dmic01 { > > > > + clk { > > > > + drive-strength = <8>; > > > > + }; > > > > Ugh, I've been distracted and I hadn't realized we were back to the > > two-level syntax. Definitely not my favorite for all the reasons I > > talked about [1]. I guess you took Bjorn's silence to my response to > > mean that you should switch back to this way? :( > > > > Bjorn: can you clarify? > > > > I didn't think through the fact that &mi2s0_state was specified in the > .dtsi and as such will be partially be overridden by the baord dts. > > > I do prefer the two level style and describing full "states", but as you > say whenever we provide something that will have to be overwritten it's > suboptimal. > > As such, I think your flattened model is preferred in this case How about for future patches we just provided labels at both levels (I'm not suggesting we churn this patch series more): lpass_dmic01_sleep: dmic01-sleep { lpass_dmic01_sleep_clk: clk { pins = "gpio6"; function = "dmic1_clk"; }; lpass_dmic01_sleep_data: data { pins = "gpio7"; function = "dmic1_data"; }; }; Then you can in your pinctrl reference you can just reference the top-level node but boards can override without having to replicate hierarchy... > but it > makes me dislike the partial definition between the dtsi and dts even > more (but I don't have any better suggestion). One other proposal I'd make is that maybe we should change the rules about never putting drive strength in the soc.dtsi file. While it should still be OK for boards to override the drive strength, it seems like a whole lot of biolerplate code to have every board override every pin and say that its drive strength is 2. Similarly, if there's a high speed interface (like eMMC) where a drive strength of 2 is nonsense for any board, it doesn't seem ridiculous to specify a default drive strength of something higher in the soc.dtsi file. I would like to say the same thing goes for for pulls, but it's unfortunately uglier for pulls. :( For instance, nearly everyone has an external pullup for i2c busses. The strength of the pullup needs to be tuned for the i2c bus speed and the impedance of the line. Thus, it would ideally make sense to specify this in the soc.dtsi file. Unfortunately, if we do that and some board _wants_ to use the internal pulls (maybe they're running at a really low speed and/or forgot to add external pulls) then they have to do an ugly "/delete-property/ bias-disable" because adding the "bias-pull-up" doesn't delete the other property and you end up with both. :( That seems bad, so I guess I'd vote to keep banning bias definitions in the soc.dtsi file. Anyway, I'd love your opinion on this. -Doug