Loongson SPI controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yinbo Zhu <zhuyinbo@loongson.cn>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "loongson,ls2k1000-spi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls2k0500-spi"

Item 2

Exact value (const): "loongson,ls2k1000-spi"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi0: spi@1fff0220{
    compatible = "loongson,ls2k1000-spi";
    reg = <0x1fff0220 0x10>;
    clocks = <&clk 17>;
    #address-cells = <1>;
    #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page