spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
Subsystems (3)
PATCH 1/2 spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
From: Conor Dooley <[email protected]>
When the binding for the Cadence spi controller was written, a dedicated compatible was added for the zynq device. Later when zynqmp and versal-net, which also use this spi controller IP, were added they did not receive soc-specific compatibles. Add them now, with a fallback to the existing compatible for the r1p6 version of the IP so that there will be no functional change. Retain the r1p6 in the string, to match what was done for zynq.
Disallow the cdns,spi-r1p6 compatible in isolation to "encourage" people to actually add soc-specific compatible strings in the future.
---
CC: Jun Guo <[email protected]>
CC: Mark Brown <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Michal Simek <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- .../devicetree/bindings/spi/spi-cadence.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/spi/spi-cadence.yaml +8 -3
@@ -14,9 +14,14 @@ allOf: properties: compatible: - enum: - - cdns,spi-r1p6 - - xlnx,zynq-spi-r1p6 + oneOf: + - enum: + - xlnx,zynq-spi-r1p6 + - items: + - enum: + - xlnx,zynqmp-spi-r1p6 + - xlnx,versal-net-spi-r1p6 + - const: cdns,spi-r1p6 reg: maxItems: 1
Signature · 1 line
2.47.3
PATCH 2/2 arm64: dts: xilinx: add soc-specific spi compatibles for zynqmp/versal-net
From: Conor Dooley <[email protected]>
Unlike zynq, which has a specific compatible for the Cadence spi controller, zynqmp and versal-net do not have specific compatibles. In order to "encourage" people to use soc-specific compatibles for new devices using this IP, add specific compatibles for these devices, with a fallback to the existing compatible for the r1p6 version of the IP so that there will be no functional change.
---
CC: Jun Guo <[email protected]>
CC: Mark Brown <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Michal Simek <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 4 ++-- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/xilinx/versal-net.dtsi +2 -2
@@ -610,7 +610,7 @@ smmu: iommu@ec000000 { }; spi0: spi@f1960000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,versal-net-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupts = <0 23 4>; reg = <0 0xf1960000 0 0x1000>;
@@ -618,7 +618,7 @@ spi0: spi@f1960000 { }; spi1: spi@f1970000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,versal-net-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupts = <0 24 4>; reg = <0 0xf1970000 0 0x1000>;
arch/arm64/boot/dts/xilinx/zynqmp.dtsi +2 -2
@@ -1076,7 +1076,7 @@ smmu: iommu@fd800000 { }; spi0: spi@ff040000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,zynqmp-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupt-parent = <&gic>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
@@ -1088,7 +1088,7 @@ spi0: spi@ff040000 { }; spi1: spi@ff050000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,zynqmp-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupt-parent = <&gic>; interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.47.3
Re: [PATCH v1 2/2] arm64: dts: xilinx: add soc-specific spi compatibles for zynqmp/versal-net
Quoted 62 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Unlike zynq, which has a specific compatible for the Cadence spi controller, zynqmp and versal-net do not have specific compatibles. In order to "encourage" people to use soc-specific compatibles for new devices using this IP, add specific compatibles for these devices, with a fallback to the existing compatible for the r1p6 version of the IP so that there will be no functional change.
Signed-off-by Conor Dooley <[email protected]>---
CC: Jun Guo <[email protected]>
CC: Mark Brown <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Michal Simek <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]--- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 4 ++-- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)arch/arm64/boot/dts/xilinx/versal-net.dtsi +2
-2@@ -610,7 +610,7 @@ smmu: iommu@ec000000 { }; spi0: spi@f1960000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,versal-net-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupts = <0 23 4>; reg = <0 0xf1960000 0 0x1000>;@@ -618,7 +618,7 @@ spi0: spi@f1960000 { }; spi1: spi@f1970000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,versal-net-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupts = <0 24 4>; reg = <0 0xf1970000 0 0x1000>;arch/arm64/boot/dts/xilinx/zynqmp.dtsi +1
-1@@ -1076,7 +1076,7 @@ smmu: iommu@fd800000 { }; spi0: spi@ff040000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,zynqmp-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupt-parent = <&gic>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/xilinx/zynqmp.dtsi spi0: spi@ff040000 { · line 1094
Quoted 8 lines
arch/arm64/boot/dts/xilinx/zynqmp.dtsi +1
-1@@ -1088,7 +1088,7 @@ spi0: spi@ff040000 { }; spi1: spi@ff050000 { - compatible = "cdns,spi-r1p6"; + compatible = "xlnx,zynqmp-spi-r1p6", "cdns,spi-r1p6"; status = "disabled"; interrupt-parent = <&gic>; interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Do you expect to go via SPI tree or via SOC tree?
Thanks,
Michal
Re: [PATCH v1 2/2] arm64: dts: xilinx: add soc-specific spi compatibles for zynqmp/versal-net
Quoted 7 lines · Michal Simek
Quoted 2 lines · Conor Dooley
arch/arm64/boot/dts/xilinx/versal-net.dtsi | 4 ++-- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++--Acked-by Michal Simek <[email protected]>Do you expect to go via SPI tree or via SOC tree?
Via SOC would be preferred, there's no functional change and I don't think the dtbs_check warnings are worth doing something abnormal, as long as what's in linux-next is clean.
Michal Simek
maintainerRe: [PATCH v1 2/2] arm64: dts: xilinx: add soc-specific spi compatibles for zynqmp/versal-net
Quoted 5 lines · Conor Dooley
Quoted 4 lines · Michal Simek
Quoted 2 lines · Conor Dooley
arch/arm64/boot/dts/xilinx/versal-net.dtsi | 4 ++-- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++--
Quoted 7 lines
Quoted 3 lines
Acked-by Michal Simek <[email protected]>Do you expect to go via SPI tree or via SOC tree?
Via SOC would be preferred, there's no functional change and I don't think the
dtbs_checkwarnings are worth doing something abnormal, as long as what's in linux-next is clean.
2/2 applied to Xilinx SOC tree.
Thanks,
Michal
Quoted 41 lines · Conor Dooley
From: Conor Dooley <[email protected]>
When the binding for the Cadence spi controller was written, a dedicated compatible was added for the zynq device. Later when zynqmp and versal-net, which also use this spi controller IP, were added they did not receive soc-specific compatibles. Add them now, with a fallback to the existing compatible for the r1p6 version of the IP so that there will be no functional change. Retain the r1p6 in the string, to match what was done for zynq.
Disallow the cdns,spi-r1p6 compatible in isolation to "encourage" people to actually add soc-specific compatible strings in the future.
Signed-off-by Conor Dooley <[email protected]>---
CC: Jun Guo <[email protected]>
CC: Mark Brown <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Michal Simek <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]--- .../devicetree/bindings/spi/spi-cadence.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/spi/spi-cadence.yaml +1
-3@@ -14,9 +14,14 @@ allOf: properties: compatible: - enum: - - cdns,spi-r1p6 - - xlnx,zynq-spi-r1p6 + oneOf:
Documentation/devicetree/bindings/spi/spi-cadence.yaml allOf: · line 27
Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-cadence.yaml +7
-0+ - enum: + - xlnx,zynq-spi-r1p6 + - items: + - enum: + - xlnx,zynqmp-spi-r1p6 + - xlnx,versal-net-spi-r1p6 + - const: cdns,spi-r1p6 reg: maxItems: 1
Thanks,
Michal
Mark Brown
maintainerRe: (subset) [PATCH v1 1/2] spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
In reply to Conor DooleyQuoted 9 lines · Conor Dooley
When the binding for the Cadence spi controller was written, a dedicated compatible was added for the zynq device. Later when zynqmp and versal-net, which also use this spi controller IP, were added they did not receive soc-specific compatibles. Add them now, with a fallback to the existing compatible for the r1p6 version of the IP so that there will be no functional change. Retain the r1p6 in the string, to match what was done for zynq.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/2] spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
commit: 4092fc5f35cecb01d59b2cdf7740b203eac6948a
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark