dts/ls2080a: Update PCIe compatible
Subsystems (4)
PATCH 1/1 dts/ls2080a: Update PCIe compatible
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/pci/layerscape-pci.txt +1 -0
@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property.
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +8 -4
@@ -383,7 +383,8 @@ }; pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ 0x10 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";
@@ -406,7 +407,8 @@ }; pcie at 3500000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ 0x12 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";
@@ -429,7 +431,8 @@ }; pcie at 3600000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */ 0x14 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";
@@ -452,7 +455,8 @@ }; pcie at 3700000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */ 0x16 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";
Signature · 1 line
2.1.0.27.g96db324
Rob Herring
maintainerPATCH 1/1 dts/ls2080a: Update PCIe compatible
Quoted 29 lines · Mingkai Hu
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
Signed-off-by Minghuan Lian <[email protected]>Signed-off-by Mingkai Hu <[email protected]>--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/pci/layerscape-pci.txt +1
-0@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property.arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0
-0
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 387
Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2
-1@@ -383,7 +383,8 @@ }; pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie";
This doesn't match the doc as to what are valid combinations. The order here seems backwards too. ls2085a is older?
Quoted 40 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +6
-3reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ 0x10 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";@@ -406,7 +407,8 @@ }; pcie at 3500000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ 0x12 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";@@ -429,7 +431,8 @@ }; pcie at 3600000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */ 0x14 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";@@ -452,7 +455,8 @@ }; pcie at 3700000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie"; reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */ 0x16 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config";Signature · 6 lines
2.1.0.27.g96db324 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/1 dts/ls2080a: Update PCIe compatible
Quoted 46 lines
-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Wednesday, November 25, 2015 4:22 AM
To: Hu Mingkai-B21284
Cc: arm at kernel.org; linux-arm-kernel at lists.infradead.org; devicetree at vger.kernel.org; Li Yang-Leo-R58472; Lian Minghuan-B31939
Subject: Re: [PATCH] dts/ls2080a: Update PCIe compatibleQuoted 10 lines · Mingkai Hu
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
Signed-off-by Minghuan Lian <[email protected]>Signed-off-by Mingkai Hu <[email protected]>--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12++++++++----
Quoted 8 lines
2 files changed, 9 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0Documentation/devicetree/bindings/pci/layerscape-pci.txt Required properties: · line 20
Quoted 6 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +1
-0@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Mustcontain an
Quoted 9 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0entry for each entry in the interrupt-names property.arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0
-0@@ -383,7 +383,8 @@ };
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 387
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2
-1pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie";This doesn't match the doc as to what are valid combinations. The order here seems backwards too. ls2085a is older?
Yes, ls2085a was released earlier. You mean the older one comes first? Like:
compatible = "fsl,ls2085a-pcie", "fsl,ls2080a-pcie",
"snps,dw-pcie";
Thanks,
Mingkai
PATCH 1/1 dts/ls2080a: Update PCIe compatible
Quoted 55 lines · Hu Vincent
Quoted 46 lines
-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Wednesday, November 25, 2015 4:22 AM
To: Hu Mingkai-B21284
Cc: arm at kernel.org; linux-arm-kernel at lists.infradead.org; devicetree at vger.kernel.org; Li Yang-Leo-R58472; Lian Minghuan-B31939
Subject: Re: [PATCH] dts/ls2080a: Update PCIe compatibleQuoted 10 lines · Mingkai Hu
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
Signed-off-by Minghuan Lian <[email protected]>Signed-off-by Mingkai Hu <[email protected]>--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12++++++++----
Quoted 8 lines
2 files changed, 9 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0Documentation/devicetree/bindings/pci/layerscape-pci.txt Required properties: · line 20
Quoted 6 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +1
-0@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Mustcontain an
Quoted 9 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0entry for each entry in the interrupt-names property.arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0
-0@@ -383,7 +383,8 @@ };Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 387
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2
-1pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw-pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", + "snps,dw-pcie";This doesn't match the doc as to what are valid combinations. The order here seems backwards too. ls2085a is older?
Quoted 4 lines
Yes, ls2085a was released earlier. You mean the older one comes first? Like:
compatible = "fsl,ls2085a-pcie", "fsl,ls2080a-pcie",
"snps,dw-pcie";
No. The original order should be good. We should put newer/more specific compatible first and older/more generic compatible later. I think the issue is that the binding document. We don't need to list the combinations. Just list all the possible compatible strings specific to layerscape. You can add a special note about "snps, dw-pcie" separately.
Regards,
Leo
PATCH 1/1 dts/ls2080a: Update PCIe compatible
In reply to Hu VincentQuoted 56 lines · Hu Vincent
Quoted 45 lines
-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Wednesday, November 25, 2015 4:22 AM
To: Hu Mingkai-B21284
Cc: arm at kernel.org; linux-arm-kernel at lists.infradead.org; devicetree at vger.kernel.org; Li Yang-Leo-R58472; Lian Minghuan-B31939
Subject: Re: [PATCH] dts/ls2080a: Update PCIe compatibleQuoted 10 lines · Mingkai Hu
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
Signed-off-by Minghuan Lian <[email protected]>Signed-off-by Mingkai Hu <[email protected]>--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12++++++++----
Quoted 8 lines
2 files changed, 9 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0Documentation/devicetree/bindings/pci/layerscape-pci.txt Required properties: · line 20
Quoted 6 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +1
-0@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Mustcontain an
Quoted 9 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0entry for each entry in the interrupt-names property.arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0
-0@@ -383,7 +383,8 @@ };Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 387
Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2
-3pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw -pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a -pcie", + "snps,dw-pcie";This doesn't match the doc as to what are valid combinations. The order here seems backwards too. ls2085a is older?
Quoted 4 lines
Yes, ls2085a was released earlier. You mean the older one comes first? Like:
compatible = "fsl,ls2085a-pcie", "fsl,ls2080a-pcie",
"snps,dw-pcie";
No, the more specific one should come first (regardless of when each chip is older), so the patch is correct as is.
BTW, the changelog doesn't describe the severity of the problem, but without this change I see a hang in the PCIe controller probe because U-Boot is unable to mark disabled controllers as disabled.
-Scott
PATCH 1/1 dts/ls2080a: Update PCIe compatible
Quoted 74 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, December 11, 2015 11:48 AM
To: Hu Mingkai-B21284; Rob Herring
Cc: devicetree at vger.kernel.org; arm at kernel.org; Li Yang-Leo-R58472; linux-arm-kernel at lists.infradead.org; Lian Minghuan-B31939
Subject: Re: [PATCH] dts/ls2080a: Update PCIe compatibleQuoted 57 lines · Hu Vincent
Quoted 46 lines
-----Original Message-----
From: Rob Herring [mailto:robh at kernel.org]
Sent: Wednesday, November 25, 2015 4:22 AM
To: Hu Mingkai-B21284
Cc: arm at kernel.org; linux-arm-kernel at lists.infradead.org; devicetree at vger.kernel.org; Li Yang-Leo-R58472; Lian Minghuan-B31939
Subject: Re: [PATCH] dts/ls2080a: Update PCIe compatibleQuoted 10 lines · Mingkai Hu
From: Minghuan Lian <[email protected]>
The patch adds LS2085a to PCIe compatible to fix the compatibility issue when using firmware with LS2085a compatible property.
Signed-off-by Minghuan Lian <[email protected]>Signed-off-by Mingkai Hu <[email protected]>--- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 12++++++++----
Quoted 9 lines
2 files changed, 9 insertions(+), 4 deletions(-)diff --git
a/Documentation/devicetree/bindings/pci/layerscape-pci.txtb/Documentation/devicetree/bindings/pci/layerscape-pci.txtindex e376785..4600007 100644Documentation/devicetree/bindings/pci/layerscape-pci.txt Required properties: · line 20
Quoted 6 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +1
-0@@ -15,6 +15,7 @@ Required properties: - compatible: should contain the platform identifier such as: "fsl,ls1021a-pcie", "snps,dw-pcie" "fsl,ls2080a-pcie", "snps,dw-pcie" + "fsl,ls2085a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Mustcontain an
Quoted 9 lines
Documentation/devicetree/bindings/pci/layerscape-pci.txt +0
-0entry for each entry in the interrupt-names property.arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0
-0@@ -383,7 +383,8 @@ };Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 387
Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2
-3pcie at 3400000 { - compatible = "fsl,ls2080a-pcie", "snps,dw -pcie"; + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a -pcie", + "snps,dw-pcie";This doesn't match the doc as to what are valid combinations. The order here seems backwards too. ls2085a is older?
Quoted 1 line
Yes, ls2085a was released earlier. You mean the older one comes first?
Like:
Quoted 3 lines
compatible = "fsl,ls2085a-pcie", "fsl,ls2080a-pcie",
"snps,dw-pcie";
Quoted 7 lines
No, the more specific one should come first (regardless of when each chip is older), so the patch is correct as is.
BTW, the changelog doesn't describe the severity of the problem, but without this change I see a hang in the PCIe controller probe because U- Boot is unable to mark disabled controllers as disabled.
I agree with you. That's also the reason why I put the "fsl,ls2080a-pci" first.
Thanks,
Mingkai