Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2193174rdh; Tue, 26 Sep 2023 16:00:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDo3xaBOVe5tCaVQXgM5Nl47gLx2DSagWxGpAvULF1cZ36tFYTdxEn3YuShtMyNR0qw0Nn X-Received: by 2002:a05:6300:808a:b0:15e:5952:4fc1 with SMTP id ap10-20020a056300808a00b0015e59524fc1mr221685pzc.29.1695769240867; Tue, 26 Sep 2023 16:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695769240; cv=pass; d=google.com; s=arc-20160816; b=oN6XCzXKTwoSVBaNj6EMsuKAAmCV8NZb6udz84M/vmd9XXr1KXdSP4T5DUgDRLYq7N DNc7YCStxyaK3Q6k9zA3BXsFJa6tJluNuAOgNYudLeffd5OkqagcKMR4oyvi56T5S2Df IO6EUncEwSaNTIhKUbUsOAlRswq0IVpe/eRJhdwrDbNliOAbhJDH/SmSxQhFQWfSHjyn wNym0uQOfA2Hfgb1v5OSjAYRkdi5IddTZPCjBZw9DmFOEYlOg7OmVUEGrnNkloX4q1Zp ZSF6VvI1E8fj/kdKbtB2dEvopOgOvFGWshCHoj+T+Rl1YkwGmd82bcQKntHjIx+7v0H+ G3UA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=2f7d9Y0ED9nXfENKGMQIn0vTxb4lnSJrmVirloDnY4o=; fh=iossAG16xdVBX07NyB6Lcxp4rMgahG7ZP+63bN01PA8=; b=t/7qN/b5/N9YcGXsvvL3nnmZh5D3I+FWHwSMIG4kPRmojTyhym0YnOpDSR/89z3SjH 0GMchb/3BUcpZNoeEBk4EFwzQbYa5dqB0IncqBwfPucYRsRjohQYGSyvUyb8EKSPjh06 uGLwNY0F98NMpXSaZhkao8fm8AW/Jd6fWDJ8NDLHic0y96Xv1f4Bq6SbqhA1xcFuoag1 X5T73ce8tuewVWERv8SqAoMCaRWPpBV79N0aC/N59Q6KtsB4MO3tClt/wMGR5od7qaGE XUU4QTDhrpaMdF9zHUHdBOIIZNhIMjTMLowmBFE5ZhF9pc5b6mHhuI6lnE7gns0TRIkQ /Xog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=H0dq7A1Q; dkim=neutral (no key) header.i=@gerhold.net header.b=G7Yq9N7I; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q4-20020a170902dac400b001c568490749si13967421plx.502.2023.09.26.16.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 16:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=H0dq7A1Q; dkim=neutral (no key) header.i=@gerhold.net header.b=G7Yq9N7I; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 75D59802D45E; Tue, 26 Sep 2023 12:35:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbjIZTfn (ORCPT + 99 others); Tue, 26 Sep 2023 15:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbjIZTfk (ORCPT ); Tue, 26 Sep 2023 15:35:40 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F8ADE; Tue, 26 Sep 2023 12:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695756925; cv=none; d=strato.com; s=strato-dkim-0002; b=ACcTc/7xLVKm9MQagXeedFOflcfO7CeyZW1ewfiKuOIZUPFAygewerJwbkzjwZxrm6 bjly+24xw+ZI05iwmDuLPb3Hcdm8yONZUiq1+vJtafH4EI/Lr4WeD+DnHwDjcKJClRnl Ze4MdAdQGu29srE5eqT+9hFDoJ+glRBYvUgEQ0Aeyj505rrOiT47IfygoyNHWnPmXHiQ f1or1j46OsSg4bcN+Jdyqsm8qoRz+Odiew1Wp6ZusKA1bFsdUDZQiHsRi5awX/aan1Q1 3dp8il9MbiTUMQ0fcr+JJNSrXa0lyzHnSO5ZOtiUlxAjx4aixEupW5fTs7eoHbtpXSDt 2oZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1695756925; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=2f7d9Y0ED9nXfENKGMQIn0vTxb4lnSJrmVirloDnY4o=; b=gtcOhIk/t+B5pJFUou2qF847Hk277QYdD92W8TNYEyLbXfR+0qsgJzh4BueTODuBDi uq3qzL9NYhIYgIVazBiABkjvl1OGO0FwzKT1XPHZ48so0WZtY23AD7tofyUhBmlXq2Ne mzf5pmPdPDCAVuHF5I1g2yx7XHnav9kODooh3OIuBCyKTGdHTx5NuMZF/u0+8JzUJY06 4NWMMdzALyiDdbU9TX7xP0Bu7rU9227OkAfQKbbe3z0oKyC8b9WRrHj1+rBMuZT9vJjj 9KmoGCb+6xcWQOTgNjItjbfrBgbW+zWqPkG+xQO7zcBdw9yYmCsC86HcK2BV44WdgHmG pVCg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1695756925; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=2f7d9Y0ED9nXfENKGMQIn0vTxb4lnSJrmVirloDnY4o=; b=H0dq7A1QC/g2HwSQXIi1o9I4cwNJfD6gywZH/HKTNQKpgwEfMumDuMuuQa825TpGyp 3bxlj+71G0GpotptWqlQDpg3LKcK74ghdxU8v3t7aQLmTg5TtFiBTMkXsiZXOfpCEqbv P1uhZdZGTUPlxJF5fQV4d705n57coZzlQvXKMRSUcRj6lXUFltwT0RUgmS/Nh/3Hnt+a C+Rq6zRAZWesZ7h8uTu/dPSmlWGMGLxQZD1jxO/dpeQ2DqSnNp+wYMygul15B+vwStfp sDT5nXQzqZe1JmO3hb4okskml9fEjLgusxRlnvmykKIeImi7wRn/GqBBIJ/JWtnqh6aq dIgQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1695756925; s=strato-dkim-0003; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=2f7d9Y0ED9nXfENKGMQIn0vTxb4lnSJrmVirloDnY4o=; b=G7Yq9N7I+LagQsF0yojR+vQkjETgk88pyFv2bFdAPoirTGXcwLMeXVG9p1UY7HbLIZ A7vIFa0vWxhXC2bNf2Cg== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4paA8piJ1A==" Received: from gerhold.net by smtp.strato.de (RZmta 49.8.2 SBL|AUTH) with ESMTPSA id R04c57z8QJZOgNo (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 26 Sep 2023 21:35:24 +0200 (CEST) Date: Tue, 26 Sep 2023 21:35:23 +0200 From: Stephan Gerhold To: Konrad Dybcio Cc: Bjorn Andersson , Andy Gross , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Bryan O'Donoghue , Vincent Knecht Subject: Re: [PATCH 07/13] arm64: dts: qcom: msm8916-alcatel-idol347: Add sound and modem Message-ID: References: <20230926-msm8916-modem-v1-0-398eec74bac9@gerhold.net> <20230926-msm8916-modem-v1-7-398eec74bac9@gerhold.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 12:35:41 -0700 (PDT) On Tue, Sep 26, 2023 at 08:58:12PM +0200, Konrad Dybcio wrote: > On 26.09.2023 18:51, Stephan Gerhold wrote: > > From: Vincent Knecht > > > > Enable sound and modem for the Alcatel Idol 3 (4.7"). The setup is > > similar to most MSM8916 devices, i.e.: > > > > - QDSP6 audio > > - Microphones via digital/analog codec in MSM8916/PM8916 > > - WWAN Internet via BAM-DMUX > > > > except: > > > > - Stereo NXP TFA9890 codecs for speakers on Quaternary MI2S > > - These are also used as earpieces at the top/bottom. > > - Asahi Kasei AK4375 headphone codec on Secondary MI2S > > -> Primary MI2S is not used for playback > > > > Signed-off-by: Vincent Knecht > > [Stephan: minor cleanup, add consistent commit message] > > Signed-off-by: Stephan Gerhold > > --- > > There are some trivial conflicts unless > > https://lore.kernel.org/linux-arm-msm/20230921-msm8916-rmem-fixups-v1-3-34d2b6e721cf@gerhold.net/ > > is applied first. But given that there are important fixups for the > > dynamic reserved memory changes in that series it should preferably > > get applied before this one anyway. > > --- > > .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 164 +++++++++++++++++++++ > > 1 file changed, 164 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts > > index fade93c55299..ef5fc9289754 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts > > +++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts > > @@ -3,6 +3,8 @@ > > /dts-v1/; > > > > #include "msm8916-pm8916.dtsi" > > +#include "msm8916-modem-qdsp6.dtsi" > > + > > #include > > #include > > #include > > @@ -22,6 +24,19 @@ chosen { > > stdout-path = "serial0"; > > }; > > > > + reserved-memory { > > + /delete-node/ reserved@86680000; > > + /delete-node/ rmtfs@86700000; > Deleting with a label reference is strongly preferred to avoid > mistakes. > I would say the opposite applies here. The deletions are based on the assumption that the nodes are at the address that are listed here. If you would move rmtfs somewhere else the adjustments made here must be re-evaulated. /delete-node/ throws an error if the referenced name does not exist, so it's exactly the indication we need if someone makes changes to the original node in the SoC dtsi. Note that this is different from property assignments, i.e. / { reserved-memory { rmtfs@86700000 { status = "disabled"; }; }; }; instead of &rmtfs { status = "disabled"; }; because here there would not be an error if the node is renamed. > [...] > > > > > +&q6afedai { > > + dai@18 { > > + reg = ; > > + qcom,sd-lines = <0>; > > + }; > > + dai@22 { > Missing newline above > Thanks, will fix this! > > > + > > +&sound_dai_primary { > > + status = "disabled"; > > +}; > > + > Hm, gives me an idea to sprinkle a bit more /omit-if-no-ref/ in > patch 3.. > (See reply in patch 3, /omit-if-no-ref/ sadly only works for phandle references...) Thanks, Stephan