* [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1
2026-11-29 0:13 [PATCH 0/3] arm64: dts: qcom: Samsung Galaxy A3 (2015) fixes and SM-A300F support Vladimir Bely
@ 2026-11-29 0:13 ` Vladimir Bely
2026-12-01 13:48 ` Konrad Dybcio
2026-11-29 0:13 ` [PATCH 2/3] dt-bindings: arm: qcom: Document Samsung Galaxy A3 (SM-A300F) Vladimir Bely
2026-11-29 0:13 ` [PATCH 3/3] arm64: dts: qcom: Add " Vladimir Bely
2 siblings, 1 reply; 6+ messages in thread
From: Vladimir Bely @ 2026-11-29 0:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
Vladimir Bely
The Samsung Galaxy A3 (2015) uses an external bypass capacitor on
MICBIAS1 (matching the downstream vendor devicetree). Without
qcom,micbias1-ext-cap, MICBIAS1 noise drowns out AMIC1/AMIC3 capture
(noise floor ~1850 vs ~55 with the property enabled, tested on
SM-A300F).
Enable qcom,micbias1-ext-cap on &pm8916_codec.
Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
---
arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
index 906d31f1e..7c889ab7b 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
@@ -109,6 +109,10 @@
remote-endpoint = <&panel_in>;
};
+&pm8916_codec {
+ qcom,micbias1-ext-cap;
+};
+
&touchkey {
vcc-supply = <®_touch_key>;
vdd-supply = <®_key_led>;
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1
2026-11-29 0:13 ` [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1 Vladimir Bely
@ 2026-12-01 13:48 ` Konrad Dybcio
0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-12-01 13:48 UTC (permalink / raw)
To: Vladimir Bely, Bjorn Andersson, Konrad Dybcio
Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
On 11/29/26 1:13 AM, Vladimir Bely wrote:
> The Samsung Galaxy A3 (2015) uses an external bypass capacitor on
> MICBIAS1 (matching the downstream vendor devicetree). Without
> qcom,micbias1-ext-cap, MICBIAS1 noise drowns out AMIC1/AMIC3 capture
> (noise floor ~1850 vs ~55 with the property enabled, tested on
> SM-A300F).
>
> Enable qcom,micbias1-ext-cap on &pm8916_codec.
>
> Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/3] dt-bindings: arm: qcom: Document Samsung Galaxy A3 (SM-A300F)
2026-11-29 0:13 [PATCH 0/3] arm64: dts: qcom: Samsung Galaxy A3 (2015) fixes and SM-A300F support Vladimir Bely
2026-11-29 0:13 ` [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1 Vladimir Bely
@ 2026-11-29 0:13 ` Vladimir Bely
2026-11-29 0:13 ` [PATCH 3/3] arm64: dts: qcom: Add " Vladimir Bely
2 siblings, 0 replies; 6+ messages in thread
From: Vladimir Bely @ 2026-11-29 0:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
Vladimir Bely
Document the compatible for Samsung Galaxy A3 (2015) LTE variant
(SM-A300F, codename a3lte), which shares its hardware design with
Samsung Galaxy A3U (SM-A300FU, samsung,a3u-eur) except for the modem
firmware memory reservation size.
Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
---
Documentation/devicetree/bindings/arm/qcom.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index a71577958..025f5651e 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -310,6 +310,11 @@ properties:
- yiming,uz801-v3
- const: qcom,msm8916
+ - items:
+ - const: samsung,a3lte
+ - const: samsung,a3u-eur
+ - const: qcom,msm8916
+
- items:
- enum:
- xiaomi,riva
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 3/3] arm64: dts: qcom: Add Samsung Galaxy A3 (SM-A300F)
2026-11-29 0:13 [PATCH 0/3] arm64: dts: qcom: Samsung Galaxy A3 (2015) fixes and SM-A300F support Vladimir Bely
2026-11-29 0:13 ` [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1 Vladimir Bely
2026-11-29 0:13 ` [PATCH 2/3] dt-bindings: arm: qcom: Document Samsung Galaxy A3 (SM-A300F) Vladimir Bely
@ 2026-11-29 0:13 ` Vladimir Bely
2026-12-01 13:41 ` Nikita Travkin
2 siblings, 1 reply; 6+ messages in thread
From: Vladimir Bely @ 2026-11-29 0:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
Vladimir Bely
Add devicetree for the Samsung Galaxy A3 (2015) SM-A300F (a3lte). It is
hardware-identical to the SM-A300FU (msm8916-samsung-a3u-eur.dts) except
that its modem firmware uses a smaller reserved memory region
(0x5100000 vs 0x5400000, freeing 3 MiB of RAM on a 1 GiB device).
Include msm8916-samsung-a3u-eur.dts and override model, compatible, and
&mpss_mem. Tested on SM-A300F (display, Wi-Fi, audio, modem).
Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
---
arch/arm64/boot/dts/qcom/Makefile | 1 +
.../arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts | 15 +++++++++++++++
2 files changed, 16 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 193108793..c48c4463c 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -118,6 +118,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-harpia.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-osprey.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-surnia.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3lte.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-coreprimeltevzw.dtb
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
new file mode 100644
index 000000000..7d402948d
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+/dts-v1/;
+
+#include "msm8916-samsung-a3u-eur.dts"
+
+/ {
+ model = "Samsung Galaxy A3 (SM-A300F)";
+ compatible = "samsung,a3lte", "samsung,a3u-eur", "qcom,msm8916";
+};
+
+/* The SM-A300F modem firmware uses a smaller region than SM-A300FU */
+&mpss_mem {
+ reg = <0x0 0x86800000 0x0 0x5100000>;
+};
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 3/3] arm64: dts: qcom: Add Samsung Galaxy A3 (SM-A300F)
2026-11-29 0:13 ` [PATCH 3/3] arm64: dts: qcom: Add " Vladimir Bely
@ 2026-12-01 13:41 ` Nikita Travkin
0 siblings, 0 replies; 6+ messages in thread
From: Nikita Travkin @ 2026-12-01 13:41 UTC (permalink / raw)
To: Vladimir Bely
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Stephan Gerhold,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
devicetree, linux-kernel
Vladimir Bely писал(а) 29.11.2026 05:13:
> Add devicetree for the Samsung Galaxy A3 (2015) SM-A300F (a3lte). It is
> hardware-identical to the SM-A300FU (msm8916-samsung-a3u-eur.dts) except
> that its modem firmware uses a smaller reserved memory region
> (0x5100000 vs 0x5400000, freeing 3 MiB of RAM on a 1 GiB device).
>
> Include msm8916-samsung-a3u-eur.dts and override model, compatible, and
> &mpss_mem. Tested on SM-A300F (display, Wi-Fi, audio, modem).
>
> Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
> ---
> arch/arm64/boot/dts/qcom/Makefile | 1 +
> .../arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts | 15 +++++++++++++++
> 2 files changed, 16 insertions(+)
> create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
>
> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
> index 193108793..c48c4463c 100644
> --- a/arch/arm64/boot/dts/qcom/Makefile
> +++ b/arch/arm64/boot/dts/qcom/Makefile
> @@ -118,6 +118,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-harpia.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-osprey.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-motorola-surnia.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb
> +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3lte.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb
> dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-coreprimeltevzw.dtb
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
> new file mode 100644
> index 000000000..7d402948d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +
> +/dts-v1/;
> +
> +#include "msm8916-samsung-a3u-eur.dts"
> +
> +/ {
> + model = "Samsung Galaxy A3 (SM-A300F)";
> + compatible = "samsung,a3lte", "samsung,a3u-eur", "qcom,msm8916";
> +};
> +
> +/* The SM-A300F modem firmware uses a smaller region than SM-A300FU */
I'm a bit confused by this... Per my understanding the firmware size
in part depends on a specific android version the blob was taken from,
and some distros (i.e. Nura) deliberately load the firmware from the
modem partition (thus depending on whichever android was there). So
it may happen that a device has a version of modem firmwrae that in
fact needs those extra 3MiB...
A lot of work was done in downstream/distros to avoid having those
problems that stem from vendors like Samsung having firmware
differences (like different pk hash) in device variants that are
otherwise fully compatible hardware wise. Thus, while a3/a5 was
upstreamed before that work (and thus had a specific name from the
abundance of caution), it was treated as "all a3 hardware" downstream
for a long while. I'm not sure 3MiB are worth going down the madness
of supporting tens (hundreds?) of regional variants for those
devices as separate models when there's no actual hw difference.
Is adding a new dtb actually warranted here?
Nikita
> +&mpss_mem {
> + reg = <0x0 0x86800000 0x0 0x5100000>;
> +};
^ permalink raw reply [flat|nested] 6+ messages in thread