1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright 2019 BayLibre, SAS
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/amlogic,meson6-spifc.yaml#
6*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadottitle: Amlogic Meson SPI Flash Controller
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11b97ee269SEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel VadotallOf:
14*cb7aa33aSEmmanuel Vadot  - $ref: spi-controller.yaml#
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotdescription: |
17c66ec88fSEmmanuel Vadot  The Meson SPIFC is a controller optimized for communication with SPI
18c66ec88fSEmmanuel Vadot  NOR memories, without DMA support and a 64-byte unified transmit /
19c66ec88fSEmmanuel Vadot  receive buffer.
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadotproperties:
22c66ec88fSEmmanuel Vadot  compatible:
23c66ec88fSEmmanuel Vadot    enum:
24c66ec88fSEmmanuel Vadot      - amlogic,meson6-spifc # SPI Flash Controller on Meson6 and compatible SoCs
25c66ec88fSEmmanuel Vadot      - amlogic,meson-gxbb-spifc # SPI Flash Controller on GXBB and compatible SoCs
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  reg:
28c66ec88fSEmmanuel Vadot    maxItems: 1
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  clocks:
31c66ec88fSEmmanuel Vadot    maxItems: 1
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadotrequired:
34c66ec88fSEmmanuel Vadot  - compatible
35c66ec88fSEmmanuel Vadot  - reg
36c66ec88fSEmmanuel Vadot  - clocks
37c66ec88fSEmmanuel Vadot
386be33864SEmmanuel VadotunevaluatedProperties: false
396be33864SEmmanuel Vadot
40c66ec88fSEmmanuel Vadotexamples:
41c66ec88fSEmmanuel Vadot  - |
42c66ec88fSEmmanuel Vadot    spi@c1108c80 {
43c66ec88fSEmmanuel Vadot        compatible = "amlogic,meson6-spifc";
44c66ec88fSEmmanuel Vadot        reg = <0xc1108c80 0x80>;
45c66ec88fSEmmanuel Vadot        clocks = <&clk81>;
46c66ec88fSEmmanuel Vadot        #address-cells = <1>;
47c66ec88fSEmmanuel Vadot        #size-cells = <0>;
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot        flash: flash@0 {
50c66ec88fSEmmanuel Vadot            compatible = "spansion,m25p80", "jedec,spi-nor";
51c66ec88fSEmmanuel Vadot            reg = <0>;
52c66ec88fSEmmanuel Vadot            spi-max-frequency = <40000000>;
53c66ec88fSEmmanuel Vadot        };
54c66ec88fSEmmanuel Vadot    };
55