xref: /linux/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml (revision 6685d552a0cc3a86e10dbe6d98e1b51717a27a63)
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:
1399a7fa0eSKrzysztof Kozlowski  - $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
25*6685d552SPeng Fan              - fsl,imx95-spi
2649cd1eb3SJacky Bai          - const: fsl,imx7ulp-spi
27be8faebcSAnson Huang  reg:
28be8faebcSAnson Huang    maxItems: 1
29be8faebcSAnson Huang
30be8faebcSAnson Huang  interrupts:
31be8faebcSAnson Huang    maxItems: 1
32be8faebcSAnson Huang
33be8faebcSAnson Huang  clocks:
34be8faebcSAnson Huang    items:
35be8faebcSAnson Huang      - description: SoC SPI per clock
36be8faebcSAnson Huang      - description: SoC SPI ipg clock
37be8faebcSAnson Huang
38be8faebcSAnson Huang  clock-names:
39be8faebcSAnson Huang    items:
40be8faebcSAnson Huang      - const: per
41be8faebcSAnson Huang      - const: ipg
42be8faebcSAnson Huang
43fba933c2SPeng Fan  dmas:
44fba933c2SPeng Fan    items:
45fba933c2SPeng Fan      - description: TX DMA Channel
46fba933c2SPeng Fan      - description: RX DMA Channel
47fba933c2SPeng Fan
48fba933c2SPeng Fan  dma-names:
49fba933c2SPeng Fan    items:
50fba933c2SPeng Fan      - const: tx
51fba933c2SPeng Fan      - const: rx
52fba933c2SPeng Fan
537ac9bbf6SClark Wang  fsl,spi-only-use-cs1-sel:
547ac9bbf6SClark Wang    description:
557ac9bbf6SClark Wang      spi common code does not support use of CS signals discontinuously.
567ac9bbf6SClark Wang      i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add
577ac9bbf6SClark Wang      this property to re-config the chipselect value in the LPSPI driver.
580454357fSGeert Uytterhoeven    type: boolean
597ac9bbf6SClark Wang
60bc9ab1b7SHan Xu  num-cs:
61bc9ab1b7SHan Xu    description:
62bc9ab1b7SHan Xu      number of chip selects.
63bc9ab1b7SHan Xu    minimum: 1
64bc9ab1b7SHan Xu    maximum: 2
65bc9ab1b7SHan Xu    default: 1
66bc9ab1b7SHan Xu
6749aa7716SAlexander Stein  power-domains:
6849aa7716SAlexander Stein    maxItems: 1
6949aa7716SAlexander Stein
70be8faebcSAnson Huangrequired:
71be8faebcSAnson Huang  - compatible
72be8faebcSAnson Huang  - reg
73be8faebcSAnson Huang  - interrupts
74be8faebcSAnson Huang  - clocks
75be8faebcSAnson Huang  - clock-names
76be8faebcSAnson Huang
77be8faebcSAnson HuangunevaluatedProperties: false
78be8faebcSAnson Huang
79be8faebcSAnson Huangexamples:
80be8faebcSAnson Huang  - |
81be8faebcSAnson Huang    #include <dt-bindings/clock/imx7ulp-clock.h>
82be8faebcSAnson Huang    #include <dt-bindings/interrupt-controller/arm-gic.h>
83be8faebcSAnson Huang
84be8faebcSAnson Huang    spi@40290000 {
85be8faebcSAnson Huang        compatible = "fsl,imx7ulp-spi";
86be8faebcSAnson Huang        reg = <0x40290000 0x10000>;
87be8faebcSAnson Huang        interrupt-parent = <&intc>;
88be8faebcSAnson Huang        interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
89be8faebcSAnson Huang        clocks = <&clks IMX7ULP_CLK_LPSPI2>,
90be8faebcSAnson Huang                 <&clks IMX7ULP_CLK_DUMMY>;
91be8faebcSAnson Huang        clock-names = "per", "ipg";
92be8faebcSAnson Huang        spi-slave;
937ac9bbf6SClark Wang        fsl,spi-only-use-cs1-sel;
94bc9ab1b7SHan Xu        num-cs = <2>;
95be8faebcSAnson Huang    };
96