Synopsys DesignWare AMBA 2.0 Synchronous Serial Interface
Schema identifier ($id): "http://devicetree.org/schemas/spi/snps,dw-apb-ssi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"
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)Allowed values (
enum):"mscc,ocelot-spi","mscc,jaguar2-spi"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"amd,pensando-elba-spi"When the condition matches (
then) #Required in this object (
required):"amd,pensando-elba-syscon"When the condition does not match (
else) #Properties and child nodes (
properties)
amd,pensando-elba-syscon— not listed as required here
false— Not permitted by this property rule.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Generic DW SPI Controller
Allowed values (
enum):"snps,dw-apb-ssi","snps,dwc-ssi-1.01a"
Rule 2
Microchip Sparx5 SoC SPI Controller
Exact value (
const):"microchip,sparx5-spi"
Rule 3
Amazon Alpine SPI Controller
Exact value (
const):"amazon,alpine-dw-apb-ssi"
Rule 4
Vendor controllers which use snps,dw-apb-ssi as fallback
Array item rules (
items)Item 1
Allowed values (
enum):"mscc,ocelot-spi","mscc,jaguar2-spi","renesas,rzn1-spi","sophgo,sg2042-spi","thead,th1520-spi"Item 2
Exact value (
const):"snps,dw-apb-ssi"
Rule 5
Intel Keem Bay SPI Controller
Exact value (
const):"intel,keembay-ssi"
Rule 6
Intel Mount Evans Integrated Management Complex SPI Controller
Exact value (
const):"intel,mountevans-imc-ssi"
Rule 7
AMD Pensando Elba SoC SPI Controller
Exact value (
const):"amd,pensando-elba-spi"
Rule 8
Canaan Kendryte K210 SoS SPI Controller
Exact value (
const):"canaan,k210-spi"
Rule 9
Renesas RZ/N1 SPI Controller
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-spi"Item 2
Exact value (
const):"renesas,rzn1-spi"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
DW APB SSI controller memory mapped registers
Item 2
SPI MST region map or directly mapped SPI ROM
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
SPI Controller reference clock source
Item 2
APB interface clock source
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ssi_clk"
Item 2
Exact value (
const):"pclk"
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "spi"
reg-io-width — not listed as required here #
I/O register width (in bytes) implemented by this device
Default value (default): 4
num-cs — not listed as required here #
Default value (default): 4
Minimum value (minimum): 1
Maximum value (maximum): 16
dmas — not listed as required here #
Array item rules (items) #
Item 1
TX DMA Channel
Item 2
RX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
rx-sample-delay-ns — not listed as required here #
Default value (default): 0
Default value of the rx-sample-delay-ns property. This value will be used if the property is not explicitly defined for a SPI slave device.
SPI Rx sample delay offset, unit is nanoseconds. The delay from the default sample time before the actual sample of the rxd input signal occurs. The "rx_sample_delay" is an optional feature of the designware controller, and the upper limit is also subject to controller configuration.
amd,pensando-elba-syscon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Block address to control SPI chip-selects. The Elba SoC system controller provides an interface to override the native DWC SSI CS control.
Properties matching a name pattern (patternProperties) #
@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 15
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "clocks", "interrupts"
Examples (examples) #
spi@fff00000 {
compatible = "snps,dw-apb-ssi";
reg = <0xfff00000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 154 4>;
clocks = <&spi_m_clk>;
num-cs = <2>;
cs-gpios = <&gpio0 13 0>,
<&gpio0 14 0>;
rx-sample-delay-ns = <3>;
flash@1 {
compatible = "spi-nand";
reg = <1>;
rx-sample-delay-ns = <7>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 67: RZ/N1D
Line 68: RZ/N1