Skip to contentSkip to conversation

dt-bindings: arm: qcom: Add SM7325 Motorola edge 30 (dubai)

PATCH Superseded Val Packett 3 participants 5 messages Mar 29 – Mar 30

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: arm: qcom: Add SM7325 Motorola edge 30 (dubai)

Motorola edge 30 (motorola,dubai) is a smartphone based on the SM7325 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index ca880c105f3b..58f1621bb855 100644
@@ -1038,6 +1038,7 @@ properties:
 
       - items:
           - enum:
+              - motorola,dubai
               - nothing,spacewar
           - const: qcom,sm7325
 
Signature · 1 line
2.53.0
#1 lore raw

PATCH 2/2 arm64: dts: qcom: Add Motorola edge 30 (dubai) DTS

The Motorola edge 30 is a smartphone released in 2022.

This commit has the following features working:
- Display (simplefb)
- Touchscreen
- Power and volume buttons
- Storage (UFS 3.1)
- Battery (ADSP battmgr)
- USB (Type-C, 2.0, dual-role)
- Wi-Fi and Bluetooth (WCN6750 hw1.0)

---
My new main phone, it's very cool :)

Left out for now, will send after this lands:
- actual panel (Novatek NT37701 based)
- apparently the first to need different prepare commands depending on refresh rate, have a WIP patch to pass the info already, expecting that to go through some discussion though..
- seems impossible to find model numbers, there are 2 vendors (Tianma and CSOT) but there's no info online for a 6.55" NT37701 based panel made by either company
- audio (Awinic AW88261 + WCD9375)
- waiting for the Senary MI2S series to land for the speakers
- only have the top (aux) mic working but not the bottom (main) one o.0
- camera (Samsung S5KJN1 as ultrawide)
- still polishing the tiny driver from downstream for the WL2864C PMIC

Did not bring up yet:
- other cameras (OV50A main, OV32B40 front): need drivers >_<
- haptics (AW86224): needs to be added to AW86927 driver (similar regs)

ath11k bdf sent:
https://lists.infradead.org/pipermail/ath11k/2026-March/008314.html

Thanks,
~val

---
 arch/arm64/boot/dts/qcom/Makefile             |    1 +
 .../boot/dts/qcom/sm7325-motorola-dubai.dts   | 1474 +++++++++++++++++
 2 files changed, 1475 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
index c46d94bb6dd5..c4d5dba342e3 100644
@@ -334,6 +334,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm6375-sony-xperia-murray-pdx225.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7125-xiaomi-curtana.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7125-xiaomi-joyeuse.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7225-fairphone-fp4.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-nothing-spacewar.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8150-hdk.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8150-microsoft-surface-duo.dtb
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +1474 -0

1,474 lines not on this page · raw message

Signature · 1 line
2.53.0
#2 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: Add Motorola edge 30 (dubai) DTS

Quoted 13 lines · Val Packett

The Motorola edge 30 is a smartphone released in 2022.

This commit has the following features working:
- Display (simplefb)
- Touchscreen
- Power and volume buttons
- Storage (UFS 3.1)
- Battery (ADSP battmgr)
- USB (Type-C, 2.0, dual-role)
- Wi-Fi and Bluetooth (WCN6750 hw1.0)

---

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 27

Quoted 2 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +2 -0
+/ {
+	model = "Motorola edge 30";

nit: Google tells me the 'e' in 'Edge' is uppercase

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 47

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +3 -0
+		framebuffer0: framebuffer@e1000000 {
+			compatible = "simple-framebuffer";
+			reg = <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>;

Let's drop reg and use the memory-region binding (also drop unit address)

[...]

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +4 -0
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 106

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +10 -0
+				port@0 {
+					reg = <0>;
+
+					pmic_glink_hs_in: endpoint {
+						remote-endpoint = <&usb_1_dwc3_hs>;
+					};
+				};
+
+				port@1 {
+					reg = <1>;

SBU would be @2

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 135

Quoted 1 line
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +1 -0
+		cont-splash@e1000000 {

framebuffer@

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 150

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +3 -0
+	thermal-zones {
+		cam-flash-thermal {
+			polling-delay-passive = <0>;

that's the default setting, you may drop all polling-delay(-passive) = <0>

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 1447

Quoted 8 lines

+&usb_1 {

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +7 -0
+	/* USB 2.0 only */
+	qcom,select-utmi-as-pipe-clk;
+	maximum-speed = "high-speed";
+
+	/* Remove USB3 phy */
+	phys = <&usb_1_hsphy>;
+	phy-names = "usb2-phy";

Is it really not wired up in hw, or do you perhaps have a fake cable?

Konrad

#3 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: Add Motorola edge 30 (dubai) DTS

Quoted 12 lines · Konrad Dybcio
Quoted 11 lines · Val Packett

The Motorola edge 30 is a smartphone released in 2022.

This commit has the following features working:
- Display (simplefb)
- Touchscreen
- Power and volume buttons
- Storage (UFS 3.1)
- Battery (ADSP battmgr)
- USB (Type-C, 2.0, dual-role)
- Wi-Fi and Bluetooth (WCN6750 hw1.0)

Quoted 7 lines
Quoted 2 lines

---

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 27

Quoted 2 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +2 -0
+/ {
+	model = "Motorola edge 30";

nit: Google tells me the 'e' in 'Edge' is uppercase

They do the lowercase thing a lot in the marketing materials but not consistently. I guess it would make sense to ignore that and make it uppercase, sure.

Quoted 6 lines

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 47

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +3 -0
+		framebuffer0: framebuffer@e1000000 {
+			compatible = "simple-framebuffer";
+			reg = <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>;

Let's drop reg and use the memory-region binding (also drop unit address)

How come no one told be about memory-region for simplefb before? :D Ack

Quoted 16 lines

[...]

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +4 -0
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 106

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +10 -0
+				port@0 {
+					reg = <0>;
+
+					pmic_glink_hs_in: endpoint {
+						remote-endpoint = <&usb_1_dwc3_hs>;
+					};
+				};
+
+				port@1 {
+					reg = <1>;

SBU would be @2

I was wondering about this, now I see it is specified in the bindings.. Looks like many other dts should be fixed too.

Quoted 9 lines

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 135

Quoted 1 line
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +1 -0
+		cont-splash@e1000000 {

framebuffer@

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 150

Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +3 -0
+	thermal-zones {
+		cam-flash-thermal {
+			polling-delay-passive = <0>;

that's the default setting, you may drop all polling-delay(-passive) = <0>

ack

Quoted 11 lines

[...]

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts line 1447

Quoted 8 lines

+&usb_1 {

arch/arm64/boot/dts/qcom/sm7325-motorola-dubai.dts new file +7 -0
+	/* USB 2.0 only */
+	qcom,select-utmi-as-pipe-clk;
+	maximum-speed = "high-speed";
+
+	/* Remove USB3 phy */
+	phys = <&usb_1_hsphy>;
+	phy-names = "usb2-phy";

Is it really not wired up in hw, or do you perhaps have a fake cable?

I didn't even try testing it myself since not even all flagships have USB3 routed these days (hello oneplus) and this is a cheaper upper-mid-range phone.

USB0_{SS_*,DP_*} are actually NC on the schematic,

and in downstream dts there is maximum-speed = "high-speed" and usb-phy = hsphy + nop.

~val