Skip to content

Add support for Samsung Galaxy S4 Mini Value Edition

Stephan Gerhold linux-arm-kernel linux-arm-msm linux-devicetree phone-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 1 replyIn review
  2. v115 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Add missing word in a comment in PATCH 1/15
- Clarify ARM32 situation in dt-bindings patches

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15arm64: dts: qcom: Add device tree for Samsung Galaxy S4 Mini Value Editionarch/arm64/boot/dts/qcom/Makefile arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+302 -00 replies
2/15arm64: dts: qcom: msm8916-samsung-serranove: Add touch screenarch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+50 -00 replies
3/15arm64: dts: qcom: msm8916-samsung-serranove: Add touch keyarch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+87 -00 replies
4/15arm64: dts: qcom: msm8916-samsung-serranove: Add IMUarch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+23 -00 replies
5/15arm64: dts: qcom: msm8916-samsung-serranove: Add rt5033 batteryarch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+23 -00 replies
6/15arm64: dts: qcom: msm8916-samsung-serranove: Add NFCarch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts+50 -00 replies
7/15ARM: qcom: Add ARCH_MSM8916 for MSM8916 on ARM32arch/arm/mach-qcom/Kconfig+10 -00 replies
8/15dt-bindings: arm: cpus: Document qcom, msm8916-smp enable-methodDocumentation/devicetree/bindings/arm/cpus.yaml+4 -11 reply
9/15ARM: qcom: Add qcom, msm8916-smp enable-method identical to MSM8226arch/arm/mach-qcom/platsmp.c+1 -00 replies
10/15dt-bindings: soc: qcom: spm: Document qcom, msm8916-saw2-v3.0-cpuDocumentation/devicetree/bindings/soc/qcom/qcom,spm.yaml+1 -00 replies
11/15soc: qcom: spm: Add 8916 SPM register datadrivers/soc/qcom/spm.c+21 -00 replies
12/15firmware: qcom: scm: Add support for MC boot address APIdrivers/firmware/qcom_scm.c drivers/firmware/qcom_scm.h+71 -170 replies
13/15arm64: dts: qcom: msm8916: Add CPU ACC and SAW/SPMarch/arm64/boot/dts/qcom/msm8916.dtsi+56 -00 replies
14/15ARM: dts: qcom: msm8916: Add include for SMP without PSCI on ARM32arch/arm/boot/dts/qcom-msm8916-smp.dtsi+62 -00 replies
15/15ARM: dts: qcom: msm8916-samsung-serranove: Include dts from arm64arch/arm/boot/dts/Makefile arch/arm/boot/dts/qcom-msm8916-samsung-serranove.dts+4 -00 replies

Reviews trailers per patch

2 of 15 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15R-b
9/15
10/15A-b
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/15] Add support for Samsung Galaxy S4 Mini Value Edition

This series adds support for booting mainline Linux on the Samsung Galaxy S4 Mini Value Edition. The device is based on the Qualcomm MSM8916 SoC and quite similar to the already supported Samsung Galaxy A3/A5. With some additional patches it is almost fully functional, including display, touch screen, GPU, audio, modem (voice calls, SMS, mobile data) and sensors.

I made most of the patches almost 2 years ago but I was long unsure if I should submit them upstream. This is because the device has one big limitation:
Samsung released it with a signed 32-bit-only TrustZone firmware which is not able to boot ARM64 Linux. This means the device can actually only boot ARM32.

However, since device trees are independent of the kernel architecture and all the necessary drivers compile on ARM32 as well it is actually extremely straightforward to build an ARM32 kernel for MSM8916 (which is normally arm64).

The only necessary additions are for SMP/cpuidle without PSCI on ARM32. However, the diffstat below makes it quite obvious that the maintenance overhead for this is absolutely negligible. The SoC is almost identical to previous 32-bit SoCs like MSM8226, so it is pretty much just adding new definitions/compatibles for already existing code.

Being able to boot ARM32 Linux on MSM8916 might be also a possible opportunity for CI systems. At the moment, 32-bit Qualcomm platforms are not very well represented there. Booting ARM32 on MSM8916/APQ8016 would allow re-using the DragonBoard 410c which is often already used for automated CI testing.

Changes in v2:
- Add missing word in a comment in PATCH 1/15
- Clarify ARM32 situation in dt-bindings patches

v1: https://lore.kernel.org/phone-devel/[email protected]/

Lina Iyer (1):
soc: qcom: spm: Add 8916 SPM register data

Stephan Gerhold (14):
arm64: dts: qcom: Add device tree for Samsung Galaxy S4 Mini Value
Edition
arm64: dts: qcom: msm8916-samsung-serranove: Add touch screen
arm64: dts: qcom: msm8916-samsung-serranove: Add touch key
arm64: dts: qcom: msm8916-samsung-serranove: Add IMU
arm64: dts: qcom: msm8916-samsung-serranove: Add rt5033 battery
arm64: dts: qcom: msm8916-samsung-serranove: Add NFC
ARM: qcom: Add ARCH_MSM8916 for MSM8916 on ARM32
dt-bindings: arm: cpus: Document qcom,msm8916-smp enable-method
ARM: qcom: Add qcom,msm8916-smp enable-method identical to MSM8226
dt-bindings: soc: qcom: spm: Document qcom,msm8916-saw2-v3.0-cpu
firmware: qcom: scm: Add support for MC boot address API
arm64: dts: qcom: msm8916: Add CPU ACC and SAW/SPM
ARM: dts: qcom: msm8916: Add include for SMP without PSCI on ARM32
ARM: dts: qcom: msm8916-samsung-serranove: Include dts from arm64

 .../devicetree/bindings/arm/cpus.yaml         |   5 +-
 .../bindings/soc/qcom/qcom,spm.yaml           |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 .../dts/qcom-msm8916-samsung-serranove.dts    |   3 +
 arch/arm/boot/dts/qcom-msm8916-smp.dtsi       |  62 ++
 arch/arm/mach-qcom/Kconfig                    |  10 +
 arch/arm/mach-qcom/platsmp.c                  |   1 +
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../dts/qcom/msm8916-samsung-serranove.dts    | 534 ++++++++++++++++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi         |  56 ++
 drivers/firmware/qcom_scm.c                   |  84 ++-
 drivers/firmware/qcom_scm.h                   |   4 +
 drivers/soc/qcom/spm.c                        |  21 +
 13 files changed, 765 insertions(+), 18 deletions(-)
 create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-serranove.dts
 create mode 100644 arch/arm/boot/dts/qcom-msm8916-smp.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts
Signature · 1 line
2.33.0