mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikita Travkin <nikita@trvn.ru>
To: Vladimir Bely <vlwwwwww@gmail.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	Stephan Gerhold <stephan.gerhold@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: qcom: Add Samsung Galaxy A3 (SM-A300F)
Date: Tue, 01 Dec 2026 18:41:54 +0500	[thread overview]
Message-ID: <f000471c29351b76da4ae9b68714c1e4@trvn.ru> (raw)
In-Reply-To: <20261129001334.988276-4-vlwwwwww@gmail.com>

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

      reply	other threads:[~2026-12-01 13:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-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
2026-12-01 13:41   ` Nikita Travkin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f000471c29351b76da4ae9b68714c1e4@trvn.ru \
    --to=nikita@trvn.ru \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=stephan.gerhold@linaro.org \
    --cc=vlwwwwww@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®