xref: /freebsd/sys/contrib/device-tree/Bindings/spi/nuvoton,wpcm450-fiu.yaml (revision 19fae0f66023a97a9b464b3beeeabb2081f575b3)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/nuvoton,wpcm450-fiu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Nuvoton WPCM450 Flash Interface Unit (FIU)
8
9maintainers:
10  - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
11
12allOf:
13  - $ref: /schemas/spi/spi-controller.yaml#
14
15properties:
16  compatible:
17    const: nuvoton,wpcm450-fiu
18
19  reg:
20    items:
21      - description: FIU registers
22      - description: Memory-mapped flash contents
23
24  reg-names:
25    items:
26      - const: control
27      - const: memory
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35  nuvoton,shm:
36    $ref: /schemas/types.yaml#/definitions/phandle
37    description: a phandle to the SHM block (see ../arm/nuvoton,shm.yaml)
38
39required:
40  - compatible
41  - reg
42  - clocks
43
44unevaluatedProperties: false
45
46examples:
47  - |
48    spi@c8000000 {
49      compatible = "nuvoton,wpcm450-fiu";
50      reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>;
51      #address-cells = <1>;
52      #size-cells = <0>;
53      reg-names = "control", "memory";
54      clocks = <&clk 0>;
55      nuvoton,shm = <&shm>;
56
57      flash@0 {
58        compatible = "jedec,spi-nor";
59        reg = <0>;
60      };
61    };
62
63    shm: syscon@c8001000 {
64      compatible = "nuvoton,wpcm450-shm", "syscon";
65      reg = <0xc8001000 0x1000>;
66    };
67