Documentation / devicetree / bindings / spi / socionext,f-ospi.yaml


Based on kernel version 6.10. Page generated on 2024-07-16 09:00 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/socionext,f-ospi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Socionext F_OSPI controller

description: |
  The Socionext F_OSPI is a controller used to interface with flash
  memories using the SPI communication interface.

maintainers:
  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

allOf:
  - $ref: spi-controller.yaml#

properties:
  compatible:
    const: socionext,f-ospi

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  num-cs:
    minimum: 1
    maximum: 4

required:
  - compatible
  - reg
  - clocks
  - "#address-cells"
  - "#size-cells"

unevaluatedProperties: false

examples:
  - |
    ospi0: spi@80000000 {
        compatible = "socionext,f-ospi";
        reg = <0x80000000 0x1000>;
        clocks = <&clks 0>;
        num-cs = <1>;
        #address-cells = <1>;
        #size-cells = <0>;
 
        flash@0 {
            compatible = "spansion,s25fl128s", "jedec,spi-nor";
            reg = <0>;
            spi-max-frequency = <50000000>;
        };
    };