devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem
@ 2024-06-19 11:15 Lin, Meng-Bo
  2024-06-19 19:16 ` Konrad Dybcio
  2024-06-21  6:11 ` Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Lin, Meng-Bo @ 2024-06-19 11:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephan Gerhold, Nikita Travkin, linux-arm-msm,
	devicetree, ~postmarketos/upstreaming

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" <linmengbo06890@proton.me>
---
 .../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 <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
@@ -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 = <KEY_VOLUMEDOWN>;
 	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";
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem
  2024-06-19 11:15 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem Lin, Meng-Bo
@ 2024-06-19 19:16 ` Konrad Dybcio
  2024-06-21  6:11 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2024-06-19 19:16 UTC (permalink / raw)
  To: Lin, Meng-Bo, linux-kernel
  Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephan Gerhold, Nikita Travkin, linux-arm-msm, devicetree,
	~postmarketos/upstreaming



On 6/19/24 13:15, Lin, Meng-Bo wrote:
> 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" <linmengbo06890@proton.me>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem
  2024-06-19 11:15 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem Lin, Meng-Bo
  2024-06-19 19:16 ` Konrad Dybcio
@ 2024-06-21  6:11 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2024-06-21  6:11 UTC (permalink / raw)
  To: linux-kernel, Lin, Meng-Bo
  Cc: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephan Gerhold, Nikita Travkin, linux-arm-msm, devicetree,
	~postmarketos/upstreaming


On Wed, 19 Jun 2024 11:15:29 +0000, Lin, Meng-Bo wrote:
> 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
> 
> [...]

Applied, thanks!

[1/1] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem
      commit: a39e850037fa520b3e089d4d11b3c3baef4de41e

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-21  6:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 11:15 [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add sound and modem Lin, Meng-Bo
2024-06-19 19:16 ` Konrad Dybcio
2024-06-21  6:11 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).