xref: /freebsd-src/sys/contrib/device-tree/Bindings/spi/spi-nxp-fspi.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1*8cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8cc087a1SEmmanuel Vadot%YAML 1.2
3*8cc087a1SEmmanuel Vadot---
4*8cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/spi-nxp-fspi.yaml#
5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8cc087a1SEmmanuel Vadot
7*8cc087a1SEmmanuel Vadottitle: NXP Flex Serial Peripheral Interface (FSPI)
8*8cc087a1SEmmanuel Vadot
9*8cc087a1SEmmanuel Vadotmaintainers:
10*8cc087a1SEmmanuel Vadot  - Kuldeep Singh <kuldeep.singh@nxp.com>
11*8cc087a1SEmmanuel Vadot
12*8cc087a1SEmmanuel VadotallOf:
13*8cc087a1SEmmanuel Vadot  - $ref: "spi-controller.yaml#"
14*8cc087a1SEmmanuel Vadot
15*8cc087a1SEmmanuel Vadotproperties:
16*8cc087a1SEmmanuel Vadot  compatible:
17*8cc087a1SEmmanuel Vadot    enum:
18*8cc087a1SEmmanuel Vadot      - nxp,imx8dxl-fspi
19*8cc087a1SEmmanuel Vadot      - nxp,imx8mm-fspi
20*8cc087a1SEmmanuel Vadot      - nxp,imx8mp-fspi
21*8cc087a1SEmmanuel Vadot      - nxp,imx8qxp-fspi
22*8cc087a1SEmmanuel Vadot      - nxp,lx2160a-fspi
23*8cc087a1SEmmanuel Vadot
24*8cc087a1SEmmanuel Vadot  reg:
25*8cc087a1SEmmanuel Vadot    items:
26*8cc087a1SEmmanuel Vadot      - description: registers address space
27*8cc087a1SEmmanuel Vadot      - description: memory mapped address space
28*8cc087a1SEmmanuel Vadot
29*8cc087a1SEmmanuel Vadot  reg-names:
30*8cc087a1SEmmanuel Vadot    items:
31*8cc087a1SEmmanuel Vadot      - const: fspi_base
32*8cc087a1SEmmanuel Vadot      - const: fspi_mmap
33*8cc087a1SEmmanuel Vadot
34*8cc087a1SEmmanuel Vadot  interrupts:
35*8cc087a1SEmmanuel Vadot    maxItems: 1
36*8cc087a1SEmmanuel Vadot
37*8cc087a1SEmmanuel Vadot  clocks:
38*8cc087a1SEmmanuel Vadot    items:
39*8cc087a1SEmmanuel Vadot      - description: SPI bus clock
40*8cc087a1SEmmanuel Vadot      - description: SPI serial clock
41*8cc087a1SEmmanuel Vadot
42*8cc087a1SEmmanuel Vadot  clock-names:
43*8cc087a1SEmmanuel Vadot    items:
44*8cc087a1SEmmanuel Vadot      - const: fspi_en
45*8cc087a1SEmmanuel Vadot      - const: fspi
46*8cc087a1SEmmanuel Vadot
47*8cc087a1SEmmanuel Vadotrequired:
48*8cc087a1SEmmanuel Vadot  - compatible
49*8cc087a1SEmmanuel Vadot  - reg
50*8cc087a1SEmmanuel Vadot  - reg-names
51*8cc087a1SEmmanuel Vadot  - interrupts
52*8cc087a1SEmmanuel Vadot  - clocks
53*8cc087a1SEmmanuel Vadot  - clock-names
54*8cc087a1SEmmanuel Vadot
55*8cc087a1SEmmanuel VadotunevaluatedProperties: false
56*8cc087a1SEmmanuel Vadot
57*8cc087a1SEmmanuel Vadotexamples:
58*8cc087a1SEmmanuel Vadot  - |
59*8cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
60*8cc087a1SEmmanuel Vadot    #include <dt-bindings/clock/fsl,qoriq-clockgen.h>
61*8cc087a1SEmmanuel Vadot
62*8cc087a1SEmmanuel Vadot    soc {
63*8cc087a1SEmmanuel Vadot        #address-cells = <2>;
64*8cc087a1SEmmanuel Vadot        #size-cells = <2>;
65*8cc087a1SEmmanuel Vadot
66*8cc087a1SEmmanuel Vadot        spi@20c0000 {
67*8cc087a1SEmmanuel Vadot            compatible = "nxp,lx2160a-fspi";
68*8cc087a1SEmmanuel Vadot            reg = <0x0 0x20c0000 0x0 0x100000>,
69*8cc087a1SEmmanuel Vadot                  <0x0 0x20000000 0x0 0x10000000>;
70*8cc087a1SEmmanuel Vadot            reg-names = "fspi_base", "fspi_mmap";
71*8cc087a1SEmmanuel Vadot            interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
72*8cc087a1SEmmanuel Vadot            clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>,
73*8cc087a1SEmmanuel Vadot                     <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>;
74*8cc087a1SEmmanuel Vadot            clock-names = "fspi_en", "fspi";
75*8cc087a1SEmmanuel Vadot            #address-cells = <1>;
76*8cc087a1SEmmanuel Vadot            #size-cells = <0>;
77*8cc087a1SEmmanuel Vadot
78*8cc087a1SEmmanuel Vadot            flash@0 {
79*8cc087a1SEmmanuel Vadot                compatible = "jedec,spi-nor";
80*8cc087a1SEmmanuel Vadot                spi-max-frequency = <50000000>;
81*8cc087a1SEmmanuel Vadot                reg = <0>;
82*8cc087a1SEmmanuel Vadot                spi-rx-bus-width = <8>;
83*8cc087a1SEmmanuel Vadot                spi-tx-bus-width = <8>;
84*8cc087a1SEmmanuel Vadot            };
85*8cc087a1SEmmanuel Vadot        };
86*8cc087a1SEmmanuel Vadot    };
87