Subject: [PATCH 0/9] MSM8956/76 and Sony Xperia X / X Compact support

This series adds basic support for MSM8976 and its lower spec variant
MSM8956, along with two devices: the Sony Xperia X and X Compact.

For now, even though I do have a tree in which these two devices are
fully booting, only a basic console boot is provided as the rest is
awaiting cleanup and some more dependencies.
Especially every device requiring IOMMU support, like MDSS, MDP and
Adreno GPU cannot work with the current qcom_iommu driver, as it
needs some code to get the ASIDs right for MSM8956/76.

This series depends on [1].

Tested on both Xperia X and X Compact.

[1]: https://patchwork.kernel.org/project/linux-arm-msm/list/?series=690889

AngeloGioacchino Del Regno (7):
dt-bindings: iio: qcom-spmi-vadc: Add definitions for USB DP/DM VADCs
dt-bindings: soc: qcom: qcom,smd-rpm: Use qcom,smd-channels on MSM8976
dt-bindings: mmc: sdhci-msm: Document compatible for MSM8976
dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8976
arm64: dts: qcom: Add configuration for PM8950 peripheral
arm64: dts: qcom: Add DTS for MSM8976 and MSM8956 SoCs
arm64: dts: qcom: Add support for SONY Xperia X/X Compact

Marijn Suijten (2):
dt-bindings: nvmem: Add compatible for MSM8976
dt-bindings: arm: qcom: Document msm8956 and msm8976 SoC and devices

.../devicetree/bindings/arm/qcom.yaml | 10 +
.../devicetree/bindings/mfd/qcom,tcsr.yaml | 1 +
.../devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
.../bindings/nvmem/qcom,qfprom.yaml | 1 +
.../bindings/soc/qcom/qcom,smd-rpm.yaml | 1 +
arch/arm64/boot/dts/qcom/Makefile | 2 +
.../qcom/msm8956-sony-xperia-loire-kugo.dts | 36 +
.../qcom/msm8956-sony-xperia-loire-suzu.dts | 17 +
.../dts/qcom/msm8956-sony-xperia-loire.dtsi | 269 ++++
arch/arm64/boot/dts/qcom/msm8956.dtsi | 18 +
arch/arm64/boot/dts/qcom/msm8976.dtsi | 1208 +++++++++++++++++
arch/arm64/boot/dts/qcom/pm8950.dtsi | 165 +++
include/dt-bindings/iio/qcom,spmi-vadc.h | 3 +
13 files changed, 1732 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire-kugo.dts
create mode 100644 arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire-suzu.dts
create mode 100644 arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/msm8956.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/msm8976.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/pm8950.dtsi

--
2.37.2



Subject: [PATCH 1/9] dt-bindings: iio: qcom-spmi-vadc: Add definitions for USB DP/DM VADCs

From: AngeloGioacchino Del Regno <[email protected]>

Some SoCs do have a USB DP/DM ADC at 0x43, 0x44.

Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Konrad Dybcio <[email protected]>
Signed-off-by: Marijn Suijten <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
---
include/dt-bindings/iio/qcom,spmi-vadc.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/include/dt-bindings/iio/qcom,spmi-vadc.h b/include/dt-bindings/iio/qcom,spmi-vadc.h
index 08adfe25964c..c7bb9ef1f9ed 100644
--- a/include/dt-bindings/iio/qcom,spmi-vadc.h
+++ b/include/dt-bindings/iio/qcom,spmi-vadc.h
@@ -72,6 +72,9 @@
#define VADC_AMUX_PU2 0x3b
#define VADC_LR_MUX3_BUF_XO_THERM 0x3c

+#define VADC_USB_DP 0x43
+#define VADC_USB_DM 0x44
+
#define VADC_LR_MUX1_PU1_BAT_THERM 0x70
#define VADC_LR_MUX2_PU1_BAT_ID 0x71
#define VADC_LR_MUX3_PU1_XO_THERM 0x72
--
2.37.2


Subject: [PATCH 2/9] dt-bindings: nvmem: Add compatible for MSM8976

From: Marijn Suijten <[email protected]>

Document generic QFPROM compatibility on MSM8976.

Signed-off-by: Marijn Suijten <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
---
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
index 2eab2f46cb65..cac7be59c3cd 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -22,6 +22,7 @@ properties:
- qcom,msm8974-qfprom
- qcom,msm8916-qfprom
- qcom,msm8996-qfprom
+ - qcom,msm8976-qfprom
- qcom,msm8998-qfprom
- qcom,qcs404-qfprom
- qcom,sc7180-qfprom
--
2.37.2


2022-11-04 18:49:37

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 2/9] dt-bindings: nvmem: Add compatible for MSM8976

On 04/11/2022 13:21, AngeloGioacchino Del Regno wrote:
> From: Marijn Suijten <[email protected]>
>
> Document generic QFPROM compatibility on MSM8976.
>
> Signed-off-by: Marijn Suijten <[email protected]>
> Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
> ---
> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> index 2eab2f46cb65..cac7be59c3cd 100644
> --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> @@ -22,6 +22,7 @@ properties:
> - qcom,msm8974-qfprom
> - qcom,msm8916-qfprom
> - qcom,msm8996-qfprom
> + - qcom,msm8976-qfprom

Put it before msm8996, although order is already broken.

> - qcom,msm8998-qfprom
> - qcom,qcs404-qfprom
> - qcom,sc7180-qfprom

Best regards,
Krzysztof


2022-11-04 18:53:31

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/9] dt-bindings: iio: qcom-spmi-vadc: Add definitions for USB DP/DM VADCs

On 04/11/2022 13:21, AngeloGioacchino Del Regno wrote:
> From: AngeloGioacchino Del Regno <[email protected]>
>
> Some SoCs do have a USB DP/DM ADC at 0x43, 0x44.
>


Acked-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2022-11-05 15:03:13

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH 1/9] dt-bindings: iio: qcom-spmi-vadc: Add definitions for USB DP/DM VADCs

On Fri, 4 Nov 2022 14:25:15 -0400
Krzysztof Kozlowski <[email protected]> wrote:

> On 04/11/2022 13:21, AngeloGioacchino Del Regno wrote:
> > From: AngeloGioacchino Del Regno <[email protected]>
> >
> > Some SoCs do have a USB DP/DM ADC at 0x43, 0x44.
> >
>
>
> Acked-by: Krzysztof Kozlowski <[email protected]>

Acked-by: Jonathan Cameron <[email protected]>

>
> Best regards,
> Krzysztof
>


2022-11-08 05:18:45

by Bjorn Andersson

[permalink] [raw]
Subject: Re: (subset) [PATCH 0/9] MSM8956/76 and Sony Xperia X / X Compact support

On Fri, 4 Nov 2022 18:21:13 +0100, AngeloGioacchino Del Regno wrote:
> This series adds basic support for MSM8976 and its lower spec variant
> MSM8956, along with two devices: the Sony Xperia X and X Compact.
>
> For now, even though I do have a tree in which these two devices are
> fully booting, only a basic console boot is provided as the rest is
> awaiting cleanup and some more dependencies.
> Especially every device requiring IOMMU support, like MDSS, MDP and
> Adreno GPU cannot work with the current qcom_iommu driver, as it
> needs some code to get the ASIDs right for MSM8956/76.
>
> [...]

Applied, thanks!

[4/9] dt-bindings: soc: qcom: qcom,smd-rpm: Use qcom,smd-channels on MSM8976
commit: fe7e7def2ffc2962644de7abccf2ce85b5f07509

Best regards,
--
Bjorn Andersson <[email protected]>