Skip to contentSkip to conversation

ARM: dts: qcom-msm8226-samsung-ms013g: Add initial device tree

PATCH Superseded Raymond Hackley 3 participants 6 messages Jun 26, 2024 – Jun 27, 2024

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: qcom-msm8226-samsung-ms013g: Add initial device tree

Samsung Galaxy Grand 2 is a phone based on MSM8226. It's similar to the other Samsung devices based on MSM8226 with only a few minor differences.

The device trees contain initial support with:
- GPIO keys
- Regulator haptic
- SDHCI (internal and external storage)
- UART (on USB connector via the TI TSU6721 MUIC)
- Regulators
- Touchscreen
- Accelerometer

#1 lore raw

PATCH 1/2 dt-bindings: arm: qcom: Document samsung,ms013g

Document samsung,ms013g for Galaxy Grand 2.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index dfd5c5559e6d..aaade18d79d6 100644
@@ -137,6 +137,7 @@ properties:
               - microsoft,dempsey
               - microsoft,makepeace
               - microsoft,moneypenny
+              - samsung,ms013g
               - samsung,s3ve3g
           - const: qcom,msm8226
 
Signature · 1 line
2.39.2
#2 lore raw

PATCH 2/2 ARM: dts: qcom-msm8226-samsung-ms013g: Add initial device tree

In reply to Raymond Hackley

Samsung Galaxy Grand 2 is a phone based on MSM8226. It's similar to the other Samsung devices based on MSM8226 with only a few minor differences.

The device trees contain initial support with:
- GPIO keys
- Regulator haptic
- SDHCI (internal and external storage)
- UART (on USB connector via the TI TSU6721 MUIC)
- Regulators
- Touchscreen
- Accelerometer

---
 arch/arm/boot/dts/qcom/Makefile               |   1 +
 .../dts/qcom/qcom-msm8226-samsung-ms013g.dts  | 386 ++++++++++++++++++
 2 files changed, 387 insertions(+)
 create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
index 9a25b24ea119..26bce5e7ec7b 100644
@@ -26,6 +26,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
 	qcom-msm8226-microsoft-dempsey.dtb \
 	qcom-msm8226-microsoft-makepeace.dtb \
 	qcom-msm8226-microsoft-moneypenny.dtb \
+	qcom-msm8226-samsung-ms013g.dtb \
 	qcom-msm8226-samsung-s3ve3g.dtb \
 	qcom-msm8660-surf.dtb \
 	qcom-msm8905-nokia-argon.dtb \
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +386 -0

386 lines not on this page · raw message

Signature · 1 line
2.39.2
#3 lore raw
Quoted 14 lines · Raymond Hackley

Samsung Galaxy Grand 2 is a phone based on MSM8226. It's similar to the other Samsung devices based on MSM8226 with only a few minor differences.

The device trees contain initial support with:
- GPIO keys
- Regulator haptic
- SDHCI (internal and external storage)
- UART (on USB connector via the TI TSU6721 MUIC)
- Regulators
- Touchscreen
- Accelerometer

---

[...]

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts line 25

Quoted 1 line
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +1 -0
+	reserved-memory {

'r' > 'g'

Quoted 7 lines
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +7 -0
+		smem_region: smem@fa00000 {
+			reg = <0x0fa00000 0x100000>;
+			no-map;
+		};
+	};
+
+	gpio-hall-sensor {

[...]

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts line 316

Quoted 3 lines

+&sdhc_1 {

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +2 -0
+	vmmc-supply = <&pm8226_l17>;
+	vqmmc-supply = <&pm8226_l6>;

At least vqmmc could use regulator-allow-set-load (this and below)

Quoted 9 lines
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +9 -0
+
+	bus-width = <8>;
+	non-removable;
+
+	status = "okay";
+};
+
+&sdhc_2 {
+	vmmc-supply = <&pm8226_l18>;

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts line 335

Quoted 10 lines
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +10 -0
+	vqmmc-supply = <&pm8226_l21>;
+
+	bus-width = <4>;
+	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
+
+	pinctrl-0 = <&sdhc2_default_state &sdhc2_cd_default>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};

Konrad

#4 lore raw
Quoted 13 lines · Konrad Dybcio
Quoted 12 lines · Raymond Hackley

Samsung Galaxy Grand 2 is a phone based on MSM8226. It's similar to the other Samsung devices based on MSM8226 with only a few minor differences.

The device trees contain initial support with:
- GPIO keys
- Regulator haptic
- SDHCI (internal and external storage)
- UART (on USB connector via the TI TSU6721 MUIC)
- Regulators
- Touchscreen
- Accelerometer

Quoted 8 lines
Quoted 2 lines

---

[...]

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts line 25

Quoted 1 line
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +1 -0
+	reserved-memory {

'r' > 'g'

I assume by this you mean "please the reserved memory node after the gpio one, in alphanumerical order?

Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +7 -0
+		smem_region: smem@fa00000 {
+			reg = <0x0fa00000 0x100000>;
+			no-map;
+		};
+	};
+
+	gpio-hall-sensor {
#5 lore raw
Quoted 17 lines · Conor Dooley
Quoted 16 lines · Konrad Dybcio
Quoted 14 lines · Raymond Hackley

Samsung Galaxy Grand 2 is a phone based on MSM8226. It's similar to the other Samsung devices based on MSM8226 with only a few minor differences.

The device trees contain initial support with:
- GPIO keys
- Regulator haptic
- SDHCI (internal and external storage)
- UART (on USB connector via the TI TSU6721 MUIC)
- Regulators
- Touchscreen
- Accelerometer

---

Quoted 8 lines
Quoted 5 lines

[...]

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts line 25

Quoted 1 line
arch/arm/boot/dts/qcom/qcom-msm8226-samsung-ms013g.dts new file +1 -0
+	reserved-memory {

'r' > 'g'

I assume by this you mean "please the reserved memory node after the gpio one, in alphanumerical order?

Correct

Konrad