MTMIPS SoCs System Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/mediatek,mtmips-sysc.yaml#"

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

Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

MediaTek MIPS and Ralink SoCs provides a system controller to allow to access to system control registers. These registers include clock and reset related ones so this node is both clock and reset provider for the rest of the world.

These SoCs have an XTAL from where the cpu clock is provided as well as derived clocks for the bus and the peripherals.

Each clock is assigned an identifier and client nodes use this identifier to specify the clock which they consume.

All these identifiers could be found in: [1]: <include/dt-bindings/clock/mediatek,mtmips-sysc.h>.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ralink,mt7620-sysc", "ralink,mt7688-sysc", "ralink,rt2880-sysc", "ralink,rt3050-sysc", "ralink,rt3052-sysc", "ralink,rt3352-sysc", "ralink,rt3883-sysc", "ralink,rt5350-sysc"

Item 2

Exact value (const): "syscon"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ralink,mt7628-sysc"

Item 2

Exact value (const): "ralink,mt7688-sysc"

Item 3

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

The first cell indicates the clock number, see [1] for available clocks.

Exact value (const): 1

#reset-cells — required here #

The first cell indicates the reset bit within the register.

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#clock-cells", "#reset-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mediatek,mtmips-sysc.h>

syscon@0 {
  compatible = "ralink,rt5350-sysc", "syscon";
  reg = <0x0 0x100>;
  #clock-cells = <1>;
  #reset-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page