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: 10e65b85ddSFabio Estevam - Shawn Guo <shawnguo@kernel.org> 11790739c4SAnson Huang 12790739c4SAnson HuangallOf: 1399a7fa0eSKrzysztof Kozlowski - $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: 26*3b4e5194SFabio Estevam - enum: 27*3b4e5194SFabio Estevam - fsl,imx25-cspi 28*3b4e5194SFabio Estevam - fsl,imx50-cspi 29*3b4e5194SFabio Estevam - fsl,imx51-cspi 30*3b4e5194SFabio Estevam - fsl,imx53-cspi 31*3b4e5194SFabio Estevam - const: fsl,imx35-cspi 32*3b4e5194SFabio Estevam - items: 338c8648e3SPeng Fan - const: fsl,imx8mp-ecspi 348c8648e3SPeng Fan - const: fsl,imx6ul-ecspi 358c8648e3SPeng Fan - items: 36790739c4SAnson Huang - enum: 37790739c4SAnson Huang - fsl,imx50-ecspi 38790739c4SAnson Huang - fsl,imx6q-ecspi 39790739c4SAnson Huang - fsl,imx6sx-ecspi 40790739c4SAnson Huang - fsl,imx6sl-ecspi 41790739c4SAnson Huang - fsl,imx6sll-ecspi 42790739c4SAnson Huang - fsl,imx6ul-ecspi 43790739c4SAnson Huang - fsl,imx7d-ecspi 44790739c4SAnson Huang - fsl,imx8mq-ecspi 45790739c4SAnson Huang - fsl,imx8mm-ecspi 46790739c4SAnson Huang - fsl,imx8mn-ecspi 47790739c4SAnson Huang - const: fsl,imx51-ecspi 48790739c4SAnson Huang 49790739c4SAnson Huang reg: 50790739c4SAnson Huang maxItems: 1 51790739c4SAnson Huang 52790739c4SAnson Huang interrupts: 53790739c4SAnson Huang maxItems: 1 54790739c4SAnson Huang 55790739c4SAnson Huang clocks: 56790739c4SAnson Huang items: 57790739c4SAnson Huang - description: SoC SPI ipg clock 58790739c4SAnson Huang - description: SoC SPI per clock 59790739c4SAnson Huang 60790739c4SAnson Huang clock-names: 61790739c4SAnson Huang items: 62790739c4SAnson Huang - const: ipg 63790739c4SAnson Huang - const: per 64790739c4SAnson Huang 65790739c4SAnson Huang dmas: 66790739c4SAnson Huang items: 67790739c4SAnson Huang - description: DMA controller phandle and request line for RX 68790739c4SAnson Huang - description: DMA controller phandle and request line for TX 69790739c4SAnson Huang 70790739c4SAnson Huang dma-names: 71790739c4SAnson Huang items: 72790739c4SAnson Huang - const: rx 73790739c4SAnson Huang - const: tx 74790739c4SAnson Huang 75790739c4SAnson Huang fsl,spi-rdy-drctl: 76790739c4SAnson Huang $ref: /schemas/types.yaml#/definitions/uint32 77790739c4SAnson Huang description: | 78790739c4SAnson Huang Integer, representing the value of DRCTL, the register controlling 79790739c4SAnson Huang the SPI_READY handling. Note that to enable the DRCTL consideration, 80790739c4SAnson Huang the SPI_READY mode-flag needs to be set too. 81790739c4SAnson Huang Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst). 82790739c4SAnson Huang enum: [0, 1, 2] 83790739c4SAnson Huang 84790739c4SAnson Huangrequired: 85790739c4SAnson Huang - compatible 86790739c4SAnson Huang - reg 87790739c4SAnson Huang - interrupts 88790739c4SAnson Huang - clocks 89790739c4SAnson Huang - clock-names 90790739c4SAnson Huang 91790739c4SAnson HuangunevaluatedProperties: false 92790739c4SAnson Huang 93790739c4SAnson Huangexamples: 94790739c4SAnson Huang - | 95790739c4SAnson Huang #include <dt-bindings/clock/imx5-clock.h> 96790739c4SAnson Huang 97790739c4SAnson Huang spi@70010000 { 98790739c4SAnson Huang #address-cells = <1>; 99790739c4SAnson Huang #size-cells = <0>; 100790739c4SAnson Huang compatible = "fsl,imx51-ecspi"; 101790739c4SAnson Huang reg = <0x70010000 0x4000>; 102790739c4SAnson Huang interrupts = <36>; 103790739c4SAnson Huang clocks = <&clks IMX5_CLK_ECSPI1_IPG_GATE>, 104790739c4SAnson Huang <&clks IMX5_CLK_ECSPI1_PER_GATE>; 105790739c4SAnson Huang clock-names = "ipg", "per"; 106790739c4SAnson Huang }; 107