Skip to contentSkip to conversation

dt-bindings: PCI: layerscape-pci: Fix property 'fsl,pcie-scfg' type

PATCH Applied Frank Li 3 participants 7 messages Jul 1, 2024 – Sep 4, 2024

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v3 1/1 dt-bindings: PCI: layerscape-pci: Fix property 'fsl,pcie-scfg' type

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

---
Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml +6 -1
index 793986c5af7ff..741b96defcc95 100644
@@ -43,10 +43,15 @@ properties:
       - const: config
 
   fsl,pcie-scfg:
-    $ref: /schemas/types.yaml#/definitions/phandle
+    $ref: /schemas/types.yaml#/definitions/phandle-array
     description: A phandle to the SCFG device node. The second entry is the
       physical PCIe controller index starting from '0'. This is used to get
       SCFG PEXN registers.
+    items:
+      items:
+        - description: A phandle to the SCFG device node
+        - description: PCIe controller index starting from '0'
+    maxItems: 1
 
   big-endian:
     $ref: /schemas/types.yaml#/definitions/flag
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 1/1
#1 lore raw
Quoted 11 lines · Frank Li

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

Quoted 8 lines

---
Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
author maintainer
#2 lore raw
Quoted 21 lines · Rob Herring
Quoted 11 lines · Frank Li

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

Quoted 8 lines

---
Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Quoted 1 line

Krzysztof Wilczyński:

can you help care about this patch, rob already acked.

Frank

author maintainer
#3 lore raw
In reply to Frank Li
Quoted 11 lines · Frank Li

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

---

Bjorn and Krzysztof Wilczyński:

Can you take care this patch? Rob already acked.

Frank

Quoted 32 lines

Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/fsl,layerscape-pcie.yaml +6 -2
index 793986c5af7ff..741b96defcc95 100644
@@ -43,10 +43,15 @@ properties:
       - const: config
 
   fsl,pcie-scfg:
-    $ref: /schemas/types.yaml#/definitions/phandle
+    $ref: /schemas/types.yaml#/definitions/phandle-array
     description: A phandle to the SCFG device node. The second entry is the
       physical PCIe controller index starting from '0'. This is used to get
       SCFG PEXN registers.
+    items:
+      items:
+        - description: A phandle to the SCFG device node
+        - description: PCIe controller index starting from '0'
+    maxItems: 1
 
   big-endian:
     $ref: /schemas/types.yaml#/definitions/flag
--

2.34.1

#4 lore raw
In reply to Frank Li
Quoted 10 lines · Frank Li

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

Quoted 9 lines

---
Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

It's been 2 months and no response to multiple pings, so I applied it.

Rob

author maintainer
#5 lore raw
Quoted 22 lines · Rob Herring (Arm)
Quoted 10 lines · Frank Li

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

Quoted 9 lines

---
Change form v2 to v3
- remove minItems because all dts use one argument. Change from v1 to v2
- update commit message.

---
 .../devicetree/bindings/pci/fsl,layerscape-pcie.yaml       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Quoted 1 line

It's been 2 months and no response to multiple pings, so I applied it.

Krzysztof Wilczyński:

Rob said he already picked this patch. I am not sure if cause
conflict if you also picked.

https://lore.kernel.org/linux-pci/20240904150338.GD3032973@rocinante/T/#t
" Applied to dt-bindings, thank you!

[1/1] dt-bindings: PCI: layerscape-pci: Change property 'fsl,pcie-scfg' type

      https://git.kernel.org/pci/pci/c/f66b63ef10d6

	Krzysztof"

Frank

Quoted 2 lines

Rob

#6 lore raw
In reply to Frank Li

Hello,

Quoted 8 lines

fsl,pcie-scfg actually need an argument when there are more than one PCIe instances. Change it to phandle-array and use items to describe each field means.

Fix below warning.

arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: pcie@3400000: fsl,pcie-scfg:0: [22, 0] is too long
from schema $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml#

Applied to dt-bindings, thank you!

[1/1] dt-bindings: PCI: layerscape-pci: Change property 'fsl,pcie-scfg' type

      https://git.kernel.org/pci/pci/c/f66b63ef10d6

	Krzysztof