devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone
@ 2024-06-21 14:26 Valeriy Klimin
  2024-06-21 14:26 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact Valeriy Klimin
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Valeriy Klimin @ 2024-06-21 14:26 UTC (permalink / raw)
  To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, 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.

Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
---
Changes in v2:
- Reordered dt-bindings and dts commits
- Link to v1: https://lore.kernel.org/r/20240621-sony-aries-v1-0-bcf96876980e@gmail.com

---
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,
-- 
Valeriy Klimin <vdos63@gmail.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact
  2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
@ 2024-06-21 14:26 ` Valeriy Klimin
  2024-06-22 12:04   ` Conor Dooley
  2024-06-21 14:26 ` [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Valeriy Klimin @ 2024-06-21 14:26 UTC (permalink / raw)
  To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Valeriy Klimin

Add the compatible for this device.

Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
---
 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 ae885414b181..e53f061fc1cf 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -184,6 +184,7 @@ properties:
               - fairphone,fp2
               - oneplus,bacon
               - samsung,klte
+              - sony,xperia-aries
               - sony,xperia-castor
               - sony,xperia-leo
           - const: qcom,msm8974pro

-- 
2.43.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone
  2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
  2024-06-21 14:26 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact Valeriy Klimin
@ 2024-06-21 14:26 ` Valeriy Klimin
  2024-06-22 11:10   ` Konrad Dybcio
  2024-06-21 14:26 ` [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2 Valeriy Klimin
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Valeriy Klimin @ 2024-06-21 14:26 UTC (permalink / raw)
  To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, 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.

Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
---
 arch/arm/boot/dts/qcom/Makefile                    |  1 +
 .../qcom-msm8974pro-sony-xperia-shinano-aries.dts  | 44 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile
index e2e922bdc9e9..d057396cfeef 100644
--- a/arch/arm/boot/dts/qcom/Makefile
+++ b/arch/arm/boot/dts/qcom/Makefile
@@ -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 \
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-aries.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-aries.dts
new file mode 100644
index 000000000000..2621c5928b6a
--- /dev/null
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-aries.dts
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: GPL-2.0
+#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
+
+/ {
+	model = "Sony Xperia Z3 Compact";
+	compatible = "sony,xperia-aries", "qcom,msm8974pro", "qcom,msm8974";
+	chassis-type = "handset";
+
+	gpio-keys {
+		key-camera-snapshot {
+			label = "camera_snapshot";
+			gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_CAMERA>;
+			debounce-interval = <15>;
+		};
+
+		key-camera-focus {
+			label = "camera_focus";
+			gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_CAMERA_FOCUS>;
+			debounce-interval = <15>;
+		};
+	};
+};
+
+&gpio_keys_pin_a {
+	pins = "gpio2", "gpio3", "gpio4", "gpio5";
+};
+
+&smbb {
+	usb-charge-current-limit = <1500000>;
+	qcom,fast-charge-safe-current = <2100000>;
+	qcom,fast-charge-current-limit = <1800000>;
+	qcom,fast-charge-safe-voltage = <4400000>;
+	qcom,fast-charge-high-threshold-voltage = <4350000>;
+	qcom,auto-recharge-threshold-voltage = <4280000>;
+	qcom,minimum-input-voltage = <4200000>;
+
+	status = "okay";
+};
+
+&synaptics_touchscreen {
+	vio-supply = <&pm8941_s3>;
+};

-- 
2.43.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2
  2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
  2024-06-21 14:26 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact Valeriy Klimin
  2024-06-21 14:26 ` [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
@ 2024-06-21 14:26 ` Valeriy Klimin
  2024-06-22 11:21   ` Konrad Dybcio
  2024-06-21 21:41 ` [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Dmitry Baryshkov
  2024-06-23 21:02 ` (subset) " Bjorn Andersson
  4 siblings, 1 reply; 9+ messages in thread
From: Valeriy Klimin @ 2024-06-21 14:26 UTC (permalink / raw)
  To: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, 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.

Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
---
 arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi
index e129bb1bd6ec..6af7c71c7158 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi
@@ -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;
 		};
 

-- 
2.43.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone
  2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
                   ` (2 preceding siblings ...)
  2024-06-21 14:26 ` [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2 Valeriy Klimin
@ 2024-06-21 21:41 ` Dmitry Baryshkov
  2024-06-23 21:02 ` (subset) " Bjorn Andersson
  4 siblings, 0 replies; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-06-21 21:41 UTC (permalink / raw)
  To: Valeriy Klimin
  Cc: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, devicetree, linux-kernel

On Fri, Jun 21, 2024 at 05:26:41PM GMT, Valeriy Klimin wrote:
> 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.
> 
> Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
> ---
> Changes in v2:
> - Reordered dt-bindings and dts commits
> - Link to v1: https://lore.kernel.org/r/20240621-sony-aries-v1-0-bcf96876980e@gmail.com

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.

> 
> ---
> 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,
> -- 
> Valeriy Klimin <vdos63@gmail.com>
> 

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone
  2024-06-21 14:26 ` [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
@ 2024-06-22 11:10   ` Konrad Dybcio
  0 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-06-22 11:10 UTC (permalink / raw)
  To: Valeriy Klimin, ~postmarketos/upstreaming, phone-devel,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel

On 21.06.2024 4:26 PM, Valeriy Klimin wrote:
> 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.
> 
> Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2
  2024-06-21 14:26 ` [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2 Valeriy Klimin
@ 2024-06-22 11:21   ` Konrad Dybcio
  0 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-06-22 11:21 UTC (permalink / raw)
  To: Valeriy Klimin, ~postmarketos/upstreaming, phone-devel,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel

On 21.06.2024 4:26 PM, Valeriy Klimin wrote:
> 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.
> 
> Signed-off-by: Valeriy Klimin <vdos63@gmail.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact
  2024-06-21 14:26 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact Valeriy Klimin
@ 2024-06-22 12:04   ` Conor Dooley
  0 siblings, 0 replies; 9+ messages in thread
From: Conor Dooley @ 2024-06-22 12:04 UTC (permalink / raw)
  To: Valeriy Klimin
  Cc: ~postmarketos/upstreaming, phone-devel, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

On Fri, Jun 21, 2024 at 05:26:42PM +0300, Valeriy Klimin wrote:
> Add the compatible for this device.
> 
> Signed-off-by: Valeriy Klimin <vdos63@gmail.com>


Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: (subset) [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone
  2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
                   ` (3 preceding siblings ...)
  2024-06-21 21:41 ` [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Dmitry Baryshkov
@ 2024-06-23 21:02 ` Bjorn Andersson
  4 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2024-06-23 21:02 UTC (permalink / raw)
  To: ~postmarketos/upstreaming, phone-devel, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Valeriy Klimin
  Cc: linux-arm-msm, devicetree, linux-kernel


On Fri, 21 Jun 2024 17:26:41 +0300, Valeriy Klimin wrote:
> 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,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-23 21:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 14:26 [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
2024-06-21 14:26 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Add Sony Xperia Z3 Compact Valeriy Klimin
2024-06-22 12:04   ` Conor Dooley
2024-06-21 14:26 ` [PATCH v2 2/3] ARM: dts: qcom: Add Sony Xperia Z3 Compact smartphone Valeriy Klimin
2024-06-22 11:10   ` Konrad Dybcio
2024-06-21 14:26 ` [PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-shinano: increase load on l21 for sdhc2 Valeriy Klimin
2024-06-22 11:21   ` Konrad Dybcio
2024-06-21 21:41 ` [PATCH v2 0/3] Add Sony Xperia Z3 Compact smartphone Dmitry Baryshkov
2024-06-23 21:02 ` (subset) " Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).