From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796410745; b=toyDhSIRYF2WDwQ2QXdznDZHAp42BsgSylUkidrby7hT6lVUDeDJ746ftfVRNgjuMUd4 VxysX97NTOW+9mJwwGW0CVncn1k11qGafmHrMF/MKTaNAwXpol1ljN56T/YHNy3LMxTSS 53rDTfEKnfHLhNa5+j2uTZe1nBcf8BEgs9BeXLK2jj3vLExPdMMPgNgsz6cT6trO4Hg55 fpjnEHVsoydDyJd4F5jWExMoe8cAdCUYoQ41i8D4E6kOJX4CE2RlmLh/c3SB6xeO1LYkW DDLvVABNNf2USVi73xxZ5aO+PuWIoR76wOPU4Oek2rGQWIb5PSbEOUUZfCajn6/7nDg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796410745; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=M2zrR9e3BAyFMdOOmfCPdyRJjkYC6EuTohhmZFeYyiw=; b=k7UMecGiFzIvsel+WqF9EJhKz8s8aC8E1fnVzwp/Fm9HJCwo/LBKUa4yqDN954wtJgdb MSu2lttq3e8oezwf9108ZLdBzsLJ+nTqj0G8vIDbbh+uxd0BMJN9lLpthi4421kT3vGXU xKkVeEIgCzw8KWlyLspaCMQC8fJDAGqEwCiT6lfMllvL5OrV8Nv4lzmHn0QrhCGCFcP1c SF5KNS1jWOcguuSQAQ0jWh1mxwdoq7g9VxQlw2fjRPUnwlYPTwPXw8OHR9r5D9LrR+Mo3 mYu9esURoFl+lM+P+/4smYygGBm68dV0dnCxZi5HJjYBTURJ9Ni1/hjMvI8QFdCSwSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F+B2OurA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6A84606A32C; Fri, 4 Dec 2026 18:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F+B2OurA Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4D231F00936; Fri, 4 Dec 2026 18:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796410745; bh=M2zrR9e3BAyFMdOOmfCPdyRJjkYC6EuTohhmZFeYyiw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=F+B2OurAxET+r6gwQsQGJHOr+cer3u4vV4RcAzApp0ZscW215BH8BlaC90AKjGRwr bQ2G2yf6W1Mw1ZoN5yM4ior4clUroaHHGsxI0hatEj25jxEoZZz4WHS8rQ/CgJAcsU iIMmjLgcBgGld4R0jMUq4Go7Txw0xVqFncvZ04aivVpDKvNitpBvXDt7Ct1P1fEG6Y HThDV1A/i5Nm5r+UdMXgEPEdj5x8wiGACvXQ3jcjSXY/apQG8SzU+TFZUgM7TLIDOk 9HlvIMtVbVzdbzrayyUUrLReLpZ/vqQlB1jSsx1qZiYXRI0GsfB5o0co2k1IpfUq7u yNu4iDOm/WBoA== Date: Fri, 4 Dec 2026 12:59:01 -0600 From: Bjorn Andersson To: Karthik S Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] arm64: dts: qcom: qcs6490-rb3gen2: Add WCD headset playback and record for qcs6490-rb3gen2 industrial mezzanine Message-ID: References: <20261022125503.1231758-1-karthik.s@oss.qualcomm.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261022125503.1231758-1-karthik.s@oss.qualcomm.com> On Thu, Oct 22, 2026 at 06:25:03PM +0530, Karthik S wrote: > Add WCD playback and capture DAI link to sound node. Add WCD > codec node and corresponding soundwire nodes to perform > headset playback and record. > Doesn't pass dt-validate, please try again. > --- > Changes since v2: > - Updated sound card model name to "QCS6490-RB3Gen2-Industrial-Mezz". > - Fixed changelog placement (moved to below ---). > > Changes since v1: > - "audio-codec" node moved before "regulator". > - renaming node from "audio-codec-0" to "audio-codec". > - dt-nodes sorted alphabetically. > - patchwise run on the patch and indentation errors fixed. > > Link: https://lore.kernel.org/all/eab2d0b8-a949-47d8-b953-fe34bd2fd869@kernel.org/ [v2] > Signed-off-by: Karthik S Look at other patches on the list, none of them has this here. In fact, use b4 to prepare and send you patches instead of making these kind of manual mistakes. Thanks, Bjorn > --- > .../qcs6490-rb3gen2-industrial-mezzanine.dtso | 133 ++++++++++++++++++ > 1 file changed, 133 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso > index 46bb52c667a4..e9713ec71dbf 100644 > --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso > +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso > @@ -6,11 +6,35 @@ > /dts-v1/; > /plugin/; > #include > +#include > #include > #include > > &{/} { > > + wcd9370: audio-codec { > + compatible = "qcom,wcd9370-codec"; > + > + pinctrl-0 = <&wcd_default>; > + pinctrl-names = "default"; > + > + reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>; > + vdd-buck-supply = <&vph_pwr>; > + vdd-rxtx-supply = <&vph_pwr>; > + vdd-px-supply = <&vph_pwr>; > + vdd-mic-bias-supply = <&vph_pwr>; > + qcom,micbias1-microvolt = <1800000>; > + qcom,micbias2-microvolt = <1800000>; > + qcom,micbias3-microvolt = <1800000>; > + qcom,micbias4-microvolt = <1800000>; > + qcom,hphl-jack-type-normally-closed = <1>; > + qcom,ground-jack-type-normally-closed = <1>; > + qcom,rx-device = <&wcd937x_rx>; > + qcom,tx-device = <&wcd937x_tx>; > + > + #sound-dai-cells = <1>; > + }; > + > vreg_0p9: regulator-0v9 { > compatible = "regulator-fixed"; > regulator-name = "VREG_0P9"; > @@ -48,6 +72,14 @@ st33htpm0: tpm@0 { > }; > }; > > +&lpass_rx_macro { > + status = "okay"; > +}; > + > +&lpass_tx_macro { > + status = "okay"; > +}; > + > &pcie0 { > perst-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; > > @@ -244,6 +276,101 @@ pcie@0,1 { > }; > }; > > +&sound { > + model = "QCS6490-RB3Gen2-Industrial-Mezz"; > + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", > + "SpkrRight IN", "WSA_SPK2 OUT", > + "IN1_HPHL", "HPHL_OUT", > + "IN2_HPHR", "HPHR_OUT", > + "AMIC2", "MIC BIAS2", > + "TX SWR_ADC1", "ADC2_OUTPUT", > + "VA DMIC0", "vdd-micb", > + "VA DMIC1", "vdd-micb", > + "VA DMIC2", "vdd-micb", > + "VA DMIC3", "vdd-micb"; > + > + wcd-capture-dai-link { > + link-name = "WCD Capture"; > + > + codec { > + sound-dai = <&wcd9370 1>, <&swr1 0>, <&lpass_tx_macro 0>; > + }; > + > + cpu { > + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; > + }; > + > + platform { > + sound-dai = <&q6apm>; > + }; > + }; > + > + wcd-playback-dai-link { > + link-name = "WCD Playback"; > + > + codec { > + sound-dai = <&wcd9370 0>, <&swr0 0>, <&lpass_rx_macro 0>; > + }; > + > + cpu { > + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; > + }; > + > + platform { > + sound-dai = <&q6apm>; > + }; > + }; > +}; > + > +&swr0 { > + status = "okay"; > + > + wcd937x_rx: codec@0,4 { > + compatible = "sdw20217010a00"; > + reg = <0 4>; > + > + /* > + * WCD9370 RX Port 1 (HPH_L/R) <==> SWR1 Port 1 (HPH_L/R) > + * WCD9370 RX Port 2 (CLSH) <==> SWR1 Port 2 (CLSH) > + * WCD9370 RX Port 3 (COMP_L/R) <==> SWR1 Port 3 (COMP_L/R) > + * WCD9370 RX Port 4 (LO) <==> SWR1 Port 4 (LO) > + * WCD9370 RX Port 5 (DSD_L/R) <==> SWR1 Port 5 (DSD) > + */ > + qcom,rx-port-mapping = <1 2 3 4 5>; > + > + /* > + * Static channels mapping between slave and master rx port channels. > + * In the order of slave port channels, which is > + * hph_l, hph_r, clsh, comp_l, comp_r, lo, dsd_r, dsd_l. > + */ > + qcom,rx-channel-mapping = /bits/ 8 <1 2 1 1 2 1 1 2>; > + }; > +}; > + > +&swr1 { > + status = "okay"; > + > + wcd937x_tx: codec@0,3 { > + compatible = "sdw20217010a00"; > + reg = <0 3>; > + > + /* > + * WCD9370 TX Port 1 (ADC1) <=> SWR2 Port 2 > + * WCD9370 TX Port 2 (ADC2, 3) <=> SWR2 Port 2 > + * WCD9370 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 > + * WCD9370 TX Port 4 (DMIC4,5,6,7) <=> SWR2 Port 4 > + */ > + qcom,tx-port-mapping = <1 1 2 3>; > + > + /* > + * Static channel mapping between slave and master tx port channels. > + * In the order of slave port channels which is adc1, adc2, adc3, > + * mic0, dmic1, mbhc, dmic2, dmic3, dmci4, dmic5, dmic6, dmic7. > + */ > + qcom,tx-channel-mapping = /bits/ 8 <1 2 1 1 2 3 3 4 1 2 3 4>; > + }; > +}; > + > &tlmm { > pcie0_tc9563_resx_n: pcie0-tc9563-resx-state { > pins = "gpio78"; > @@ -283,6 +410,12 @@ pcie1_tc9563_resx_n: pcie1-tc9563-resx-state { > output-enable; > }; > > + wcd_default: wcd-reset-n-active-state { > + pins = "gpio83"; > + function = "gpio"; > + drive-strength = <16>; > + bias-disable; > + }; > }; > > &wifi { > -- > 2.34.1 >