1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/spi-fsl-lpspi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale Low Power SPI (LPSPI) for i.MX
8
9maintainers:
10  - Anson Huang <Anson.Huang@nxp.com>
11
12allOf:
13  - $ref: "/schemas/spi/spi-controller.yaml#"
14
15properties:
16  compatible:
17    enum:
18      - fsl,imx7ulp-spi
19      - fsl,imx8qxp-spi
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    items:
29      - description: SoC SPI per clock
30      - description: SoC SPI ipg clock
31
32  clock-names:
33    items:
34      - const: per
35      - const: ipg
36
37  fsl,spi-only-use-cs1-sel:
38    description:
39      spi common code does not support use of CS signals discontinuously.
40      i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add
41      this property to re-config the chipselect value in the LPSPI driver.
42
43required:
44  - compatible
45  - reg
46  - interrupts
47  - clocks
48  - clock-names
49
50unevaluatedProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/clock/imx7ulp-clock.h>
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56
57    spi@40290000 {
58        compatible = "fsl,imx7ulp-spi";
59        reg = <0x40290000 0x10000>;
60        interrupt-parent = <&intc>;
61        interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
62        clocks = <&clks IMX7ULP_CLK_LPSPI2>,
63                 <&clks IMX7ULP_CLK_DUMMY>;
64        clock-names = "per", "ipg";
65        spi-slave;
66        fsl,spi-only-use-cs1-sel;
67    };
68