Skip to contentSkip to conversation

arm64: dts: qcom: Samsung Galaxy A3 (2015) fixes and SM-A300F support

PATCH New Vladimir Bely 1 participant 4 messages Nov 29

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: qcom: Samsung Galaxy A3 (2015) fixes and SM-A300F support

This series enables MICBIAS1 external bypass-capacitor mode on the Samsung Galaxy A3 (2015) devicetree and adds dedicated DT support for the SM-A300F (a3lte) variant:

- Patch 1 enables qcom,micbias1-ext-cap on &pm8916_codec in msm8916-samsung-a3u-eur.dts to eliminate microphone noise on AMIC1/AMIC3.
- Patch 2 documents the "samsung,a3lte" compatible (with "samsung,a3u-eur" fallback) in Documentation/devicetree/bindings/arm/qcom.yaml.
- Patch 3 adds msm8916-samsung-a3lte.dts for SM-A300F with its smaller mpss_mem reservation (0x5100000 vs 0x5400000 on SM-A300FU).

Validated with dt-doc-validate and dt-validate (0 warnings) and tested on Samsung Galaxy A3 (SM-A300F).

Vladimir Bely (3):
arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for
MICBIAS1
dt-bindings: arm: qcom: Document Samsung Galaxy A3 (SM-A300F)
arm64: dts: qcom: Add Samsung Galaxy A3 (SM-A300F)

 Documentation/devicetree/bindings/arm/qcom.yaml   |  5 +++++
 arch/arm64/boot/dts/qcom/Makefile                 |  1 +
 .../arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts | 15 +++++++++++++++
 .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts     |  4 ++++
 4 files changed, 25 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts

base-commit: dde0308a2f8867806a444df1fdd7e685b1c56d5b

Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/3 arm64: dts: qcom: msm8916-samsung-a3u-eur: Enable external cap for MICBIAS1

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.

---
 arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts +4 -0
index 906d31f1e..7c889ab7b 100644
@@ -109,6 +109,10 @@
 	remote-endpoint = <&panel_in>;
 };
 
+&pm8916_codec {
+	qcom,micbias1-ext-cap;
+};
+
 &touchkey {
 	vcc-supply = <&reg_touch_key>;
 	vdd-supply = <&reg_key_led>;
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/3 dt-bindings: arm: qcom: Document Samsung Galaxy A3 (SM-A300F)

In reply to 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.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +5 -0
index a71577958..025f5651e 100644
@@ -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
Signature · 1 line
2.43.0
#3 lore raw

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

In reply to 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).

---
 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
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 193108793..c48c4463c 100644
@@ -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
arch/arm64/boot/dts/qcom/msm8916-samsung-a3lte.dts new file +15 -0
new file mode 100644
index 000000000..7d402948d
@@ -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>;
+};
Signature · 1 line
2.43.0