Add Samsung Galaxy A20e support
Subsystems (2)
cover Add Samsung Galaxy A20e support
Hi everyone,
This patch series adds a device tree and a dt-binding for the Samsung Galaxy A20e.
I verified the device boots into a LightDM login.
The device tree was tested with the device tree style checker script, which resulted in no warnings.
Henri Ommer (2):
dt-bindings: arm: samsung: samsung-boards: Add bindings for
a20e/SM-A202F
arm64: exynos: Add support for Samsung Galaxy A20e
.../bindings/arm/samsung/samsung-boards.yaml | 1 + arch/arm64/boot/dts/exynos/Makefile | 1 + .../arm64/boot/dts/exynos/exynos7885-a20e.dts | 132 ++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-a20e.dts
Signature · 1 line
2.56.0
PATCH 1/2 dt-bindings: arm: samsung: samsung-boards: Add bindings for a20e/SM-A202F
Adds devicetree bindings for the Samsung Galaxy A20e (SM-A202F)
--- .../devicetree/bindings/arm/samsung/samsung-boards.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +1 -0
@@ -227,6 +227,7 @@ properties: - description: Exynos7885 based boards items: - enum: + - samsung,a20e # Samsung Galaxy A20e (2019) - samsung,gta3xllte # Samsung Galaxy Tab A 10.1 (2019, 4G) - samsung,jackpotlte # Samsung Galaxy A8 (2018) - const: samsung,exynos7885
Signature · 1 line
2.56.0
[email protected]
AI reviewRe: [PATCH 1/2] dt-bindings: arm: samsung: samsung-boards: Add bindings for a20e/SM-A202F
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: arm: samsung: redundant word bindings in commit subject --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: arm: samsung: redundant word bindings in commit subject
--
commit 53b148fe6d3224e56b6bbaff8e0921f7c5e931f2
Author: Henri Ommer <[email protected]>
dt-bindings: arm: samsung: samsung-boards: Add bindings for a20e/SM-A202F
This commit adds the samsung,a20e compatible string for the Exynos7885 based Samsung Galaxy A20e (SM-A202F) board.
Quoted 1 line
dt-bindings: arm: samsung: samsung-boards: Add bindings for a20e/SM-A202F
[Severity: Low]
This isn't a bug, but the dt-bindings: prefix already indicates that the patch adds a binding, so "bindings for" in the subject line is redundant and can be dropped (for example, "dt-bindings: arm: samsung: Add Samsung Galaxy A20e (SM-A202F)").
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/2 arm64: exynos: Add support for Samsung Galaxy A20e
In reply to Henri OmmerThis initial bringup consists of
- memory
- internal MMC
- GPIO keys (volume and power)
The device boots into LightDM on Nura/postmarketOS
--- arch/arm64/boot/dts/exynos/Makefile | 1 + .../arm64/boot/dts/exynos/exynos7885-a20e.dts | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-a20e.dts
arch/arm64/boot/dts/exynos/Makefile +1 -0
@@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7870-j6lte.dtb \ exynos7870-j7xelte.dtb \ exynos7870-on7xelte.dtb \ + exynos7885-a20e.dtb \ exynos7885-gta3xllte.dtb \ exynos7885-jackpotlte.dtb \ exynos850-a217f.dtb \
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts new file +132 -0
132 lines not on this page · raw message
Signature · 1 line
2.56.0
[email protected]
AI reviewRe: [PATCH 2/2] arm64: exynos: Add support for Samsung Galaxy A20e
Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] arm64: dts: exynos: off-by-one size 0x3fffffff in memory@80000000 node - [Medium] arm64: dts…
Thank you for your contribution! Sashiko AI review found 3 potential issues to consider:
- [Medium] arm64: dts: exynos: off-by-one size 0x3fffffff in memory@80000000 node
- [Medium] arm64: dts: exynos: debug and distro flags hardcoded in chosen bootargs
- [Low] arm64: dts: exynos: unused downstream fast-slew-rate pinctrl in mmc_0
--
commit 3c64e215bef4d1c0f5a772e11d2129cb4345d352
Author: Henri Ommer <[email protected]>
arm64: exynos: Add support for Samsung Galaxy A20e
This commit adds initial device tree support for the Samsung Galaxy A20e (SM-A202F) based on the Exynos 7885 SoC, covering memory, simple-framebuffer, GPIO keys, and internal eMMC.
Quoted 6 lines
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts new file +0
-0@@ -0,0 +1,132 @@
[ ... ]
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts line 22
Quoted 5 lines
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts new file +5
-0+ chosen { + ranges; + #address-cells = <2>; + #size-cells = <1>; + bootargs = "console=tty0 clk_ignore_unused pd_ignore_unused regulator_ignore_unused pmos.nosplash";
[Severity: Medium]
Should clk_ignore_unused, pd_ignore_unused, regulator_ignore_unused, and pmos.nosplash be dropped from chosen/bootargs?
Hardcoding the *_ignore_unused debug flags globally disables the late initcalls that gate unused clocks, power domains, and regulators across the system, and pmos.nosplash is a distribution-specific userspace option rather than a hardware description.
[ ... ]
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts line 64
Quoted 6 lines
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts new file +6
-0+ memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x3bc00000>, + <0x0 0xc0000000 0x40000000>, + <0x8 0x80000000 0x3fffffff>; + };
[Severity: Medium]
Should the size of the third memory bank be 0x40000000 instead of 0x3fffffff?
With #size-cells = <1>, the third cell is a byte size rather than an end offset. early_init_dt_add_memory_arch() masks the size with PAGE_MASK before calling memblock_add(), so 0x3fffffff rounds down and loses the final page of RAM.
[ ... ]
Quoted 1 line
+&mmc_0 {
[ ... ]
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts line 97
Quoted 10 lines
arch/arm64/boot/dts/exynos/exynos7885-a20e.dts new file +10
-0+ pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_rdqs &sd0_bus1 &sd0_bus4 &sd0_bus8>; + pinctrl-1 = <&sd0_clk_fast_slew_rate_1x>; + pinctrl-2 = <&sd0_clk_fast_slew_rate_2x>; + pinctrl-3 = <&sd0_clk_fast_slew_rate_3x>; + pinctrl-4 = <&sd0_clk_fast_slew_rate_4x>; + pinctrl-names = "default", + "fast-slew-rate-1x", + "fast-slew-rate-2x", + "fast-slew-rate-3x", + "fast-slew-rate-4x";
[Severity: Low]
Are the fast-slew-rate-1x..4x pinctrl states used by the mainline driver?
Neither Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml nor dw_mmc-exynos looks up fast-slew-rate-* pinctrl states, so pinctrl-1 through pinctrl-4 are never selected. Other Exynos 7885 boards define only the "default" pinctrl state and place the desired clock drive-strength pin node directly in pinctrl-0.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2