1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2b97ee269SEmmanuel Vadot# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries 3b97ee269SEmmanuel Vadot%YAML 1.2 4b97ee269SEmmanuel Vadot--- 5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/atmel,at91rm9200-spi.yaml# 6b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7b97ee269SEmmanuel Vadot 8b97ee269SEmmanuel Vadottitle: Atmel SPI device 9b97ee269SEmmanuel Vadot 10b97ee269SEmmanuel Vadotmaintainers: 118bab661aSEmmanuel Vadot - Tudor Ambarus <tudor.ambarus@linaro.org> 12b97ee269SEmmanuel Vadot 13b97ee269SEmmanuel VadotallOf: 14b97ee269SEmmanuel Vadot - $ref: spi-controller.yaml# 15b97ee269SEmmanuel Vadot 16b97ee269SEmmanuel Vadotproperties: 17b97ee269SEmmanuel Vadot compatible: 18b97ee269SEmmanuel Vadot oneOf: 19b97ee269SEmmanuel Vadot - const: atmel,at91rm9200-spi 20b97ee269SEmmanuel Vadot - items: 21b97ee269SEmmanuel Vadot - const: microchip,sam9x60-spi 22b97ee269SEmmanuel Vadot - const: atmel,at91rm9200-spi 23*f126890aSEmmanuel Vadot - items: 24*f126890aSEmmanuel Vadot - const: microchip,sam9x7-spi 25*f126890aSEmmanuel Vadot - const: microchip,sam9x60-spi 26*f126890aSEmmanuel Vadot - const: atmel,at91rm9200-spi 27b97ee269SEmmanuel Vadot 28b97ee269SEmmanuel Vadot reg: 29b97ee269SEmmanuel Vadot maxItems: 1 30b97ee269SEmmanuel Vadot 31b97ee269SEmmanuel Vadot interrupts: 32b97ee269SEmmanuel Vadot maxItems: 1 33b97ee269SEmmanuel Vadot 34b97ee269SEmmanuel Vadot clock-names: 35b97ee269SEmmanuel Vadot contains: 36b97ee269SEmmanuel Vadot const: spi_clk 37b97ee269SEmmanuel Vadot 38b97ee269SEmmanuel Vadot clocks: 39b97ee269SEmmanuel Vadot maxItems: 1 40b97ee269SEmmanuel Vadot 417ef62cebSEmmanuel Vadot dmas: 427ef62cebSEmmanuel Vadot items: 437ef62cebSEmmanuel Vadot - description: TX DMA Channel 447ef62cebSEmmanuel Vadot - description: RX DMA Channel 457ef62cebSEmmanuel Vadot 467ef62cebSEmmanuel Vadot dma-names: 477ef62cebSEmmanuel Vadot items: 487ef62cebSEmmanuel Vadot - const: tx 497ef62cebSEmmanuel Vadot - const: rx 507ef62cebSEmmanuel Vadot 51b97ee269SEmmanuel Vadot atmel,fifo-size: 52b97ee269SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 53b97ee269SEmmanuel Vadot description: | 54b97ee269SEmmanuel Vadot Maximum number of data the RX and TX FIFOs can store for FIFO 55b97ee269SEmmanuel Vadot capable SPI controllers. 56b97ee269SEmmanuel Vadot enum: [ 16, 32 ] 57b97ee269SEmmanuel Vadot 58b97ee269SEmmanuel Vadotrequired: 59b97ee269SEmmanuel Vadot - compatible 60b97ee269SEmmanuel Vadot - reg 61b97ee269SEmmanuel Vadot - interrupts 62b97ee269SEmmanuel Vadot - clock-names 63b97ee269SEmmanuel Vadot - clocks 64b97ee269SEmmanuel Vadot 65b97ee269SEmmanuel VadotunevaluatedProperties: false 66b97ee269SEmmanuel Vadot 67b97ee269SEmmanuel Vadotexamples: 68b97ee269SEmmanuel Vadot - | 69b97ee269SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 70b97ee269SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 71b97ee269SEmmanuel Vadot 72b97ee269SEmmanuel Vadot spi1: spi@fffcc000 { 73b97ee269SEmmanuel Vadot compatible = "atmel,at91rm9200-spi"; 74b97ee269SEmmanuel Vadot reg = <0xfffcc000 0x4000>; 75b97ee269SEmmanuel Vadot interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>; 76b97ee269SEmmanuel Vadot #address-cells = <1>; 77b97ee269SEmmanuel Vadot #size-cells = <0>; 78b97ee269SEmmanuel Vadot clocks = <&spi1_clk>; 79b97ee269SEmmanuel Vadot clock-names = "spi_clk"; 80b97ee269SEmmanuel Vadot cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>; 81b97ee269SEmmanuel Vadot atmel,fifo-size = <32>; 82b97ee269SEmmanuel Vadot 83b97ee269SEmmanuel Vadot mmc@0 { 84b97ee269SEmmanuel Vadot compatible = "mmc-spi-slot"; 85b97ee269SEmmanuel Vadot reg = <0>; 86b97ee269SEmmanuel Vadot gpios = <&pioC 4 GPIO_ACTIVE_HIGH>; /* CD */ 87b97ee269SEmmanuel Vadot spi-max-frequency = <25000000>; 88b97ee269SEmmanuel Vadot }; 89b97ee269SEmmanuel Vadot }; 90