Skip to content

Commit 36a7c96

Browse files
michalsimekrobherring
authored andcommitted
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>
1 parent 9defbb1 commit 36a7c96

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

Documentation/devicetree/bindings/fpga/fpga-bridge.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/fpga/fpga-bridge.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: FPGA Bridge
8+
9+
maintainers:
10+
- Michal Simek <michal.simek@amd.com>
11+
12+
properties:
13+
$nodename:
14+
pattern: "^fpga-bridge(@.*|-([0-9]|[1-9][0-9]+))?$"
15+
16+
bridge-enable:
17+
description: |
18+
0 if driver should disable bridge at startup
19+
1 if driver should enable bridge at startup
20+
Default is to leave bridge in current state.
21+
$ref: /schemas/types.yaml#/definitions/uint32
22+
enum: [ 0, 1 ]
23+
24+
additionalProperties: true
25+
26+
examples:
27+
- |
28+
fpga-bridge {
29+
bridge-enable = <0>;
30+
};

Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: Xilinx LogiCORE Partial Reconfig Decoupler/AXI shutdown manager Softcore
99
maintainers:
1010
- Nava kishore Manne <nava.kishore.manne@amd.com>
1111

12+
allOf:
13+
- $ref: fpga-bridge.yaml#
14+
1215
description: |
1316
The Xilinx LogiCORE Partial Reconfig(PR) Decoupler manages one or more
1417
decouplers/fpga bridges. The controller can decouple/disable the bridges
@@ -51,7 +54,7 @@ required:
5154
- clocks
5255
- clock-names
5356

54-
additionalProperties: false
57+
unevaluatedProperties: false
5558

5659
examples:
5760
- |

0 commit comments

Comments
 (0)