1*c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*c9ccf3a3SEmmanuel Vadot%YAML 1.2 3*c9ccf3a3SEmmanuel Vadot--- 4*c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml# 5*c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c9ccf3a3SEmmanuel Vadot 7*c9ccf3a3SEmmanuel Vadottitle: SPI Slave controller for MediaTek ARM SoCs 8*c9ccf3a3SEmmanuel Vadot 9*c9ccf3a3SEmmanuel Vadotmaintainers: 10*c9ccf3a3SEmmanuel Vadot - Leilk Liu <leilk.liu@mediatek.com> 11*c9ccf3a3SEmmanuel Vadot 12*c9ccf3a3SEmmanuel VadotallOf: 13*c9ccf3a3SEmmanuel Vadot - $ref: "/schemas/spi/spi-controller.yaml#" 14*c9ccf3a3SEmmanuel Vadot 15*c9ccf3a3SEmmanuel Vadotproperties: 16*c9ccf3a3SEmmanuel Vadot compatible: 17*c9ccf3a3SEmmanuel Vadot enum: 18*c9ccf3a3SEmmanuel Vadot - mediatek,mt2712-spi-slave 19*c9ccf3a3SEmmanuel Vadot - mediatek,mt8195-spi-slave 20*c9ccf3a3SEmmanuel Vadot 21*c9ccf3a3SEmmanuel Vadot reg: 22*c9ccf3a3SEmmanuel Vadot maxItems: 1 23*c9ccf3a3SEmmanuel Vadot 24*c9ccf3a3SEmmanuel Vadot interrupts: 25*c9ccf3a3SEmmanuel Vadot maxItems: 1 26*c9ccf3a3SEmmanuel Vadot 27*c9ccf3a3SEmmanuel Vadot clocks: 28*c9ccf3a3SEmmanuel Vadot maxItems: 1 29*c9ccf3a3SEmmanuel Vadot 30*c9ccf3a3SEmmanuel Vadot clock-names: 31*c9ccf3a3SEmmanuel Vadot items: 32*c9ccf3a3SEmmanuel Vadot - const: spi 33*c9ccf3a3SEmmanuel Vadot 34*c9ccf3a3SEmmanuel Vadotrequired: 35*c9ccf3a3SEmmanuel Vadot - compatible 36*c9ccf3a3SEmmanuel Vadot - reg 37*c9ccf3a3SEmmanuel Vadot - interrupts 38*c9ccf3a3SEmmanuel Vadot - clocks 39*c9ccf3a3SEmmanuel Vadot - clock-names 40*c9ccf3a3SEmmanuel Vadot 41*c9ccf3a3SEmmanuel VadotunevaluatedProperties: false 42*c9ccf3a3SEmmanuel Vadot 43*c9ccf3a3SEmmanuel Vadotexamples: 44*c9ccf3a3SEmmanuel Vadot - | 45*c9ccf3a3SEmmanuel Vadot #include <dt-bindings/clock/mt2712-clk.h> 46*c9ccf3a3SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 47*c9ccf3a3SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 48*c9ccf3a3SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 49*c9ccf3a3SEmmanuel Vadot 50*c9ccf3a3SEmmanuel Vadot spi@10013000 { 51*c9ccf3a3SEmmanuel Vadot compatible = "mediatek,mt2712-spi-slave"; 52*c9ccf3a3SEmmanuel Vadot reg = <0x10013000 0x100>; 53*c9ccf3a3SEmmanuel Vadot interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>; 54*c9ccf3a3SEmmanuel Vadot clocks = <&infracfg CLK_INFRA_AO_SPI1>; 55*c9ccf3a3SEmmanuel Vadot clock-names = "spi"; 56*c9ccf3a3SEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>; 57*c9ccf3a3SEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>; 58*c9ccf3a3SEmmanuel Vadot }; 59