Skip to contentSkip to conversation

Add Sony Xperia Z3 Compact smartphone

PATCH Applied Valeriy Klimin 5 participants 9 messages Jun 21, 2024 – Jun 23, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Add Sony Xperia Z3 Compact smartphone

This is almost the same as the dts of the Xperia Z3, except for the battery charge limits.

The current on the l21 regulator for shinano is also bumped up to stop SD card errors.

---
Changes in v2:
- Reordered dt-bindings and dts commits
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Valeriy Klimin (3):
dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact
ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone
ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2

 Documentation/devicetree/bindings/arm/qcom.yaml    |  1 +
 arch/arm/boot/dts/qcom/Makefile                    |  1 +
 .../qcom-msm8974pro-sony-xperia-shinano-aries.dts  | 44 ++++++++++++++++++++++
 ...qcom-msm8974pro-sony-xperia-shinano-common.dtsi |  2 +
 4 files changed, 48 insertions(+)

---
base-commit: cd214efd16e30bf1aa40ccfaaf9177f47dd21fd5
change-id: 20240620-sony-aries-4a5bce06c91d

Best regards,

Signature · 1 line
Valeriy Klimin <[email protected]>
#1 lore raw

PATCH v2 1/3 dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact

Add the compatible for this device.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index ae885414b181..e53f061fc1cf 100644
@@ -184,6 +184,7 @@ properties:
               - fairphone,fp2
               - oneplus,bacon
               - samsung,klte
+              - sony,xperia-aries
               - sony,xperia-castor
               - sony,xperia-leo
           - const: qcom,msm8974pro
Signature · 1 line
2.43.2
#3 lore raw

PATCH v2 2/3 ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone

In reply to Valeriy Klimin

Add the dts for the Z3 Compact. This is currently almost the same as the plain Z3 as they share almost the same hardware and nothing device-specific is currently supported.

---
 arch/arm/boot/dts/qcom/Makefile                    |  1 +
 .../qcom-msm8974pro-sony-xperia-shinano-aries.dts  | 44 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
arch/arm/boot/dts/qcom/Makefile +1 -0
index e2e922bdc9e9..d057396cfeef 100644
@@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
 	qcom-msm8974pro-oneplus-bacon.dtb \
 	qcom-msm8974pro-samsung-klte.dtb \
 	qcom-msm8974pro-samsung-kltechn.dtb \
+	qcom-msm8974pro-sony-xperia-shinano-aries.dtb \
 	qcom-msm8974pro-sony-xperia-shinano-castor.dtb \
 	qcom-msm8974pro-sony-xperia-shinano-leo.dtb \
 	qcom-mdm9615-wp8548-mangoh-green.dtb \
arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-aries.dts new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.43.2
#5 lore raw

PATCH v2 3/3 ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2

In reply to Valeriy Klimin

SD cards would exhibit errors similar to ones described in commit 27fe0fc05f35 ("ARM: dts: msm8974-FP2: Increase load on l20 for sdhci")

This patch applies the same change to the regulator for sdhc2.

---
 arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi +2 -0
index e129bb1bd6ec..6af7c71c7158 100644
@@ -380,6 +380,8 @@ pm8941_l20: l20 {
 		pm8941_l21: l21 {
 			regulator-min-microvolt = <2950000>;
 			regulator-max-microvolt = <2950000>;
+			regulator-system-load = <500000>;
+			regulator-allow-set-load;
 			regulator-boot-on;
 		};
 
Signature · 1 line
2.43.2
#7 lore raw
In reply to Valeriy Klimin
Quoted 11 lines · Valeriy Klimin

This is almost the same as the dts of the Xperia Z3, except for the battery charge limits.

The current on the l21 regulator for shinano is also bumped up to stop SD card errors.

---
Changes in v2:
- Reordered dt-bindings and dts commits
- Link to v1: https://lore.kernel.org/r/[email protected]

Please let reviewers finish their job first. It's recommended to post once in 24 hours timeframe. Otherwise you end up getting feedback and tags for v1, while you have already posted v2.

Quoted 20 lines

---
Valeriy Klimin (3):
dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact
ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone
ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2

 Documentation/devicetree/bindings/arm/qcom.yaml    |  1 +
 arch/arm/boot/dts/qcom/Makefile                    |  1 +
 .../qcom-msm8974pro-sony-xperia-shinano-aries.dts  | 44 ++++++++++++++++++++++
 ...qcom-msm8974pro-sony-xperia-shinano-common.dtsi |  2 +
 4 files changed, 48 insertions(+)

---
base-commit: cd214efd16e30bf1aa40ccfaaf9177f47dd21fd5
change-id: 20240620-sony-aries-4a5bce06c91d

Best regards,

Signature · 1 line
Valeriy Klimin <[email protected]>
Signature · 2 lines
With best wishes
Dmitry
Reviewed-by on v2 3/3
#6 lore raw

Re: [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2

In reply to Valeriy Klimin
Quoted 7 lines · Valeriy Klimin

SD cards would exhibit errors similar to ones described in commit 27fe0fc05f35 ("ARM: dts: msm8974-FP2: Increase load on l20 for sdhci")

This patch applies the same change to the regulator for sdhc2.

---

Konrad

maintainer Applied
#8 lore raw

Re: (subset) [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone

In reply to Valeriy Klimin
Quoted 8 lines · Valeriy Klimin

This is almost the same as the dts of the Xperia Z3, except for the battery charge limits.

The current on the l21 regulator for shinano is also bumped up to stop SD card errors.

[...]

Applied, thanks!

[1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact

      commit: a69274e1c6f557c2fa7f35f194acb51d723adbc8

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>