xref: /freebsd/sys/contrib/device-tree/Bindings/spi/aspeed,ast2600-fmc.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2d5b0e70fSEmmanuel Vadot%YAML 1.2
3d5b0e70fSEmmanuel Vadot---
4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml#
5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6d5b0e70fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Aspeed SMC controllers
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
11d5b0e70fSEmmanuel Vadot  - Cédric Le Goater <clg@kaod.org>
12d5b0e70fSEmmanuel Vadot
13d5b0e70fSEmmanuel Vadotdescription: |
14d5b0e70fSEmmanuel Vadot  This binding describes the Aspeed Static Memory Controllers (FMC and
15d5b0e70fSEmmanuel Vadot  SPI) of the AST2400, AST2500 and AST2600 SOCs.
16d5b0e70fSEmmanuel Vadot
17d5b0e70fSEmmanuel VadotallOf:
18*cb7aa33aSEmmanuel Vadot  - $ref: spi-controller.yaml#
19d5b0e70fSEmmanuel Vadot
20d5b0e70fSEmmanuel Vadotproperties:
21d5b0e70fSEmmanuel Vadot  compatible:
22d5b0e70fSEmmanuel Vadot    enum:
23d5b0e70fSEmmanuel Vadot      - aspeed,ast2600-fmc
24d5b0e70fSEmmanuel Vadot      - aspeed,ast2600-spi
25d5b0e70fSEmmanuel Vadot      - aspeed,ast2500-fmc
26d5b0e70fSEmmanuel Vadot      - aspeed,ast2500-spi
27d5b0e70fSEmmanuel Vadot      - aspeed,ast2400-fmc
28d5b0e70fSEmmanuel Vadot      - aspeed,ast2400-spi
29d5b0e70fSEmmanuel Vadot
30d5b0e70fSEmmanuel Vadot  reg:
31d5b0e70fSEmmanuel Vadot    items:
32d5b0e70fSEmmanuel Vadot      - description: registers
33d5b0e70fSEmmanuel Vadot      - description: memory mapping
34d5b0e70fSEmmanuel Vadot
35d5b0e70fSEmmanuel Vadot  clocks:
36d5b0e70fSEmmanuel Vadot    maxItems: 1
37d5b0e70fSEmmanuel Vadot
38d5b0e70fSEmmanuel Vadot  interrupts:
39d5b0e70fSEmmanuel Vadot    maxItems: 1
40d5b0e70fSEmmanuel Vadot
41d5b0e70fSEmmanuel Vadotrequired:
42d5b0e70fSEmmanuel Vadot  - compatible
43d5b0e70fSEmmanuel Vadot  - reg
44d5b0e70fSEmmanuel Vadot  - clocks
45d5b0e70fSEmmanuel Vadot
46d5b0e70fSEmmanuel VadotunevaluatedProperties: false
47d5b0e70fSEmmanuel Vadot
48d5b0e70fSEmmanuel Vadotexamples:
49d5b0e70fSEmmanuel Vadot  - |
50d5b0e70fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
51d5b0e70fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/aspeed-scu-ic.h>
52d5b0e70fSEmmanuel Vadot    #include <dt-bindings/clock/ast2600-clock.h>
53d5b0e70fSEmmanuel Vadot
54d5b0e70fSEmmanuel Vadot    spi@1e620000 {
55d5b0e70fSEmmanuel Vadot        reg = <0x1e620000 0xc4>, <0x20000000 0x10000000>;
56d5b0e70fSEmmanuel Vadot        #address-cells = <1>;
57d5b0e70fSEmmanuel Vadot        #size-cells = <0>;
58d5b0e70fSEmmanuel Vadot        compatible = "aspeed,ast2600-fmc";
59d5b0e70fSEmmanuel Vadot        clocks = <&syscon ASPEED_CLK_AHB>;
60d5b0e70fSEmmanuel Vadot        interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
61d5b0e70fSEmmanuel Vadot
62d5b0e70fSEmmanuel Vadot        flash@0 {
63d5b0e70fSEmmanuel Vadot            reg = < 0 >;
64d5b0e70fSEmmanuel Vadot            compatible = "jedec,spi-nor";
65d5b0e70fSEmmanuel Vadot            spi-max-frequency = <50000000>;
66d5b0e70fSEmmanuel Vadot            spi-rx-bus-width = <2>;
67d5b0e70fSEmmanuel Vadot        };
68d5b0e70fSEmmanuel Vadot
69d5b0e70fSEmmanuel Vadot        flash@1 {
70d5b0e70fSEmmanuel Vadot            reg = < 1 >;
71d5b0e70fSEmmanuel Vadot            compatible = "jedec,spi-nor";
72d5b0e70fSEmmanuel Vadot            spi-max-frequency = <50000000>;
73d5b0e70fSEmmanuel Vadot            spi-rx-bus-width = <2>;
74d5b0e70fSEmmanuel Vadot        };
75d5b0e70fSEmmanuel Vadot
76d5b0e70fSEmmanuel Vadot        flash@2 {
77d5b0e70fSEmmanuel Vadot            reg = < 2 >;
78d5b0e70fSEmmanuel Vadot            compatible = "jedec,spi-nor";
79d5b0e70fSEmmanuel Vadot            spi-max-frequency = <50000000>;
80d5b0e70fSEmmanuel Vadot            spi-rx-bus-width = <2>;
81d5b0e70fSEmmanuel Vadot        };
82d5b0e70fSEmmanuel Vadot    };
83