Sunplus sp7021 SPI controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-sunplus-sp7021.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Maintainers (maintainers): "Li-hao Kuo <lhjeff911@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sunplus,sp7021-spi"
reg — required here #
Array item rules (items) #
Item 1
the SPI master registers
Item 2
the SPI slave registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"master"
Item 2
Exact value (
const):"slave"
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma_w"
Item 2
Exact value (
const):"master_risc"
Item 3
Exact value (
const):"slave_risc"
interrupts — required here #
Minimum number of items (minItems): 3
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "resets", "pinctrl-names", "pinctrl-0"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi@9c002d80 {
compatible = "sunplus,sp7021-spi";
reg = <0x9c002d80 0x80>, <0x9c002e00 0x80>;
reg-names = "master", "slave";
interrupt-parent = <&intc>;
interrupt-names = "dma_w",
"master_risc",
"slave_risc";
interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,
<146 IRQ_TYPE_LEVEL_HIGH>,
<145 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 0x32>;
resets = <&rstc 0x22>;
pinctrl-names = "default";
pinctrl-0 = <&pins_spi0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright (C) Sunplus Co., Ltd. 2021