Skip to content

Commit 0b7b7d1

Browse files
Akhila-YSclaudiubeznea
authored andcommitted
dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema
Convert Atmel system registers binding to YAML format. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akhila YS <akhilayalmati@gmail.com> Link: https://lore.kernel.org/r/20260227-arm-microchip-v4-1-7e2ae1c5b5d6@gmail.com [claudiu.beznea: alphanumerically sort the enum entries] Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent 6de23f8 commit 0b7b7d1

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
Atmel system registers
22

3-
Chipid required properties:
4-
- compatible: Should be "atmel,sama5d2-chipid" or "microchip,sama7g5-chipid"
5-
"microchip,sama7d65-chipid"
6-
- reg : Should contain registers location and length
7-
83
PIT Timer required properties:
94
- compatible: Should be "atmel,at91sam9260-pit"
105
- reg: Should contain registers location and length
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/microchip,sama7g5-chipid.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel/Microchip RAMC SDRAM/DDR Controller
8+
9+
maintainers:
10+
- Nicolas Ferre <nicolas.ferre@microchip.com>
11+
- Claudiu Beznea <claudiu.beznea@tuxon.dev>
12+
13+
description:
14+
This binding describes the Atmel/Microchip Chip ID register block used
15+
for SoC identification and revision information. It requires compatible
16+
strings matching specific SoC families and a reg property defining the
17+
register address and size.
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- atmel,sama5d2-chipid
23+
- microchip,sama7d65-chipid
24+
- microchip,sama7g5-chipid
25+
26+
reg:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
chipid@fc069000 {
38+
compatible = "atmel,sama5d2-chipid";
39+
reg = <0xfc069000 0x8>;
40+
};
41+
...

0 commit comments

Comments
 (0)