mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Williams, Gregory" <gregoryw@amd.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	Gregory Williams <gregory.williams@amd.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Michal Simek <michal.simek@amd.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 11/15] dt-bindings: soc: xilinx: Add Versal AI Engine DT binding
Date: Wed, 2 Dec 2026 15:00:10 -0700	[thread overview]
Message-ID: <444f6c68-8571-436a-a763-f55e236bd472@amd.com> (raw)
In-Reply-To: <29fc3b0b-1ae8-4939-8d4d-4bcebe80e4cc@kernel.org>

On 11/19/2026 3:59 AM, Krzysztof Kozlowski wrote:
> On 19/11/2026 00:32, Gregory Williams wrote:
>> Add documentation to describe Versal AI Engine device tree bindings. AI
>> Engine is a tile array based processor with many cores and local memory
>> cache. Data routing between the cores is done through internal switches,
>> interface tiles are used to connect to external sources such as memory
>> or PL. Configuration registers of the device are accessed through a
>> memory mapped AXI address space.
>>
>> Signed-off-by: Gregory Williams <gregory.williams@amd.com>
>> ---
>>  .../bindings/soc/xilinx/xlnx,ai-engine.yaml   | 61 +++++++++++++++++++
> 
> Soc is dumping ground of things which do not have clear function. This
> has a clear function, so place it with other DSP/accel/NPU.
Will move in V2.
> 
> Subject - you almost hit the bingo. Missing only schema and YAML for the
> full one.
> 
> A nit, subject: drop second/last, redundant "DT bindings". The
> "dt-bindings" prefix is already stating that these are bindings.
> See also:
> https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23
Will add in V2, thanks for pointing me to these docs.
> 
>>  1 file changed, 61 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/soc/xilinx/xlnx,ai-engine.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/soc/xilinx/xlnx,ai-engine.yaml b/Documentation/devicetree/bindings/soc/xilinx/xlnx,ai-engine.yaml
>> new file mode 100644
>> index 000000000000..6c97b5f0fb03
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/soc/xilinx/xlnx,ai-engine.yaml
> 
> Please read writing bindings document. Filename must match compatible.
Will fix in V2.
> 
>> @@ -0,0 +1,61 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> 
> Why not using recommended license? Why doing this differently?
I will change to recommended license.
> 
>> +# Copyright(C) 2026 Advanced Micro Devices, Inc. All rights reserved.
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/soc/xilinx/xlnx,ai-engine.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: AMD AI Engine for Versal SoCs
>> +
>> +maintainers:
>> +  - Gregory Williams <gregory.williams@amd.com>
>> +
>> +description:
>> +  The AMD AI Engine is a tile processor with many cores (up to 400) that
>> +  can run in parallel with some devices containing local cache (memory tiles).
>> +  The data routing between cores is configured through internal switches, and
>> +  shim tiles interface with external interconnect, such as memory or PL.
>> +
>> +properties:
>> +  compatible:
>> +    enum:
>> +      - xlnx,versal2-aieml
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  clocks:
>> +    maxItems: 1
>> +
>> +  clock-names:
>> +    const: aclk0
> 
> Drop clock name. If you have to use output clock name as input name,
> then it's just incorrect or incomplete, thus just drop it.
I will drop.
> 
>> +
>> +  xlnx,firmware-device-id:
> 
> You don't get device identifiers, sorry. See writing bindings.
Will check this in writing bindings.
> 
>> +    description:
>> +      Device identifier as defined by Versal firmware interface. This value is
>> +      passed unchanged to firmware calls.
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +
>> +required:
>> +  - compatible
>> +  - reg
>> +  - clocks
>> +  - clock-names
>> +  - xlnx,firmware-device-id
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> +  - |
>> +    soc {
>> +      #address-cells = <2>;
>> +      #size-cells = <2>;
>> +
>> +      ai_engine: ai-engine@20000000000 {
> 
> Don't use your own names. It is not an engine.
> 
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> If you cannot find a name matching your device, please check in kernel
> sources for similar cases or you can grow the spec (via pull request to
> DT spec repo).
I will take a look and change to something generic. Thanks for your time,
I appreciate youre review on this pactch.

Thanks,
Greg
> 
>> +        compatible = "xlnx,versal2-aieml";
>> +        reg = <0x200 0x00 0x01 0x00>;
>> +        clocks = <&aclk0>;
>> +        clock-names = "aclk0";
>> +        xlnx,firmware-device-id = <0x18224072>;
>> +      };
>> +    };
> 
> 
> Best regards,
> Krzysztof


  reply	other threads:[~2026-12-02 22:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 23:31 [PATCH 00/15] accel: Add AMD Versal AI Engine driver (with Versal Gen 2 firmware support) Gregory Williams
2026-11-18 23:31 ` [PATCH 01/15] firmware: xilinx: Separate TF-A checking Gregory Williams
2026-11-18 23:31 ` [PATCH 02/15] firmware: xilinx: Call va_start after pm feature check Gregory Williams
2026-11-18 23:31 ` [PATCH 03/15] firmware: xilinx: Add comments about number of arguments Gregory Williams
2026-11-18 23:32 ` [PATCH 04/15] firmware: xilinx: Use match data for ZynqMP/Versal Gregory Williams
2026-11-18 23:32 ` [PATCH 05/15] firmware: xilinx: Rename zynqmp_pm_invoke_fw_fn() Gregory Williams
2026-11-18 23:32 ` [PATCH 06/15] dt-bindings: firmware: xilinx: Add Versal Gen 2 compatible string Gregory Williams
2026-11-19 10:53   ` Krzysztof Kozlowski
2026-11-23 12:16   ` Michal Simek
2026-11-18 23:32 ` [PATCH 07/15] firmware: xilinx: Add support for Versal Gen 2 Gregory Williams
2026-11-18 23:32 ` [PATCH 08/15] dt-bindings: clock: versal: add Versal Gen 2 compatible string Gregory Williams
2026-11-19 10:55   ` Krzysztof Kozlowski
2026-11-18 23:32 ` [PATCH 09/15] clk: zynqmp: Add " Gregory Williams
2026-11-18 23:32 ` [PATCH 10/15] drivers: firmware: xilinx: Add IOCTL support for the AIE run time operations Gregory Williams
2026-11-18 23:32 ` [PATCH 11/15] dt-bindings: soc: xilinx: Add Versal AI Engine DT binding Gregory Williams
2026-11-19 10:59   ` Krzysztof Kozlowski
2026-12-02 22:00     ` Williams, Gregory [this message]
2026-11-18 23:32 ` [PATCH 12/15] accel/amd-ai-engine: Add AMD AI Engine device driver Gregory Williams
2026-11-18 23:32 ` [PATCH 13/15] accel/amd-ai-engine: Add pm ops for firmware calls Gregory Williams
2026-11-18 23:32 ` [PATCH 14/15] accel/amd-ai-engine: Add support to enable/disable tile clocks Gregory Williams
2026-11-18 23:32 ` [PATCH 15/15] accel/amd-ai-engine: Add reset operations Gregory Williams
2026-11-19  8:19 ` [PATCH 00/15] accel: Add AMD Versal AI Engine driver (with Versal Gen 2 firmware support) Jerome Brunet

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=444f6c68-8571-436a-a763-f55e236bd472@amd.com \
    --to=gregoryw@amd.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregory.williams@amd.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@amd.com \
    --cc=robh@kernel.org \
    /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

all inboxes | Powered by JetHome®