RE: [PATCH v3 6/6] dt-bindings: fpga: Add bindings for ZynqMP fpga driver
From: Nava kishore Manne <hidden>
Date: 2019-03-05 09:42:40
Also in:
linux-arm-kernel, lkml
Hi Rob, Thanks for the quick response. Please find my response inline.
-----Original Message----- From: Rob Herring [mailto:robh@kernel.org] Sent: Monday, March 4, 2019 10:57 PM To: Nava kishore Manne <redacted> Cc: mark.rutland@arm.com; Michal Simek <redacted>; Rajan Vaja [off-list ref]; linux-arm-kernel@lists.infradead.org; linux- kernel@vger.kernel.org; devicetree@vger.kernel.org; Jolly Shah [off-list ref]; chinnikishore369@gmail.com Subject: Re: [PATCH v3 6/6] dt-bindings: fpga: Add bindings for ZynqMP fpga driver On Mon, Mar 4, 2019 at 5:35 AM Nava kishore Manne [off-list ref] wrote:quoted
Hi Rob, Thanks for providing the review comments.. Please find my response inline.quoted
-----Original Message----- From: Rob Herring [mailto:robh@kernel.org] Sent: Saturday, February 23, 2019 2:01 AM To: Nava kishore Manne <redacted> Cc: mark.rutland@arm.com; Michal Simek <redacted>; Rajan Vaja [off-list ref]; linux-arm-kernel@lists.infradead.org; linux- kernel@vger.kernel.org; devicetree@vger.kernel.org; Jolly Shah [off-list ref]; chinnikishore369@gmail.com Subject: Re: [PATCH v3 6/6] dt-bindings: fpga: Add bindings for ZynqMP fpga driver On Wed, Jan 23, 2019 at 2:46 PM Nava kishore Manne [off-list ref] wrote:quoted
Hi Rob, Thanks for providing the comments...Please fix your mailer to send plain text emails to mail lists.Thanks for pointing it..quoted
quoted
quoted
-----Original Message-----quoted
From: Rob Herring [mailto:robh@kernel.org]quoted
Sent: Monday, January 21, 2019 9:19 PMquoted
To: Nava kishore Manne <redacted>quoted
Cc: mark.rutland@arm.com; Michal Simek <redacted>; Rajan Vajaquoted
[off-list ref]; linux-arm-kernel@lists.infradead.org; linux-quoted
kernel@vger.kernel.org; devicetree@vger.kernel.org; Jolly Shahquoted
[off-list ref]; chinnikishore369@gmail.comquoted
Subject: Re: [PATCH v3 6/6] dt-bindings: fpga: Add bindings for ZynqMP fpgaquoted
driverquoted
quoted
On Mon, Jan 21, 2019 at 11:08:35PM +0530, Nava kishore Manne wrote:quoted
quoted
Add documentation to describe Xilinx ZynqMP fpga driver bindings.quoted
quoted
quoted
quoted
Signed-off-by: Nava kishore Manne <redacted>quoted
quoted
---quoted
quoted
Changes for v3:quoted
quoted
-Removed PCAP as a child node to the FW and Createdquoted
quoted
an independent node since PCAP driver is a consumerquoted
quoted
not a provider.quoted
quoted
quoted
quoted
.../bindings/fpga/xlnx,zynqmp-pcap-fpga.txt | 13 +++++++++++++quoted
quoted
1 file changed, 13 insertions(+)quoted
quoted
create mode 100644quoted
quoted
Documentation/devicetree/bindings/fpga/xlnx,zynqmp-pcap-fpga.t xtquoted
quoted
quoted
quoted
diff --gitquoted
quoted
a/Documentation/devicetree/bindings/fpga/xlnx,zynqmp-pcap-fpga .txtquoted
quoted
b/Documentation/devicetree/bindings/fpga/xlnx,zynqmp-pcap-fpga .txtquoted
quoted
new file mode 100644quoted
quoted
index 000000000000..1f6f58872311quoted
quoted
--- /dev/nullquoted
quoted
+++ b/Documentation/devicetree/bindings/fpga/xlnx,zynqmp-pcap- +++ fpga +++ .txtquoted
quoted
@@ -0,0 +1,13 @@quoted
quoted
+Device Tree zynqmp-fpga bindings for the Zynq Ultrascale+ +MPSoCquoted
quoted
+controlled using ZynqMP SoC firmware interface For Bitstreamquoted
quoted
+configuration on ZynqMp Soc uses processor configurationquoted
quoted
+port(PCAP) to configure the programmable logic(PL) through PS +byquoted
quoted
+using FW interface.quoted
quoted
+quoted
quoted
+Required properties:quoted
quoted
+- compatible: should contain "xlnx,zynqmp-pcap-fpga"quoted
quoted
+quoted
quoted
+Example:quoted
quoted
+ zynqmp_pcap: pcap {quoted
quoted
+ compatible = "xlnx,zynqmp-pcap-fpga";quoted
quoted
+ };quoted
quoted
There's no need for a DT node. Just make the firware driver create a platformquoted
device for pcap.quoted
This driver being used by the FPGA manager framework(fpga-region) to applyoverlay's so this node is needed AFAIK. The binding says nothing about child nodes and what they are. Please define that.Do you mean I need to add the example usage of the pcap node like as belowin the binding doc? You can have an example, but no, I meant you need say something like "The pcap node may have 1 or more child nodes which have an 'fpga-region' compatible.quoted
Device Tree Example for Full Reconfiguration ============================================ Live Device Tree contains: zynqmp_pcap: pcap { compatible = "xlnx,zynqmp-pcap-fpga"; }; fpga_region0: fpga-region0 {This should be a child of pcap.
AFAIK we can't put the fpga-region as a child of pcap as both are independent and they refered to each other using phandlers I have made this changes by looking into the below reference doc. https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/fpga/fpga-region.txt
quoted
compatible = "fpga-region"; fpga-mgr = <&zynqmp_pcap>; #address-cells = <0x1>; #size-cells = <0x1>; ranges; }; DT Overlay contains:Don't show overlays in examples. Just show a final tree (i.e. base with overlay applied).
To get a better picture for the users i have added this example node with overlays I feel it's good to have this info because it will not impact the functionality of PCAP node. Please let me know if you still want me to make this example without overlay node. Regards, Navakishore.