59 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: SPI Slave controller for MediaTek ARM SoCs8 9maintainers:10 - Leilk Liu <leilk.liu@mediatek.com>11 12allOf:13 - $ref: /schemas/spi/spi-controller.yaml#14 15properties:16 compatible:17 enum:18 - mediatek,mt2712-spi-slave19 - mediatek,mt8195-spi-slave20 21 reg:22 maxItems: 123 24 interrupts:25 maxItems: 126 27 clocks:28 maxItems: 129 30 clock-names:31 items:32 - const: spi33 34required:35 - compatible36 - reg37 - interrupts38 - clocks39 - clock-names40 41unevaluatedProperties: false42 43examples:44 - |45 #include <dt-bindings/clock/mt2712-clk.h>46 #include <dt-bindings/gpio/gpio.h>47 #include <dt-bindings/interrupt-controller/arm-gic.h>48 #include <dt-bindings/interrupt-controller/irq.h>49 50 spi@10013000 {51 compatible = "mediatek,mt2712-spi-slave";52 reg = <0x10013000 0x100>;53 interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>;54 clocks = <&infracfg CLK_INFRA_AO_SPI1>;55 clock-names = "spi";56 assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>;57 assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>;58 };59