arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U
RFC PATCH 1/1 arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U
Samsung Galaxy A3 (SM-A300FU) and Samsung Galaxy A5 (SM-A500FU) are smartphones using the MSM8916 SoC released in 2015.
Add a device tree for A3U and A5U with initial support for:
- SDHCI (internal and external storage)
- USB Device Mode
- UART (on USB connector via the SM5502 MUIC)
- Regulators
The two devices (and all other variants of A3/A5 released in 2015) are very similar, with some differences in display, touchscreen and sensors. The common parts are shared in msm8916-samsung-a2015-common.dtsi to reduce duplication.
The device tree is loosely based on apq8016-sbc.dtsi and the downstream kernel provided by Samsung, mixed with a lot of own research.
---
The idea is to leverage the efforts that went into mainline for the Dragonboard 410c. So far this is going quite well.
In addition to the functionality provided by this patch, the following features also seem to work in initial tests:
- Display/GPU
- Touchscreen
- Sound (Earpiece and Headphones)
- Accelerometer + Magnetometer
Those will be added in future patch sets.
The primary known limitation is the lack of PSCI support in the signed TrustZone firmware. It seems like all production MSM8916 smartphones were released without PSCI support, and only DB410c was updated. Not sure if there is any good solution for this...
arch/arm64/boot/dts/qcom/Makefile | 2 + .../msm8916-samsung-a2015-common-pins.dtsi | 15 ++ .../qcom/msm8916-samsung-a2015-common.dtsi | 226 ++++++++++++++++++ .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 10 + .../boot/dts/qcom/msm8916-samsung-a5u-eur.dts | 10 + 5 files changed, 263 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common-pins.dtsi create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
@@ -3,6 +3,8 @@ dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk01.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb
arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common-pins.dtsi new file +15 -0
@@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only + +&msmgpio { + muic_int_default: muic_int_default { + pinmux { + function = "gpio"; + pins = "gpio12"; + }; + pinconf { + pins = "gpio12"; + drive-strength = <2>; + bias-disable; + }; + }; +};
arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi new file +226 -0
226 lines not on this page · raw message
arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts new file +10 -0
@@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-a2015-common.dtsi" + +/ { + model = "Samsung Galaxy A3U (EUR)"; + compatible = "samsung,a3u-eur", "qcom,msm8916"; +};
arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts new file +10 -0
@@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-a2015-common.dtsi" + +/ { + model = "Samsung Galaxy A5U (EUR)"; + compatible = "samsung,a5u-eur", "qcom,msm8916"; +};
Signature · 1 line
2.22.0