Lattice Slave SPI sysCONFIG FPGA manager
Schema identifier ($id): "http://devicetree.org/schemas/fpga/lattice,sysconfig.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Georgiev <v.georgiev@metrotek.ru>"
Lattice sysCONFIG port, which is used for FPGA configuration, among others, have Slave Serial Peripheral Interface. Only full reconfiguration is supported.
Programming of ECP5 is done by writing uncompressed bitstream image in .bit format into FPGA's SRAM configuration memory.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "lattice,sysconfig-ecp5"
reg — required here #
Maximum number of items (maxItems): 1
program-gpios — not listed as required here #
A GPIO line connected to PROGRAMN (active low) pin of the device. Initiates configuration sequence.
Maximum number of items (maxItems): 1
init-gpios — not listed as required here #
A GPIO line connected to INITN (active low) pin of the device. Indicates that the FPGA is ready to be configured.
Maximum number of items (maxItems): 1
done-gpios — not listed as required here #
A GPIO line connected to DONE (active high) pin of the device. Indicates that the configuration sequence is complete.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"lattice,sysconfig-ecp5"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):60000000
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
fpga-mgr@0 {
compatible = "lattice,sysconfig-ecp5";
reg = <0>;
spi-max-frequency = <20000000>;
program-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
init-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>;
done-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)