-
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: altera: Convert bridge bindings to yaml
Convert Altera's bridges to yaml with using fpga-bridge.yaml. 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/07d646a6d82cc21b100e45ced7cae3ef05faa2cc.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
36a7c96
commit 22439cf
Showing
6 changed files
with
123 additions
and
69 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/fpga/altr,freeze-bridge-controller.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,41 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/fpga/altr,freeze-bridge-controller.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Altera Freeze Bridge Controller | ||
|
||
description: | ||
The Altera Freeze Bridge Controller manages one or more freeze bridges. | ||
The controller can freeze/disable the bridges which prevents signal | ||
changes from passing through the bridge. The controller can also | ||
unfreeze/enable the bridges which allows traffic to pass through the bridge | ||
normally. | ||
|
||
maintainers: | ||
- Xu Yilun <yilun.xu@intel.com> | ||
|
||
allOf: | ||
- $ref: fpga-bridge.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: altr,freeze-bridge-controller | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
fpga-bridge@100000450 { | ||
compatible = "altr,freeze-bridge-controller"; | ||
reg = <0x1000 0x10>; | ||
bridge-enable = <0>; | ||
}; |
33 changes: 33 additions & 0 deletions
33
Documentation/devicetree/bindings/fpga/altr,socfpga-fpga2sdram-bridge.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,33 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/fpga/altr,socfpga-fpga2sdram-bridge.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Altera FPGA To SDRAM Bridge | ||
|
||
maintainers: | ||
- Xu Yilun <yilun.xu@intel.com> | ||
|
||
allOf: | ||
- $ref: fpga-bridge.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: altr,socfpga-fpga2sdram-bridge | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
fpga-bridge@ffc25080 { | ||
compatible = "altr,socfpga-fpga2sdram-bridge"; | ||
reg = <0xffc25080 0x4>; | ||
bridge-enable = <0>; | ||
}; |
49 changes: 49 additions & 0 deletions
49
Documentation/devicetree/bindings/fpga/altr,socfpga-hps2fpga-bridge.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,49 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/fpga/altr,socfpga-hps2fpga-bridge.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Altera FPGA/HPS Bridge | ||
|
||
maintainers: | ||
- Xu Yilun <yilun.xu@intel.com> | ||
|
||
allOf: | ||
- $ref: fpga-bridge.yaml# | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- altr,socfpga-lwhps2fpga-bridge | ||
- altr,socfpga-hps2fpga-bridge | ||
- altr,socfpga-fpga2hps-bridge | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
resets: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- resets | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/reset/altr,rst-mgr.h> | ||
fpga-bridge@ff400000 { | ||
compatible = "altr,socfpga-lwhps2fpga-bridge"; | ||
reg = <0xff400000 0x100000>; | ||
bridge-enable = <0>; | ||
clocks = <&l4_main_clk>; | ||
resets = <&rst LWHPS2FPGA_RESET>; | ||
}; |