SPI Slave controller for MediaTek ARM SoCs

Schema identifier ($id): "http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml#"

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

Maintainers (maintainers): "Leilk Liu <leilk.liu@mediatek.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 #

Allowed values (enum): "mediatek,mt2712-spi-slave", "mediatek,mt8195-spi-slave"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "spi"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt2712-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

spi@10013000 {
  compatible = "mediatek,mt2712-spi-slave";
  reg = <0x10013000 0x100>;
  interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>;
  clocks = <&infracfg CLK_INFRA_AO_SPI1>;
  clock-names = "spi";
  assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>;
  assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page