-
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.
spi: dt-bindings: arm,pl022: Move child node properties to separate s…
…chema In order to validate SPI peripherals, SPI controller-specific child node properties need to be in a separate schema, spi-peripheral-props.yaml, which SPI peripheral schemas reference. Move the arm,pl022 child properties to their own schema file and add a $ref in spi-peripheral-props.yaml. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230914190033.1852600-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Rob Herring
authored and
Mark Brown
committed
Sep 15, 2023
1 parent
fd811b6
commit b0ef97a
Showing
3 changed files
with
62 additions
and
51 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
Documentation/devicetree/bindings/spi/arm,pl022-peripheral-props.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,61 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/spi/arm,pl022-peripheral-props.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Peripheral-specific properties for Arm PL022 SPI controller | ||
|
||
maintainers: | ||
- Linus Walleij <linus.walleij@linaro.org> | ||
|
||
select: false | ||
|
||
properties: | ||
pl022,interface: | ||
description: SPI interface type | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: | ||
- 0 # SPI | ||
- 1 # Texas Instruments Synchronous Serial Frame Format | ||
- 2 # Microwire (Half Duplex) | ||
|
||
pl022,com-mode: | ||
description: Specifies the transfer mode | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: | ||
- 0 # interrupt mode | ||
- 1 # polling mode | ||
- 2 # DMA mode | ||
default: 1 | ||
|
||
pl022,rx-level-trig: | ||
description: Rx FIFO watermark level | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
minimum: 0 | ||
maximum: 4 | ||
|
||
pl022,tx-level-trig: | ||
description: Tx FIFO watermark level | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
minimum: 0 | ||
maximum: 4 | ||
|
||
pl022,ctrl-len: | ||
description: Microwire interface - Control length | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
minimum: 0x03 | ||
maximum: 0x1f | ||
|
||
pl022,wait-state: | ||
description: Microwire interface - Wait state | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [0, 1] | ||
|
||
pl022,duplex: | ||
description: Microwire interface - Full/Half duplex | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [0, 1] | ||
|
||
additionalProperties: true | ||
... |
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