From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Subject: Re: [PATCH v2 2/2] fpga manager: Add Xilinx slave serial SPI driver Date: Tue, 21 Feb 2017 19:53:40 +0100 Message-ID: <3a30638c-68f6-8c2b-95b7-c8c700fe4867@xilinx.com> References: <1487600724-17607-1-git-send-email-agust@denx.de> <1487600724-17607-3-git-send-email-agust@denx.de> <2d412ae7-4163-9943-6d98-2d6387df7789@xilinx.com> <20170221152444.34b5d9f4@crub> <19e0b5d1-bbf6-25ac-2698-6074ebafcf05@xilinx.com> <20170221161723.358975f7@crub> <20170221163907.75ba4330@crub> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170221163907.75ba4330@crub> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Anatolij Gustschin , Michal Simek Cc: linux-fpga-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alan Tull , Moritz Fischer , Rob Herring , Mark Rutland List-Id: devicetree@vger.kernel.org On 21.2.2017 16:39, Anatolij Gustschin wrote: > On Tue, 21 Feb 2017 16:27:34 +0100 > Michal Simek michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org wrote: > ... >> ok. That means only dout (din fpga) and clk out (fpga clk in) and gpio >> handling for others signals. > > yes, exactly. > > ... >>> Usage example for full FPGA configuration: >>> >>> fpga-region0 { >>> compatible = "fpga-region"; >>> fpga-mgr = <&fpga_mgr_spi>; >>> #address-cells = <0x1>; >>> #size-cells = <0x1>; >>> }; >>> >>> &spi1 { >>> status = "okay"; >>> >>> fpga_mgr_spi: fpga-mgr@0 { >>> compatible = "xlnx,fpga-slave-serial"; >>> reg = <0>; >>> spi-max-frequency = <60000000>; >>> spi-cpha; >>> done-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; >>> prog_b-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; >>> }; >>> }; >> >> Right I would even replace &spi1 with full node to see content but this >> is also good. > > Okay, will add in patch v3. There is one thing I have checked ml505 - old virtex 5 board which has this interface. http://www-inst.eecs.berkeley.edu/~cs150/fa13/resources/ml50x_schematics.pdf And I was chatting with one board guy and I think that done pin should be optional not required because not all boards export it. Then there is a question how to find out that programming was done and that's something what I don't know. But will try to find out if you can send any sequence over spi to find it out instead of gpio done pin. Thanks, Michal -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html