Skip to contentSkip to conversation

dt-bindings: clock: xilinx: Update VCU bindings

PATCH Superseded Rohit Visavalia 2 participants 10 messages Jan 2, 2025 – Jan 3, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover dt-bindings: clock: xilinx: Update VCU bindings

This patch series converts dt-binding to dtschema and adds reset GPIO as optional property.

Rohit Visavalia (3):
dt-bindings: clock: xilinx: move xlnx_vcu dt-binding to clock from soc
dt-bindings: clock: xilinx: Convert VCU bindings to dtschema
dt-bindings: clock: xilinx: Update VCU bindings for reset GPIO

 .../devicetree/bindings/clock/xlnx,vcu.yaml   | 64 +++++++++++++++++++
 .../bindings/soc/xilinx/xlnx,vcu.txt          | 26 --------
 2 files changed, 64 insertions(+), 26 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/xlnx,vcu.yaml
 delete mode 100644 Documentation/devicetree/bindings/soc/xilinx/xlnx,vcu.txt
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/3 dt-bindings: clock: xilinx: move xlnx_vcu dt-binding to clock from soc

From: Rohit Visavalia <[email protected]>

As per commit a2fe7baa27a4 ("clk: xilinx: move xlnx_vcu clock driver from soc"), xlnx_vcu driver code is moved to clock from soc, so moving the dt-binding.

---
 .../devicetree/bindings/{soc/xilinx => clock}/xlnx,vcu.txt        | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename Documentation/devicetree/bindings/{soc/xilinx => clock}/xlnx,vcu.txt (100%)
Documentation/devicetree/bindings/clock/xlnx,vcu.txt renamed from Documentation/devicetree/bindings/soc/xilinx/xlnx,vcu.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/soc/xilinx/xlnx,vcu.txt
rename to Documentation/devicetree/bindings/clock/xlnx,vcu.txt
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH 1/3] dt-bindings: clock: xilinx: move xlnx_vcu dt-binding to clock from soc

Quoted 6 lines · Rohit Visavalia

From: Rohit Visavalia <[email protected]>

As per commit a2fe7baa27a4 ("clk: xilinx: move xlnx_vcu clock driver from soc"), xlnx_vcu driver code is moved to clock from soc, so moving the dt-binding.

Drop commit, does not make sense. Just move the file during conversion.

Best regards,
Krzysztof

#3 lore raw

RE: [PATCH 1/3] dt-bindings: clock: xilinx: move xlnx_vcu dt-binding to clock from soc

Hi Krzysztof,

Thanks for the review.

Quoted 10 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Friday, January 3, 2025 12:01 AM
To: Visavalia, Rohit <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; Rohit Visavalia <[email protected]>
Subject: Re: [PATCH 1/3] dt-bindings: clock: xilinx: move xlnx_vcu dt-binding to clock from soc

Quoted 8 lines
Quoted 6 lines · Rohit Visavalia

From: Rohit Visavalia <[email protected]>

As per commit a2fe7baa27a4 ("clk: xilinx: move xlnx_vcu clock driver from soc"), xlnx_vcu driver code is moved to clock from soc, so moving the dt-binding.

Drop commit, does not make sense. Just move the file during conversion.

Sure, I will do in v2 patch series.

Quoted 3 lines

Best regards,
Krzysztof

Thanks
Rohit

#4 lore raw

PATCH 2/3 dt-bindings: clock: xilinx: Convert VCU bindings to dtschema

In reply to Rohit Visavalia

Convert AMD (Xilinx) VCU bindings to yaml format.

---
 .../devicetree/bindings/clock/xlnx,vcu.txt    | 26 ---------
 .../devicetree/bindings/clock/xlnx,vcu.yaml   | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/xlnx,vcu.txt
 create mode 100644 Documentation/devicetree/bindings/clock/xlnx,vcu.yaml
Documentation/devicetree/bindings/clock/xlnx,vcu.txt deleted +0 -26
deleted file mode 100644
index 2417b13ba468..000000000000
@@ -1,26 +0,0 @@
-LogicoreIP designed compatible with Xilinx ZYNQ family.
--------------------------------------------------------
-
-General concept
----------------
-
-LogicoreIP design to provide the isolation between processing system
-and programmable logic. Also provides the list of register set to configure
-the frequency.
-
-Required properties:
-- compatible: shall be one of:
-	"xlnx,vcu"
-	"xlnx,vcu-logicoreip-1.0"
-- reg : The base offset and size of the VCU_PL_SLCR register space.
-- clocks: phandle for aclk and pll_ref clocksource
-- clock-names: The identification string, "aclk", is always required for
-   the axi clock. "pll_ref" is required for pll.
-Example:
-
-	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";
-	};
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH 2/3] dt-bindings: clock: xilinx: Convert VCU bindings to dtschema

