0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Canaan K210 SRAM memory controller
0008
0009 description:
0010 The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB
0011 of SRAM. The controller is initialised by the bootloader, which configures
0012 its clocks, before OS bringup.
0013
0014 maintainers:
0015 - Conor Dooley <conor@kernel.org>
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - canaan,k210-sram
0021
0022 clocks:
0023 minItems: 1
0024 items:
0025 - description: sram0 clock
0026 - description: sram1 clock
0027 - description: aisram clock
0028
0029 clock-names:
0030 minItems: 1
0031 items:
0032 - const: sram0
0033 - const: sram1
0034 - const: aisram
0035
0036 required:
0037 - compatible
0038 - clocks
0039 - clock-names
0040
0041 additionalProperties: false
0042
0043 examples:
0044 - |
0045 #include <dt-bindings/clock/k210-clk.h>
0046 memory-controller {
0047 compatible = "canaan,k210-sram";
0048 clocks = <&sysclk K210_CLK_SRAM0>,
0049 <&sysclk K210_CLK_SRAM1>,
0050 <&sysclk K210_CLK_AI>;
0051 clock-names = "sram0", "sram1", "aisram";
0052 };