Microchip FPGA {Q,}SPI Controllers
Schema identifier ($id): "http://devicetree.org/schemas/spi/microchip,mpfs-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
SPI and QSPI controllers on Microchip PolarFire SoC and the "soft"/ fabric IP cores they are based on
Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,mpfs-qspi","microchip,pic64gx-qspi"Item 2
Exact value (
const):"microchip,coreqspi-rtl-v2"
Rule 2
Allowed values (
enum):"microchip,coreqspi-rtl-v2","microchip,corespi-rtl-v5","microchip,mpfs-spi"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-spi"Item 2
Exact value (
const):"microchip,mpfs-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
microchip,apb-datawidth — not listed as required here #
APB bus data width in bits.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32
Default value (default): 8
microchip,frame-size — not listed as required here #
Number of bits per SPI frame, as configured in Libero. In Motorola and TI modes, this corresponds directly to the requested frame size. For NSC mode this is set to 9 + the required data frame size.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 4
Maximum value (maximum): 32
Default value (default): 8
microchip,protocol-configuration — not listed as required here #
CoreSPI protocol selection. Determines operating mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "motorola", "ti", "nsc"
Default value (default): "motorola"
microchip,motorola-mode — not listed as required here #
Motorola SPI mode selection
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 3
microchip,ssel-active — not listed as required here #
Keep SSEL asserted between frames when using the Motorola protocol. When present, the controller keeps SSEL active across contiguous transfers and deasserts only when the overall transfer completes.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mpfs-spi"When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereDefault value (
default):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mpfs-spi"This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereMaximum value (
maximum):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,corespi-rtl-v5"When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):8Default value (
default):8
fifo-depth— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):32Default value (
default):4When the condition does not match (
else) #Properties and child nodes (
properties)
microchip,apb-datawidth— not listed as required here
false— Not permitted by this property rule.
microchip,frame-size— not listed as required here
false— Not permitted by this property rule.
microchip,protocol-configuration— not listed as required here
false— Not permitted by this property rule.
microchip,motorola-mode— not listed as required here
false— Not permitted by this property rule.
microchip,ssel-active— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include "dt-bindings/clock/microchip,mpfs-clock.h"
spi@20108000 {
compatible = "microchip,mpfs-spi";
reg = <0x20108000 0x1000>;
clocks = <&clkcfg CLK_SPI0>;
interrupt-parent = <&plic>;
interrupts = <54>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 25: FPGA QSPI
Line 26: FPGA CoreSPI