Quoted 2 lines · Rohit Visavalia

Convert AMD (Xilinx) VCU bindings to yaml format.

...

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 25

Quoted 11 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +11 -0
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - xlnx,vcu
+          - xlnx,vcu-logicoreip-1.0
+
+  reg:
+    description:
+      The base offset and size of the VCU_PL_SLCR register space.

Drop description, redundant.

Quoted 1 line

+ minItems: 1

There is no code like this. maxItems instead. Please use example-schema or other recently reviewed bindings as starting point.

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 29

Quoted 3 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +3 -0
+
+  clocks:
+    description: List of clock specifiers

Drop description.

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 32

Quoted 3 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +3 -0
+    items:
+      - description: pll ref clocksource
+      - description: aclk

Original binding said different order. Mention change in commit msg with explanation why.

Best regards,
Krzysztof

#6 lore raw

RE: [PATCH 2/3] dt-bindings: clock: xilinx: Convert VCU bindings to dtschema

Hi Krzysztof,

Thanks for the review.

Quoted 17 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Thursday, January 2, 2025 11:56 PM
To: Visavalia, Rohit <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH 2/3] dt-bindings: clock: xilinx: Convert VCU bindings to dtschema

Quoted 2 lines · Rohit Visavalia

Convert AMD (Xilinx) VCU bindings to yaml format.

...

Quoted 13 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 25

Quoted 11 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +11 -0
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - xlnx,vcu
+          - xlnx,vcu-logicoreip-1.0
+
+  reg:
+    description:
+      The base offset and size of the VCU_PL_SLCR register space.

Drop description, redundant.

I will take care in v2 patch series.

Quoted 5 lines
Quoted 2 lines

+ minItems: 1

There is no code like this. maxItems instead. Please use example-schema or other recently reviewed bindings as starting point.

I will update in v2 patch.

Quoted 5 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 29

Quoted 3 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +3 -0
+
+  clocks:
+    description: List of clock specifiers

Drop description.

I will remove in v2 patch series.

Quoted 7 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml line 32

Quoted 4 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml new file +3 -0
+    items:
+      - description: pll ref clocksource
+      - description: aclk

Original binding said different order. Mention change in commit msg with explanation why.

I will update commit msg in v2 patch.

Quoted 3 lines

Best regards,
Krzysztof

Thanks
Rohit

#7 lore raw

PATCH 3/3 dt-bindings: clock: xilinx: Update VCU bindings for reset GPIO

In reply to Rohit Visavalia

Updated VCU binding for reset GPIO pin as optional property.
It is marked as optional as some of the ZynqMP designs are having vcu_reset (reset pin of VCU IP) is driven by proc_sys_reset, proc_sys_reset is another PL IP driven by the PS pl_reset. So, here the VCU reset is not driven by axi_gpio or PS GPIO so there will be no GPIO entry.

---
 Documentation/devicetree/bindings/clock/xlnx,vcu.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +6 -0
index bdb14594c40b..b3061309f8dd 100644
@@ -36,6 +36,11 @@ properties:
       - const: pll_ref
       - const: aclk
 
+  reset-gpios:
+    description: Optional GPIO used to reset the VCU, if available. Need use this
+      reset gpio when in design 'vcu_resetn' is driven by gpio.
+    maxItems: 1
+
 required:
   - reg
   - clocks
@@ -52,6 +57,7 @@ examples:
         xlnx_vcu: vcu@a0040000 {
             compatible = "xlnx,vcu-logicoreip-1.0";
             reg = <0x0 0xa0040000 0x0 0x1000>;
+            reset-gpios = <&gpio 0x4e GPIO_ACTIVE_HIGH>;
             clocks = <&si570_1>, <&clkc 71>;
             clock-names = "pll_ref", "aclk";
         };
Signature · 1 line
2.25.1
#8 lore raw

Re: [PATCH 3/3] dt-bindings: clock: xilinx: Update VCU bindings for reset GPIO

Quoted 1 line · Rohit Visavalia

Updated VCU binding for reset GPIO pin as optional property.

Subject and here: everything is an update. Be specific and drop all redundant things making this unnecessary long: add reset GPIO

Quoted 2 lines

It is marked as optional as some of the ZynqMP designs are having vcu_reset (reset pin of VCU IP) is driven by proc_sys_reset, proc_sys_reset is another

"are having is" looks like two verbs.

I don't get here mainly why SoC has something driven by its own GPIO. That's unusual pattern.

