1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/st,stm32-qspi.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: STMicroelectronics STM32 Quad Serial Peripheral Interface (QSPI) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Christophe Kerello <christophe.kerello@foss.st.com> 118cc087a1SEmmanuel Vadot - Patrice Chotard <patrice.chotard@foss.st.com> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel VadotallOf: 14*cb7aa33aSEmmanuel Vadot - $ref: spi-controller.yaml# 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadotproperties: 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot const: st,stm32f469-qspi 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot reg: 21c66ec88fSEmmanuel Vadot items: 22c66ec88fSEmmanuel Vadot - description: registers 23c66ec88fSEmmanuel Vadot - description: memory mapping 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot reg-names: 26c66ec88fSEmmanuel Vadot items: 27c66ec88fSEmmanuel Vadot - const: qspi 28c66ec88fSEmmanuel Vadot - const: qspi_mm 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot clocks: 31c66ec88fSEmmanuel Vadot maxItems: 1 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot interrupts: 34c66ec88fSEmmanuel Vadot maxItems: 1 35c66ec88fSEmmanuel Vadot 36c66ec88fSEmmanuel Vadot resets: 37c66ec88fSEmmanuel Vadot maxItems: 1 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot dmas: 40c66ec88fSEmmanuel Vadot items: 41c66ec88fSEmmanuel Vadot - description: tx DMA channel 42c66ec88fSEmmanuel Vadot - description: rx DMA channel 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot dma-names: 45c66ec88fSEmmanuel Vadot items: 46c66ec88fSEmmanuel Vadot - const: tx 47c66ec88fSEmmanuel Vadot - const: rx 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadotrequired: 50c66ec88fSEmmanuel Vadot - compatible 51c66ec88fSEmmanuel Vadot - reg 52c66ec88fSEmmanuel Vadot - reg-names 53c66ec88fSEmmanuel Vadot - clocks 54c66ec88fSEmmanuel Vadot - interrupts 55c66ec88fSEmmanuel Vadot 566be33864SEmmanuel VadotunevaluatedProperties: false 576be33864SEmmanuel Vadot 58c66ec88fSEmmanuel Vadotexamples: 59c66ec88fSEmmanuel Vadot - | 60c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 61c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/stm32mp1-clks.h> 62c66ec88fSEmmanuel Vadot #include <dt-bindings/reset/stm32mp1-resets.h> 63c66ec88fSEmmanuel Vadot spi@58003000 { 64c66ec88fSEmmanuel Vadot compatible = "st,stm32f469-qspi"; 65c66ec88fSEmmanuel Vadot reg = <0x58003000 0x1000>, <0x70000000 0x10000000>; 66c66ec88fSEmmanuel Vadot reg-names = "qspi", "qspi_mm"; 67c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; 68c66ec88fSEmmanuel Vadot dmas = <&mdma1 22 0x10 0x100002 0x0 0x0>, 69c66ec88fSEmmanuel Vadot <&mdma1 22 0x10 0x100008 0x0 0x0>; 70c66ec88fSEmmanuel Vadot dma-names = "tx", "rx"; 71c66ec88fSEmmanuel Vadot clocks = <&rcc QSPI_K>; 72c66ec88fSEmmanuel Vadot resets = <&rcc QSPI_R>; 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot #address-cells = <1>; 75c66ec88fSEmmanuel Vadot #size-cells = <0>; 76c66ec88fSEmmanuel Vadot 77c66ec88fSEmmanuel Vadot flash@0 { 78c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 79c66ec88fSEmmanuel Vadot reg = <0>; 80c66ec88fSEmmanuel Vadot spi-rx-bus-width = <4>; 81c66ec88fSEmmanuel Vadot spi-max-frequency = <108000000>; 82c66ec88fSEmmanuel Vadot }; 83c66ec88fSEmmanuel Vadot }; 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel Vadot... 86