Add Samsung Galaxy A21s support
v3 cover Add Samsung Galaxy A21s support
Hi all,
This is a small patch series which adds support to the Samsung Galaxy A21s. This device is part of the Exynos850 SoC and its device tree is very loosely based on the e850-95 one.
Thomas Turner (2):
dt-bindings: arm: samsung: Add compatible for Samsung Galaxy A21s
(SM-A217F)
arm64: dts: exynos: Add initial support for Samsung Galaxy A21s
(SM-A217F).../bindings/arm/samsung/samsung-boards.yaml | 1 + arch/arm64/boot/dts/exynos/Makefile | 1 + .../arm64/boot/dts/exynos/exynos850-a217f.dts | 200 ++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 2 +- 4 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-a217f.dts
Signature · 1 line
2.47.3
PATCH v3 1/2 dt-bindings: arm: samsung: Add compatible for Samsung Galaxy A21s (SM-A217F)
Add binding for the Samsung Galaxy A21s (SM-A217F) board, which is based on the Samsung Exynos850 SoC.
---
Changes in v3:
- Add Reviewed-by tag
Changes in v2:
- Sort via alphabetical order
.../devicetree/bindings/arm/samsung/samsung-boards.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +1 -0
@@ -232,6 +232,7 @@ properties: - description: Exynos850 based boards items: - enum: + - samsung,a217f # Samsung Galaxy A21s (SM-A217F) - winlink,e850-96 # WinLink E850-96 - const: samsung,exynos850
Signature · 1 line
2.47.3
PATCH v3 2/2 arm64: dts: exynos: Add initial support for Samsung Galaxy A21s (SM-A217F)
In reply to Thomas TurnerAdd initial support for the Samsung Galaxy A21s (a21s) phone. It was launched in 2020, and it's based on the Exynos 850 SoC. It has multiple RAM configurations: 3GB, 4GB and 6GB.
Since our bootloader does not set up memory nodes beforehand, default to the 3GB variant. Custom bootloaders can be used to initialise other nodes per RAM configuration.
The Exynos DPU clocks required by simple-framebuffer are not kept enabled during boot. Add the DECON, DMA, DPP, PPMU and SSMU DPU clocks to the simple-framebuffer node so simpledrm maintains references to them. Without these clocks, the framebuffer fails to remain operational further into boot.
This device tree adds support for the following:
- SimpleFB
- Buttons
- 3GB RAM
- Ramoops
- GPU
- MMC
- USB
- Watchdog
---
Changes in v3:
- Add gpu node with dummy regulator
- Re-order feature list in patch msg and mention GPU
- Rebase patch on top of for-next
Changes in v2:
- Re-order properties/nodes to pass dt-check-style --mode strict
arch/arm64/boot/dts/exynos/Makefile | 1 + .../arm64/boot/dts/exynos/exynos850-a217f.dts | 200 ++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 2 +- 3 files changed, 202 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-a217f.dts
arch/arm64/boot/dts/exynos/Makefile +1 -0
@@ -13,6 +13,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7870-j7xelte.dtb \ exynos7870-on7xelte.dtb \ exynos7885-jackpotlte.dtb \ + exynos850-a217f.dtb \ exynos850-e850-96.dtb \ exynos8855-smdk.dtb \ exynos8895-dreamlte.dtb \
arch/arm64/boot/dts/exynos/exynos850-a217f.dts new file +200 -0
200 lines not on this page · raw message
arch/arm64/boot/dts/exynos/exynos850.dtsi +1 -1
@@ -160,7 +160,7 @@ psci { method = "smc"; }; - timer { + timer: timer { compatible = "arm,armv8-timer"; /* Hypervisor Virtual Timer interrupt is not wired to GIC */ interrupts =
Signature · 1 line
2.47.3
[email protected]
AI reviewRe: [PATCH v3 2/2] arm64: dts: exynos: Add initial support for Samsung Galaxy A21s (SM-A217F)
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] dts: unintended override of mmc_0 compatible string - [Low] dts: build failure due to undefined…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dts: unintended override of mmc_0 compatible string
- [Low] dts: build failure due to undefined gpu label
--
commit 5ffd2971505c8c2076142840ef189e608c1e56c2
Author: Thomas Turner <[email protected]>
arm64: dts: exynos: Add initial support for Samsung Galaxy A21s (SM-A217F)
This commit adds initial device tree support for the Samsung Galaxy A21s (SM-A217F) phone, based on the Exynos 850 SoC. It defaults to the 3GB RAM configuration and includes support for simple-framebuffer, buttons, MMC, USB, and watchdog.
Quoted 4 lines
arch/arm64/boot/dts/exynos/exynos850-a217f.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/exynos/exynos850-a217f.dts line 118
Quoted 5 lines
+&gpu {
arch/arm64/boot/dts/exynos/exynos850-a217f.dts new file +4
-0+ mali-supply = <®_dummy>; + + status = "okay"; +};
[Severity: Low]
Does this cause a build regression during dtc compilation?
The gpu label is referenced here at the root level, but it appears to be undefined in the included exynos850.dtsi file. This would result in a syntax error for the missing label when running make dtbs for this board.
arch/arm64/boot/dts/exynos/exynos850-a217f.dts line 122
Quoted 4 lines
arch/arm64/boot/dts/exynos/exynos850-a217f.dts new file +4
-0+ +&mmc_0 { + compatible = "samsung,exynos7-dw-mshc"; + mmc-hs200-1_8v;
[Severity: Medium]
Is this generic compatible string intended to override the SoC-specific one?
The exynos850.dtsi core IP block definition properly includes the -smu suffix for IOMMU integration. Overriding it in the board file with this older generic string drops the IOMMU matching. This might cause DMA handling issues or missing functionality for the MMC controller.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Quoted 11 lines · Thomas Turner
This is a small patch series which adds support to the Samsung Galaxy A21s. This device is part of the Exynos850 SoC and its device tree is very loosely based on the e850-95 one.
Thomas Turner (2):
dt-bindings: arm: samsung: Add compatible for Samsung Galaxy A21s(SM-A217F) arm64: dts: exynos: Add initial support for Samsung Galaxy A21s (SM-A217F)[...]
Applied, thanks!
[1/2] dt-bindings: arm: samsung: Add compatible for Samsung Galaxy A21s (SM-A217F)
https://git.kernel.org/krzk/linux/c/1a672a79f917c9d5322b42f30efe27e1679c1612 [2/2] arm64: dts: exynos: Add initial support for Samsung Galaxy A21s (SM-A217F) https://git.kernel.org/krzk/linux/c/3836879a69ffe2b06ddbbb1cd0a98928a1ef6dd1
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>