* [PATCH v3 00/15] Introduce the SC8180x devices
@ 2023-05-30 16:24 Vinod Koul
2023-05-30 16:24 ` [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts Vinod Koul
2023-05-30 17:22 ` (subset) [PATCH v3 00/15] Introduce the SC8180x devices Bjorn Andersson
0 siblings, 2 replies; 7+ messages in thread
From: Vinod Koul @ 2023-05-30 16:24 UTC (permalink / raw)
To: Bjorn Andersson
Cc: linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
Wesley Cheng, Georgi Djakov, Avri Altman, Bart Van Assche,
Thomas Gleixner, Marc Zyngier, linux-pci, devicetree,
linux-kernel, linux-usb, linux-pm, linux-scsi
This introduces Qualcomm SC8180x SoC which features in Lenovo Flex 5G
laptop. This also adds support for Primus platform as well as Lenovo Flex 5G
laptop.
Changes in v3:
- Split DTS patch into smaller check
- checkpatch and dtbs check error fixes
- fix comments from Konrad/Krzysztof
Changes in v2:
- Fix the ufs pcie and phy bindings
- Lots of error fixes for dtbs_check
- Add few more missing compatiables
Bjorn Andersson (3):
arm64: dts: qcom: Introduce the SC8180x platform
arm64: dts: qcom: sc8180x: Introduce Primus
arm64: dts: qcom: sc8180x: Introduce Lenovo Flex 5G
Vinod Koul (12):
dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
dt-bindings: usb: qcom,dwc3: Add SC8180x binding
dt-bindings: interconnect: split SC8180x to own schema
scsi: ufs: dt-bindings: Add SC8180x binding
dt-bindings: qcom,pdc: Add SC8180x compatible
arm64: dts: qcom: sc8180x: Add interconnects and lmh
arm64: dts: qcom: sc8180x: Add thermal zones
arm64: dts: qcom: sc8180x: Add QUPs
arm64: dts: qcom: sc8180x: Add PCIe instances
arm64: dts: qcom: sc8180x: Add remoteprocs, wifi and usb nodes
arm64: dts: qcom: sc8180x: Add display and gpu nodes
arm64: dts: qcom: sc8180x: Add pmics
.../bindings/interconnect/qcom,rpmh.yaml | 11 -
.../interconnect/qcom,sc8180x-rpmh.yaml | 49 +
.../interrupt-controller/qcom,pdc.yaml | 1 +
.../devicetree/bindings/pci/qcom,pcie.yaml | 29 +-
.../devicetree/bindings/ufs/qcom,ufs.yaml | 2 +
.../devicetree/bindings/usb/qcom,dwc3.yaml | 3 +
arch/arm64/boot/dts/qcom/Makefile | 2 +
.../boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 583 +++
arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 326 ++
arch/arm64/boot/dts/qcom/sc8180x-primus.dts | 706 +++
arch/arm64/boot/dts/qcom/sc8180x.dtsi | 4030 +++++++++++++++++
11 files changed, 5730 insertions(+), 12 deletions(-)
create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sc8180x-rpmh.yaml
create mode 100644 arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts
create mode 100644 arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/sc8180x-primus.dts
create mode 100644 arch/arm64/boot/dts/qcom/sc8180x.dtsi
--
2.40.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
2023-05-30 16:24 [PATCH v3 00/15] Introduce the SC8180x devices Vinod Koul
@ 2023-05-30 16:24 ` Vinod Koul
2023-05-31 8:19 ` Krzysztof Kozlowski
2023-06-01 7:26 ` Krzysztof Kozlowski
2023-05-30 17:22 ` (subset) [PATCH v3 00/15] Introduce the SC8180x devices Bjorn Andersson
1 sibling, 2 replies; 7+ messages in thread
From: Vinod Koul @ 2023-05-30 16:24 UTC (permalink / raw)
To: Bjorn Andersson
Cc: linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
linux-pci, devicetree, linux-kernel, Vinod Koul
Commit 45a3ec891370 ("PCI: qcom: Add sc8180x compatible") added sc8180x
compatible and commit 075a9d55932e ("dt-bindings: PCI: qcom: Convert to
YAML") converted the description to yaml
But there are still some errors specific to sc8180x which this change
attempts to fix. The clocks and resets for sc8180 pcie controller are
different so need to be documented separately
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
.../devicetree/bindings/pci/qcom,pcie.yaml | 29 ++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
index 81971be4e554..40a1f451a3d3 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
@@ -476,6 +476,33 @@ allOf:
items:
- const: pci # PCIe core reset
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,pcie-sc8180x
+ then:
+ properties:
+ clocks:
+ minItems: 8
+ maxItems: 8
+ clock-names:
+ items:
+ - const: pipe # PIPE clock
+ - const: aux # Auxiliary clock
+ - const: cfg # Configuration clock
+ - const: bus_master # Master AXI clock
+ - const: bus_slave # Slave AXI clock
+ - const: slave_q2a # Slave Q2A clock
+ - const: ref # REFERENCE clock
+ - const: tbu # PCIe TBU clock
+ resets:
+ maxItems: 1
+ reset-names:
+ items:
+ - const: pci # PCIe core reset
+
- if:
properties:
compatible:
@@ -524,7 +551,6 @@ allOf:
compatible:
contains:
enum:
- - qcom,pcie-sc8180x
- qcom,pcie-sm8150
- qcom,pcie-sm8250
then:
@@ -749,6 +775,7 @@ allOf:
contains:
enum:
- qcom,pcie-sa8540p
+ - qcom,pcie-sc8180x
- qcom,pcie-sc8280xp
then:
required:
--
2.40.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH v3 00/15] Introduce the SC8180x devices
2023-05-30 16:24 [PATCH v3 00/15] Introduce the SC8180x devices Vinod Koul
2023-05-30 16:24 ` [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts Vinod Koul
@ 2023-05-30 17:22 ` Bjorn Andersson
1 sibling, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2023-05-30 17:22 UTC (permalink / raw)
To: Vinod Koul
Cc: Bart Van Assche, Lorenzo Pieralisi, linux-pci,
Krzysztof Kozlowski, devicetree, Krzysztof Wilczyński,
Rob Herring, Wesley Cheng, linux-scsi, Marc Zyngier, linux-pm,
linux-arm-msm, Manivannan Sadhasivam, Avri Altman, Georgi Djakov,
Thomas Gleixner, linux-kernel, linux-usb, Konrad Dybcio,
Conor Dooley, Bjorn Helgaas
On Tue, 30 May 2023 21:54:39 +0530, Vinod Koul wrote:
> This introduces Qualcomm SC8180x SoC which features in Lenovo Flex 5G
> laptop. This also adds support for Primus platform as well as Lenovo Flex 5G
> laptop.
>
> Changes in v3:
> - Split DTS patch into smaller check
> - checkpatch and dtbs check error fixes
> - fix comments from Konrad/Krzysztof
>
> [...]
Quite a few DT validation warnings left, but let's get it merged so that we can
work on those together.
Applied, thanks!
[06/15] arm64: dts: qcom: Introduce the SC8180x platform
commit: 8575f197b077001591ef3ff709cdee48785daf0d
[07/15] arm64: dts: qcom: sc8180x: Add interconnects and lmh
commit: f3be8a111d7eaf4e291b6c2d51dd0adb39934b32
[08/15] arm64: dts: qcom: sc8180x: Add thermal zones
commit: d1d3ca03554e51be44546638f83169bb05b20ef8
[09/15] arm64: dts: qcom: sc8180x: Add QUPs
commit: 0018761d1564f64d567e119fd9156c473b4592d7
[10/15] arm64: dts: qcom: sc8180x: Add PCIe instances
commit: d20b6c84f56ae3a9823cc0fa5cfad330536ba0d1
[11/15] arm64: dts: qcom: sc8180x: Add remoteprocs, wifi and usb nodes
commit: b080f53a8f44eeaa9db9628d8d339ab5a2afb5bd
[12/15] arm64: dts: qcom: sc8180x: Add display and gpu nodes
commit: 494dec9b6f541451b2e82905b0eebd9a4ac9848b
[13/15] arm64: dts: qcom: sc8180x: Add pmics
commit: d3302290f59e8533a56a8fa2455357f843d8dcf6
[14/15] arm64: dts: qcom: sc8180x: Introduce Primus
commit: 2ce38cc1e8fea4e251e4563e436104369bf3b322
[15/15] arm64: dts: qcom: sc8180x: Introduce Lenovo Flex 5G
commit: 20dea72a393c6d5572088b8ad01dbb9e9aca64ce
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
2023-05-30 16:24 ` [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts Vinod Koul
@ 2023-05-31 8:19 ` Krzysztof Kozlowski
2023-06-01 7:21 ` Vinod Koul
2023-06-01 7:26 ` Krzysztof Kozlowski
1 sibling, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-31 8:19 UTC (permalink / raw)
To: Vinod Koul, Bjorn Andersson
Cc: linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
linux-pci, devicetree, linux-kernel
On 30/05/2023 18:24, Vinod Koul wrote:
> Commit 45a3ec891370 ("PCI: qcom: Add sc8180x compatible") added sc8180x
> compatible and commit 075a9d55932e ("dt-bindings: PCI: qcom: Convert to
> YAML") converted the description to yaml
>
> But there are still some errors specific to sc8180x which this change
> attempts to fix. The clocks and resets for sc8180 pcie controller are
> different so need to be documented separately
I don't get what's the error here to fix. The clocks you list are
already there as part of oneOf.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> .../devicetree/bindings/pci/qcom,pcie.yaml | 29 ++++++++++++++++++-
> 1 file changed, 28 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> index 81971be4e554..40a1f451a3d3 100644
> --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> @@ -476,6 +476,33 @@ allOf:
> items:
> - const: pci # PCIe core reset
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,pcie-sc8180x
> + then:
> + properties:
> + clocks:
> + minItems: 8
> + maxItems: 8
> + clock-names:
> + items:
> + - const: pipe # PIPE clock
> + - const: aux # Auxiliary clock
> + - const: cfg # Configuration clock
> + - const: bus_master # Master AXI clock
> + - const: bus_slave # Slave AXI clock
> + - const: slave_q2a # Slave Q2A clock
> + - const: ref # REFERENCE clock
> + - const: tbu # PCIe TBU clock
> + resets:
> + maxItems: 1
> + reset-names:
> + items:
> + - const: pci # PCIe core reset
> +
> - if:
> properties:
> compatible:
> @@ -524,7 +551,6 @@ allOf:
> compatible:
> contains:
> enum:
> - - qcom,pcie-sc8180x
> - qcom,pcie-sm8150
> - qcom,pcie-sm8250
> then:
> @@ -749,6 +775,7 @@ allOf:
> contains:
> enum:
> - qcom,pcie-sa8540p
> + - qcom,pcie-sc8180x
> - qcom,pcie-sc8280xp
> then:
> required:
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
2023-05-31 8:19 ` Krzysztof Kozlowski
@ 2023-06-01 7:21 ` Vinod Koul
2023-06-01 7:25 ` Krzysztof Kozlowski
0 siblings, 1 reply; 7+ messages in thread
From: Vinod Koul @ 2023-06-01 7:21 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
linux-pci, devicetree, linux-kernel
On 31-05-23, 10:19, Krzysztof Kozlowski wrote:
> On 30/05/2023 18:24, Vinod Koul wrote:
> > Commit 45a3ec891370 ("PCI: qcom: Add sc8180x compatible") added sc8180x
> > compatible and commit 075a9d55932e ("dt-bindings: PCI: qcom: Convert to
> > YAML") converted the description to yaml
> >
> > But there are still some errors specific to sc8180x which this change
> > attempts to fix. The clocks and resets for sc8180 pcie controller are
> > different so need to be documented separately
>
> I don't get what's the error here to fix. The clocks you list are
> already there as part of oneOf.
It was listed with sm8150 block which has different set of clocks than
used in sc81880x, so this needs to have its own block of clocks and
resets
> >
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> > .../devicetree/bindings/pci/qcom,pcie.yaml | 29 ++++++++++++++++++-
> > 1 file changed, 28 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> > index 81971be4e554..40a1f451a3d3 100644
> > --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml
> > @@ -476,6 +476,33 @@ allOf:
> > items:
> > - const: pci # PCIe core reset
> >
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + enum:
> > + - qcom,pcie-sc8180x
> > + then:
> > + properties:
> > + clocks:
> > + minItems: 8
> > + maxItems: 8
> > + clock-names:
> > + items:
> > + - const: pipe # PIPE clock
> > + - const: aux # Auxiliary clock
> > + - const: cfg # Configuration clock
> > + - const: bus_master # Master AXI clock
> > + - const: bus_slave # Slave AXI clock
> > + - const: slave_q2a # Slave Q2A clock
> > + - const: ref # REFERENCE clock
> > + - const: tbu # PCIe TBU clock
> > + resets:
> > + maxItems: 1
> > + reset-names:
> > + items:
> > + - const: pci # PCIe core reset
> > +
> > - if:
> > properties:
> > compatible:
> > @@ -524,7 +551,6 @@ allOf:
> > compatible:
> > contains:
> > enum:
> > - - qcom,pcie-sc8180x
> > - qcom,pcie-sm8150
> > - qcom,pcie-sm8250
> > then:
> > @@ -749,6 +775,7 @@ allOf:
> > contains:
> > enum:
> > - qcom,pcie-sa8540p
> > + - qcom,pcie-sc8180x
> > - qcom,pcie-sc8280xp
> > then:
> > required:
>
> Best regards,
> Krzysztof
--
~Vinod
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
2023-06-01 7:21 ` Vinod Koul
@ 2023-06-01 7:25 ` Krzysztof Kozlowski
0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-01 7:25 UTC (permalink / raw)
To: Vinod Koul
Cc: Bjorn Andersson, linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
linux-pci, devicetree, linux-kernel
On 01/06/2023 09:21, Vinod Koul wrote:
> On 31-05-23, 10:19, Krzysztof Kozlowski wrote:
>> On 30/05/2023 18:24, Vinod Koul wrote:
>>> Commit 45a3ec891370 ("PCI: qcom: Add sc8180x compatible") added sc8180x
>>> compatible and commit 075a9d55932e ("dt-bindings: PCI: qcom: Convert to
>>> YAML") converted the description to yaml
>>>
>>> But there are still some errors specific to sc8180x which this change
>>> attempts to fix. The clocks and resets for sc8180 pcie controller are
>>> different so need to be documented separately
>>
>> I don't get what's the error here to fix. The clocks you list are
>> already there as part of oneOf.
>
> It was listed with sm8150 block which has different set of clocks than
> used in sc81880x, so this needs to have its own block of clocks and
> resets
Ah, after careful check I see indeed difference in one clock.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts
2023-05-30 16:24 ` [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts Vinod Koul
2023-05-31 8:19 ` Krzysztof Kozlowski
@ 2023-06-01 7:26 ` Krzysztof Kozlowski
1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-01 7:26 UTC (permalink / raw)
To: Vinod Koul, Bjorn Andersson
Cc: linux-arm-msm, Konrad Dybcio, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
linux-pci, devicetree, linux-kernel
On 30/05/2023 18:24, Vinod Koul wrote:
> Commit 45a3ec891370 ("PCI: qcom: Add sc8180x compatible") added sc8180x
> compatible and commit 075a9d55932e ("dt-bindings: PCI: qcom: Convert to
> YAML") converted the description to yaml
>
> But there are still some errors specific to sc8180x which this change
> attempts to fix. The clocks and resets for sc8180 pcie controller are
> different so need to be documented separately
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-06-01 7:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 16:24 [PATCH v3 00/15] Introduce the SC8180x devices Vinod Koul
2023-05-30 16:24 ` [PATCH v3 01/15] dt-bindings: PCI: qcom: Fix sc8180x clocks and interrupts Vinod Koul
2023-05-31 8:19 ` Krzysztof Kozlowski
2023-06-01 7:21 ` Vinod Koul
2023-06-01 7:25 ` Krzysztof Kozlowski
2023-06-01 7:26 ` Krzysztof Kozlowski
2023-05-30 17:22 ` (subset) [PATCH v3 00/15] Introduce the SC8180x devices Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox