SDM670 GPI DMA support
Subsystems (5)
v2 cover SDM670 GPI DMA support
Changes since v1:
- add fallback compatible
This patch series adds the compatible string for GPI DMA, needed for the GENI interface, on Snapdragon 670.
Richard Acayan (4):
dt-bindings: dma: qcom: gpi: add fallback compatible
dt-bindings: dma: qcom: gpi: add compatible for sdm670
arm64: dts: qcom: add gpi-dma fallback compatible
dmaengine: qcom: gpi: drop redundant of_device_id entries
.../devicetree/bindings/dma/qcom,gpi.yaml | 18 ++++++++++-------- arch/arm64/boot/dts/qcom/sc7280.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm6350.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm8150.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8350.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 6 +++--- drivers/dma/qcom/gpi.c | 4 +--- 9 files changed, 29 insertions(+), 29 deletions(-)
Signature · 1 line
2.37.3
PATCH v2 1/4 dt-bindings: dma: qcom: gpi: add fallback compatible
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
--- .../devicetree/bindings/dma/qcom,gpi.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/dma/qcom,gpi.yaml +9 -8
@@ -18,14 +18,15 @@ allOf: properties: compatible: - enum: - - qcom,sc7280-gpi-dma - - qcom,sdm845-gpi-dma - - qcom,sm6350-gpi-dma - - qcom,sm8150-gpi-dma - - qcom,sm8250-gpi-dma - - qcom,sm8350-gpi-dma - - qcom,sm8450-gpi-dma + - enum: + - qcom,sc7280-gpi-dma + - qcom,sdm845-gpi-dma + - qcom,sm6350-gpi-dma + - qcom,sm8150-gpi-dma + - qcom,sm8250-gpi-dma + - qcom,sm8350-gpi-dma + - qcom,sm8450-gpi-dma + - const: qcom,gpi-dma reg: maxItems: 1
Signature · 1 line
2.37.3
Re: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback compatible
Quoted 4 lines · Richard Acayan
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :) qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC IP blocks.
Documentation/devicetree/bindings/dma/qcom,gpi.yaml allOf:
Quoted 11 lines
Signed-off-by Richard Acayan <[email protected]>--- .../devicetree/bindings/dma/qcom,gpi.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/dma/qcom,gpi.yaml +0
-0@@ -18,14 +18,15 @@ allOf:
Best regards,
Krzysztof
Re: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback
Quoted 7 lines · Richard Acayan
Quoted 4 lines
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :)
Ah, sorry for not replying to your original suggestion. I didn't see the opportunity for discussion as this new series wasn't that hard to come up with.
Quoted 4 lines
qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC IP blocks.
Solution 1:
Yes, I could use something like qcom,sdm845-gpi-dma. It would be weird to see the compatible strings for that, though:
compatible = "qcom,sdm670-gpi-dma", "qcom,sdm845-gpi-dma";
// This would need to be valid in dt schema, suggesting solution 2
compatible = "qcom,sdm845-gpi-dma";
// This just doesn't make sense
compatible = "qcom,sdm845-gpi-dma", "qcom,sdm845-gpi-dma";
compatible = "qcom,sm8150-gpi-dma", "qcom,sdm845-gpi-dma";
compatible = "qcom,sm8250-gpi-dma", "qcom,sdm845-gpi-dma";Solution 2:
I could stray from the "soc-specific compat", "fallback compat" and just have "qcom,sdm845-gpi-dma" for every SoC.
Solution 3:
I found the original mailing list archive for this driver:
https://lore.kernel.org/linux-arm-msm/[email protected]/
https://lore.kernel.org/linux-arm-msm/[email protected]/
It seems like the author originally handled the ee_offset as a dt property and removed it. It was removed because it was a Qualcomm-specific property. One option would be to bring this back against the author's wishes (or ask the author about it, since they are a recipient).
Solution 4:
You mentioned there being an xPU3 block here:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Maybe it's fine to have qcom,gpi-dma-v3?
Rob Herring
maintainerRe: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback
Quoted 17 lines · Richard Acayan
Quoted 7 lines · Richard Acayan
Quoted 4 lines
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :)
Ah, sorry for not replying to your original suggestion. I didn't see the opportunity for discussion as this new series wasn't that hard to come up with.
Quoted 4 lines
qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC IP blocks.
Quoted 4 lines
Solution 1:
Yes, I could use something like qcom,sdm845-gpi-dma. It would be weird to see the compatible strings for that, though:
Why is it weird? That's how 'compatible' works. You are saying a new implementation is compatible with an older implementation.
Quoted 7 lines
compatible = "qcom,sdm670-gpi-dma", "qcom,sdm845-gpi-dma";
// This would need to be valid in dt schema, suggesting solution 2
compatible = "qcom,sdm845-gpi-dma";
// This just doesn't make sense
compatible = "qcom,sdm845-gpi-dma", "qcom,sdm845-gpi-dma";Is your question how to get the first one to work, but not the second one? You need 'oneOf' with at least an entry for each case with different number of compatible strings (1 and 2 entries). There are lot's of examples in the tree.
Quoted 9 lines
compatible = "qcom,sm8150-gpi-dma", "qcom,sdm845-gpi-dma"; compatible = "qcom,sm8250-gpi-dma", "qcom,sdm845-gpi-dma";Solution 2:
I could stray from the "soc-specific compat", "fallback compat" and just have "qcom,sdm845-gpi-dma" for every SoC.
No.
Quoted 11 lines
Solution 3:
I found the original mailing list archive for this driver:
https://lore.kernel.org/linux-arm-msm/[email protected]/
https://lore.kernel.org/linux-arm-msm/[email protected]/It seems like the author originally handled the
ee_offsetas a dt property and removed it. It was removed because it was a Qualcomm-specific property. One option would be to bring this back against the author's wishes (or ask the author about it, since they are a recipient).
No.
Quoted 8 lines
Solution 4:
You mentioned there being an xPU3 block here:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Maybe it's fine to have qcom,gpi-dma-v3?
I don't like made up version numbers. QCom does or did have very specific version numbers, but in the end they it tended to be 1 or maybe 2 SoCs per version. So not really beneficial.
Rob
Re: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback
Quoted 18 lines · Richard Acayan
Quoted 17 lines
Quoted 7 lines · Richard Acayan
Quoted 4 lines
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :)
Ah, sorry for not replying to your original suggestion. I didn't see the opportunity for discussion as this new series wasn't that hard to come up with.
Quoted 4 lines
qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC IP blocks.
Quoted 7 lines
Quoted 4 lines
Solution 1:
Yes, I could use something like qcom,sdm845-gpi-dma. It would be weird to see the compatible strings for that, though:
Why is it weird? That's how 'compatible' works. You are saying a new implementation is compatible with an older implementation.
Oh, I didn't think of it like that. I found it weird how I need to specify both sm8150 and sdm845 in the same dts, but now it makes sense. I guess I thought fallback needed to be generic, and didn't think it could just specify an older version of the hardware.
Quoted 10 lines
Quoted 9 lines
compatible = "qcom,sdm670-gpi-dma", "qcom,sdm845-gpi-dma"; // This would need to be valid in dt schema, suggesting solution 2 compatible = "qcom,sdm845-gpi-dma"; // This just doesn't make sense compatible = "qcom,sdm845-gpi-dma", "qcom,sdm845-gpi-dma";
Quoted 4 lines
Is your question how to get the first one to work, but not the second one? You need 'oneOf' with at least an entry for each case with different number of compatible strings (1 and 2 entries). There are lot's of examples in the tree.
No, I thought it would be tempting to use the first one for other device trees, but you maintainers know not to allow that so it doesn't matter as much.
Quoted 20 lines
Quoted 10 lines
compatible = "qcom,sm8150-gpi-dma", "qcom,sdm845-gpi-dma"; compatible = "qcom,sm8250-gpi-dma", "qcom,sdm845-gpi-dma";Solution 2:
I could stray from the "soc-specific compat", "fallback compat" and just have "qcom,sdm845-gpi-dma" for every SoC.
No.
Quoted 7 lines
Solution 3:
I found the original mailing list archive for this driver:
https://lore.kernel.org/linux-arm-msm/[email protected]/
https://lore.kernel.org/linux-arm-msm/[email protected]/
Quoted 6 lines
Quoted 4 lines
It seems like the author originally handled the
ee_offsetas a dt property and removed it. It was removed because it was a Qualcomm-specific property. One option would be to bring this back against the author's wishes (or ask the author about it, since they are a recipient).No.
Ah, simple rejections with one word. You don't have to elaborate, I see why these aren't a good fit.
Quoted 6 lines
Quoted 6 lines
Solution 4:
You mentioned there being an xPU3 block here:
Quoted 7 lines
Quoted 3 lines
https://lore.kernel.org/linux-arm-msm/[email protected]/
Maybe it's fine to have qcom,gpi-dma-v3?
I don't like made up version numbers. QCom does or did have very specific version numbers, but in the end they it tended to be 1 or maybe 2 SoCs per version. So not really beneficial.
I got this from using the number in xPU3, because I thought xPU3 was the specific hardware that had ee_offset = 0. This might not be what Krzysztof meant and perhaps I just wasn't reading properly.
Thank you for your response. You cleared up a lot of thoughts that I had about the presented solution.
Re: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback
Quoted 23 lines · Richard Acayan
Quoted 23 lines · Richard Acayan
Quoted 21 lines
Quoted 7 lines · Richard Acayan
Quoted 4 lines
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :)
Ah, sorry for not replying to your original suggestion. I didn't see the opportunity for discussion as this new series wasn't that hard to come up with.
Quoted 4 lines
qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC IP blocks.
Solution 1:
Yes, I could use something like qcom,sdm845-gpi-dma. It would be weird to see the compatible strings for that, though:
Quoted 7 lines
Quoted 2 lines
Why is it weird? That's how 'compatible' works. You are saying a new implementation is compatible with an older implementation.
Oh, I didn't think of it like that. I found it weird how I need to specify both sm8150 and sdm845 in the same dts, but now it makes sense. I guess I thought fallback needed to be generic, and didn't think it could just specify an older version of the hardware.
It's all over the tree. One big user of such pattern is iMX.
Quoted 59 lines
Quoted 11 lines
Quoted 10 lines
compatible = "qcom,sdm670-gpi-dma", "qcom,sdm845-gpi-dma"; // This would need to be valid in dt schema, suggesting solution 2 compatible = "qcom,sdm845-gpi-dma"; // This just doesn't make sense compatible = "qcom,sdm845-gpi-dma", "qcom,sdm845-gpi-dma";Quoted 4 lines
Is your question how to get the first one to work, but not the second one? You need 'oneOf' with at least an entry for each case with different number of compatible strings (1 and 2 entries). There are lot's of examples in the tree.
No, I thought it would be tempting to use the first one for other device trees, but you maintainers know not to allow that so it doesn't matter as much.
Quoted 20 lines
Quoted 10 lines
compatible = "qcom,sm8150-gpi-dma", "qcom,sdm845-gpi-dma"; compatible = "qcom,sm8250-gpi-dma", "qcom,sdm845-gpi-dma";Solution 2:
I could stray from the "soc-specific compat", "fallback compat" and just have "qcom,sdm845-gpi-dma" for every SoC.
No.
Quoted 7 lines
Solution 3:
I found the original mailing list archive for this driver:
https://lore.kernel.org/linux-arm-msm/[email protected]/
https://lore.kernel.org/linux-arm-msm/[email protected]/Quoted 6 lines
Quoted 4 lines
It seems like the author originally handled the
ee_offsetas a dt property and removed it. It was removed because it was a Qualcomm-specific property. One option would be to bring this back against the author's wishes (or ask the author about it, since they are a recipient).No.
Ah, simple rejections with one word. You don't have to elaborate, I see why these aren't a good fit.
Quoted 10 lines
Quoted 9 lines
Solution 4:
You mentioned there being an xPU3 block here:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Maybe it's fine to have qcom,gpi-dma-v3?
Quoted 7 lines
Quoted 3 lines
I don't like made up version numbers. QCom does or did have very specific version numbers, but in the end they it tended to be 1 or maybe 2 SoCs per version. So not really beneficial.
I got this from using the number in xPU3, because I thought xPU3 was the specific hardware that had
ee_offset= 0. This might not be what Krzysztof meant and perhaps I just wasn't reading properly.
We could go here with the versions, because indeed Qualcomm versions them a lot. But as Rob pointed, sometimes these versions change with every release of the SoC, so then easier for everyone is to use the SoC number. Mapping to versions can be always mentioned in commit msg.
That's even more confusing with few IP blocks which in Qualcomm downstream sources have a version (e.g. bwmon v4, bwmon v5) but it's nowhere to be found in documentation of the blocks.
Then another point are people without access to Qualcomm documentation. They cannot verify the version numbering, which one is where. Even when I had access to Samsung SoC documentation (kind of extract of it, not the one for hardware engineers) the versions were pretty often not explained and even we could not figure out which block is what.
So based on that, just easier/better/readable is to use SoC numbers.
Best regards,
Krzysztof
Vinod Koul
maintainerRe: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback compatible
In reply to Krzysztof KozlowskiQuoted 10 lines · Krzysztof Kozlowski
Quoted 4 lines · Richard Acayan
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Thanks for the patch. I wished we discussed it a bit more. :) qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC
You should have access :-)
Quoted 1 line
IP blocks.
So knowing this IP we have two versions, one was initial sdm845 that should be the base compatible. Then second should be sm8350 which was the version we need ee_offset to be added, so these two can be the base ones for future...
My 0.02
Thanks
Signature · 1 line
~Vinod
Re: [PATCH v2 1/4] dt-bindings: dma: qcom: gpi: add fallback compatible
Quoted 7 lines · Vinod Koul
Quoted 6 lines · Krzysztof Kozlowski
Quoted 4 lines · Richard Acayan
The drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Add a fallback compatible string in the schema to support this change.
Quoted 6 lines
Quoted 4 lines
Thanks for the patch. I wished we discussed it a bit more. :) qcom,gpi-dma does not look like specific enough to be correct fallback, at least not for all of the devices. I propose either a IP block version (which is tricky without access to documentation) or just one of the SoC
You should have access :-)
But Richard and many other community members do not...
Quoted 9 lines
Quoted 2 lines
IP blocks.
So knowing this IP we have two versions, one was initial sdm845 that should be the base compatible. Then second should be sm8350 which was the version we need
ee_offsetto be added, so these two can be the base ones for future...My 0.02
Or just use SoC versions, not IP block versions :)
Best regards,
Krzysztof
PATCH v2 2/4 dt-bindings: dma: qcom: gpi: add compatible for sdm670
In reply to Richard AcayanThe Snapdragon 670 uses GPI DMA for its GENI interface. Add a compatible string for it in the documentation.
--- Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/dma/qcom,gpi.yaml +1 -0
@@ -20,6 +20,7 @@ properties: compatible: - enum: - qcom,sc7280-gpi-dma + - qcom,sdm670-gpi-dma - qcom,sdm845-gpi-dma - qcom,sm6350-gpi-dma - qcom,sm8150-gpi-dma
Signature · 1 line
2.37.3
PATCH v2 3/4 arm64: dts: qcom: add gpi-dma fallback compatible
In reply to Richard AcayanThe dt schema for gpi-dma has been updated with a new fallback compatible string. Add the compatible strings to existing device trees.
--- arch/arm64/boot/dts/qcom/sc7280.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm6350.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm8150.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8350.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-)
arch/arm64/boot/dts/qcom/sc7280.dtsi +2 -2
@@ -919,7 +919,7 @@ opp-384000000 { gpi_dma0: dma-controller@900000 { #dma-cells = <3>; - compatible = "qcom,sc7280-gpi-dma"; + compatible = "qcom,sc7280-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00900000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -1418,7 +1418,7 @@ uart7: serial@99c000 { gpi_dma1: dma-controller@a00000 { #dma-cells = <3>; - compatible = "qcom,sc7280-gpi-dma"; + compatible = "qcom,sc7280-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00a00000 0 0x60000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -2
@@ -1151,7 +1151,7 @@ opp-128000000 { gpi_dma0: dma-controller@800000 { #dma-cells = <3>; - compatible = "qcom,sdm845-gpi-dma"; + compatible = "qcom,sdm845-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00800000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -1638,7 +1638,7 @@ uart7: serial@89c000 { gpi_dma1: dma-controller@0xa00000 { #dma-cells = <3>; - compatible = "qcom,sdm845-gpi-dma"; + compatible = "qcom,sdm845-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00a00000 0 0x60000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sm6350.dtsi +2 -2
@@ -521,7 +521,7 @@ opp-384000000 { }; gpi_dma0: dma-controller@800000 { - compatible = "qcom,sm6350-gpi-dma"; + compatible = "qcom,sm6350-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00800000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -594,7 +594,7 @@ i2c2: i2c@888000 { }; gpi_dma1: dma-controller@900000 { - compatible = "qcom,sm6350-gpi-dma"; + compatible = "qcom,sm6350-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00900000 0 0x60000>; interrupts = <GIC_SPI 645 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 646 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sm8150.dtsi +3 -3
@@ -887,7 +887,7 @@ gcc: clock-controller@100000 { }; gpi_dma0: dma-controller@800000 { - compatible = "qcom,sm8150-gpi-dma"; + compatible = "qcom,sm8150-gpi-dma", "qcom,gpi-dma"; reg = <0 0x800000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -1222,7 +1222,7 @@ spi7: spi@89c000 { }; gpi_dma1: dma-controller@a00000 { - compatible = "qcom,sm8150-gpi-dma"; + compatible = "qcom,sm8150-gpi-dma", "qcom,gpi-dma"; reg = <0 0xa00000 0 0x60000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
@@ -1471,7 +1471,7 @@ spi16: spi@a94000 { }; gpi_dma2: dma-controller@c00000 { - compatible = "qcom,sm8150-gpi-dma"; + compatible = "qcom,sm8150-gpi-dma", "qcom,gpi-dma"; reg = <0 0xc00000 0 0x60000>; interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 589 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sm8250.dtsi +3 -3
@@ -936,7 +936,7 @@ rng: rng@793000 { }; gpi_dma2: dma-controller@800000 { - compatible = "qcom,sm8250-gpi-dma"; + compatible = "qcom,sm8250-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00800000 0 0x70000>; interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 589 IRQ_TYPE_LEVEL_HIGH>,
@@ -1187,7 +1187,7 @@ spi19: spi@894000 { }; gpi_dma0: dma-controller@900000 { - compatible = "qcom,sm8250-gpi-dma"; + compatible = "qcom,sm8250-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00900000 0 0x70000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -1505,7 +1505,7 @@ spi7: spi@99c000 { }; gpi_dma1: dma-controller@a00000 { - compatible = "qcom,sm8250-gpi-dma"; + compatible = "qcom,sm8250-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00a00000 0 0x70000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sm8350.dtsi +3 -3
@@ -678,7 +678,7 @@ ipcc: mailbox@408000 { }; gpi_dma2: dma-controller@800000 { - compatible = "qcom,sm8350-gpi-dma"; + compatible = "qcom,sm8350-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00800000 0 0x60000>; interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 589 IRQ_TYPE_LEVEL_HIGH>,
@@ -904,7 +904,7 @@ spi19: spi@894000 { }; gpi_dma0: dma-controller@900000 { - compatible = "qcom,sm8350-gpi-dma"; + compatible = "qcom,sm8350-gpi-dma", "qcom,gpi-dma"; reg = <0 0x09800000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
@@ -1209,7 +1209,7 @@ spi7: spi@99c000 { }; gpi_dma1: dma-controller@a00000 { - compatible = "qcom,sm8350-gpi-dma"; + compatible = "qcom,sm8350-gpi-dma", "qcom,gpi-dma"; reg = <0 0x00a00000 0 0x60000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/qcom/sm8450.dtsi +3 -3
@@ -730,7 +730,7 @@ gcc: clock-controller@100000 { }; gpi_dma2: dma-controller@800000 { - compatible = "qcom,sm8450-gpi-dma"; + compatible = "qcom,sm8450-gpi-dma", "qcom,gpi-dma"; #dma-cells = <3>; reg = <0 0x800000 0 0x60000>; interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>,
@@ -1058,7 +1058,7 @@ spi21: spi@898000 { }; gpi_dma0: dma-controller@900000 { - compatible = "qcom,sm8450-gpi-dma"; + compatible = "qcom,sm8450-gpi-dma", "qcom,gpi-dma"; #dma-cells = <3>; reg = <0 0x900000 0 0x60000>; interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
@@ -1394,7 +1394,7 @@ uart7: serial@99c000 { }; gpi_dma1: dma-controller@a00000 { - compatible = "qcom,sm8450-gpi-dma"; + compatible = "qcom,sm8450-gpi-dma", "qcom,gpi-dma"; #dma-cells = <3>; reg = <0 0xa00000 0 0x60000>; interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.37.3
PATCH v2 4/4 dmaengine: qcom: gpi: drop redundant of_device_id entries
In reply to Richard AcayanThe drivers are transitioning from matching against lists of specific compatible strings to matching against smaller lists of more generic compatible strings. Continue the transition in the GPI DMA driver.
--- drivers/dma/qcom/gpi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/dma/qcom/gpi.c +1 -3
@@ -2286,11 +2286,9 @@ static int gpi_probe(struct platform_device *pdev) }static const struct of_device_id gpi_of_match[] = { + { .compatible ="qcom,gpi-dma" , .data = (void *)0x0 }, { .compatible ="qcom,sc7280-gpi-dma" , .data = (void *)0x10000 }, - { .compatible ="qcom,sdm845-gpi-dma" , .data = (void *)0x0 }, { .compatible ="qcom,sm6350-gpi-dma" , .data = (void *)0x10000 }, - { .compatible ="qcom,sm8150-gpi-dma" , .data = (void *)0x0 }, - { .compatible ="qcom,sm8250-gpi-dma" , .data = (void *)0x0 }, { .compatible ="qcom,sm8350-gpi-dma" , .data = (void *)0x10000 }, { .compatible ="qcom,sm8450-gpi-dma" , .data = (void *)0x10000 }, { },
Signature · 1 line
2.37.3