^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Altera Passive Serial SPI FPGA Manager
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Altera FPGAs support a method of loading the bitstream over what is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) referred to as "passive serial".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) The passive serial link is not technically SPI, and might require extra
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) circuits in order to play nicely with other SPI slaves on the same bus.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - compatible: Must be one of the following:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) "altr,fpga-passive-serial",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) "altr,fpga-arria10-passive-serial"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - reg: SPI chip select of the FPGA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - nconfig-gpios: config pin (referred to as nCONFIG in the manual)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - nstat-gpios: status pin (referred to as nSTATUS in the manual)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - confd-gpios: confd pin (referred to as CONF_DONE in the manual)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) fpga: fpga@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) compatible = "altr,fpga-passive-serial";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) spi-max-frequency = <20000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) nconfig-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) nstat-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) confd-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) };