xref: /freebsd/sys/contrib/device-tree/Bindings/memory-controllers/canaan,k210-sram.yaml (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Canaan K210 SRAM memory controller
8
9description:
10  The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB
11  of SRAM. The controller is initialised by the bootloader, which configures
12  its clocks, before OS bringup.
13
14maintainers:
15  - Conor Dooley <conor@kernel.org>
16
17properties:
18  compatible:
19    enum:
20      - canaan,k210-sram
21
22  clocks:
23    minItems: 1
24    items:
25      - description: sram0 clock
26      - description: sram1 clock
27      - description: aisram clock
28
29  clock-names:
30    minItems: 1
31    items:
32      - const: sram0
33      - const: sram1
34      - const: aisram
35
36required:
37  - compatible
38  - clocks
39  - clock-names
40
41additionalProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/clock/k210-clk.h>
46    memory-controller {
47        compatible = "canaan,k210-sram";
48        clocks = <&sysclk K210_CLK_SRAM0>,
49                 <&sysclk K210_CLK_SRAM1>,
50                 <&sysclk K210_CLK_AI>;
51        clock-names = "sram0", "sram1", "aisram";
52    };
53