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: 21*0e8011faSEmmanuel Vadot - enum: 22*0e8011faSEmmanuel Vadot - microchip,sam9x60-spi 23*0e8011faSEmmanuel Vadot - microchip,sam9x7-spi 24*0e8011faSEmmanuel Vadot - microchip,sama7d65-spi 25f126890aSEmmanuel Vadot - const: atmel,at91rm9200-spi 26b97ee269SEmmanuel Vadot 27b97ee269SEmmanuel Vadot reg: 28b97ee269SEmmanuel Vadot maxItems: 1 29b97ee269SEmmanuel Vadot 30b97ee269SEmmanuel Vadot interrupts: 31b97ee269SEmmanuel Vadot maxItems: 1 32b97ee269SEmmanuel Vadot 33b97ee269SEmmanuel Vadot clock-names: 34b97ee269SEmmanuel Vadot contains: 35b97ee269SEmmanuel Vadot const: spi_clk 36b97ee269SEmmanuel Vadot 37b97ee269SEmmanuel Vadot clocks: 38b97ee269SEmmanuel Vadot maxItems: 1 39b97ee269SEmmanuel Vadot 407ef62cebSEmmanuel Vadot dmas: 417ef62cebSEmmanuel Vadot items: 427ef62cebSEmmanuel Vadot - description: TX DMA Channel 437ef62cebSEmmanuel Vadot - description: RX DMA Channel 447ef62cebSEmmanuel Vadot 457ef62cebSEmmanuel Vadot dma-names: 467ef62cebSEmmanuel Vadot items: 477ef62cebSEmmanuel Vadot - const: tx 487ef62cebSEmmanuel Vadot - const: rx 497ef62cebSEmmanuel Vadot 50b97ee269SEmmanuel Vadot atmel,fifo-size: 51b97ee269SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 52b97ee269SEmmanuel Vadot description: | 53b97ee269SEmmanuel Vadot Maximum number of data the RX and TX FIFOs can store for FIFO 54b97ee269SEmmanuel Vadot capable SPI controllers. 55b97ee269SEmmanuel Vadot enum: [ 16, 32 ] 56b97ee269SEmmanuel Vadot 57b97ee269SEmmanuel Vadotrequired: 58b97ee269SEmmanuel Vadot - compatible 59b97ee269SEmmanuel Vadot - reg 60b97ee269SEmmanuel Vadot - interrupts 61b97ee269SEmmanuel Vadot - clock-names 62b97ee269SEmmanuel Vadot - clocks 63b97ee269SEmmanuel Vadot 64b97ee269SEmmanuel VadotunevaluatedProperties: false 65b97ee269SEmmanuel Vadot 66b97ee269SEmmanuel Vadotexamples: 67b97ee269SEmmanuel Vadot - | 68b97ee269SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 69b97ee269SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 70b97ee269SEmmanuel Vadot 71b97ee269SEmmanuel Vadot spi1: spi@fffcc000 { 72b97ee269SEmmanuel Vadot compatible = "atmel,at91rm9200-spi"; 73b97ee269SEmmanuel Vadot reg = <0xfffcc000 0x4000>; 74b97ee269SEmmanuel Vadot interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>; 75b97ee269SEmmanuel Vadot #address-cells = <1>; 76b97ee269SEmmanuel Vadot #size-cells = <0>; 77b97ee269SEmmanuel Vadot clocks = <&spi1_clk>; 78b97ee269SEmmanuel Vadot clock-names = "spi_clk"; 79b97ee269SEmmanuel Vadot cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>; 80b97ee269SEmmanuel Vadot atmel,fifo-size = <32>; 81b97ee269SEmmanuel Vadot 82b97ee269SEmmanuel Vadot mmc@0 { 83b97ee269SEmmanuel Vadot compatible = "mmc-spi-slot"; 84b97ee269SEmmanuel Vadot reg = <0>; 85b97ee269SEmmanuel Vadot gpios = <&pioC 4 GPIO_ACTIVE_HIGH>; /* CD */ 86b97ee269SEmmanuel Vadot spi-max-frequency = <25000000>; 87b97ee269SEmmanuel Vadot }; 88b97ee269SEmmanuel Vadot }; 89