Quoted 2 lines

PL IP driven by the PS pl_reset. So, here the VCU reset is not driven by axi_gpio or PS GPIO so there will be no GPIO entry.

Anyway, this has to be constrained per SoC.

Quoted 11 lines
---
 Documentation/devicetree/bindings/clock/xlnx,vcu.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +0 -0
index bdb14594c40b..b3061309f8dd 100644

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml properties: · line 40

Quoted 5 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +2 -0
@@ -36,6 +36,11 @@ properties:
       - const: pll_ref
       - const: aclk
 
+  reset-gpios:
+    description: Optional GPIO used to reset the VCU, if available. Need use this

Drop redundant parts. Not being part of required defines "optional" already. Don't repeat the schema but say something which we cannot deduce from this.

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml examples: · line 60

Quoted 11 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +4 -0
+      reset gpio when in design 'vcu_resetn' is driven by gpio.
+    maxItems: 1
+
 required:
   - reg
   - clocks
@@ -52,6 +57,7 @@ examples:
         xlnx_vcu: vcu@a0040000 {
             compatible = "xlnx,vcu-logicoreip-1.0";
             reg = <0x0 0xa0040000 0x0 0x1000>;
+            reset-gpios = <&gpio 0x4e GPIO_ACTIVE_HIGH>;

GPIO numbers are not hex... unless this is not GPIO :/

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml examples: · line 63

Quoted 3 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +0 -0
             clocks = <&si570_1>, <&clkc 71>;
             clock-names = "pll_ref", "aclk";
         };

Best regards,
Krzysztof

#9 lore raw

RE: [PATCH 3/3] dt-bindings: clock: xilinx: Update VCU bindings for reset GPIO

Hi Krzysztof,

Thanks for the review.

Quoted 10 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Friday, January 3, 2025 12:00 AM
To: Visavalia, Rohit <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH 3/3] dt-bindings: clock: xilinx: Update VCU bindings for reset GPIO

Quoted 5 lines
Quoted 1 line · Rohit Visavalia

Updated VCU binding for reset GPIO pin as optional property.

Subject and here: everything is an update. Be specific and drop all redundant things making this unnecessary long: add reset GPIO

Sure. I will take care in v2.

Quoted 6 lines
Quoted 4 lines

It is marked as optional as some of the ZynqMP designs are having vcu_reset (reset pin of VCU IP) is driven by proc_sys_reset, proc_sys_reset is another

"are having is" looks like two verbs.

I will correct in v2 patch.

Quoted 3 lines

I don't get here mainly why SoC has something driven by its own GPIO. That's unusual pattern.

VCU IP is in PL not part of PS.

Quoted 6 lines
Quoted 4 lines

PL IP driven by the PS pl_reset. So, here the VCU reset is not driven by axi_gpio or PS GPIO so there will be no GPIO entry.

Anyway, this has to be constrained per SoC.

As VCU IP is in PL, it depends on PL design creator how connection of VCU reset pin is done.

Quoted 16 lines
Quoted 16 lines
---
 Documentation/devicetree/bindings/clock/xlnx,vcu.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +0 -0
index bdb14594c40b..b3061309f8dd 100644
@@ -36,6 +36,11 @@ properties:
       - const: pll_ref
       - const: aclk
 
Quoted 7 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml properties: · line 41

Quoted 3 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +3 -0
+  reset-gpios:
+    description: Optional GPIO used to reset the VCU, if available.
+ Need use this

Drop redundant parts. Not being part of required defines "optional" already. Don't repeat the schema but say something which we cannot deduce from this.

Got it.

Quoted 14 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml examples: · line 60

Quoted 12 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +4 -0
+      reset gpio when in design 'vcu_resetn' is driven by gpio.
+    maxItems: 1
+
 required:
   - reg
   - clocks
@@ -52,6 +57,7 @@ examples:
         xlnx_vcu: vcu@a0040000 {
             compatible = "xlnx,vcu-logicoreip-1.0";
             reg = <0x0 0xa0040000 0x0 0x1000>;
+            reset-gpios = <&gpio 0x4e GPIO_ACTIVE_HIGH>;

GPIO numbers are not hex... unless this is not GPIO :/

Sure, I will update in v2 patch series.

Quoted 8 lines

Documentation/devicetree/bindings/clock/xlnx,vcu.yaml examples: · line 63

Quoted 4 lines
Documentation/devicetree/bindings/clock/xlnx,vcu.yaml +0 -0
             clocks = <&si570_1>, <&clkc 71>;
             clock-names = "pll_ref", "aclk";
         };

Best regards,
Krzysztof

Thanks
Rohit