Add support for Samsung Galaxy S4 Mini Value Edition
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest15 patches 1 replyIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | arm64: dts: qcom: Add device tree for Samsung Galaxy S4 Mini Value Editionarch/ arch/ | +302 | 0 replies | |
| 2/15 | arm64: dts: qcom: msm8916-samsung-serranove: Add touch screenarch/ | +50 | 0 replies | |
| 3/15 | arm64: dts: qcom: msm8916-samsung-serranove: Add touch keyarch/ | +87 | 0 replies | |
| 4/15 | arm64: dts: qcom: msm8916-samsung-serranove: Add IMUarch/ | +23 | 0 replies | |
| 5/15 | arm64: dts: qcom: msm8916-samsung-serranove: Add rt5033 batteryarch/ | +23 | 0 replies | |
| 6/15 | arm64: dts: qcom: msm8916-samsung-serranove: Add NFCarch/ | +50 | 0 replies | |
| 7/15 | ARM: qcom: Add ARCH_MSM8916 for MSM8916 on ARM32arch/ | +10 | 0 replies | |
| 8/15 | dt-bindings: arm: cpus: Document qcom, msm8916-smp enable-methodDocumentation/ | +4 | 1 reply | |
| 9/15 | ARM: qcom: Add qcom, msm8916-smp enable-method identical to MSM8226arch/ | +1 | 0 replies | |
| 10/15 | dt-bindings: soc: qcom: spm: Document qcom, msm8916-saw2-v3.0-cpuDocumentation/ | +1 | 0 replies | |
| 11/15 | soc: qcom: spm: Add 8916 SPM register datadrivers/ | +21 | 0 replies | |
| 12/15 | firmware: qcom: scm: Add support for MC boot address APIdrivers/ drivers/ | +71 | 0 replies | |
| 13/15 | arm64: dts: qcom: msm8916: Add CPU ACC and SAW/SPMarch/ | +56 | 0 replies | |
| 14/15 | ARM: dts: qcom: msm8916: Add include for SMP without PSCI on ARM32arch/ | +62 | 0 replies | |
| 15/15 | ARM: dts: qcom: msm8916-samsung-serranove: Include dts from arm64arch/ arch/ | +4 | 0 replies |
Reviews trailers per patch
2 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Rob Herring |
|---|---|
| 1/15 | |
| 2/15 | |
| 3/15 | |
| 4/15 | |
| 5/15 | |
| 6/15 | |
| 7/15 | |
| 8/15 | R-b |
| 9/15 | |
| 10/15 | A-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.
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