xref: /linux/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml (revision fba933c2d975463d6a19898cbe30f7399de9f32e)
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:
10be8faebcSAnson Huang  - Anson Huang <Anson.Huang@nxp.com>
11be8faebcSAnson Huang
12be8faebcSAnson HuangallOf:
13be8faebcSAnson Huang  - $ref: "/schemas/spi/spi-controller.yaml#"
14be8faebcSAnson Huang
15be8faebcSAnson Huangproperties:
16be8faebcSAnson Huang  compatible:
1749cd1eb3SJacky Bai    oneOf:
1849cd1eb3SJacky Bai      - enum:
19be8faebcSAnson Huang          - fsl,imx7ulp-spi
20be8faebcSAnson Huang          - fsl,imx8qxp-spi
2149cd1eb3SJacky Bai      - items:
22d9c6a706SPeng Fan          - enum:
23d9c6a706SPeng Fan              - fsl,imx8ulp-spi
24d9c6a706SPeng Fan              - fsl,imx93-spi
2549cd1eb3SJacky Bai          - const: fsl,imx7ulp-spi
26be8faebcSAnson Huang  reg:
27be8faebcSAnson Huang    maxItems: 1
28be8faebcSAnson Huang
29be8faebcSAnson Huang  interrupts:
30be8faebcSAnson Huang    maxItems: 1
31be8faebcSAnson Huang
32be8faebcSAnson Huang  clocks:
33be8faebcSAnson Huang    items:
34be8faebcSAnson Huang      - description: SoC SPI per clock
35be8faebcSAnson Huang      - description: SoC SPI ipg clock
36be8faebcSAnson Huang
37be8faebcSAnson Huang  clock-names:
38be8faebcSAnson Huang    items:
39be8faebcSAnson Huang      - const: per
40be8faebcSAnson Huang      - const: ipg
41be8faebcSAnson Huang
42*fba933c2SPeng Fan  dmas:
43*fba933c2SPeng Fan    items:
44*fba933c2SPeng Fan      - description: TX DMA Channel
45*fba933c2SPeng Fan      - description: RX DMA Channel
46*fba933c2SPeng Fan
47*fba933c2SPeng Fan  dma-names:
48*fba933c2SPeng Fan    items:
49*fba933c2SPeng Fan      - const: tx
50*fba933c2SPeng Fan      - const: rx
51*fba933c2SPeng Fan
527ac9bbf6SClark Wang  fsl,spi-only-use-cs1-sel:
537ac9bbf6SClark Wang    description:
547ac9bbf6SClark Wang      spi common code does not support use of CS signals discontinuously.
557ac9bbf6SClark Wang      i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add
567ac9bbf6SClark Wang      this property to re-config the chipselect value in the LPSPI driver.
570454357fSGeert Uytterhoeven    type: boolean
587ac9bbf6SClark Wang
59be8faebcSAnson Huangrequired:
60be8faebcSAnson Huang  - compatible
61be8faebcSAnson Huang  - reg
62be8faebcSAnson Huang  - interrupts
63be8faebcSAnson Huang  - clocks
64be8faebcSAnson Huang  - clock-names
65be8faebcSAnson Huang
66be8faebcSAnson HuangunevaluatedProperties: false
67be8faebcSAnson Huang
68be8faebcSAnson Huangexamples:
69be8faebcSAnson Huang  - |
70be8faebcSAnson Huang    #include <dt-bindings/clock/imx7ulp-clock.h>
71be8faebcSAnson Huang    #include <dt-bindings/interrupt-controller/arm-gic.h>
72be8faebcSAnson Huang
73be8faebcSAnson Huang    spi@40290000 {
74be8faebcSAnson Huang        compatible = "fsl,imx7ulp-spi";
75be8faebcSAnson Huang        reg = <0x40290000 0x10000>;
76be8faebcSAnson Huang        interrupt-parent = <&intc>;
77be8faebcSAnson Huang        interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
78be8faebcSAnson Huang        clocks = <&clks IMX7ULP_CLK_LPSPI2>,
79be8faebcSAnson Huang                 <&clks IMX7ULP_CLK_DUMMY>;
80be8faebcSAnson Huang        clock-names = "per", "ipg";
81be8faebcSAnson Huang        spi-slave;
827ac9bbf6SClark Wang        fsl,spi-only-use-cs1-sel;
83be8faebcSAnson Huang    };
84