1be8faebcSAnson Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2be8faebcSAnson Huang%YAML 1.2 3be8faebcSAnson Huang--- 4be8faebcSAnson Huang$id: http://devicetree.org/schemas/spi/spi-fsl-lpspi.yaml# 5be8faebcSAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 6be8faebcSAnson Huang 7be8faebcSAnson Huangtitle: Freescale Low Power SPI (LPSPI) for i.MX 8be8faebcSAnson Huang 9be8faebcSAnson Huangmaintainers: 10*499f5e3cSKrzysztof Kozlowski - Shawn Guo <shawnguo@kernel.org> 11*499f5e3cSKrzysztof Kozlowski - Sascha Hauer <s.hauer@pengutronix.de> 12*499f5e3cSKrzysztof Kozlowski - Fabio Estevam <festevam@gmail.com> 13be8faebcSAnson Huang 14be8faebcSAnson HuangallOf: 1599a7fa0eSKrzysztof Kozlowski - $ref: /schemas/spi/spi-controller.yaml# 16be8faebcSAnson Huang 17be8faebcSAnson Huangproperties: 18be8faebcSAnson Huang compatible: 1949cd1eb3SJacky Bai oneOf: 2049cd1eb3SJacky Bai - enum: 21be8faebcSAnson Huang - fsl,imx7ulp-spi 22be8faebcSAnson Huang - fsl,imx8qxp-spi 2349cd1eb3SJacky Bai - items: 24d9c6a706SPeng Fan - enum: 25d9c6a706SPeng Fan - fsl,imx8ulp-spi 26d9c6a706SPeng Fan - fsl,imx93-spi 276685d552SPeng Fan - fsl,imx95-spi 2849cd1eb3SJacky Bai - const: fsl,imx7ulp-spi 29be8faebcSAnson Huang reg: 30be8faebcSAnson Huang maxItems: 1 31be8faebcSAnson Huang 32be8faebcSAnson Huang interrupts: 33be8faebcSAnson Huang maxItems: 1 34be8faebcSAnson Huang 35be8faebcSAnson Huang clocks: 36be8faebcSAnson Huang items: 37be8faebcSAnson Huang - description: SoC SPI per clock 38be8faebcSAnson Huang - description: SoC SPI ipg clock 39be8faebcSAnson Huang 40be8faebcSAnson Huang clock-names: 41be8faebcSAnson Huang items: 42be8faebcSAnson Huang - const: per 43be8faebcSAnson Huang - const: ipg 44be8faebcSAnson Huang 45fba933c2SPeng Fan dmas: 46fba933c2SPeng Fan items: 47fba933c2SPeng Fan - description: TX DMA Channel 48fba933c2SPeng Fan - description: RX DMA Channel 49fba933c2SPeng Fan 50fba933c2SPeng Fan dma-names: 51fba933c2SPeng Fan items: 52fba933c2SPeng Fan - const: tx 53fba933c2SPeng Fan - const: rx 54fba933c2SPeng Fan 557ac9bbf6SClark Wang fsl,spi-only-use-cs1-sel: 567ac9bbf6SClark Wang description: 577ac9bbf6SClark Wang spi common code does not support use of CS signals discontinuously. 587ac9bbf6SClark Wang i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add 597ac9bbf6SClark Wang this property to re-config the chipselect value in the LPSPI driver. 600454357fSGeert Uytterhoeven type: boolean 617ac9bbf6SClark Wang 62bc9ab1b7SHan Xu num-cs: 63bc9ab1b7SHan Xu description: 64bc9ab1b7SHan Xu number of chip selects. 65bc9ab1b7SHan Xu minimum: 1 66bc9ab1b7SHan Xu maximum: 2 67bc9ab1b7SHan Xu default: 1 68bc9ab1b7SHan Xu 6949aa7716SAlexander Stein power-domains: 7049aa7716SAlexander Stein maxItems: 1 7149aa7716SAlexander Stein 72be8faebcSAnson Huangrequired: 73be8faebcSAnson Huang - compatible 74be8faebcSAnson Huang - reg 75be8faebcSAnson Huang - interrupts 76be8faebcSAnson Huang - clocks 77be8faebcSAnson Huang - clock-names 78be8faebcSAnson Huang 79be8faebcSAnson HuangunevaluatedProperties: false 80be8faebcSAnson Huang 81be8faebcSAnson Huangexamples: 82be8faebcSAnson Huang - | 83be8faebcSAnson Huang #include <dt-bindings/clock/imx7ulp-clock.h> 84be8faebcSAnson Huang #include <dt-bindings/interrupt-controller/arm-gic.h> 85be8faebcSAnson Huang 86be8faebcSAnson Huang spi@40290000 { 87be8faebcSAnson Huang compatible = "fsl,imx7ulp-spi"; 88be8faebcSAnson Huang reg = <0x40290000 0x10000>; 89be8faebcSAnson Huang interrupt-parent = <&intc>; 90be8faebcSAnson Huang interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 91be8faebcSAnson Huang clocks = <&clks IMX7ULP_CLK_LPSPI2>, 92be8faebcSAnson Huang <&clks IMX7ULP_CLK_DUMMY>; 93be8faebcSAnson Huang clock-names = "per", "ipg"; 94be8faebcSAnson Huang spi-slave; 957ac9bbf6SClark Wang fsl,spi-only-use-cs1-sel; 96bc9ab1b7SHan Xu num-cs = <2>; 97be8faebcSAnson Huang }; 98