1790739c4SAnson Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2790739c4SAnson Huang%YAML 1.2 3790739c4SAnson Huang--- 4790739c4SAnson Huang$id: http://devicetree.org/schemas/spi/fsl-imx-cspi.yaml# 5790739c4SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 6790739c4SAnson Huang 7790739c4SAnson Huangtitle: Freescale (Enhanced) Configurable Serial Peripheral Interface (CSPI/eCSPI) for i.MX 8790739c4SAnson Huang 9790739c4SAnson Huangmaintainers: 10*e65b85ddSFabio Estevam - Shawn Guo <shawnguo@kernel.org> 11790739c4SAnson Huang 12790739c4SAnson HuangallOf: 13790739c4SAnson Huang - $ref: "/schemas/spi/spi-controller.yaml#" 14790739c4SAnson Huang 15790739c4SAnson Huangproperties: 16790739c4SAnson Huang compatible: 17790739c4SAnson Huang oneOf: 18790739c4SAnson Huang - const: fsl,imx1-cspi 19790739c4SAnson Huang - const: fsl,imx21-cspi 20790739c4SAnson Huang - const: fsl,imx27-cspi 21790739c4SAnson Huang - const: fsl,imx31-cspi 22790739c4SAnson Huang - const: fsl,imx35-cspi 23790739c4SAnson Huang - const: fsl,imx51-ecspi 24790739c4SAnson Huang - const: fsl,imx53-ecspi 25790739c4SAnson Huang - items: 26790739c4SAnson Huang - enum: 27790739c4SAnson Huang - fsl,imx50-ecspi 28790739c4SAnson Huang - fsl,imx6q-ecspi 29790739c4SAnson Huang - fsl,imx6sx-ecspi 30790739c4SAnson Huang - fsl,imx6sl-ecspi 31790739c4SAnson Huang - fsl,imx6sll-ecspi 32790739c4SAnson Huang - fsl,imx6ul-ecspi 33790739c4SAnson Huang - fsl,imx7d-ecspi 34790739c4SAnson Huang - fsl,imx8mq-ecspi 35790739c4SAnson Huang - fsl,imx8mm-ecspi 36790739c4SAnson Huang - fsl,imx8mn-ecspi 37790739c4SAnson Huang - fsl,imx8mp-ecspi 38790739c4SAnson Huang - const: fsl,imx51-ecspi 39790739c4SAnson Huang 40790739c4SAnson Huang reg: 41790739c4SAnson Huang maxItems: 1 42790739c4SAnson Huang 43790739c4SAnson Huang interrupts: 44790739c4SAnson Huang maxItems: 1 45790739c4SAnson Huang 46790739c4SAnson Huang clocks: 47790739c4SAnson Huang items: 48790739c4SAnson Huang - description: SoC SPI ipg clock 49790739c4SAnson Huang - description: SoC SPI per clock 50790739c4SAnson Huang 51790739c4SAnson Huang clock-names: 52790739c4SAnson Huang items: 53790739c4SAnson Huang - const: ipg 54790739c4SAnson Huang - const: per 55790739c4SAnson Huang 56790739c4SAnson Huang dmas: 57790739c4SAnson Huang items: 58790739c4SAnson Huang - description: DMA controller phandle and request line for RX 59790739c4SAnson Huang - description: DMA controller phandle and request line for TX 60790739c4SAnson Huang 61790739c4SAnson Huang dma-names: 62790739c4SAnson Huang items: 63790739c4SAnson Huang - const: rx 64790739c4SAnson Huang - const: tx 65790739c4SAnson Huang 66790739c4SAnson Huang fsl,spi-rdy-drctl: 67790739c4SAnson Huang $ref: /schemas/types.yaml#/definitions/uint32 68790739c4SAnson Huang description: | 69790739c4SAnson Huang Integer, representing the value of DRCTL, the register controlling 70790739c4SAnson Huang the SPI_READY handling. Note that to enable the DRCTL consideration, 71790739c4SAnson Huang the SPI_READY mode-flag needs to be set too. 72790739c4SAnson Huang Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst). 73790739c4SAnson Huang enum: [0, 1, 2] 74790739c4SAnson Huang 75790739c4SAnson Huangrequired: 76790739c4SAnson Huang - compatible 77790739c4SAnson Huang - reg 78790739c4SAnson Huang - interrupts 79790739c4SAnson Huang - clocks 80790739c4SAnson Huang - clock-names 81790739c4SAnson Huang 82790739c4SAnson HuangunevaluatedProperties: false 83790739c4SAnson Huang 84790739c4SAnson Huangexamples: 85790739c4SAnson Huang - | 86790739c4SAnson Huang #include <dt-bindings/clock/imx5-clock.h> 87790739c4SAnson Huang 88790739c4SAnson Huang spi@70010000 { 89790739c4SAnson Huang #address-cells = <1>; 90790739c4SAnson Huang #size-cells = <0>; 91790739c4SAnson Huang compatible = "fsl,imx51-ecspi"; 92790739c4SAnson Huang reg = <0x70010000 0x4000>; 93790739c4SAnson Huang interrupts = <36>; 94790739c4SAnson Huang clocks = <&clks IMX5_CLK_ECSPI1_IPG_GATE>, 95790739c4SAnson Huang <&clks IMX5_CLK_ECSPI1_PER_GATE>; 96790739c4SAnson Huang clock-names = "ipg", "per"; 97790739c4SAnson Huang }; 98