forked from jcmvbkbc/linux-xtensa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: mfd: armltd: Move Arm board syscon's to separate schema
The Arm Ltd board bindings are a bit unusual in that they define child nodes for various syscon's. The schemas are also incomplete as they lack constraints on having additional properties and some properties are missing. As the bindings for the different platforms only vary by compatibles, combine them into a single schema doc. Add the "arm,im-pd1-syscon" compatible which was not documented. Add "ranges", "#address-cells", and "#size-cells properties which were missing. With this, fix the error exposed in the register-bit-led binding. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231020142252.3113716-2-robh@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
- Loading branch information
1 parent
b0227e7
commit 36af195
Showing
5 changed files
with
76 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
Documentation/devicetree/bindings/mfd/arm,dev-platforms-syscon.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/mfd/arm,dev-platforms-syscon.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Arm Ltd Developer Platforms System Controllers | ||
|
||
maintainers: | ||
- Linus Walleij <linus.walleij@linaro.org> | ||
|
||
description: | ||
The Arm Ltd Integrator, Realview, and Versatile families of developer | ||
platforms are contain various system controller blocks. Often these blocks | ||
are part of a daughterboard or motherboard module. | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- items: | ||
- enum: | ||
- arm,integrator-ap-syscon | ||
- arm,integrator-cp-syscon | ||
- arm,integrator-sp-syscon | ||
- arm,im-pd1-syscon | ||
- const: syscon | ||
- items: | ||
- enum: | ||
- arm,core-module-integrator | ||
- arm,integrator-ap-syscon | ||
- arm,integrator-cp-syscon | ||
- arm,integrator-sp-syscon | ||
- arm,realview-eb-syscon | ||
- arm,realview-pb1176-syscon | ||
- arm,realview-pb11mp-syscon | ||
- arm,realview-pba8-syscon | ||
- arm,realview-pbx-syscon | ||
- arm,versatile-ib2-syscon | ||
- const: syscon | ||
- const: simple-mfd | ||
- items: | ||
- enum: | ||
- arm,realview-eb11mp-revb-syscon | ||
- arm,realview-eb11mp-revc-syscon | ||
- const: arm,realview-eb-syscon | ||
- const: syscon | ||
- const: simple-mfd | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
ranges: true | ||
|
||
'#address-cells': | ||
const: 1 | ||
|
||
'#size-cells': | ||
const: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
additionalProperties: | ||
type: object | ||
|
||
... |