Path: blob/master/Documentation/devicetree/bindings/fpga/lattice,ice40-fpga-mgr.yaml
38241 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/fpga/lattice,ice40-fpga-mgr.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Lattice iCE40 FPGA Manager78maintainers:9- Joel Holdsworth <joel@airwebreathe.org.uk>1011properties:12compatible:13const: lattice,ice40-fpga-mgr1415reg:16maxItems: 11718spi-max-frequency:19minimum: 100000020maximum: 250000002122cdone-gpios:23maxItems: 124description: GPIO input connected to CDONE pin2526reset-gpios:27maxItems: 128description:29Active-low GPIO output connected to CRESET_B pin. Note that unless the30GPIO is held low during startup, the FPGA will enter Master SPI mode and31drive SCK with a clock signal potentially jamming other devices on the bus32until the firmware is loaded.3334required:35- compatible36- reg37- spi-max-frequency38- cdone-gpios39- reset-gpios4041additionalProperties: false4243examples:44- |45#include <dt-bindings/gpio/gpio.h>4647spi {48#address-cells = <1>;49#size-cells = <0>;5051fpga@0 {52compatible = "lattice,ice40-fpga-mgr";53reg = <0>;54spi-max-frequency = <1000000>;55cdone-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;56reset-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;57};58};596061