Re: [PATCH 3/3] arm64: dts: qcom: Add Samsung Galaxy A3 (SM-A300F)

From: Nikita Travkin

Date: Tue Dec 01 2026 - 08:42:06 EST


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@xxxxxxxxx>
> ---
> 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>;
> +};