diff mbox series

dt-bindings: clock: versal: Correct example dts

Message ID 20230330084846.14516-1-shubhrajyoti.datta@amd.com
State Changes Requested, archived
Headers show
Series dt-bindings: clock: versal: Correct example dts | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Datta, Shubhrajyoti March 30, 2023, 8:48 a.m. UTC
From: Jay Buddhabhatti <jay.buddhabhatti@xilinx.com>

Correct firmware node name and compatible string in versal clock
dt-bindings.

Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@xilinx.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
---

 Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Krzysztof Kozlowski March 30, 2023, 1:53 p.m. UTC | #1
On 30/03/2023 10:48, Shubhrajyoti Datta wrote:
> From: Jay Buddhabhatti <jay.buddhabhatti@xilinx.com>
> 
> Correct firmware node name and compatible string in versal clock
> dt-bindings.

That was a valid compatible, so you need you describe why you are doing
it. IOW, what was wrong and required correction. Because correcting a
correct compatible is really not obvious.

> 
> Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@xilinx.com>
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
> ---
> 
>  Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
> index 229af98b1d30..4bbf96484b56 100644
> --- a/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
> +++ b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
> @@ -50,8 +50,8 @@ additionalProperties: false
>  examples:
>    - |
>      firmware {
> -      zynqmp_firmware: zynqmp-firmware {
> -        compatible = "xlnx,zynqmp-firmware";
> +      versal_firmware: versal-firmware {

No. If you touch it, at least make it really correct:

Node names should be generic.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation



Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
index 229af98b1d30..4bbf96484b56 100644
--- a/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
+++ b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
@@ -50,8 +50,8 @@  additionalProperties: false
 examples:
   - |
     firmware {
-      zynqmp_firmware: zynqmp-firmware {
-        compatible = "xlnx,zynqmp-firmware";
+      versal_firmware: versal-firmware {
+        compatible = "xlnx,versal-firmware";
         method = "smc";
         versal_clk: clock-controller {
           #clock-cells = <1>;