Skip to content

Commit f3ae004

Browse files
Akhila-YSclaudiubeznea
authored andcommitted
dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema
Convert RAMC SDRAM/DDR controller binding to YAML format. Signed-off-by: Akhila YS <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent ae18e25 commit f3ae004

2 files changed

Lines changed: 66 additions & 20 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/atmel,at91rm9200-sdramc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Microchip (Atmel) SDRAM / DDR Controller (RAMC / DDRAMC / UDDRC)
8+
9+
maintainers:
10+
- Nicolas Ferre <[email protected]>
11+
- Claudiu Beznea <[email protected]>
12+
13+
description:
14+
The SDRAM/DDR Controller (often called RAMC or DDRAMC) in various
15+
Atmel/Microchip ARM9 and Cortex-A5/A7 SoCs manages external
16+
SDRAM / DDR memory. It is typically exposed as a syscon node for
17+
register access from other drivers (e.g. for initialization or mode
18+
configuration). No interrupts or clocks are usually required in the
19+
binding.
20+
21+
properties:
22+
compatible:
23+
oneOf:
24+
- items:
25+
- const: atmel,at91rm9200-sdramc
26+
- const: syscon
27+
- items:
28+
- const: microchip,sama7d65-uddrc
29+
- const: microchip,sama7g5-uddrc
30+
- enum:
31+
- atmel,at91sam9260-sdramc
32+
- atmel,at91sam9g45-ddramc
33+
- atmel,sama5d3-ddramc
34+
- microchip,sam9x60-ddramc
35+
- microchip,sam9x7-ddramc
36+
- microchip,sama7g5-uddrc
37+
38+
reg:
39+
maxItems: 1
40+
41+
clocks:
42+
minItems: 1
43+
maxItems: 2
44+
45+
clock-names:
46+
minItems: 1
47+
items:
48+
- const: ddrck
49+
- const: mpddr
50+
51+
required:
52+
- compatible
53+
- reg
54+
55+
unevaluatedProperties: false
56+
57+
examples:
58+
- |
59+
#include <dt-bindings/clock/at91.h>
60+
ramc@ffffe400 {
61+
compatible = "atmel,at91sam9g45-ddramc";
62+
reg = <0xffffe400 0x200>;
63+
clocks = <&pmc PMC_TYPE_SYSTEM 2>;
64+
clock-names = "ddrck";
65+
};
66+
...

Documentation/devicetree/bindings/arm/atmel-sysregs.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)