Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Loongarch bindings

Single-page view · as markdown

LoongArch CPUs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Loongarch bindings

Schema identifier ($id): "http://devicetree.org/schemas/loongarch/cpus.yaml#"

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

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

This document describes the list of LoongArch CPU cores that support FDT, it describe the layout of CPUs in a system through the "cpus" node.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/cpu.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "loongson,la264", "loongson,la364"

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) #

#include <dt-bindings/clock/loongson,ls2k-clk.h>

cpus {
    #size-cells = <0>;
    #address-cells = <1>;

    cpu@0 {
        compatible = "loongson,la264";
        device_type = "cpu";
        reg = <0>;
        clocks = <&clk LOONGSON2_NODE_CLK>;
    };

    cpu@1 {
        compatible = "loongson,la264";
        device_type = "cpu";
        reg = <1>;
        clocks = <&clk LOONGSON2_NODE_CLK>;
    };
};

Source notes #

Annotations retained from the schema source

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

Loongson SoC-based boards

Peios Kernel / Hardware and drivers / Device-tree binding reference / Loongarch bindings

Schema identifier ($id): "http://devicetree.org/schemas/loongarch/loongson.yaml#"

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

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "/"

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Loongson-2K0500 processor based boards

Array item rules (items)

Item 1

Exact value (const): "loongson,ls2k0500-ref"

Item 2

Exact value (const): "loongson,ls2k0500"

Rule 2

Loongson-2K1000 processor based boards

Array item rules (items)

Item 1

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

Item 2

Exact value (const): "loongson,ls2k1000"

Rule 3

Loongson-2K2000 processor based boards

Array item rules (items)

Item 1

Exact value (const): "loongson,ls2k2000-ref"

Item 2

Exact value (const): "loongson,ls2k2000"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.