Skip to content

Commit

Permalink
dt-bindings: clock: xilinx: Convert VCU bindings to dtschema
Browse files Browse the repository at this point in the history
Convert AMD (Xilinx) VCU bindings to yaml format.
Additional changes:
   - move xlnx_vcu DT binding to clock from soc following commit
     a2fe7ba ("clk: xilinx: move xlnx_vcu clock driver from soc")
   - corrected clock sequence as per xilinx device-tree generator

Signed-off-by: Rohit Visavalia <rohit.visavalia@xilinx.com>
Link: https://lore.kernel.org/r/20250107044038.100945-2-rohit.visavalia@amd.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Rohit Visavalia authored and Stephen Boyd committed Jan 7, 2025
1 parent 40384c8 commit b51adc7
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 26 deletions.
55 changes: 55 additions & 0 deletions Documentation/devicetree/bindings/clock/xlnx,vcu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/xlnx,vcu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: LogicoreIP designed compatible with Xilinx ZYNQ family.

maintainers:
- Rohit Visavalia <rohit.visavalia@amd.com>

description:
LogicoreIP design to provide the isolation between processing system
and programmable logic. Also provides the list of register set to configure
the frequency.

properties:
compatible:
items:
- enum:
- xlnx,vcu
- xlnx,vcu-logicoreip-1.0

reg:
maxItems: 1

clocks:
items:
- description: pll ref clocksource
- description: aclk

clock-names:
items:
- const: pll_ref
- const: aclk

required:
- reg
- clocks
- clock-names

additionalProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
fpga {
#address-cells = <2>;
#size-cells = <2>;
xlnx_vcu: vcu@a0040000 {
compatible = "xlnx,vcu-logicoreip-1.0";
reg = <0x0 0xa0040000 0x0 0x1000>;
clocks = <&si570_1>, <&clkc 71>;
clock-names = "pll_ref", "aclk";
};
};
26 changes: 0 additions & 26 deletions Documentation/devicetree/bindings/soc/xilinx/xlnx,vcu.txt

This file was deleted.

0 comments on commit b51adc7

Please sign in to comment.