xref: /freebsd-src/sys/contrib/device-tree/Bindings/spi/spi-nxp-fspi.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/spi-nxp-fspi.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: NXP Flex Serial Peripheral Interface (FSPI)
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Han Xu <han.xu@nxp.com>
11c9ccf3a3SEmmanuel Vadot  - Kuldeep Singh <singh.kuldeep87k@gmail.com>
128cc087a1SEmmanuel Vadot
138cc087a1SEmmanuel VadotallOf:
14cb7aa33aSEmmanuel Vadot  - $ref: spi-controller.yaml#
158cc087a1SEmmanuel Vadot
168cc087a1SEmmanuel Vadotproperties:
178cc087a1SEmmanuel Vadot  compatible:
1801950c46SEmmanuel Vadot    oneOf:
1901950c46SEmmanuel Vadot      - enum:
208cc087a1SEmmanuel Vadot          - nxp,imx8dxl-fspi
218cc087a1SEmmanuel Vadot          - nxp,imx8mm-fspi
228cc087a1SEmmanuel Vadot          - nxp,imx8mp-fspi
238cc087a1SEmmanuel Vadot          - nxp,imx8qxp-fspi
24*b2d2a78aSEmmanuel Vadot          - nxp,imx8ulp-fspi
258cc087a1SEmmanuel Vadot          - nxp,lx2160a-fspi
2601950c46SEmmanuel Vadot      - items:
2701950c46SEmmanuel Vadot          - enum:
2801950c46SEmmanuel Vadot              - nxp,imx93-fspi
2901950c46SEmmanuel Vadot              - nxp,imx95-fspi
3001950c46SEmmanuel Vadot          - const: nxp,imx8mm-fspi
318cc087a1SEmmanuel Vadot
328cc087a1SEmmanuel Vadot  reg:
338cc087a1SEmmanuel Vadot    items:
348cc087a1SEmmanuel Vadot      - description: registers address space
358cc087a1SEmmanuel Vadot      - description: memory mapped address space
368cc087a1SEmmanuel Vadot
378cc087a1SEmmanuel Vadot  reg-names:
388cc087a1SEmmanuel Vadot    items:
398cc087a1SEmmanuel Vadot      - const: fspi_base
408cc087a1SEmmanuel Vadot      - const: fspi_mmap
418cc087a1SEmmanuel Vadot
428cc087a1SEmmanuel Vadot  interrupts:
438cc087a1SEmmanuel Vadot    maxItems: 1
448cc087a1SEmmanuel Vadot
458cc087a1SEmmanuel Vadot  clocks:
468cc087a1SEmmanuel Vadot    items:
478cc087a1SEmmanuel Vadot      - description: SPI bus clock
488cc087a1SEmmanuel Vadot      - description: SPI serial clock
498cc087a1SEmmanuel Vadot
508cc087a1SEmmanuel Vadot  clock-names:
518cc087a1SEmmanuel Vadot    items:
528cc087a1SEmmanuel Vadot      - const: fspi_en
538cc087a1SEmmanuel Vadot      - const: fspi
548cc087a1SEmmanuel Vadot
55aa1a8ff2SEmmanuel Vadot  power-domains:
56aa1a8ff2SEmmanuel Vadot    maxItems: 1
57aa1a8ff2SEmmanuel Vadot
588cc087a1SEmmanuel Vadotrequired:
598cc087a1SEmmanuel Vadot  - compatible
608cc087a1SEmmanuel Vadot  - reg
618cc087a1SEmmanuel Vadot  - reg-names
628cc087a1SEmmanuel Vadot  - interrupts
638cc087a1SEmmanuel Vadot  - clocks
648cc087a1SEmmanuel Vadot  - clock-names
658cc087a1SEmmanuel Vadot
668cc087a1SEmmanuel VadotunevaluatedProperties: false
678cc087a1SEmmanuel Vadot
688cc087a1SEmmanuel Vadotexamples:
698cc087a1SEmmanuel Vadot  - |
708cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
718cc087a1SEmmanuel Vadot    #include <dt-bindings/clock/fsl,qoriq-clockgen.h>
728cc087a1SEmmanuel Vadot
738cc087a1SEmmanuel Vadot    soc {
748cc087a1SEmmanuel Vadot        #address-cells = <2>;
758cc087a1SEmmanuel Vadot        #size-cells = <2>;
768cc087a1SEmmanuel Vadot
778cc087a1SEmmanuel Vadot        spi@20c0000 {
788cc087a1SEmmanuel Vadot            compatible = "nxp,lx2160a-fspi";
798cc087a1SEmmanuel Vadot            reg = <0x0 0x20c0000 0x0 0x100000>,
808cc087a1SEmmanuel Vadot                  <0x0 0x20000000 0x0 0x10000000>;
818cc087a1SEmmanuel Vadot            reg-names = "fspi_base", "fspi_mmap";
828cc087a1SEmmanuel Vadot            interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
838cc087a1SEmmanuel Vadot            clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>,
848cc087a1SEmmanuel Vadot                     <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>;
858cc087a1SEmmanuel Vadot            clock-names = "fspi_en", "fspi";
868cc087a1SEmmanuel Vadot            #address-cells = <1>;
878cc087a1SEmmanuel Vadot            #size-cells = <0>;
888cc087a1SEmmanuel Vadot
898cc087a1SEmmanuel Vadot            flash@0 {
908cc087a1SEmmanuel Vadot                compatible = "jedec,spi-nor";
918cc087a1SEmmanuel Vadot                spi-max-frequency = <50000000>;
928cc087a1SEmmanuel Vadot                reg = <0>;
938cc087a1SEmmanuel Vadot                spi-rx-bus-width = <8>;
948cc087a1SEmmanuel Vadot                spi-tx-bus-width = <8>;
958cc087a1SEmmanuel Vadot            };
968cc087a1SEmmanuel Vadot        };
978cc087a1SEmmanuel Vadot    };
98