Mediatek MT7621/MT7628 SPI controller

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

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

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

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 #

Exact value (const): "ralink,mt7621-spi"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "spi"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "spi"

Required in this object (required): "compatible", "reg", "resets", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt7621-clk.h>
#include <dt-bindings/reset/mt7621-reset.h>

spi@b00 {
  compatible = "ralink,mt7621-spi";
  reg = <0xb00 0x100>;
  clocks = <&sysc MT7621_CLK_SPI>;
  clock-names = "spi";
  resets = <&sysc MT7621_RST_SPI>;
  reset-names = "spi";

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

  pinctrl-names = "default";
  pinctrl-0 = <&spi_pins>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page