Skip to contentSkip to conversation

ARM: dts: qcom: msm8926-sony-xperia-yukon-eagle: add initial device tree

PATCH Superseded Erikas Bitovtas 4 participants 6 messages Jun 3 – Jun 8

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: qcom: msm8926-sony-xperia-yukon-eagle: add initial device tree

Sony Xperia M2 is a smartphone released in 2014 based on the Qualcomm Snapdragon 400 (MSM8926) platform.

Add initial device tree with for Sony Xperia M2 with support for:
- Framebuffer
- GPIO buttons (Volume Down and Camera)
- Regulators
- Internal storage
- SD card
- Accelerometer
- Magnetometer
- Ambient Light/Proximity sensor
- NFC
- pm8226_resin (Volume Up)
- USB/Charger

---
Changes in v2:
- Dropped regulator-always-on for l3, l6 and l8.
- Mentioned added GPIO buttons and reset input in the commit message.
- Link to v1: https://patch.msgid.link/[email protected]

To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Erikas Bitovtas (2):
dt-bindings: arm: qcom: Add Sony Xperia M2
ARM: dts: qcom: msm8926-sony-xperia-yukon-eagle: add initial device tree

 Documentation/devicetree/bindings/arm/qcom.yaml    |   1 +
 arch/arm/boot/dts/qcom/Makefile                    |   1 +
 .../dts/qcom/msm8926-sony-xperia-yukon-eagle.dts   | 403 +++++++++++++++++++++
 3 files changed, 405 insertions(+)

---
base-commit: b7bee4ca5688e30ca50fbc87b1b8f7eed7006c17
change-id: 20260526-yukon-eagle-658f2f81a14d

Best regards,

Signature · 1 line
Erikas Bitovtas <[email protected]>
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: qcom: Add Sony Xperia M2

Document the Sony Xperia M2, which is a smartphone based on the Qualcomm MSM8926 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 50cc18a6ec5e..851d1b4d74eb 100644
@@ -99,6 +99,7 @@ properties:
               - microsoft,tesla
               - motorola,peregrine
               - samsung,matisselte
+              - sony,eagle
           - const: qcom,msm8926
           - const: qcom,msm8226
 
Signature · 1 line
2.54.0
#2 lore raw

PATCH v2 2/2 ARM: dts: qcom: msm8926-sony-xperia-yukon-eagle: add initial device tree

In reply to Erikas Bitovtas

Add device tree for Sony Xperia M2 (sony-eagle) smartphone based on the Qualcomm MSM8926 SoC.

Initial features:
- Framebuffer
- GPIO buttons (Volume Down and Camera)
- Regulators
- Internal storage
- SD card
- Accelerometer
- Magnetometer
- Ambient Light/Proximity sensor
- NFC
- pm8226_resin (Volume Up)
- USB/Charger

---
 arch/arm/boot/dts/qcom/Makefile                    |   1 +
 .../dts/qcom/msm8926-sony-xperia-yukon-eagle.dts   | 403 +++++++++++++++++++++
 2 files changed, 404 insertions(+)
arch/arm/boot/dts/qcom/Makefile +1 -0
index 32a44b02d2fa..6b471a346d82 100644
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_QCOM) += \
 	msm8226-motorola-falcon.dtb \
+	msm8926-sony-xperia-yukon-eagle.dtb \
 	qcom-apq8016-sbc.dtb \
 	qcom-apq8026-asus-sparrow.dtb \
 	qcom-apq8026-huawei-sturgeon.dtb \
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +403 -0

403 lines not on this page · raw message

Signature · 1 line
2.54.0
#3 lore raw
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [Low] The vibrator node (`pm8226_vib`) is enabled in the device tree but is completely absent from the…

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] The vibrator node (pm8226_vib) is enabled in the device tree but is completely absent from the commit message's detailed list of initial features.
- [Low] Invalid property chassis in the root node; should be chassis-type.
- [Low] Inconsistent device tree filename and Makefile entry.
--

commit a5fd28eda39f46cd80de271c0a53f281a8f9fdf4
Author: Erikas Bitovtas <[email protected]>

ARM: dts: qcom: msm8926-sony-xperia-yukon-eagle: add initial device tree

This commit adds a new device tree for the Sony Xperia M2 (sony-eagle) smartphone, based on the Qualcomm MSM8926 SoC. It includes initial feature support such as the framebuffer, GPIO buttons, regulators, storage, and various sensors.

