Skip to content

Commit b55689c

Browse files
Charan-Pedumurulag-linaro
authored andcommitted
dt-bindings: mfd: atmel: Convert to YAML schema
Changes during conversion: The text binding is misleading, add a fallback `atmel,at91sam9260-gpbr` for both `microchip,sam9x60-gpbr` and `microchip,sam9x7-gpbr` which is missing in old binding and `microchip,sam9x60-gpbr` is not a fallback for `microchip,sam9x7-gpbr`. Signed-off-by: Charan Pedumuru <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 4842603 commit b55689c

File tree

2 files changed

+44
-18
lines changed

2 files changed

+44
-18
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mfd/atmel,at91sam9260-gpbr.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Microchip AT91 General Purpose Backup Registers
8+
9+
maintainers:
10+
- Nicolas Ferre <[email protected]>
11+
12+
description:
13+
The system controller embeds 256 bits of General Purpose Backup
14+
registers organized as 8 32-bit registers.
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- enum:
21+
- atmel,at91sam9260-gpbr
22+
- const: syscon
23+
- items:
24+
- enum:
25+
- microchip,sam9x60-gpbr
26+
- microchip,sam9x7-gpbr
27+
- const: atmel,at91sam9260-gpbr
28+
- const: syscon
29+
30+
reg:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
37+
additionalProperties: false
38+
39+
examples:
40+
- |
41+
syscon@fffffd50 {
42+
compatible = "atmel,at91sam9260-gpbr", "syscon";
43+
reg = <0xfffffd50 0x10>;
44+
};

Documentation/devicetree/bindings/mfd/atmel-gpbr.txt

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

0 commit comments

Comments
 (0)