From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moritz Fischer Subject: Re: [PATCH v2 1/2] dt: bindings: fpga: add xilinx slave-serial binding description Date: Mon, 20 Feb 2017 09:28:17 -0800 Message-ID: References: <1487600724-17607-1-git-send-email-agust@denx.de> <1487600724-17607-2-git-send-email-agust@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1487600724-17607-2-git-send-email-agust-ynQEQJNshbs@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Anatolij Gustschin Cc: linux-fpga-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Devicetree List , Alan Tull , Rob Herring , Mark Rutland List-Id: devicetree@vger.kernel.org On Mon, Feb 20, 2017 at 6:25 AM, Anatolij Gustschin wrote: > Add dt binding documentation details for Xilinx FPGA configuration > over slave serial interface. > > Signed-off-by: Anatolij Gustschin Acked-by: Moritz Fischer > --- > Changes in v2: > > - correct gpios properties in example to match above description > > - use fpga-mgr@0 instead of fpga-spi@0 in example > > .../bindings/fpga/xilinx-slave-serial.txt | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/devicetree/bindings/fpga/xilinx-slave-serial.txt > > diff --git a/Documentation/devicetree/bindings/fpga/xilinx-slave-serial.txt b/Documentation/devicetree/bindings/fpga/xilinx-slave-serial.txt > new file mode 100644 > index 0000000..20b0731 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/xilinx-slave-serial.txt > @@ -0,0 +1,24 @@ > +Xilinx Slave Serial SPI FPGA Manager > + > +Xilinx Spartan-6 FPGAs support a method of loading the bitstream over > +what is referred to as "slave serial" interface. > +The slave serial link is not technically SPI, and might require extra > +circuits in order to play nicely with other SPI slaves on the same bus. > + > +See https://www.xilinx.com/support/documentation/user_guides/ug380.pdf > + > +Required properties: > +- compatible: should contain "xlnx,fpga-slave-serial" > +- reg: spi chip select of the FPGA > +- prog_b-gpios: config pin (referred to as PROGRAM_B in the manual) > +- done-gpios: config status pin (referred to as DONE in the manual) > + > +Example: > + fpga_mgr_spi: fpga-mgr@0 { > + compatible = "xlnx,fpga-slave-serial"; > + spi-max-frequency = <60000000>; > + spi-cpha; > + reg = <0>; > + done-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; > + prog_b-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; > + }; > -- > 2.7.4 > -- 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