Add support for Samsung Galaxy S5 (Exynos)
Subsystems (3)
cover Add support for Samsung Galaxy S5 (Exynos)
Samsung Galaxy S5 (Exynos) is a mobile phone released in 2014. It has an Exynos5422 platform. This version of Galaxy S5 is only capable of 3G communication using the Intel modem, while the LTE version of the device (klte) has a Qualcomm Snapdragon SoC.
Currently, internal eMMC, USB, regulators on a PMIC, and touchscreen are enabled in the device-tree.
It also has the following peripherals:
- 5" 1080p S6E3FA2 DSI display,
- Cypress StreetFighter touch buttons,
- Broadcom BCM4354 wireless connectivity module,
- Intel XMM6360 3G modem,
- STM32F401 serving as a sensor hub,
- Validify Solutions VFS61 series fingerprint sensor,
- Lattice ICE401M FPGA as an IRDA controller,
- Maxim MAX86900 heart rate sensor,
- NXP PN547 NFC controller,
- Wolfson WM5110 Audio DSP,
- Broadcom BCM4753 GPS radio,
- Maxim MAX77804 PMIC,
- Silicon Image SII8240 MHL controller,
- TI LP5562 LED driver
Markuss Broks (2):
Documentation: devicetree: bindings: Add compatible for Samsung Galaxy
S5 (Exynos)
arm: dts: Add device-tree for Samsung Galaxy S5 (Exynos)
.../bindings/arm/samsung/samsung-boards.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 676 ++++++++++++++++++ 3 files changed, 678 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5422-samsung-k3g.dts
Signature · 1 line
2.39.0
PATCH 1/2 Documentation: devicetree: bindings: Add compatible for Samsung Galaxy S5 (Exynos)
Add the compatible for k3g in the Samsung Exynos5800 boards section.
--- .../devicetree/bindings/arm/samsung/samsung-boards.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +1 -0
@@ -171,6 +171,7 @@ properties: - hardkernel,odroid-xu3-lite # Hardkernel Odroid XU3 Lite - hardkernel,odroid-xu4 # Hardkernel Odroid XU4 - hardkernel,odroid-hc1 # Hardkernel Odroid HC1 + - samsung,k3g # Samsung Galaxy S5 (Exynos) - const: samsung,exynos5800 - const: samsung,exynos5
Signature · 1 line
2.39.0
Re: [PATCH 1/2] Documentation: devicetree: bindings: Add compatible for Samsung Galaxy S5 (Exynos)
Quoted 2 lines · Markuss Broks
Add the compatible for k3g in the Samsung Exynos5800 boards section.
Use subject prefixes matching the subsystem (which you can get for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching).
Best regards,
Krzysztof
PATCH 2/2 arm: dts: Add device-tree for Samsung Galaxy S5 (Exynos)
In reply to Markuss BroksSamsung Galaxy S5 (Exynos) was sold alongside Samsung Galaxy S5 with Snapdragon SoC, however the Exynos version features a 3G capable Intel modem instead of Qualcomm version featuring LTE modem. This phone is based on Exynos5422. Currently, the touchscreen, USB, eMMC and the PMIC are enabled in the device-tree.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 676 +++++++++++++++++++ 2 files changed, 677 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5422-samsung-k3g.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -246,6 +246,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5422-odroidxu3.dtb \ exynos5422-odroidxu3-lite.dtb \ exynos5422-odroidxu4.dtb \ + exynos5422-samsung-k3g.dtb \ exynos5800-peach-pi.dtb dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-dlink-dir-685.dtb \
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +676 -0
676 lines not on this page · raw message
Signature · 1 line
2.39.0
Re: [PATCH 2/2] arm: dts: Add device-tree for Samsung Galaxy S5 (Exynos)
Quoted 5 lines · Markuss Broks
Samsung Galaxy S5 (Exynos) was sold alongside Samsung Galaxy S5 with Snapdragon SoC, however the Exynos version features a 3G capable Intel modem instead of Qualcomm version featuring LTE modem. This phone is based on Exynos5422. Currently, the touchscreen, USB, eMMC and the PMIC are enabled in the device-tree.
Use subject prefixes matching the subsystem (which you can get for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching).
Quoted 27 lines
Signed-off-by Markuss Broks <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 676 +++++++++++++++++++ 2 files changed, 677 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5422-samsung-k3g.dtsarch/arm/boot/dts/Makefile +1
-0@@ -246,6 +246,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5422-odroidxu3.dtb \ exynos5422-odroidxu3-lite.dtb \ exynos5422-odroidxu4.dtb \ + exynos5422-samsung-k3g.dtb \ exynos5800-peach-pi.dtb dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-dlink-dir-685.dtb \arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +1
-0@@ -0,0 +1,676 @@ +// SPDX-License-Identifier: GPL-2.0
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 11
Quoted 10 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +10
-0+/* + * Samsung Galaxy S5 (Exynos) device-tree source + * + * Copyright (c) 2023 Markuss Broks + */ + +/dts-v1/; +#include <dt-bindings/clock/samsung,s2mps11.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/gpio/gpio.h>
Order these by name, so clock, gpio and then interrupt-controller.
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 16
Quoted 5 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +5
-0+#include "exynos5800.dtsi" +#include "exynos5422-cpus.dtsi" + +/ { + model = "Samsung Galaxy S5 (Exynos)";
Samsung Galaxy S5 (GT-I.....)
This also applies to your binding patch. Do not introduce own style, use existing style from other boards.
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 18
Quoted 2 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +2
-0+ compatible = "samsung,k3g", "samsung,exynos5800", \ + "samsung,exynos5";
This does not look aligned.
Quoted 11 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +11
-0+ + chassis-type = "handset"; + + memory@20000000 { + device_type = "memory"; + reg = <0x20000000 0x80000000>; /* 2 GiB */ + }; + + fixed-rate-clocks { + oscclk { + compatible = "samsung,exynos5420-oscclk";
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 39
Quoted 10 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +10
-0+ clock-frequency = <24000000>; + }; + }; + + firmware@2073000 { + compatible = "samsung,secure-firmware"; + reg = <0x02073000 0x1000>; + }; + + tsp_vdd: tsp-vdd-en {
Generic node names, so regulator-tsp-vdd-en.
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 44
Quoted 4 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +4
-0+ compatible = "regulator-fixed"; + regulator-name = "tsp_vdd_en";> + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpy3 5 0>;
Use GPIO flags.
Quoted 27 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +27
-0+ enable-active-high; + }; + +}; + +&cpu0 { + cpu-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-supply = <&buck6_reg>; +}; + +&gpu { + status = "okay"; + mali-supply = <&buck4_reg>; +}; + +&hsi2c_7 { + status = "okay"; + + pmic@66 { + compatible = "samsung,s2mps11-pmic"; + reg = <0x66>; + + interrupt-parent = <&gpx0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 81
Quoted 10 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +10
-0+ wakeup-source; + + pinctrl-names = "default"; + pinctrl-0 = <&s2mps11_irq>; + + s2mps11_osc: clocks { + compatible = "samsung,s2mps11-clk"; + #clock-cells = <1>; + clock-output-names = "s2mps11_ap", + "s2mps11_cp", "s2mps11_bt";
Misaligned.
arch/arm/boot/dts/exynos5422-samsung-k3g.dts line 82
Quoted 2 lines
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +2
-0+ }; +
Best regards,
Krzysztof
Re: [PATCH 2/2] arm: dts: Add device-tree for Samsung Galaxy S5 (Exynos)
In reply to Markuss Broksarch/arm/boot/dts/exynos5422-samsung-k3g.dts line 100
Quoted 4 lines · Markuss Broks
arch/arm/boot/dts/exynos5422-samsung-k3g.dts new file +4
-0+ buck2_reg: BUCK2 { + regulator-name = "VDD_ARM_1V0"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1500000>;
The naming and constraints on this and a number of the other regulators don't seem consistent - the naming implies a specific voltage but there's a fairly wide range permitted.