-
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: fpga: Convert bridge binding to yaml
Convert the generic fpga bridge DT binding to json-schema. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Xu Yilun <yilun.xu@intel.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/14558a4dcfab5255c1683015287e9c7f48b1afc2.1704807147.git.michal.simek@amd.com Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
Michal Simek
authored and
Rob Herring
committed
Jan 11, 2024
1 parent
9defbb1
commit 36a7c96
Showing
3 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/fpga/fpga-bridge.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: FPGA Bridge | ||
|
||
maintainers: | ||
- Michal Simek <michal.simek@amd.com> | ||
|
||
properties: | ||
$nodename: | ||
pattern: "^fpga-bridge(@.*|-([0-9]|[1-9][0-9]+))?$" | ||
|
||
bridge-enable: | ||
description: | | ||
0 if driver should disable bridge at startup | ||
1 if driver should enable bridge at startup | ||
Default is to leave bridge in current state. | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [ 0, 1 ] | ||
|
||
additionalProperties: true | ||
|
||
examples: | ||
- | | ||
fpga-bridge { | ||
bridge-enable = <0>; | ||
}; |
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