This series adds initial support for MSM8953 (and SDM632 which is based
on MSM8953) and the Fairphone 3 smartphone.
Only relatively basic functionality is supported like storage, volume
keys and USB.
There is currently close-to-mainline support for other components for
this SoC including GPU, WiFi and audio, this series adds only basic
support so that the other components can start getting upstreamed
easier.
Changes in v2:
- rebase on linux-next and drop already applied patches
- drop msm8953-pm8953.dtsi patch: integrate changes into FP3 patch
- for individual patches for other changes
Luca Weiss (7):
dt-bindings: mfd: qcom,tcsr: Document msm8953 compatible
dt-bindings: thermal: tsens: Add msm8953 compatible
dt-bindings: usb: qcom,dwc3: Add msm8953 compatible
dt-bindings: arm: cpus: Add Kryo 250 CPUs
rpmsg: smd: allow opening rpm_requests even if already opened
dt-bindings: arm: qcom: Document sdm632 and fairphone,fp3 board
arm64: dts: qcom: sdm632: Add device tree for Fairphone 3
Vladimir Lypak (3):
arm64: dts: qcom: Add MSM8953 device tree
arm64: dts: qcom: Add PM8953 PMIC
arm64: dts: qcom: Add SDM632 device tree
.../devicetree/bindings/arm/cpus.yaml | 1 +
.../devicetree/bindings/arm/qcom.yaml | 6 +
.../devicetree/bindings/mfd/qcom,tcsr.txt | 1 +
.../bindings/thermal/qcom-tsens.yaml | 1 +
.../devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
arch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/msm8953.dtsi | 1326 +++++++++++++++++
arch/arm64/boot/dts/qcom/pm8953.dtsi | 90 ++
.../boot/dts/qcom/sdm632-fairphone-fp3.dts | 183 +++
arch/arm64/boot/dts/qcom/sdm632.dtsi | 81 +
drivers/rpmsg/qcom_smd.c | 5 +-
11 files changed, 1695 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/boot/dts/qcom/msm8953.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/pm8953.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts
create mode 100644 arch/arm64/boot/dts/qcom/sdm632.dtsi
--
2.35.1
From: Vladimir Lypak <[email protected]>
Snapdragon 632 is based on msm8953 with some minor differences, mostly
in the CPUs.
SDM632 is using Kryo 250 instead of ARM Cortex A53 and has some
differences in the thermal zones, mainly there being only one thermal
zones for the first 4 cores (efficiency cores) but keeps one thermal
zone per core for the remaining 4 cores (performance cores).
Co-developed-by: Gabriel David <[email protected]>
Signed-off-by: Gabriel David <[email protected]>
Signed-off-by: Vladimir Lypak <[email protected]>
Signed-off-by: Luca Weiss <[email protected]>
---
Changes in v2:
- add missing thermal zone for cpu0-3 (and add details to commit msg)
- improve style of overriding other thermal zones
- override compatible for CPUs to qcom,kryo250
arch/arm64/boot/dts/qcom/sdm632.dtsi | 81 ++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/sdm632.dtsi
diff --git a/arch/arm64/boot/dts/qcom/sdm632.dtsi b/arch/arm64/boot/dts/qcom/sdm632.dtsi
new file mode 100644
index 000000000000..645b9f6a801f
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sdm632.dtsi
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/* Copyright (c) 2022, The Linux Foundation. All rights reserved. */
+
+#include "msm8953.dtsi"
+
+/ {
+ thermal-zones {
+ /delete-node/cpu1-thermal;
+ /delete-node/cpu2-thermal;
+ /delete-node/cpu3-thermal;
+
+ cpu0-thermal {
+ thermal-sensors = <&tsens0 13>;
+
+ cooling-maps {
+ map0 {
+ cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+
+ cpu4-thermal {
+ thermal-sensors = <&tsens0 5>;
+ };
+
+ cpu5-thermal {
+ thermal-sensors = <&tsens0 6>;
+ };
+
+ cpu6-thermal {
+ thermal-sensors = <&tsens0 7>;
+ };
+
+ cpu7-thermal {
+ thermal-sensors = <&tsens0 8>;
+ };
+ };
+};
+
+/*
+ * SDM632 uses Kryo 250 instead of Cortex A53
+ * CPU0-3 are efficiency cores, CPU4-7 are performance cores
+ */
+&CPU0 {
+ compatible = "qcom,kryo250";
+};
+
+&CPU1 {
+ compatible = "qcom,kryo250";
+};
+
+&CPU2 {
+ compatible = "qcom,kryo250";
+};
+
+&CPU3 {
+ compatible = "qcom,kryo250";
+};
+
+&CPU4 {
+ compatible = "qcom,kryo250";
+ capacity-dmips-mhz = <1980>;
+};
+
+&CPU5 {
+ compatible = "qcom,kryo250";
+ capacity-dmips-mhz = <1980>;
+};
+
+&CPU6 {
+ compatible = "qcom,kryo250";
+ capacity-dmips-mhz = <1980>;
+};
+
+&CPU7 {
+ compatible = "qcom,kryo250";
+ capacity-dmips-mhz = <1980>;
+};
--
2.35.1
Document the compatible string for the DWC3 controller in msm8953.
Signed-off-by: Luca Weiss <[email protected]>
Acked-by: Konrad Dybcio <[email protected]>
Acked-by: Rob Herring <[email protected]>
---
Changes in v2:
- no changes
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
index 2d23a4ff702f..ce252db2aab3 100644
--- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
@@ -16,6 +16,7 @@ properties:
- qcom,ipq4019-dwc3
- qcom,ipq6018-dwc3
- qcom,ipq8064-dwc3
+ - qcom,msm8953-dwc3
- qcom,msm8996-dwc3
- qcom,msm8998-dwc3
- qcom,sc7180-dwc3
--
2.35.1
Add binding documentation for Fairphone 3 smartphone which is based on
Snapdragon 632 (sm632).
Signed-off-by: Luca Weiss <[email protected]>
Acked-by: Rob Herring <[email protected]>
---
Changes in v2:
- no changes
Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index e8b1606bc849..129cdd246223 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -42,6 +42,7 @@ description: |
sc7180
sc7280
sdm630
+ sdm632
sdm660
sdm845
sdx55
@@ -224,6 +225,11 @@ properties:
- google,senor
- const: qcom,sc7280
+ - items:
+ - enum:
+ - fairphone,fp3
+ - const: qcom,sdm632
+
- items:
- enum:
- xiaomi,lavender
--
2.35.1
On Sun 20 Feb 14:18 CST 2022, Luca Weiss wrote:
> Document the compatible string for the DWC3 controller in msm8953.
>
> Signed-off-by: Luca Weiss <[email protected]>
> Acked-by: Konrad Dybcio <[email protected]>
> Acked-by: Rob Herring <[email protected]>
Greg, can you please pick this patch through the USB tree.
Thanks,
Bjorn
> ---
> Changes in v2:
> - no changes
>
> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> index 2d23a4ff702f..ce252db2aab3 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> @@ -16,6 +16,7 @@ properties:
> - qcom,ipq4019-dwc3
> - qcom,ipq6018-dwc3
> - qcom,ipq8064-dwc3
> + - qcom,msm8953-dwc3
> - qcom,msm8996-dwc3
> - qcom,msm8998-dwc3
> - qcom,sc7180-dwc3
> --
> 2.35.1
>
On Sun, 20 Feb 2022 21:18:53 +0100, Luca Weiss wrote:
> This series adds initial support for MSM8953 (and SDM632 which is based
> on MSM8953) and the Fairphone 3 smartphone.
>
> Only relatively basic functionality is supported like storage, volume
> keys and USB.
>
> There is currently close-to-mainline support for other components for
> this SoC including GPU, WiFi and audio, this series adds only basic
> support so that the other components can start getting upstreamed
> easier.
>
> [...]
Applied, thanks!
[04/10] dt-bindings: arm: cpus: Add Kryo 250 CPUs
commit: 08b25f7d99e15f2aa5f4cce3f13ad0c67a4c1e34
[06/10] arm64: dts: qcom: Add MSM8953 device tree
commit: 9fb08c8019234a0759aab66914f01bc0971e4eed
[07/10] arm64: dts: qcom: Add PM8953 PMIC
commit: 06ea71e42975cdd43cc1e2dacd3e56c8693ac733
[08/10] arm64: dts: qcom: Add SDM632 device tree
commit: 24af02271ca7cf095186963002d1d98349d9e5e5
[09/10] dt-bindings: arm: qcom: Document sdm632 and fairphone,fp3 board
commit: cb898d5e59b41a268dcf4dbef31d651c393dfbae
[10/10] arm64: dts: qcom: sdm632: Add device tree for Fairphone 3
commit: 308b26cddb04afc7776de1cbbe07172eeccc7c98
Best regards,
--
Bjorn Andersson <[email protected]>
On Thu, Feb 24, 2022 at 02:11:46PM -0600, Bjorn Andersson wrote:
> On Sun 20 Feb 14:18 CST 2022, Luca Weiss wrote:
>
> > Document the compatible string for the DWC3 controller in msm8953.
> >
> > Signed-off-by: Luca Weiss <[email protected]>
> > Acked-by: Konrad Dybcio <[email protected]>
> > Acked-by: Rob Herring <[email protected]>
>
> Greg, can you please pick this patch through the USB tree.
Will do, thanks.
gre gk-h