Cadence SPI controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-cadence.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"xlnx,zynqmp-spi-r1p6","xlnx,versal-net-spi-r1p6","cix,sky1-spi-r1p6"Item 2
Exact value (
const):"cdns,spi-r1p6"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"pclk"
clocks — required here #
Maximum number of items (maxItems): 2
num-cs — not listed as required here #
Number of chip selects used. If a decoder is used, this will be the number of chip selects after the decoder.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 4
is-decoded-cs — not listed as required here #
Flag to indicate whether decoder is used or not.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
label — not listed as required here #
Descriptive name of the SPI controller.
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@e0007000 {
compatible = "xlnx,zynq-spi-r1p6";
clock-names = "ref_clk", "pclk";
clocks = <&clkc 26>, <&clkc 35>;
interrupt-parent = <&intc>;
interrupts = <0 49 4>;
num-cs = <4>;
is-decoded-cs = <0>;
reg = <0xe0007000 0x1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)