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