* [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari)
@ 2025-06-10 18:34 Luca Weiss
2025-06-10 18:34 ` [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging Luca Weiss
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Luca Weiss @ 2025-06-10 18:34 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Luca Weiss, Dmitry Baryshkov
Do some tweaks to the common file for the devices in the 'rhine' family
of Sony devices, and add a dts for togari.
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
Changes in v2:
- Move non-vendor property first as per style guide in first patch
(Dmitry)
- Add msm8974- to commit messages
- Pick up tags
- Link to v1: https://lore.kernel.org/r/20250419-togari-v1-0-45840c677364@lucaweiss.eu
---
Kevin Widjaja (4):
ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging
ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami
dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari)
ARM: dts: qcom: Add initial support for Sony Xperia Z Ultra (togari)
Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
arch/arm/boot/dts/qcom/Makefile | 1 +
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts | 16 ++++++++++++++++
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts | 16 ++++++++++++++++
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-togari.dts | 16 ++++++++++++++++
.../boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 18 +++---------------
6 files changed, 53 insertions(+), 15 deletions(-)
---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250419-togari-bcec79829337
Best regards,
--
Luca Weiss <luca@lucaweiss.eu>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
@ 2025-06-10 18:34 ` Luca Weiss
2025-06-10 22:16 ` Dmitry Baryshkov
2025-06-10 18:34 ` [PATCH v2 2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami Luca Weiss
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Luca Weiss @ 2025-06-10 18:34 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Luca Weiss
From: Kevin Widjaja <kevin.widjaja21@gmail.com>
Set usb-charge-current-limit to enable charging over USB for all
sony-rhine devices.
Signed-off-by: Kevin Widjaja <kevin.widjaja21@gmail.com>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
index d34659ebac22e65a511994ef201fe04f12089781..1dc9fa7f3ca00a13f4a33989cbdfc715176e3307 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
@@ -446,6 +446,8 @@ &sdhc_2 {
};
&smbb {
+ usb-charge-current-limit = <1800000>;
+
qcom,fast-charge-safe-current = <1500000>;
qcom,fast-charge-current-limit = <1500000>;
qcom,dc-current-limit = <1800000>;
--
2.49.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
2025-06-10 18:34 ` [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging Luca Weiss
@ 2025-06-10 18:34 ` Luca Weiss
2025-06-10 18:34 ` [PATCH v2 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari) Luca Weiss
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2025-06-10 18:34 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Luca Weiss, Dmitry Baryshkov
From: Kevin Widjaja <kevin.widjaja21@gmail.com>
An upcoming board in the sony-xperia-rhine family (sony-togari) does not
have dedicated camera buttons, so move those from common rhine dtsi to
amami and honami dts files.
Signed-off-by: Kevin Widjaja <kevin.widjaja21@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts | 16 ++++++++++++++++
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts | 16 ++++++++++++++++
.../boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 14 --------------
3 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts
index 9f2ab5c122d0b89e0ce343bec4d47ce238ade4f4..472a45408add20ccb685c4f3255e1b895e722ab1 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts
@@ -5,6 +5,22 @@ / {
model = "Sony Xperia Z1 Compact";
compatible = "sony,xperia-amami", "qcom,msm8974";
chassis-type = "handset";
+
+ gpio-keys {
+ key-camera-snapshot {
+ label = "camera_snapshot";
+ gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
+ linux,input-type = <1>;
+ linux,code = <KEY_CAMERA>;
+ };
+
+ key-camera-focus {
+ label = "camera_focus";
+ gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
+ linux,input-type = <1>;
+ linux,code = <KEY_CAMERA_FOCUS>;
+ };
+ };
};
&smbb {
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts
index 9028f17e5c4a76e3d381eec0356591ab245b4569..c3d69641fc1da971dc34885e66c6cb05bc727ddd 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts
@@ -5,4 +5,20 @@ / {
model = "Sony Xperia Z1";
compatible = "sony,xperia-honami", "qcom,msm8974";
chassis-type = "handset";
+
+ gpio-keys {
+ key-camera-snapshot {
+ label = "camera_snapshot";
+ gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
+ linux,input-type = <1>;
+ linux,code = <KEY_CAMERA>;
+ };
+
+ key-camera-focus {
+ label = "camera_focus";
+ gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
+ linux,input-type = <1>;
+ linux,code = <KEY_CAMERA_FOCUS>;
+ };
+ };
};
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
index 1dc9fa7f3ca00a13f4a33989cbdfc715176e3307..bf539e741ec060de67e7cb656a597abbc16650fe 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
@@ -28,20 +28,6 @@ key-volume-down {
linux,code = <KEY_VOLUMEDOWN>;
};
- key-camera-snapshot {
- label = "camera_snapshot";
- gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
- linux,input-type = <1>;
- linux,code = <KEY_CAMERA>;
- };
-
- key-camera-focus {
- label = "camera_focus";
- gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
- linux,input-type = <1>;
- linux,code = <KEY_CAMERA_FOCUS>;
- };
-
key-volume-up {
label = "volume_up";
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
--
2.49.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari)
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
2025-06-10 18:34 ` [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging Luca Weiss
2025-06-10 18:34 ` [PATCH v2 2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami Luca Weiss
@ 2025-06-10 18:34 ` Luca Weiss
2025-06-10 18:34 ` [PATCH v2 4/4] ARM: dts: qcom: Add initial support for " Luca Weiss
2025-06-12 4:00 ` [PATCH v2 0/4] Add " Bjorn Andersson
4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2025-06-10 18:34 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Luca Weiss
From: Kevin Widjaja <kevin.widjaja21@gmail.com>
Based on the msm8974.
Signed-off-by: Kevin Widjaja <kevin.widjaja21@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index 56f78f0f3803fedcb6422efd6adec3bbc81c2e03..b14206d11f8bad895da107c8c7da9afe54d58dde 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -209,6 +209,7 @@ properties:
- samsung,hlte
- sony,xperia-amami
- sony,xperia-honami
+ - sony,xperia-togari
- const: qcom,msm8974
- items:
--
2.49.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 4/4] ARM: dts: qcom: Add initial support for Sony Xperia Z Ultra (togari)
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
` (2 preceding siblings ...)
2025-06-10 18:34 ` [PATCH v2 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari) Luca Weiss
@ 2025-06-10 18:34 ` Luca Weiss
2025-06-12 4:00 ` [PATCH v2 0/4] Add " Bjorn Andersson
4 siblings, 0 replies; 7+ messages in thread
From: Luca Weiss @ 2025-06-10 18:34 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Luca Weiss, Dmitry Baryshkov
From: Kevin Widjaja <kevin.widjaja21@gmail.com>
Add the dts for the Z Ultra. This is currently almost the same as Z1
Compact (amami) and Z1 (honami) as they share almost the same hardware.
Only USB Networking and volume button are confirmed working.
Signed-off-by: Kevin Widjaja <kevin.widjaja21@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
---
arch/arm/boot/dts/qcom/Makefile | 1 +
.../dts/qcom/qcom-msm8974-sony-xperia-rhine-togari.dts | 16 ++++++++++++++++
.../boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile
index 0c1d116f6e84f76994aa8c8286350bdcd1657a42..e875b5d25e8421fe16c94a1526ff401638ff01ab 100644
--- a/arch/arm/boot/dts/qcom/Makefile
+++ b/arch/arm/boot/dts/qcom/Makefile
@@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
qcom-msm8974-samsung-hlte.dtb \
qcom-msm8974-sony-xperia-rhine-amami.dtb \
qcom-msm8974-sony-xperia-rhine-honami.dtb \
+ qcom-msm8974-sony-xperia-rhine-togari.dtb \
qcom-msm8974pro-fairphone-fp2.dtb \
qcom-msm8974pro-htc-m8.dtb \
qcom-msm8974pro-oneplus-bacon.dtb \
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-togari.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-togari.dts
new file mode 100644
index 0000000000000000000000000000000000000000..f60f7304d35e1e534bb350078dae900ec54700d4
--- /dev/null
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-togari.dts
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+#include "qcom-msm8974-sony-xperia-rhine.dtsi"
+
+/* Togari uses a different touchscreen compared to other rhine devices */
+/delete-node/ &touchscreen;
+
+/ {
+ model = "Sony Xperia Z Ultra";
+ compatible = "sony,xperia-togari", "qcom,msm8974";
+ chassis-type = "handset";
+};
+
+&pm8941_l23 {
+ regulator-min-microvolt = <2600000>;
+ regulator-max-microvolt = <2600000>;
+};
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
index bf539e741ec060de67e7cb656a597abbc16650fe..f973ff65733242a243a850b99821967ccc582567 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi
@@ -84,7 +84,7 @@ &blsp1_i2c2 {
status = "okay";
clock-frequency = <355000>;
- synaptics@2c {
+ touchscreen: synaptics@2c {
compatible = "syna,rmi4-i2c";
reg = <0x2c>;
--
2.49.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging
2025-06-10 18:34 ` [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging Luca Weiss
@ 2025-06-10 22:16 ` Dmitry Baryshkov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-06-10 22:16 UTC (permalink / raw)
To: Luca Weiss
Cc: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel
On Tue, Jun 10, 2025 at 08:34:52PM +0200, Luca Weiss wrote:
> From: Kevin Widjaja <kevin.widjaja21@gmail.com>
>
> Set usb-charge-current-limit to enable charging over USB for all
> sony-rhine devices.
>
> Signed-off-by: Kevin Widjaja <kevin.widjaja21@gmail.com>
> Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
> ---
> arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari)
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
` (3 preceding siblings ...)
2025-06-10 18:34 ` [PATCH v2 4/4] ARM: dts: qcom: Add initial support for " Luca Weiss
@ 2025-06-12 4:00 ` Bjorn Andersson
4 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2025-06-12 4:00 UTC (permalink / raw)
To: ~postmarketos/upstreaming, phone-devel, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luca Weiss
Cc: Kevin Widjaja, linux-arm-msm, devicetree, linux-kernel,
Dmitry Baryshkov
On Tue, 10 Jun 2025 20:34:51 +0200, Luca Weiss wrote:
> Do some tweaks to the common file for the devices in the 'rhine' family
> of Sony devices, and add a dts for togari.
>
>
Applied, thanks!
[1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging
commit: 702639bc50515c973cf92191d689623fa7d6c32e
[2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami
commit: edae4a6260d387e1e40dcf3acbbeb4c86bfd2ecb
[3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari)
commit: 700a4c3f95a3cea340bf8c2371cf2bfd99da15ca
[4/4] ARM: dts: qcom: Add initial support for Sony Xperia Z Ultra (togari)
commit: 3d8663cb9e21912ad9554701bfb3a8254cf0a4ef
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-12 4:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 18:34 [PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari) Luca Weiss
2025-06-10 18:34 ` [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging Luca Weiss
2025-06-10 22:16 ` Dmitry Baryshkov
2025-06-10 18:34 ` [PATCH v2 2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami Luca Weiss
2025-06-10 18:34 ` [PATCH v2 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari) Luca Weiss
2025-06-10 18:34 ` [PATCH v2 4/4] ARM: dts: qcom: Add initial support for " Luca Weiss
2025-06-12 4:00 ` [PATCH v2 0/4] Add " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox