Skip to contentSkip to conversation

Initial Samsung Galaxy A8 (2018) support

PATCH Applied David Virag 2 participants 4 messages Feb 21, 2022 – Feb 23, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v6 cover Initial Samsung Galaxy A8 (2018) support

Add basic initial support for the Samsung Galaxy A8 (2018) smartphone. This phone is also known as "jackpotlte" and under the model name "SM-A530F". In its current state this should work on most if not all Exynos7885 phones/devices released.

As of now, it supports I2C nodes (all disabled by default) and UART console with basic clock support in place.

To access the UART console on the A8, there are two methods:
-You can open up the device and solder directly to some debug pins
close to the display connector.
-Through I2C you can set the S2MU004 MFD chip to multiplex the SoC's
UART lines to the d+ and d- on the USB Type-C port of the device.

Note that UART works on 1.8 volts, so plugging in a normal USB cable while multiplexed to UART may fry the SoC.

Everything was tested through UART by using a minimal driver that sets the S2MU004 to multiplex UART.

The preferred way to boot this device is by using my Minimal S-Boot Wrapper [1] to work around some issues caused by the stock, and non-replacable Samsung S-Boot bootloader.

Changes in v2:
- Added R-b tags by Krzysztof Kozlowski
- Moved dt-bindings patches to the beginning of the series
- Fixed double : in 7885 CMU bindings
- Fixed multiple double line breaks
- Made Exynos850 and 7885 clock drivers share some code in a new patch
- Lots of dts/dtsi fixes

Changes in v3:
- Fix SPDX comment style in clk-exynos-arm64.h
- Fix typo in dts comment

Changes in v4:
- Fixed leading 0x in clock-controller nodes
- Fixed missing headers in clock driver patches
- "__SAMSUNG_CLK_ARM64_H" -> "__CLK_EXYNOS_ARM64_H" in clk-exynos-arm64.h everywhere (only the comment at the end had the latter by accident)
- Added R-b tag by Krzysztof Kozlowski to pll1417x patch
- Actually suffixed pin configuration node names with "-pins"
- Seperated Cortex-A53 and Cortex-A73 PMU

Changes in v5:
- Only kept DTS patch as the rest have been merged.
- Several fixes in DTS patch

Changes in v6:
- DTS patch fixes
- Rebased on top of linux-next

[1] https://github.com/VDavid003/minimal_sboot_wrapper

David Virag (1):
arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC

 arch/arm64/boot/dts/exynos/Makefile           |   9 +-
 .../boot/dts/exynos/exynos7885-jackpotlte.dts |  92 ++
 .../boot/dts/exynos/exynos7885-pinctrl.dtsi   | 855 ++++++++++++++++++
 arch/arm64/boot/dts/exynos/exynos7885.dtsi    | 423 +++++++++
 4 files changed, 1375 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885.dtsi
Signature · 1 line
2.35.1
#1 lore raw

PATCH v6 1/1 arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC

Add initial Exynos7885 device tree nodes with dts for the Samsung Galaxy A8 (2018), a.k.a. "jackpotlte", with model number "SM-A530F". Currently this includes some clock support, UART support, and I2C nodes.

---
Changes in v2:
- Remove address-cells, and size-cells from dts, since they are already in the dtsi.
- Lower case hex in memory node
- Fix node names with underscore instead of hyphen
- Fix line breaks
- Fix "-key" missing from gpio keys node names
- Use the form without "key" in gpio key labels on all keys
- Suffix pin configuration node names with "-pins"
- Remove "fimc_is_mclk" nodes from pinctrl dtsi for now
- Use macros for "samsung,pin-con-pdn", and "samsung,pin-con-pdn"
- Add comment about Arm PMU
- Rename "clock-oscclk" to "osc-clock"
- Include exynos-syscon-restart.dtsi instead of rewriting its contents

Changes in v3:
- Fix typo (seperate -> separate)

Changes in v4:
- Fixed leading 0x in clock-controller nodes
- Actually suffixed pin configuration node names with "-pins"
- Seperated Cortex-A53 and Cortex-A73 PMU

Changes in v5:
- Use "-gpio-bank" suffix in gpio bank nodes
- Remove interrupts from gpio-keys
- Move oscclk clock-frequency to board dts
- Seperate cmu_core clock names into 4 lines
- Use EXYNOS5420_PIN_DRV_LVx macros
- Add missing include from pinctrl dtsi
- Drop decon pinctrl nodes
- Order pinctrls by addresses

Changes in v6:
- Remove some empty lines
- Reorder board overriden nodes in alphabetical order
- Fix pinctrl schema problems

 arch/arm64/boot/dts/exynos/Makefile           |   9 +-
 .../boot/dts/exynos/exynos7885-jackpotlte.dts |  92 ++
 .../boot/dts/exynos/exynos7885-pinctrl.dtsi   | 855 ++++++++++++++++++
 arch/arm64/boot/dts/exynos/exynos7885.dtsi    | 423 +++++++++
 4 files changed, 1375 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi
 create mode 100644 arch/arm64/boot/dts/exynos/exynos7885.dtsi
arch/arm64/boot/dts/exynos/Makefile +5 -4
index be9df8e85c59..6e4ba69268e5 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_EXYNOS) += \
-	exynos5433-tm2.dtb	\
-	exynos5433-tm2e.dtb	\
-	exynos7-espresso.dtb	\
-	exynos850-e850-96.dtb	\
+	exynos5433-tm2.dtb		\
+	exynos5433-tm2e.dtb		\
+	exynos7-espresso.dtb		\
+	exynos7885-jackpotlte.dtb	\
+	exynos850-e850-96.dtb		\
 	exynosautov9-sadk.dtb
arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts new file +92 -0

92 lines not on this page · raw message

arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi new file +855 -0

855 lines not on this page · raw message

arch/arm64/boot/dts/exynos/exynos7885.dtsi new file +423 -0

423 lines not on this page · raw message

Signature · 1 line
2.35.1
Reviewed-by Sam Protsenko on v6 1/1
#2 lore raw

Re: [PATCH v6 1/1] arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC

Quoted 5 lines · David Virag

Add initial Exynos7885 device tree nodes with dts for the Samsung Galaxy A8 (2018), a.k.a. "jackpotlte", with model number "SM-A530F". Currently this includes some clock support, UART support, and I2C nodes.

I guess this goes with (from v5):

Best regards,
Krzysztof

#3 lore raw
In reply to David Virag
Quoted 9 lines · David Virag

Add basic initial support for the Samsung Galaxy A8 (2018) smartphone. This phone is also known as "jackpotlte" and under the model name "SM-A530F". In its current state this should work on most if not all Exynos7885 phones/devices released.

As of now, it supports I2C nodes (all disabled by default) and UART console with basic clock support in place.

[...]

Applied, thanks!

[1/1] arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC

      commit: 06874015327ba7bf6aae49ca825a492a2679237f

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>