Skip to contentSkip to conversation

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

PATCH Superseded Erikas Bitovtas 2 participants 4 messages Jun 4

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 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 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)
- Vibrator
- USB/Charger

---
Changes in v3:
- Changed incorrect "chassis" to "chassis-type" in the device tree.
- Mentioned added vibrator in the commit message.
- Link to v2: https://patch.msgid.link/[email protected]

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 v3 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 v3 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)
- Vibrator
- 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 1 potential issue(s) to consider: - [Medium] [Valid Concern] Missing pinctrl configurations for board-specific GPIO and interrupt pins. --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] [Valid Concern] Missing pinctrl configurations for board-specific GPIO and interrupt pins. --

commit 0d3ad64620f5f2b167411a5e45e162a58e8c3259
Author: Erikas Bitovtas <[email protected]>

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

This commit introduces the initial device tree for the Sony Xperia M2 (sony-eagle) smartphone based on the Qualcomm MSM8926 SoC. It enables initial support for features such as the framebuffer, storage, sensors, and GPIO buttons.

Quoted 5 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +0 -0
new file mode 100644
index 0000000000000..2c1e5755a50af

[ ... ]

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

Quoted 6 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +6 -0
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		button-camera-focus {
+			label = "Camera Focus";
+			gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;

[Severity: Medium]
Are the pinctrl configurations missing for this GPIO and other external interrupt lines in this device tree?

Nodes such as this gpio-keys button, accelerometer@f, light-sensor@48, nfc@28, and sdhc_2 utilize GPIOs and external interrupts but lack explicit pinctrl-names and pinctrl-0 properties.

Without explicitly defined pinctrl hardware states, the pinmux and bias states remain strictly dependent on bootloader defaults. Could this lead to undefined peripheral states or spurious interrupts across suspend/resume cycles or with different bootloader versions?

Quoted 3 lines
arch/arm/boot/dts/qcom/msm8926-sony-xperia-yukon-eagle.dts new file +3 -0
+			linux,code = <KEY_CAMERA_FOCUS>;
+			debounce-interval = <15>;
+		};

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2