From patchwork Wed Jun 19 11:15:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 13703671 Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 557BB7D3F4 for ; Wed, 19 Jun 2024 11:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.132 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718795745; cv=none; b=vDUTGAO+PaHKOozpTpUo+NmcGIkm1DSKqjeb9ToB8hDz5ds599ERcubj7CyINONG8F3faNtRneATtFC5mbI+9qIyyMVjIkrovCBkUqozPto2WR6y3ZFajI5/XV4FBSi50Q7OlTgj/FSsDQGiijfpc2hqT+kGwXs0n332pWkyrdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718795745; c=relaxed/simple; bh=mcTvzLdXuEy/Dp9EJLVgfwKz+iNqvo/eDWKMG+qUySw=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=NUwpVIgwLjdu3QfKg/qO0TQLzMAS0eeV/SM8WPJxnMYKTjLwJkEnkK8+moYZAjvS6cRSuCC/W9GCEXGwut6bKu0cl4RAvAVrpCZogq1nK371a7mtWhvlvOEddmjn7i/Kc8B+pBC7dhLY/5hKp7SInQHy1Xh11unRYg6/6fx0p/U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=L2Dh1tet; arc=none smtp.client-ip=185.70.40.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="L2Dh1tet" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1718795735; x=1719054935; bh=pUljz4y2HKJetYfMJe70iGCMPlncjaDiR1toauc/Lok=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=L2Dh1tetMCpAPDJXNqoHcD9aDMg2NoyIu5x+I2FbULxGjH7VdhRJQIPKv+xHGElXx XUuOttFCE/7NWP8BcOkvZbc8VMnC9+WPtOai9JavL+VJOgtXRFWViMW/XqzJ9K8upF +TkT7Z0q56ePar1SRL7OwAPItiPbrypomtpZvE6rjZxu0ukEdkrNcMPd0qoC7uB4CN UQmShHkUMETZn9k6+P6aoqcZqE5DWKR5tglbmOOXgnKTnmO/B/xSWonPbepaqne2bY JiwcLIfCDM1LnnKBP1vCzpSids8vuXd0PgNu1a2uZw0FSPlQA+zQvrjz56wnUv0w+F 5aTfwYoqTTmsw== Date: Wed, 19 Jun 2024 11:15:29 +0000 To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem Message-ID: <20240619111523.54301-1-linmengbo06890@proton.me> Feedback-ID: 112742687:user:proton X-Pm-Message-ID: d2bc8f875f084c6ffe3960435ad450ce22129386 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Enable sound and modem for the GPLUS FL8005A. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX Signed-off-by: "Lin, Meng-Bo" Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts index b748d140b52e..e6ed5544a11b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -3,6 +3,7 @@ /dts-v1/; #include "msm8916-pm8916.dtsi" +#include "msm8916-modem-qdsp6.dtsi" #include #include @@ -111,6 +112,17 @@ &blsp_uart2 { status = "okay"; }; +&mpss_mem { + reg = <0x0 0x86800000 0x0 0x5000000>; +}; + +&pm8916_codec { + qcom,micbias-lvl = <2800>; + qcom,mbhc-vthreshold-low = <150 180 237 450 500>; + qcom,mbhc-vthreshold-high = <150 180 237 450 500>; + qcom,hphl-jack-type-normally-open; +}; + &pm8916_resin { linux,code = ; status = "okay"; @@ -141,6 +153,14 @@ &sdhc_2 { status = "okay"; }; +&sound { + model = "msm8916-1mic"; + audio-routing = + "AMIC1", "MIC BIAS External1", + "AMIC2", "MIC BIAS Internal2", + "AMIC3", "MIC BIAS External1"; +}; + &usb { extcon = <&usb_id>, <&usb_id>; status = "okay";