Path: blob/master/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/fpga/xlnx,fpga-slave-serial.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Xilinx Slave Serial SPI FPGA78maintainers:9- Nava kishore Manne <nava.kishore.manne@amd.com>1011description: |12Xilinx Spartan-6 and 7 Series FPGAs support a method of loading the bitstream13over what is referred to as slave serial interface.The slave serial link is14not technically SPI, and might require extra circuits in order to play nicely15with other SPI slaves on the same bus.1617Datasheets:18https://www.xilinx.com/support/documentation/user_guides/ug380.pdf19https://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf20https://www.xilinx.com/support/documentation/application_notes/xapp583-fpga-configuration.pdf2122allOf:23- $ref: /schemas/spi/spi-peripheral-props.yaml#2425properties:26compatible:27enum:28- xlnx,fpga-slave-serial2930spi-cpha: true3132spi-max-frequency:33maximum: 600000003435reg:36maxItems: 13738prog_b-gpios:39description:40config pin (referred to as PROGRAM_B in the manual)41maxItems: 14243done-gpios:44description:45config status pin (referred to as DONE in the manual)46maxItems: 14748init-b-gpios:49description:50initialization status and configuration error pin51(referred to as INIT_B in the manual)52maxItems: 15354required:55- compatible56- reg57- prog_b-gpios58- done-gpios59- init-b-gpios6061additionalProperties: false6263examples:64- |65#include <dt-bindings/gpio/gpio.h>66spi {67#address-cells = <1>;68#size-cells = <0>;69fpga_mgr_spi: fpga-mgr@0 {70compatible = "xlnx,fpga-slave-serial";71spi-max-frequency = <60000000>;72spi-cpha;73reg = <0>;74prog_b-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;75init-b-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;76done-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;77};78};79...808182