arch/arm/boot/dts/qcom/Makefile line 4

Quoted 9 lines
arch/arm/boot/dts/qcom/Makefile +1 -0
index 32a44b02d2fa6..6b471a346d829 100644
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_QCOM) += \
 	msm8226-motorola-falcon.dtb \
+	msm8926-sony-xperia-yukon-eagle.dtb \

[Severity: Low]
Is this filename consistent with established naming conventions? The other MSM8926-based boards in arch/arm/boot/dts/qcom/ typically use a qcom- prefix. Should this be renamed to qcom-msm8926-sony-xperia-yukon-eagle.dtb to match?

Quoted 9 lines
arch/arm/boot/dts/qcom/Makefile +0 -0
 	qcom-apq8016-sbc.dtb \
 	qcom-apq8026-asus-sparrow.dtb \
 
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +0 -0
new file mode 100644
index 0000000000000..8ca834796e2c8
@@ -0,0 +1,403 @@

[ ... ]

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts line 19

Quoted 4 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +4 -0
+/ {
+	model = "Sony Xperia M2";
+	compatible = "sony,eagle", "qcom,msm8926", "qcom,msm8226";
+	chassis = "handset";

[Severity: Low]
Does this property name pass dt_binding_check validation? The standard property for specifying the system form factor in the root node schema is chassis-type, not chassis.

Quoted 2 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +2 -0
+
+	aliases {

[ ... ]

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts line 205

Quoted 9 lines

+&pm8226_resin {

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +8 -0
+	linux,code = <KEY_VOLUMEUP>;
+
+	status = "okay";
+};
+
+&pm8226_vib {
+	status = "okay";
+};

[Severity: Low]
This isn't a bug, but this node enables the vibrator, which is absent from the detailed list of initial features in the commit message. Could the commit message be updated to mention that vibrator support is also included?

Quoted 2 lines

+
+&rpm_requests {

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Reviewed-by on v2 2/2
#4 lore raw
In reply to Erikas Bitovtas
Quoted 22 lines · Erikas Bitovtas

Add device tree for Sony Xperia M2 (sony-eagle) smartphone based on the Qualcomm MSM8926 SoC.

Initial features:
- Framebuffer
- GPIO buttons (Volume Down and Camera)
- Regulators
- Internal storage
- SD card
- Accelerometer
- Magnetometer
- Ambient Light/Proximity sensor
- NFC
- pm8226_resin (Volume Up)
- USB/Charger

---
 arch/arm/boot/dts/qcom/Makefile                    |   1 +
 .../dts/qcom/msm8926-sony-xperia-yukon-eagle.dts   | 403 +++++++++++++++++++++
 2 files changed, 404 insertions(+)

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts line 19

Quoted 4 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +4 -0
+/ {
+	model = "Sony Xperia M2";
+	compatible = "sony,eagle", "qcom,msm8926", "qcom,msm8226";
+	chassis = "handset";

chassis-type

WIth that fixed:

Quoted 1 line

+

Signature · 2 lines
With best wishes
Dmitry
Reviewed-by on v2 2/2
#5 lore raw
In reply to Erikas Bitovtas
Quoted 18 lines · Erikas Bitovtas

Add device tree for Sony Xperia M2 (sony-eagle) smartphone based on the Qualcomm MSM8926 SoC.

Initial features:
- Framebuffer
- GPIO buttons (Volume Down and Camera)
- Regulators
- Internal storage
- SD card
- Accelerometer
- Magnetometer
- Ambient Light/Proximity sensor
- NFC
- pm8226_resin (Volume Up)
- USB/Charger

---

[...]

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts line 52

Quoted 1 line
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +1 -0
+	gpio-keys {

You should define a pinctrl state for each button, to presumably configure pull-ups as necessary

[...]

arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts line 162

Quoted 12 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +12 -0
+	accelerometer@f {
+		compatible = "kionix,kxtj21009";
+		reg = <0x0f>;
+
+		interrupts-extended = <&tlmm 49 IRQ_TYPE_EDGE_RISING>;
+
+		vdd-supply = <&pm8226_l19>;
+		vddio-supply = <&pm8226_lvs1>;
+
+		mount-matrix = "0", "1", "0",
+			      "-1", "0", "0",
+			      "0", "0", "1";

nit: please align the "s

other than that:

Konrad