Skip to content

Commit

Permalink
dt-bindings: mfd: atmel: Convert to YAML schema
Browse files Browse the repository at this point in the history
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 <charan.pedumuru@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20241219-gpbr-v1-1-e19a562ebf81@microchip.com
Signed-off-by: Lee Jones <lee@kernel.org>
  • Loading branch information
Charan Pedumuru authored and Lee Jones committed Jan 9, 2025
1 parent 4842603 commit b55689c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 18 deletions.
44 changes: 44 additions & 0 deletions Documentation/devicetree/bindings/mfd/atmel,at91sam9260-gpbr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/atmel,at91sam9260-gpbr.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Microchip AT91 General Purpose Backup Registers

maintainers:
- Nicolas Ferre <nicolas.ferre@microchip.com>

description:
The system controller embeds 256 bits of General Purpose Backup
registers organized as 8 32-bit registers.

properties:
compatible:
oneOf:
- items:
- enum:
- atmel,at91sam9260-gpbr
- const: syscon
- items:
- enum:
- microchip,sam9x60-gpbr
- microchip,sam9x7-gpbr
- const: atmel,at91sam9260-gpbr
- const: syscon

reg:
maxItems: 1

required:
- compatible
- reg

additionalProperties: false

examples:
- |
syscon@fffffd50 {
compatible = "atmel,at91sam9260-gpbr", "syscon";
reg = <0xfffffd50 0x10>;
};
18 changes: 0 additions & 18 deletions Documentation/devicetree/bindings/mfd/atmel-gpbr.txt

This file was deleted.

0 comments on commit b55689c

Please sign in to comment.