Allwinner A31 SPI Controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 2
Exact value (
const):"allwinner,sun55i-a523-spi"
Rule 3
Exact value (
const):"allwinner,sun6i-a31-spi"
Rule 4
Exact value (
const):"allwinner,sun8i-h3-spi"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun8i-r40-spi","allwinner,sun50i-h6-spi","allwinner,sun50i-h616-spi","allwinner,suniv-f1c100s-spi"Item 2
Exact value (
const):"allwinner,sun8i-h3-spi"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-spi","allwinner,sun50i-r329-spi-dbi"Item 2
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 7
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun20i-d1-spi-dbi"Item 2
Exact value (
const):"allwinner,sun50i-r329-spi-dbi"Item 3
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun55i-a523-spi-dbi"Item 2
Exact value (
const):"allwinner,sun55i-a523-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Bus Clock
Item 2
Module Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"mod"
resets — not listed as required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Array item rules (items) #
Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
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
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):4
spi-rx-bus-width — not listed as required here
Array item rules (items)
spi-tx-bus-width — not listed as required here
Array item rules (items)
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun50i-r329-spi","allwinner,sun55i-a523-spi"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^.*@[0-9a-f]+— name matches this regular expressionProperties and child nodes (
properties)
spi-rx-bus-width— not listed as required hereArray item rules (
items)
spi-tx-bus-width— not listed as required hereArray item rules (
items)
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi1: spi@1c69000 {
compatible = "allwinner,sun6i-a31-spi";
reg = <0x01c69000 0x1000>;
interrupts = <0 66 4>;
clocks = <&ahb1_gates 21>, <&spi1_clk>;
clock-names = "ahb", "mod";
resets = <&ahb1_rst 21>;
#address-cells = <1>;
#size-cells = <0>;
};
spi0: spi@1c68000 {
compatible = "allwinner,sun8i-h3-spi";
reg = <0x01c68000 0x1000>;
interrupts = <0 65 4>;
clocks = <&ccu 30>, <&ccu 82>;
clock-names = "ahb", "mod";
dmas = <&dma 23>, <&dma 23>;
dma-names = "rx", "tx";
resets = <&ccu 15>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0