Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michal Simek and committed by
Rob Herring
36a7c96b 9defbb1b

+34 -14
-13
Documentation/devicetree/bindings/fpga/fpga-bridge.txt
··· 1 - FPGA Bridge Device Tree Binding 2 - 3 - Optional properties: 4 - - bridge-enable : 0 if driver should disable bridge at startup 5 - 1 if driver should enable bridge at startup 6 - Default is to leave bridge in current state. 7 - 8 - Example: 9 - fpga_bridge3: fpga-bridge@ffc25080 { 10 - compatible = "altr,socfpga-fpga2sdram-bridge"; 11 - reg = <0xffc25080 0x4>; 12 - bridge-enable = <0>; 13 - };
+30
Documentation/devicetree/bindings/fpga/fpga-bridge.yaml
··· 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 + };
+4 -1
Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml
··· 9 9 maintainers: 10 10 - Nava kishore Manne <nava.kishore.manne@amd.com> 11 11 12 + allOf: 13 + - $ref: fpga-bridge.yaml# 14 + 12 15 description: | 13 16 The Xilinx LogiCORE Partial Reconfig(PR) Decoupler manages one or more 14 17 decouplers/fpga bridges. The controller can decouple/disable the bridges ··· 54 51 - clocks 55 52 - clock-names 56 53 57 - additionalProperties: false 54 + unevaluatedProperties: false 58 55 59 56 examples: 60 57 - |