ARM: mvebu: dt64 for v4.13 (#2)
Subsystems (2)
Hi,
Here is the second pull request for dt64 for mvebu for v4.13.
This came only now because I waited for that the drivers part was accepted. Now that is was done we can enable the last missing part of the infrastructure for the Aramda 7K/8K SoCs.
Also note that there is a trivial merge conflict with the mvebu-fixes branch. In case of doubt it was resolved in the last merge commit of the mvebu/for-next branch.
Thanks,
Gregory
The following changes since commit f66b2aff46eaf0825dbe1560e28fcb845dd2a215:
arm64: dts: marvell: add xmdio nodes for 7k/8k (2017-06-17 08:19:29 +0200)
are available in the git repository at:
git://git.infradead.org/linux-mvebu.git tags/mvebu-dt64-4.13-2
for you to fetch changes up to 6ef84a827c37547504514a80bdb35f74a67df5a3:
arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K (2017-06-21 17:09:48 +0200)
----------------------------------------------------------------
mvebu dt64 for 4.13 (part 2)
- use new clock binding for Armada 7K/8K
- add pinctrl on Armada 7K/8K
- add GPIO on Armada 7K/8K
- switch from GIC to ICU on CP110 (Armada 7K/8K)
- enable the mdio node on the mcbin (Armada 8K based board)
----------------------------------------------------------------
Antoine Tenart (2):
arm64: dts: marvell: mcbin: enable the mdio node
arm64: dts: marvell: use new bindings for xor clocks on ap806
Gregory CLEMENT (4):
arm64: dts: marvell: remove *-clock-output-names on cp110
arm64: dts: marvell: use new binding for the system controller on cp110
arm64: dts: marvell: add pinctrl support for Armada 7K/8K
arm64: dts: marvell: add gpio support for Armada 7K/8K
Thomas Petazzoni (1):
arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K
arch/arm64/boot/dts/marvell/armada-7020.dtsi | 2 +- arch/arm64/boot/dts/marvell/armada-7040.dtsi | 2 +- arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 68 +++++++++++ arch/arm64/boot/dts/marvell/armada-8020.dtsi | 3 +- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 2 + arch/arm64/boot/dts/marvell/armada-8040.dtsi | 3 +- arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 76 ++++++++++++ arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 29 ++++- .../boot/dts/marvell/armada-cp110-master.dtsi | 136 ++++++++++++--------- .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 131 +++++++++++--------- 10 files changed, 329 insertions(+), 123 deletions(-) create mode 100644 arch/arm64/boot/dts/marvell/armada-70x0.dtsi create mode 100644 arch/arm64/boot/dts/marvell/armada-80x0.dtsi
Quoted 7 lines · Gregory CLEMENT
Hi,
Here is the second pull request for dt64 for mvebu for v4.13.
This came only now because I waited for that the drivers part was accepted. Now that is was done we can enable the last missing part of the infrastructure for the Aramda 7K/8K SoCs.
Pulled into next/dt64, thanks!
Quoted 3 lines
Also note that there is a trivial merge conflict with the mvebu-fixes branch. In case of doubt it was resolved in the last merge commit of the mvebu/for-next branch.
Thanks, that helped, my initial merge ended up with a typo.
However, while doing the merge, I stumbled over an obviously broken commit:
commit b1a97f86b7359da7bbd7a8dd2900d62352c04644
Author: Antoine Tenart <[email protected]> Date: Wed May 24 16:10:33 2017 +0200
arm64: dts: marvell: add dma-mask in crypto nodes for 7k/8k
The EIP197 cryptographic engine supports 64 bits address width but is limited to 40 bits on 7k/8k. Add a dma-mask property in the cryptographic engine nodes to reflect this.
(quoted diff) +0 -0
b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi index 576e825585c9..e02ac90f7fdf 100644
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +1 -0
@@ -242,6 +242,7 @@ interrupt-names = "mem", "ring0", "ring1", "ring2", "ring3", "eip"; clocks = <&cpm_syscon0 1 26>; + dma-mask = <0xff 0xffffffff>; status = "disabled"; }; };
(quoted diff) +0 -0
b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi index 797208a11f9d..7468fe00fc37 100644
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +1 -0
@@ -232,6 +232,7 @@ interrupt-names = "mem", "ring0", "ring1", "ring2", "ring3", "eip"; clocks = <&cps_syscon0 1 26>; + dma-mask = <0xff 0xffffffff>; status = "disabled"; }; };
Please send a revert for that, and remove the code that tries to parse the dma-mask from DT from that driver!
Arnd
Hi Arnd,
Quoted 4 lines · Arnd Bergmann
Please send a revert for that, and remove the code that tries to parse the dma-mask from DT from that driver!
I see on IRC you agree with Antoine about it the driver part. For the DT part do you want a PR with the revert or just the patch alone?
Thanks,
Gregory
Quoted 2 lines
Arnd
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 7 lines · Gregory CLEMENT
Hi Arnd,
Quoted 2 lines · Arnd Bergmann
Quoted 5 lines
Quoted 2 lines
Please send a revert for that, and remove the code that tries to parse the dma-mask from DT from that driver!
I see on IRC you agree with Antoine about it the driver part. For the DT part do you want a PR with the revert or just the patch alone?
Either way is fine, or just let me know (here or on IRC) if I should just revert the patch and add an explanation myself.
Arnd
Hi Arnd,
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · Gregory CLEMENT
Hi Arnd,
Quoted 2 lines · Arnd Bergmann
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Please send a revert for that, and remove the code that tries to parse the dma-mask from DT from that driver!
I see on IRC you agree with Antoine about it the driver part. For the DT part do you want a PR with the revert or just the patch alone?
Either way is fine, or just let me know (here or on IRC) if I should just revert the patch and add an explanation myself.
If you can do it, it's better. You know better than me why we should revert this patch! :)
Gregory
Quoted 7 lines
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 16 lines · Gregory CLEMENT
Hi Arnd,
Quoted 12 lines · Arnd Bergmann
Quoted 10 lines · Gregory CLEMENT
Hi Arnd,
Quoted 4 lines · Arnd Bergmann
Please send a revert for that, and remove the code that tries to parse the dma-mask from DT from that driver!
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I see on IRC you agree with Antoine about it the driver part. For the DT part do you want a PR with the revert or just the patch alone?
Either way is fine, or just let me know (here or on IRC) if I should just revert the patch and add an explanation myself.
If you can do it, it's better. You know better than me why we should revert this patch! :)
No worries, I applied this patch now:
Quoted 1 line
From
2b29ca22ed8a79ef1942b6546ccab5953678028dMon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Fri, 23 Jun 2017 16:33:43 +0200
Subject: [PATCH] Revert "arm64: dts: marvell: add dma-mask in crypto nodes for
7k/8k"
As I found by chance while merging another patch, the usage of a dma-mask in this DT node is wrong for multiple reasons:
- dma-masks are a Linux specific concept, not a general hardware feature
- In DT, we use the "dma-ranges" property to describe how DMA addresses related between devices.
- The 40-bit mask appears to be completely unnecessary here, as the SoC cannot address that much memory anyway, so simply asking for a 64-bit mask (as supported by the device) should succeed anyway.
The patch to remove the parsing of the property is getting merged through the crypto tree.
(quoted diff) +0 -0
b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi index f611e843094c..726528ce54e9 100644
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +0 -1
@@ -270,7 +270,6 @@ interrupt-names = "mem", "ring0", "ring1", "ring2", "ring3", "eip"; clocks = <&cpm_clk 1 26>; - dma-mask = <0xff 0xffffffff>; }; };
(quoted diff) +0 -0
b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi index 84d3bd80eb51..95f8e5f607f6 100644
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +0 -1
@@ -261,7 +261,6 @@ interrupt-names = "mem", "ring0", "ring1", "ring2", "ring3", "eip"; clocks = <&cps_clk 1 26>; - dma-mask = <0xff 0xffffffff>; /* * The cryptographic engine found on the cp110 * master is enabled by default at the SoC