From: Michal Simek <michal.simek@amd.com>
To: sashiko-reviews@lists.linux.dev
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 5/5] arm64: versal-net: Switch Versal NET to firmware clock interface
Date: Wed, 8 Jul 2026 13:51:56 +0200 [thread overview]
Message-ID: <5f492b86-319c-4fa8-8d0a-c729f21d643f@amd.com> (raw)
In-Reply-To: <20260708074202.74D461F000E9@smtp.kernel.org>
On 7/8/26 09:42, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> - [Medium] Device tree binding headers are incorrectly placed in arch/arm64/boot/dts/xilinx/ and duplicate existing bindings.
> - [Medium] Use of #undef directives in device tree binding headers to remove inherited definitions.
> --
>
> --- Patch [5]: [PATCH v4 5/5] arm64: versal-net: Switch Versal NET to firmware clock interface ---
> commit 768ce0b0d6c0eff83d929d6530cf30c0e1e4baaa
> Author: Michal Simek <michal.simek@amd.com>
>
> arm64: versal-net: Switch Versal NET to firmware clock interface
>
> Switch Versal NET from using fixed clocks to the firmware-based clock
> interface. Add DT macro headers for Versal NET and base Versal clocks,
> power domains, and mandatory resets required by the clock dtsi.
>
>> diff --git a/arch/arm64/boot/dts/xilinx/xlnx-versal-clk.h b/arch/arm64/boot/dts/xilinx/xlnx-versal-clk.h
>> new file mode 100644
>> index 0000000000000..d0c4abf78f307
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/xilinx/xlnx-versal-clk.h
>> @@ -0,0 +1,123 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +/*
>> + * Copyright (C) 2019 - 2022, Xilinx, Inc.
>> + * Copyright (C) 2022 - 2026, Advanced Micro Devices, Inc.
>> + */
>> +
>> +#ifndef _XLNX_VERSAL_CLK_H
>> +#define _XLNX_VERSAL_CLK_H
>> +
>> +#define PMC_PLL 1
>
> [Severity: Medium]
> Should these device tree binding headers be placed in include/dt-bindings/
> instead of arch/arm64/boot/dts/xilinx/?
>
> Placing them in the architecture directory bypasses the convention of having
> binding definitions act as a shared contract between the device tree and
> kernel drivers. This applies to xlnx-versal-clk.h, xlnx-versal-power.h,
> and others introduced here.
These are just holding constants and current file sin dt-bindings should be
deprecated as is done by
commit f0ceedd52a69a8bf63778b1fe9e1c10e02ecd3fd
dt-bindings: xilinx: Deprecate header with firmware constants
>
> [ ... ]
>
>> diff --git a/arch/arm64/boot/dts/xilinx/xlnx-versal-net-clk.h b/arch/arm64/boot/dts/xilinx/xlnx-versal-net-clk.h
>> new file mode 100644
>> index 0000000000000..4a6add03c173e
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/xilinx/xlnx-versal-net-clk.h
> [ ... ]
>> +/* Remove Versal specific node IDs */
>> +#undef APU_PLL
>> +#undef RPU_PLL
>> +#undef CPM_PLL
>
> [Severity: Medium]
> Will these undef directives work correctly with the device tree schema tools?
>
> Since schema validation tools typically use simple regex-based parsers rather
> than a full C preprocessor, they generally ignore undef statements. Could this
> cause the validation schemas to incorrectly accept the removed IDs?
validation is not affected.
>
> [ ... ]
>
>> diff --git a/arch/arm64/boot/dts/xilinx/xlnx-versal-resets.h b/arch/arm64/boot/dts/xilinx/xlnx-versal-resets.h
>> new file mode 100644
>> index 0000000000000..fe00f4a0ba65b
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/xilinx/xlnx-versal-resets.h
>> @@ -0,0 +1,106 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +/*
>> + * Copyright (C) 2020 - 2022, Xilinx, Inc.
>> + * Copyright (C) 2022 - 2026, Advanced Micro Devices, Inc.
>> + */
>> +
>> +#ifndef _XLNX_VERSAL_RESETS_H
>> +#define _XLNX_VERSAL_RESETS_H
>> +
>> +#define VERSAL_RST_PMC_POR (0xc30c001U)
>
> [Severity: Medium]
> Does this new file unnecessarily duplicate the already existing reset IDs
> binding in include/dt-bindings/reset/xlnx-versal-resets.h?
as above.
Thanks,
Michal
prev parent reply other threads:[~2026-07-08 11:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-08 7:18 [PATCH v4 0/5] clock: versal-clk: Fix Versal NET clock binding and switch to CCF Michal Simek
2026-07-08 7:18 ` [PATCH v4 1/5] dt-bindings: firmware: xilinx: Add missing example for ZynqMP Michal Simek
2026-07-08 7:27 ` sashiko-bot
2026-07-08 7:18 ` [PATCH v4 2/5] dt-bindings: clock: versal-clk: Fix mio_clk index range in clock-names pattern Michal Simek
2026-07-08 7:32 ` sashiko-bot
2026-07-08 10:59 ` Michal Simek
2026-07-08 7:18 ` [PATCH v4 3/5] dt-bindings: clock: Move xlnx,zynqmp-clk to its own schema Michal Simek
2026-07-08 7:37 ` sashiko-bot
2026-07-08 11:49 ` Michal Simek
2026-07-08 9:06 ` Rob Herring (Arm)
2026-07-08 7:18 ` [PATCH v4 4/5] dt-bindings: clock: versal-clk: Fix Versal NET clock validation Michal Simek
2026-07-08 7:18 ` [PATCH v4 5/5] arm64: versal-net: Switch Versal NET to firmware clock interface Michal Simek
2026-07-08 7:42 ` sashiko-bot
2026-07-08 11:51 ` Michal Simek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5f492b86-319c-4fa8-8d0a-c729f21d643f@amd.com \
--to=michal.simek@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox